9 |
|
|
10 |
TRandom3* RefitTrackAction::_r3 = new TRandom3(0); |
TRandom3* RefitTrackAction::_r3 = new TRandom3(0); |
11 |
long int RefitTrackAction::_currEvent = -1; |
long int RefitTrackAction::_currEvent = -1; |
12 |
|
TString RefitTrackAction::_currTrkParamsFile = ""; |
13 |
|
|
14 |
void RefitTrackAction::OnGood(PamLevel2 *event) { |
void RefitTrackAction::OnGood(PamLevel2 *event) { |
15 |
|
|
16 |
TrkParams::Set("/wizard/02/pamela_software/installed/pamela/calib/trk-param/align_param-080805-GL1from7/", 5); //DA USARE SOLO PER SIMULAZIONE ROTRASL!!! |
// Reload the TRK parameters only if they have been changed (ie., if another instance of |
17 |
|
// this class used a different set of parameters. |
18 |
|
if (_trkParamsFile != _currTrkParamsFile) { |
19 |
|
TrkParams::Set(_trkParamsFile, 5); |
20 |
|
_currTrkParamsFile = _trkParamsFile; |
21 |
|
} |
22 |
|
|
23 |
TrkTrack *trkTrack = event->GetTrack(0)->GetTrkTrack(); |
TrkTrack *trkTrack = event->GetTrack(0)->GetTrkTrack(); |
24 |
if (!trkTrack) |
if (!trkTrack) |