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

◆ CutCode

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

◆ EgCutCodes()

egHLT::EgCutCodes::EgCutCodes ( )
privatedefault

◆ ~EgCutCodes()

egHLT::EgCutCodes::~EgCutCodes ( )
privatedefault

Member Function Documentation

◆ getCode()

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

Definition at line 65 of file EgHLTEgCutCodes.h.

65 { return codes_.getCode(descript.c_str()); }

References codes_, and egHLT::ComCodes::getCode().

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

◆ getCodeName()

static void egHLT::EgCutCodes::getCodeName ( int  code,
std::string &  id 
)
inlinestatic

Definition at line 66 of file EgHLTEgCutCodes.h.

66 { return codes_.getCodeName(code, id); }

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

◆ setCodes_()

ComCodes EgCutCodes::setCodes_ ( )
staticprivate

Definition at line 8 of file EgHLTEgCutCodes.cc.

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 }

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

Member Data Documentation

◆ codes_

const ComCodes EgCutCodes::codes_
staticprivate

Definition at line 58 of file EgHLTEgCutCodes.h.

Referenced by getCode(), and getCodeName().

egHLT::EgCutCodes::HLTDETAIN
Definition: EgHLTEgCutCodes.h:49
egHLT::EgCutCodes::SIGMAIETAIETA
Definition: EgHLTEgCutCodes.h:29
egHLT::ComCodes::getCodeName
void getCodeName(int code, std::string &id) const
Definition: EgHLTComCodes.cc:48
egHLT::EgCutCodes::PT
Definition: EgHLTEgCutCodes.h:18
egHLT::EgCutCodes::codes_
static const ComCodes codes_
Definition: EgHLTEgCutCodes.h:58
egHLT::EgCutCodes::HLTISOLTRKSPHO
Definition: EgHLTEgCutCodes.h:43
egHLT::EgCutCodes::ISOLNRTRKS
Definition: EgHLTEgCutCodes.h:40
egHLT::EgCutCodes::HLTISOLHAD
Definition: EgHLTEgCutCodes.h:44
egHLT::EgCutCodes::ET
Definition: EgHLTEgCutCodes.h:17
egHLT::EgCutCodes::CTFTRACK
Definition: EgHLTEgCutCodes.h:47
egHLT::EgCutCodes::MAXR9
Definition: EgHLTEgCutCodes.h:34
egHLT::EgCutCodes::MINR9
Definition: EgHLTEgCutCodes.h:33
egHLT::EgCutCodes::DPHIIN
Definition: EgHLTEgCutCodes.h:23
egHLT::EgCutCodes::HLTDPHIIN
Definition: EgHLTEgCutCodes.h:50
egHLT::EgCutCodes::CRACK
Definition: EgHLTEgCutCodes.h:20
egHLT::EgCutCodes::E2X5OVER5X5
Definition: EgHLTEgCutCodes.h:30
egHLT::EgCutCodes::ISOLHAD
Definition: EgHLTEgCutCodes.h:38
egHLT::EgCutCodes::SIGMAETAETA
Definition: EgHLTEgCutCodes.h:27
egHLT::EgCutCodes::DETAIN
Definition: EgHLTEgCutCodes.h:22
egHLT::ComCodes::sort
void sort()
Definition: EgHLTComCodes.h:30
egHLT::ComCodes::getCode
int getCode(const char *descript) const
Definition: EgHLTComCodes.cc:19
egHLT::EgCutCodes::INVEINVP
Definition: EgHLTEgCutCodes.h:24
egHLT::EgCutCodes::HADEM
Definition: EgHLTEgCutCodes.h:28
egHLT::EgCutCodes::DETETA
Definition: EgHLTEgCutCodes.h:19
egHLT::EgCutCodes::ISOLEM
Definition: EgHLTEgCutCodes.h:37
egHLT::EgCutCodes::HLTISOLEM
Definition: EgHLTEgCutCodes.h:45
egHLT::EgCutCodes::ISOLPTTRKS
Definition: EgHLTEgCutCodes.h:39
egHLT::EgCutCodes::HLTINVEINVP
Definition: EgHLTEgCutCodes.h:51
egHLT::ComCodes
Definition: EgHLTComCodes.h:12
egHLT::EgCutCodes::INVALID
Definition: EgHLTEgCutCodes.h:53
egHLT::EgCutCodes::HLTISOLTRKSELE
Definition: EgHLTEgCutCodes.h:42
egHLT::ComCodes::setCode
void setCode(const char *descript, int code)
Definition: EgHLTComCodes.cc:7