CMS 3D CMS Logo

List of all members | Public Types | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Static Private Attributes
egHLT::EgCutCodes Class Reference

#include <EgHLTEgCutCodes.h>

Public Types

enum  CutCode {
  ET =0x00000001, PT =0x00000002, DETETA =0x00000004, CRACK =0x00000008,
  DETAIN =0x00000010, DPHIIN =0x00000020, INVEINVP =0x00000040, SIGMAETAETA =0x00000080,
  HADEM =0x00000100, SIGMAIETAIETA =0x00000200, E2X5OVER5X5 =0x00000400, MINR9 =0x00000800,
  MAXR9 =0x00100000, ISOLEM =0x00001000, ISOLHAD =0x00002000, ISOLPTTRKS =0x00004000,
  ISOLNRTRKS =0x00008000, HLTISOLTRKSELE =0x00010000, HLTISOLTRKSPHO =0x00020000, HLTISOLHAD =0x00040000,
  HLTISOLEM =0x00080000, CTFTRACK =0x00010000, HLTDETAIN =0x00020000, HLTDPHIIN =0x00040000,
  HLTINVEINVP =0x00080000, INVALID =0x80000000
}
 

Static Public Member Functions

static int getCode (const std::string &descript)
 
static void getCodeName (int code, std::string &id)
 

Private Member Functions

 EgCutCodes ()
 
 ~EgCutCodes ()
 

Static Private Member Functions

static ComCodes setCodes_ ()
 

Static Private Attributes

static const ComCodes codes_
 

Detailed Description

Definition at line 13 of file EgHLTEgCutCodes.h.

Member Enumeration Documentation

Enumerator
ET 
PT 
DETETA 
CRACK 
DETAIN 
DPHIIN 
INVEINVP 
SIGMAETAETA 
HADEM 
SIGMAIETAIETA 
E2X5OVER5X5 
MINR9 
MAXR9 
ISOLEM 
ISOLHAD 
ISOLPTTRKS 
ISOLNRTRKS 
HLTISOLTRKSELE 
HLTISOLTRKSPHO 
HLTISOLHAD 
HLTISOLEM 
CTFTRACK 
HLTDETAIN 
HLTDPHIIN 
HLTINVEINVP 
INVALID 

Definition at line 17 of file EgHLTEgCutCodes.h.

17  {
18  //kinematic and fiducial cuts
19  ET =0x00000001,
20  PT =0x00000002,
21  DETETA =0x00000004,
22  CRACK =0x00000008,
23  //track cuts
24  DETAIN =0x00000010,
25  DPHIIN =0x00000020,
26  INVEINVP =0x00000040,
27 
28  //supercluster cuts
29  SIGMAETAETA =0x00000080,
30  HADEM =0x00000100,
31  SIGMAIETAIETA =0x00000200,
32  E2X5OVER5X5 =0x00000400,
33  //---Morse------
34  //R9 =0x00000800,
35  MINR9 =0x00000800,
36  MAXR9 =0x00100000,
37  //--------------
38  //std isolation cuts
39  ISOLEM =0x00001000,
40  ISOLHAD =0x00002000,
41  ISOLPTTRKS =0x00004000,
42  ISOLNRTRKS =0x00008000,
43  //hlt isolation cuts
44  HLTISOLTRKSELE=0x00010000,
45  HLTISOLTRKSPHO=0x00020000,
46  HLTISOLHAD =0x00040000,
47  HLTISOLEM =0x00080000,
48  //track quaility cuts (hlt track algo isnt very forgiving)
49  CTFTRACK =0x00010000,
50  //hlt quantities that are slightly different to reco
51  HLTDETAIN =0x00020000,
52  HLTDPHIIN =0x00040000,
53  HLTINVEINVP =0x00080000,
54  //flag that if its set, shows the code is invalid
55  INVALID =0x80000000
56 
57  };

Constructor & Destructor Documentation

egHLT::EgCutCodes::EgCutCodes ( )
inlineprivate

Definition at line 63 of file EgHLTEgCutCodes.h.

