| 27 |
* It is also possible to recover spillover events. These are defined as events with opposite sign |
* It is also possible to recover spillover events. These are defined as events with opposite sign |
| 28 |
* and absolute rigidity greater than a certain value (specified as a constructors' parameter). |
* and absolute rigidity greater than a certain value (specified as a constructors' parameter). |
| 29 |
* They will be added to the rigidity overflow bins (YOverflow). |
* They will be added to the rigidity overflow bins (YOverflow). |
| 30 |
|
* Another functionality of this action is the correction of deflection for residual misalignment when |
| 31 |
|
* selecting data with a fixed MDR cut (which reduces the effective tracker geometry and thus brings up |
| 32 |
|
* some residual misalignment). |
| 33 |
* For output file naming conventions, see #Finalize. |
* For output file naming conventions, see #Finalize. |
| 34 |
* |
* |
| 35 |
* CUT DEPENDENCIES: TrkPhSinCut for single physical track, TrkRigGeoCut for galactic event. |
* CUT DEPENDENCIES: TrkPhSinCut for single physical track, TrkRigGeoCut for galactic event. |
| 36 |
* |
* |
| 37 |
*/ |
*/ |
| 38 |
class RigFillAction: public Histo2DAction<Int_t> { |
class RigFillAction: public Histo2DAction<Float_t> { |
| 39 |
|
|
| 40 |
public: |
public: |
| 41 |
/*! @brief Constructor. |
/*! @brief Constructor. |
| 57 |
* @param spilloverFlag If true, spillover events (defined by spilloverLimit) will be not discarded and |
* @param spilloverFlag If true, spillover events (defined by spilloverLimit) will be not discarded and |
| 58 |
* added to the highest bin. |
* added to the highest bin. |
| 59 |
* @param spilloverLimit The inferior limit of the spillover rigidities (absolute value). |
* @param spilloverLimit The inferior limit of the spillover rigidities (absolute value). |
| 60 |
|
* @param mdrMin The fixed MDR cut (in GV) applied to data before this action, and for which the measured rigidity |
| 61 |
|
* will be corrected. See the implementation of #OnGood for details about the correction calculation. |
| 62 |
|
* No correction will be applied if this parameter is set to 0. |
| 63 |
|
* |
| 64 |
*/ |
*/ |
| 65 |
RigFillAction(const char *actionName, TString outFileBase, TString rigBinsFile, float thresholdCoeff, |
RigFillAction(const char *actionName, TString outFileBase, TString rigBinsFile, float thresholdCoeff, |
| 66 |
float chargeSign = POSITIVE, bool spilloverFlag = false, float spilloverLimit = 0); |
float chargeSign = POSITIVE, bool spilloverFlag = false, float spilloverLimit = 0, float mdrMin = 0.); |
| 67 |
|
|
| 68 |
/*! @brief Constructor. |
/*! @brief Constructor. |
| 69 |
* |
* |
| 81 |
* @param spilloverFlag If true, spillover events (defined by spilloverLimit) will be not discarded and |
* @param spilloverFlag If true, spillover events (defined by spilloverLimit) will be not discarded and |
| 82 |
* added to the highest bin. |
* added to the highest bin. |
| 83 |
* @param spilloverLimit The inferior limit of the spillover rigidities (absolute value). |
* @param spilloverLimit The inferior limit of the spillover rigidities (absolute value). |
| 84 |
|
* @param mdrMin The fixed MDR cut (in GV) applied to data before this action, and for which the measured rigidity |
| 85 |
|
* will be corrected. See the implementation of #OnGood for details about the correction calculation. |
| 86 |
|
* No correction will be applied if this parameter is set to 0. |
| 87 |
*/ |
*/ |
| 88 |
RigFillAction(const char *actionName, TString outFileBase, vector<float> &bins, float thresholdCoeff, |
RigFillAction(const char *actionName, TString outFileBase, vector<float> &bins, float thresholdCoeff, |
| 89 |
float chargeSign = POSITIVE, bool spilloverFlag = false, float spilloverLimit = 0); |
float chargeSign = POSITIVE, bool spilloverFlag = false, float spilloverLimit = 0, float mdrMin = 0.); |
| 90 |
|
|
| 91 |
/*! @brief Destructor */ |
/*! @brief Destructor */ |
| 92 |
~RigFillAction() { |
~RigFillAction() { |
| 119 |
float _chargeSign; |
float _chargeSign; |
| 120 |
bool _spilloverFlag; |
bool _spilloverFlag; |
| 121 |
float _spilloverLimit; |
float _spilloverLimit; |
| 122 |
|
float _mdrMin; |
| 123 |
}; |
}; |
| 124 |
#endif /* RIGFILLACTION_H_ */ |
#endif /* RIGFILLACTION_H_ */ |