| 14 |
|
|
| 15 |
/*! @brief The cut on TRK sigma_deflection. |
/*! @brief The cut on TRK sigma_deflection. |
| 16 |
* |
* |
| 17 |
* This cut discards an event if its sigma_deflection (defined as sqrt(coval[4][4]), in GV^-1) is not less than the minimum deflection for the bin which contains the event deflection modulus (deflection of the first TRK track). |
* This cut discards an event if its sigma_deflection (defined as sqrt(coval[4][4]), in GV^-1) |
| 18 |
|
* multiplied by a constant parameter is not less than the minimum deflection for the bin which |
| 19 |
|
* contains the event deflection modulus (deflection of the first TRK track). |
| 20 |
* |
* |
| 21 |
*/ |
*/ |
| 22 |
class TrkSigmaDeflCut: public PamCut { |
class TrkSigmaDeflCut: public PamCut { |
| 30 |
* that the elements must be ordered (ie., lowest rigidity value in the first |
* that the elements must be ordered (ie., lowest rigidity value in the first |
| 31 |
* element and so on). |
* element and so on). |
| 32 |
*/ |
*/ |
| 33 |
TrkSigmaDeflCut(const char *cutName, std::vector<float> binning) : |
TrkSigmaDeflCut(const char *cutName, std::vector<float> binning, float sigmaDeflFactor = 1.) : |
| 34 |
PamCut(cutName), _binning(binning) { |
PamCut(cutName), _binning(binning), _sigmaDeflFactor(sigmaDeflFactor) { |
| 35 |
} |
} |
| 36 |
|
|
| 37 |
/*! @brief Constructor. |
/*! @brief Constructor. |
| 42 |
* that the elements must be ordered (ie., lowest rigidity value in the first |
* that the elements must be ordered (ie., lowest rigidity value in the first |
| 43 |
* element and so on). |
* element and so on). |
| 44 |
*/ |
*/ |
| 45 |
TrkSigmaDeflCut(const char *cutName, const char* rigBinListFileName); |
TrkSigmaDeflCut(const char *cutName, const char* rigBinListFileName, float deflFactor = 1.); |
| 46 |
|
|
| 47 |
/*! @brief Destructor. */ |
/*! @brief Destructor. */ |
| 48 |
~TrkSigmaDeflCut() { |
~TrkSigmaDeflCut() { |
| 59 |
*/ |
*/ |
| 60 |
int Check(PamLevel2 *event); |
int Check(PamLevel2 *event); |
| 61 |
|
|
|
|
|
| 62 |
private: |
private: |
| 63 |
|
|
| 64 |
std::vector<float> _binning; |
std::vector<float> _binning; |
| 65 |
|
float _sigmaDeflFactor; |
| 66 |
|
|
| 67 |
}; |
}; |
| 68 |
|
|