63 {} //not going to allow instainitiation
egHLT::EgCutCodes::~EgCutCodes ( )
inlineprivate

Definition at line 64 of file EgHLTEgCutCodes.h.

64 {}

Member Function Documentation

static int egHLT::EgCutCodes::getCode ( const std::string &  descript)
inlinestatic

Definition at line 67 of file EgHLTEgCutCodes.h.

References egHLT::ComCodes::getCode().

Referenced by egHLT::CutMasks::setup(), and egHLT::EgCutValues::setup().

67 {return codes_.getCode(descript.c_str());}
static const ComCodes codes_
int getCode(const char *descript) const
static void egHLT::EgCutCodes::getCodeName ( int  code,
std::string &  id 
)
inlinestatic

Definition at line 68 of file EgHLTEgCutCodes.h.

References egHLT::ComCodes::getCodeName(), and setCodes_().

68 {return codes_.getCodeName(code,id);}
static const ComCodes codes_
void getCodeName(int code, std::string &id) const
ComCodes EgCutCodes::setCodes_ ( )
staticprivate

Definition at line 8 of file EgHLTEgCutCodes.cc.

References CRACK, CTFTRACK, DETAIN, DETETA, DPHIIN, E2X5OVER5X5, ET, HADEM, HLTDETAIN, HLTDPHIIN, HLTINVEINVP, HLTISOLEM, HLTISOLHAD, HLTISOLTRKSELE, HLTISOLTRKSPHO, INVALID, INVEINVP, ISOLEM, ISOLHAD, ISOLNRTRKS, ISOLPTTRKS, MAXR9, MINR9, PT, egHLT::ComCodes::setCode(), SIGMAETAETA, SIGMAIETAIETA, and egHLT::ComCodes::sort().

Referenced by getCodeName().

9 {
10  ComCodes codes;
11  codes.setCode("et",int(ET));
12  codes.setCode("pt",int(PT));
13  codes.setCode("detEta",int(DETETA));
14  codes.setCode("crack",int(CRACK));
15 
16  codes.setCode("dEtaIn",int(DETAIN));
17  codes.setCode("dPhiIn",int(DPHIIN));
18  codes.setCode("invEInvP",int(INVEINVP));
19 
20  codes.setCode("hadem",int(HADEM));
21  codes.setCode("sigmaIEtaIEta",int(SIGMAIETAIETA));
22  codes.setCode("sigmaEtaEta",int(SIGMAETAETA));
23  codes.setCode("e2x5Over5x5",int(E2X5OVER5X5));
24  //---Morse-------
25  //codes.setCode("r9",int(R9));
26  codes.setCode("minr9",int(MINR9));
27  codes.setCode("maxr9",int(MAXR9));
28  //---------------
29 
30  codes.setCode("isolEm",int(ISOLEM));
31  codes.setCode("isolHad",int(ISOLHAD));
32  codes.setCode("isolPtTrks",int(ISOLPTTRKS));
33  codes.setCode("isolNrTrks",int(ISOLNRTRKS));
34 
35  codes.setCode("hltIsolTrksEle",int(HLTISOLTRKSELE));
36  codes.setCode("hltIsolTrksPho",int(HLTISOLTRKSPHO));
37  codes.setCode("hltIsolHad",int(HLTISOLHAD));
38  codes.setCode("hltIsolEm",int(HLTISOLEM));
39 
40  codes.setCode("ctfTrack",int(CTFTRACK));
41  codes.setCode("hltDEtaIn",int(HLTDETAIN));
42  codes.setCode("hltDPhiIn",int(HLTDPHIIN));
43  codes.setCode("hltInvEInvP",int(HLTINVEINVP));
44 
45  codes.setCode("invalid",int(INVALID));
46  codes.sort();
47  return codes;
48 }
void setCode(const char *descript, int code)
Definition: EgHLTComCodes.cc:7

Member Data Documentation

const ComCodes EgCutCodes::codes_
staticprivate

Definition at line 60 of file EgHLTEgCutCodes.h.