| 15 |
* |
* |
| 16 |
* This action refits the TRK track using only level 2 data. This means that it will use the same |
* This action refits the TRK track using only level 2 data. This means that it will use the same |
| 17 |
* clusters which are associated to the track, with the possibility to mask or shift some of them. |
* clusters which are associated to the track, with the possibility to mask or shift some of them. |
| 18 |
|
* If a refit fails the event will not be discarded (since this is not a cut) but chi2 will be negative, |
| 19 |
|
* and the event will be subsequently discarded by an eventual TrkPhSinCut. |
| 20 |
|
* This action can be used also before TrkPhSinCut, since it checks for the existence of at least |
| 21 |
|
* one track before refitting. The refitted track is always the first "physical" track; the ordering |
| 22 |
|
* criterion can be set using #SetSortingMethod. If, instead, this action is placed after a TrkPhsinCut |
| 23 |
|
* it is not necessary to set this parameter, since the value used for TrkPhSinCut will be automatically |
| 24 |
|
* used (of course, it can be used as well if a different ordering may be needed). |
| 25 |
* For a complete reprocess and fit use #ReprocessTrackAction. |
* For a complete reprocess and fit use #ReprocessTrackAction. |
| 26 |
*/ |
*/ |
| 27 |
class RefitTrackAction: public CollectionAction { |
class RefitTrackAction: public CollectionAction { |
| 38 |
* @param trkParamsFile The file containing the tracker parameters to be used. Default value corresponds to the standard |
* @param trkParamsFile The file containing the tracker parameters to be used. Default value corresponds to the standard |
| 39 |
* parameters used for data reduction. |
* parameters used for data reduction. |
| 40 |
*/ |
*/ |
| 41 |
RefitTrackAction(const char *actionName, float spreadX = 0., float spreadY = 0., int maskedViews = 0., TString trkParamsFile = "") : |
RefitTrackAction(const char *actionName, float spreadX = 0., float spreadY = 0., int maskedViews = 0., |
| 42 |
CollectionAction(actionName), _spreadX(spreadX), _spreadY(spreadY), _maskedViews(maskedViews), _trkParamsFile(trkParamsFile) { |
TString trkParamsFile = "") : |
| 43 |
|
CollectionAction(actionName), _spreadX(spreadX), _spreadY(spreadY), _maskedViews(maskedViews), _trkParamsFile( |
| 44 |
|
trkParamsFile), _sortingMethod(NULL) { |
| 45 |
|
|
| 46 |
} |
} |
| 47 |
|
|
| 60 |
|
|
| 61 |
} |
} |
| 62 |
|
|
| 63 |
|
/* @brief Set the track sorting criterion |
| 64 |
|
* |
| 65 |
|
* The action refits the first track, which is the one obtained with PamLevel2::GetTrack(0). This method can |
| 66 |
|
* be used to set the sorting criterion used to determine which track is the first. |
| 67 |
|
* |
| 68 |
|
* @param sortingMethod The sorting method. Format has to be compatible with the argument of PamLevel2::SetSortingMethod. |
| 69 |
|
*/ |
| 70 |
|
void SetSortingMethod(const char *sortingMethod) { |
| 71 |
|
_sortingMethod = sortingMethod; |
| 72 |
|
} |
| 73 |
|
|
| 74 |
private: |
private: |
| 75 |
|
|
| 76 |
float _spreadX, _spreadY; |
float _spreadX, _spreadY; |
| 84 |
|
|
| 85 |
TString _trkParamsFile; |
TString _trkParamsFile; |
| 86 |
static TString _currTrkParamsFile; |
static TString _currTrkParamsFile; |
| 87 |
|
|
| 88 |
|
const char *_sortingMethod; |
| 89 |
}; |
}; |
| 90 |
|
|
| 91 |
#endif /* REFITTRACKACTION_H_ */ |
#endif /* REFITTRACKACTION_H_ */ |