SelectionCut Class Reference

Selection cut. More...

#include <XeAnalysis.h>

Inheritance diagram for SelectionCut:
XeCut S1S2Object XeGraphics XeObject XeCore XeCore SelectionCutS1 SelectionCutUnsmearedS1 AllSelectionCutsS1 OtherSelectionCutsS1 S1coin2Cut s1sTotCut s2peaks0Cut

List of all members.

Public Member Functions

double getAcceptance (double S1, double t)
 Return the acceptance as a function of (un)smeared S1.
double getAcceptance (double S1)
 Return the acceptance as a function of (un)smeared S1 for the central value.
XeRungetRun ()
 Return pointer to current XeRun.
int getSmearMode ()
 Are we in smeared or unsmeared mode?
string getSmearModeName ()
 get the name of the smear mode ("smeared", "unsemared")
double getTValue ()
 return the currently set "t-value"
bool isVariable ()
 Is this cut driven by a "t-value" ?
XeGraphnewGraphOfAcceptance (S1Range *pe=NULL, double t=0., int plot=NONE)
 create a graph of the acceptance
XeGraphnewGraphOfCurrentAcceptance (S1Range *pe=NULL, int plot=NONE)
 create a graph of the acceptance for the current t-value
bool printIt (int level=1)
 print the selection cut
 SelectionCut (XeRun *run, int mode, bool variable)
void setTValue (double t)
 set "t-value" (how many sigmas are we above or below the average?)
void tabulate ()

Static Public Member Functions

static void setTValueMode (int mode)
 Set the effect of the "t-value".

Protected Member Functions

virtual double computeAcceptance (double S1, int mode)=0
double getAcceptance (double S1, int mode)

Protected Attributes

double _acc [N_ER_POINTS][N_SIGMA_MODES]
int smearMode
bool tabulated
double tValue
bool variable

Static Protected Attributes

static int tValueMode

Detailed Description

Selection cut.

Also a virtual class


Constructor & Destructor Documentation

SelectionCut::SelectionCut ( XeRun run,
int  mode,
bool  variable 
)
Parameters:
run XeRun on which this applies
mode either SELECTION_CUT_ON_UNSMEARED_S1 or SELECTION_CUT_ON_SMEARED_S1
variable whether the acceptance can be modified by a nuisance parameter

Member Function Documentation

double SelectionCut::getAcceptance ( double  S1,
double  t 
)

Return the acceptance as a function of (un)smeared S1.

Parameters:
S1 (un)smeared s1
t "t-value"
double SelectionCut::getAcceptance ( double  S1  ) 

Return the acceptance as a function of (un)smeared S1 for the central value.

Parameters:
S1 (un)smeared s1
int SelectionCut::getSmearMode (  ) 

Are we in smeared or unsmeared mode?

Returns:
SELECTION_CUT_UNKNOWN , SELECTION_CUT_ON_UNSMEARED_S1 , SELECTION_CUT_ON_SMEARED_S1
XeGraph* SelectionCut::newGraphOfAcceptance ( S1Range pe = NULL,
double  t = 0.,
int  plot = NONE 
)

create a graph of the acceptance

Returns:
a pointer to the newly created XeGraph
Parameters:
pe Range in photo electron (actually S1Range, NULL=default one)
t Nuisance parameter modifying the acceptance, in sigma equivalent
plot either NONE, AUTO, LINEAR, or LOG
XeGraph* SelectionCut::newGraphOfCurrentAcceptance ( S1Range pe = NULL,
int  plot = NONE 
)

create a graph of the acceptance for the current t-value

Returns:
a pointer to the newly created XeGraph
Parameters:
pe Range in photo electron (actually S1Range, NULL=default one)
plot either NONE, AUTO, LINEAR, or LOG
bool SelectionCut::printIt ( int  level = 1  )  [virtual]

print the selection cut

Parameters:
level print level

Reimplemented from XeObject.

void SelectionCut::setTValue ( double  t  ) 

set "t-value" (how many sigmas are we above or below the average?)

Parameters:
level t t-value
static void SelectionCut::setTValueMode ( int  mode  )  [static]

Set the effect of the "t-value".

Parameters:
mode either LINEAR or LOG

The documentation for this class was generated from the following file:
 All Classes Functions Variables

Generated on 10 Apr 2015 for Xephyr by  doxygen 1.6.1