XeCut Class Reference
Description of a cut, either a preselection or a selection one.
More...
#include <XeAnalysis.h>
List of all members.
Public Member Functions |
void | draw () |
| Draw the cut, being and S1S2Object object.
|
void | enable (bool enabled) |
| Enable the cut.
|
TF1 * | getCutFunction () |
| Return the funtion used to define the cut, if any.
|
int | getNature () |
| return cut nature
|
double | getOverallAcceptance () |
| return the Overall Acceptance.
|
XeRun * | getRun () |
| Return the run it applies to.
|
int | getRunNumber () |
| Return run number.
|
bool | isEnabled () |
| Is he cut enabled?
|
double | maxX () |
| Return maximum 'X' value, as requested by being an S1S2Object object.
|
double | maxY () |
| Return maximum 'Y' value, as requested by being an S1S2Object object.
|
double | minX () |
| Return minimum 'X' value, as requested by being an S1S2Object object.
|
double | minY () |
| Return minimum 'Y' value, as requested by being an S1S2Object object.
|
virtual XeGraph * | newGraph (int plot=NONE) |
| produce a graph and optionally plots it
|
bool | passes (double S1, double S2) |
| Do S1 and S2 pass the cut? If not enabled, return true.
|
virtual bool | passIt (double S1, double S2) |
| Do S1 and S2 pass the cut? (virtual).
|
| XeCut (XeRun *run, string name) |
Protected Attributes |
TF1 * | cutFunction |
int | cutMode |
bool | enabled |
STATIC_CONST int | N_PE = 40 |
int | nature |
double | overallAcceptance |
STATIC_CONST double | PE_MAX = 40. |
STATIC_CONST double | PE_MIN = 1. |
XeRun * | run |
int | runNumber |
Detailed Description
Description of a cut, either a preselection or a selection one.
Cuts are applied to real data and return "pass or fail". They also return acceptance on S1 only. This is a virtual class
Constructor & Destructor Documentation
XeCut::XeCut |
( |
XeRun * |
run, |
|
|
string |
name | |
|
) |
| | |
- Parameters:
-
| run | the run (actually XeRun) on which the cut applies |
| name | name of the cut |
Member Function Documentation
void XeCut::enable |
( |
bool |
enabled |
) |
|
Enable the cut.
- Parameters:
-
| enabled | it is to be enabled? |
TF1* XeCut::getCutFunction |
( |
|
) |
|
Return the funtion used to define the cut, if any.
- Returns:
- pointer to the cut definition function, or NULL if not such a thing
return cut nature
- Returns:
- nature: USER_GENERAL_CUT , USER_SELECTION_CUT , USER_SELECTION_CUT_ON_S1 USER_SELECTION_CUT_ON_UNSMEARED_S1 , S1_STOT_SELECTION_CUT S2_PEAK_S0_SELECTION_CUT , S1_COIN2_SELECTION_CUT , DARK_MATTER_CUT
double XeCut::getOverallAcceptance |
( |
|
) |
|
return the Overall Acceptance.
- Returns:
- acceptance for Dark Matter cuts, 1. for preselection cuts;
Return the run it applies to.
- Returns:
- a pointer to the XeRun object
Reimplemented in SelectionCut.
bool XeCut::isEnabled |
( |
|
) |
|
Is he cut enabled?
- Returns:
- true or false
virtual XeGraph* XeCut::newGraph |
( |
int |
plot = NONE |
) |
[virtual] |
bool XeCut::passes |
( |
double |
S1, |
|
|
double |
S2 | |
|
) |
| | |
Do S1 and S2 pass the cut? If not enabled, return true.
- Returns:
- a boolean, true if passes
- Parameters:
-
| S1 | measured S1 |
| S2 | measured S2 |
virtual bool XeCut::passIt |
( |
double |
S1, |
|
|
double |
S2 | |
|
) |
| | [virtual] |
Do S1 and S2 pass the cut? (virtual).
- Returns:
- a boolean, true if passes
- Parameters:
-
| S1 | measured S1 |
| S2 | measured S2 |
Reimplemented in s1sTotCut, S1S2SingleCut, and S1OverS2Cut.
The documentation for this class was generated from the following file: