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 = 0x01000000, HLTDETAIN = 0x02000000, HLTDPHIIN = 0x04000000,
  HLTINVEINVP = 0x08000000, 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 ()=default
 
 ~EgCutCodes ()=default
 

Static Private Member Functions

static ComCodes setCodes_ ()
 

Static Private Attributes

static const ComCodes codes_
 

Detailed Description

Definition at line 12 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 15 of file EgHLTEgCutCodes.h.

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

Constructor & Destructor Documentation

egHLT::EgCutCodes::EgCutCodes ( )
privatedefault
egHLT::EgCutCodes::~EgCutCodes ( )
privatedefault

Member Function Documentation

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

Definition at line 65 of file EgHLTEgCutCodes.h.

References egHLT::ComCodes::getCode().

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

65 { 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 66 of file EgHLTEgCutCodes.h.

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

66 { 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().

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

Member Data Documentation

const ComCodes EgCutCodes::codes_
staticprivate

Definition at line 58 of file EgHLTEgCutCodes.h.