XeSetOfCuts Class Reference

Set of cuts. More...

#include <XeAnalysis.h>

Inheritance diagram for XeSetOfCuts:
S1S2Object XeGraphics XeObject XeCore XeCore XeSetOfSelectionCuts

List of all members.

Public Member Functions

void addCut (XeCut *cut)
 adds one cut to the set
void addCuts (XeSetOfCuts *cuts)
 adds one set of cutc to the current set
void disable (int i)
 disable one cut
void disableAll ()
 disable all the cuts
void draw ()
 Draw the cuts in a standard S1,S2 plane.
void enable (int i, bool enabled=true)
 enable one cut
void enableAll (bool enabled=true)
 enable one cut
void enableFirst (int n)
 enable first n cuts, disable all the rest
XeCutgetCutByNature (int nat)
 get first cut of a given nature
XeCutgetCutBySequence (int i)
 Get a cut by its sequence number.
string getCutNameBySequence (int i)
 Return name of a cut.
int getNCuts ()
 return number of cuts
double getOverallAcceptance ()
 create the Overall Acceptance (1.
bool isEnabled (int i)
 is a 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.
XeMultiGraphnewMultiGraph (int plot=NONE)
 create a mutiple graph (actually XeMultiGraph) of all cuts in S1 or uS1
bool passes (double s1, double s2)
 Do s1 and s2 pass the cut?
bool printIt (int level=1)
 print the set of cuts
void reset ()
 remove all the cuts

Static Public Member Functions

static XeSetOfCutsnewDefaultXeSetOfDarkMatterCuts (XeRun *run)
 create a default set of dark Matter cuts

Protected Member Functions

bool checkIndex (int i)
void init ()
virtual void setTheName ()

Protected Attributes

XeRunrun
int runNumber

Detailed Description

Set of cuts.


Member Function Documentation

void XeSetOfCuts::addCut ( XeCut cut  ) 

adds one cut to the set

Parameters:
cut the XeCut to be added
void XeSetOfCuts::addCuts ( XeSetOfCuts cuts  ) 

adds one set of cutc to the current set

Parameters:
cuts the XeSetOfCut to be added
void XeSetOfCuts::disable ( int  i  ) 

disable one cut

Parameters:
i cut index, counting from 0
void XeSetOfCuts::enable ( int  i,
bool  enabled = true 
)

enable one cut

Parameters:
i cut index, counting from 0
enabled enable or disable
void XeSetOfCuts::enableAll ( bool  enabled = true  ) 

enable one cut

Parameters:
enabled enable or disable
void XeSetOfCuts::enableFirst ( int  n  ) 

enable first n cuts, disable all the rest

Parameters:
n how many need to be enabled
XeCut* XeSetOfCuts::getCutByNature ( int  nat  ) 

get first cut of a given nature

Returns:
pointer to first cut of the given nature
Parameters:
nat cut 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
XeCut* XeSetOfCuts::getCutBySequence ( int  i  ) 

Get a cut by its sequence number.

Returns:
pointer to the requested cut
Parameters:
i cut index, counting from 0
string XeSetOfCuts::getCutNameBySequence ( int  i  ) 

Return name of a cut.

Parameters:
i cut index, counting from 0
double XeSetOfCuts::getOverallAcceptance (  ) 

create the Overall Acceptance (1.

for preselection cuts);

Returns:
pointer to the newly created XeMultiGraph
bool XeSetOfCuts::isEnabled ( int  i  ) 

is a cut enabled?

Parameters:
i cut index, counting from 0
static XeSetOfCuts* XeSetOfCuts::newDefaultXeSetOfDarkMatterCuts ( XeRun run  )  [static]

create a default set of dark Matter cuts

Returns:
a pointer to the newly created set of dark Matter cuts
Parameters:
run The given run
XeMultiGraph* XeSetOfCuts::newMultiGraph ( int  plot = NONE  ) 

create a mutiple graph (actually XeMultiGraph) of all cuts in S1 or uS1

Returns:
pointer to the newly created XeMultiGraph
Parameters:
plot either NONE, AUTO, LINEAR, or LOG
bool XeSetOfCuts::passes ( double  s1,
double  s2 
)

Do s1 and s2 pass the cut?

Parameters:
s1 s1 value
s2 s2 value
bool XeSetOfCuts::printIt ( int  level = 1  )  [virtual]

print the set of cuts

Parameters:
level print level

Reimplemented from XeObject.

Reimplemented in XeSetOfSelectionCuts.


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