CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EgHLTEgCutCodes.h
Go to the documentation of this file.
1 #ifndef DQMOFFLINE_TRIGGER_EGHLTEGCUTCODES
2 #define DQMOFFLINE_TRIGGER_EGHLTEGCUTCODES
3 
4 
6 
7 #include <cstring>
8 
9 #include <string>
10 #include <iostream>
11 
12 namespace egHLT {
13  class EgCutCodes { //class to handle the cutcodes used in electron cutting
14 
15  public:
16 
17  enum CutCode{
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  };
58 
59  private:
60  static const ComCodes codes_;
61 
62  private:
63  EgCutCodes(){} //not going to allow instainitiation
65 
66  public:
67  static int getCode(const std::string& descript){return codes_.getCode(descript.c_str());}
68  static void getCodeName(int code,std::string& id){return codes_.getCodeName(code,id);}
69 
70  private:
71  static ComCodes setCodes_();
72 
73  };
74 }
75 #endif
static const ComCodes codes_
int getCode(const char *descript) const
static int getCode(const std::string &descript)
static ComCodes setCodes_()
void getCodeName(int code, std::string &id) const
static void getCodeName(int code, std::string &id)