#include <LTGeoFillCut.h>
Public Member Functions | |
LTGeoFillCut (const char *cutName, std::vector< float > binning, float thresholdCoeff) | |
Constructor. | |
~LTGeoFillCut () | |
Destructor. | |
int | Check (PamLevel2 *event) |
The threshold rigidity check. | |
void | OnGood (PamLevel2 *event) |
The histogram filling. | |
std::vector< float > & | GetHisto () |
Returns the histogram. | |
float | GetHistoTot () |
Returns the histogram total. |
This cut fills a Live Time (LT) histogram (in seconds) binned in threshold rigidity (in GV), given by the geomagnetic cutoff rigidity (the Stoermer cutoff) for that event multiplied by a threshold coefficient. It discards an event only if its threshold rigidity is outside the limits of the histogram.
LTGeoFillCut::LTGeoFillCut | ( | const char * | cutName, | |
std::vector< float > | binning, | |||
float | thresholdCoeff | |||
) | [inline] |
Constructor.
cutName | The cut's name. | |
binning | A vector containing the histogram binning in threshold rigidity. Note that it must contain both the upper and lower limits, and that the elements must be ordered (ie., lowest value in the first element and so on). | |
thresholdCoeff | The threshold rigidity coefficient for the event selection. |
int LTGeoFillCut::Check | ( | PamLevel2 * | event | ) | [virtual] |
std::vector<float>& LTGeoFillCut::GetHisto | ( | ) | [inline] |
Returns the histogram.
This method returns a vector filled with the LT (in seconds) corresponding to each threshold rigidity bin (in GV) defined in the binning argument of the constructor. Element 0 is the total LT for events whose threshold rigidity lies in the lowest bin and so on.
float LTGeoFillCut::GetHistoTot | ( | ) | [inline] |
Returns the histogram total.
This method returns the LT (in seconds) summed over all threshold rigidity bins (in GV) defined in the binning argument of the constructor.
void LTGeoFillCut::OnGood | ( | PamLevel2 * | event | ) | [virtual] |
The histogram filling.
The method fills the LT histogram (in seconds) with the currently selected event.
event | The currently selected event. |
Reimplemented from PamCut.