ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/Selection/interface/Selection.h
(Generate patch)

Comparing UserCode/MitHzz4l/Selection/interface/Selection.h (file contents):
Revision 1.7 by khahn, Sun Oct 30 15:25:04 2011 UTC vs.
Revision 1.8 by khahn, Mon Feb 13 09:45:15 2012 UTC

# Line 25 | Line 25 | using namespace std;
25   #include <TClonesArray.h>           // ROOT array class
26   #include <TLorentzVector.h>         // 4-vector class
27   #include <TVector3.h>               // 3D vector class
28 + #include <TH1D.h>
29  
30   //
31   // ntuple format headers
# Line 35 | Line 36 | using namespace std;
36   #include "TElectron.hh"
37   #include "TMuon.hh"
38   #include "TJet.hh"
39 + #include "TPhoton.hh"
40   #include "RunLumiRangeMap.h"
41  
40 //
41 // utility headers
42 //
43 #include "PassHLT.h"
42   #include "ParseArgs.h"
43 < #include "SimpleLepton.h"
44 < #include "MuonSelection.h"
47 < #include "HZZCiCElectronSelection.h"
48 < #include "Angles.h"
49 <
50 < //
51 < // defines
52 < //
53 < #define K_BDT_LOOSE 0
54 < #define K_BDT_MED   1
55 < #define K_BDT_TIGHT 2
56 <
57 < #define EVTFAIL_JSON       0
58 < #define EVTFAIL_TRIGGER    1
59 < #define EVTFAIL_Z1         2
60 < #define EVTFAIL_Z1_PLUSL   3
61 < #define EVTFAIL_4L         4
62 < #define EVTFAIL_ISOLATION  5
63 < #define EVTFAIL_IP         6
64 < #define EVTFAIL_KINEMATICS 7
65 <
66 <
67 < //i: 9cut: 0.275effB: 0.45364effS: 0.895138nsig: 344158ntot: 384475
68 < #define PFISO_ELE_TIGHT_EB_HIGHPT 0.275
69 < //i: 2cut: 0.45effB: 0.765236effS: 0.949037nsig: 364881ntot: 384475
70 < #define PFISO_ELE_LOOSE_EB_HIGHPT 0.45
71 <
72 < //i: 8cut: 0.3effB: 0.535408effS: 0.896676nsig: 143713ntot: 160273
73 < #define PFISO_ELE_TIGHT_TRANS_HIGHPT 0.3
74 < //i: 2cut: 0.45effB: 0.781833effS: 0.946179nsig: 151647ntot: 160273
75 < #define PFISO_ELE_LOOSE_TRANS_HIGHPT 0.45
76 <
77 < //i: 7cut: 0.325effB: 0.627641effS: 0.894936nsig: 212422ntot: 237360
78 < #define PFISO_ELE_TIGHT_EE_HIGHPT 0.325
79 < //i: 0cut: 0.5effB: 0.825242effS: 0.947497nsig: 224898ntot: 237360
80 < #define PFISO_ELE_LOOSE_EE_HIGHPT 0.5
81 <
82 <
83 < //i: 10cut: 0.25effB: 0.479756effS: 0.634297nsig: 9569ntot: 15086
84 < #define PFISO_ELE_TIGHT_EB_LOWPT    0.25
85 < //i: 8cut: 0.3effB: 0.576163effS: 0.680963nsig: 10273ntot: 15086
86 < #define PFISO_ELE_LOOSE_EB_LOWPT    0.3
87 <
88 < //i: 10cut: 0.25effB: 0.49514effS: 0.626184nsig: 8858ntot: 14146
89 < #define PFISO_ELE_TIGHT_TRANS_LOWPT 0.25
90 < //i: 8cut: 0.3effB: 0.584501effS: 0.682384nsig: 9653ntot: 14146
91 < #define PFISO_ELE_LOOSE_TRANS_LOWPT 0.3
92 <
93 < //i: 10cut: 0.25effB: 0.537894effS: 0.639738nsig: 18530ntot: 28965
94 < #define PFISO_ELE_TIGHT_EE_LOWPT    0.25
95 < //i: 8cut: 0.3effB: 0.618612effS: 0.691973nsig: 20043ntot: 28965
96 < #define PFISO_ELE_LOOSE_EE_LOWPT    0.3
97 <
98 <
99 <
100 < #define PFISO_MU_LOOSE_EB_HIGHPT 0.20
101 < #define PFISO_MU_LOOSE_EB_LOWPT 0.13
102 < #define PFISO_MU_LOOSE_EE_HIGHPT 0.20
103 < #define PFISO_MU_LOOSE_EE_LOWPT 0.13
104 <
105 < #define PFISO_MU_TIGHT_EB_HIGHPT 0.13
106 < #define PFISO_MU_TIGHT_EB_LOWPT 0.06
107 < #define PFISO_MU_TIGHT_EE_HIGHPT 0.09
108 < #define PFISO_MU_TIGHT_EE_LOWPT 0.05
109 <
110 <
111 <
112 < //#define THEIR_EVENTS
113 <
114 < void initRunLumiRangeMap();
115 < void initRunLumiRangeMap(RunLumiRangeMap &rlrm);
116 < //unsigned getGenChannel(mithep::TGenInfo * ginfo);
117 <
118 < unsigned fails_HZZ4L_selection(ControlFlags &ctrl,           // input control
119 <                               mithep::TEventInfo *info,     // input event inof
120 <                               TClonesArray *electronArr,    // input electrons
121 <                               TClonesArray *muonArr,        // input muons
122 <                               double eventweight,           // weight
123 <                               TTree * passtuple );        // output ntuple
124 <
125 < /* unsigned fails_HZZ4L_selection(ControlFlags &ctrl,           // input control  */
126 < /*                             mithep::TEventInfo *info,     // input event inof */
127 < /*                             TClonesArray *electronArr,    // input electrons */
128 < /*                             TClonesArray *muonArr,        // input muons */
129 < /*                             double eventweight,           // weight */
130 < /*                             LabVectors * l ); */
131 <
132 < unsigned fails_HZZ4L_selection(ControlFlags &ctrl,           // input control
133 <                               mithep::TEventInfo *info,     // input event inof
134 <                               TClonesArray *electronArr,    // input electrons
135 <                               TClonesArray *muonArr,        // input muons
136 <                               double eventweight,           // weight
137 <                               TTree * passtuple,          // output ntuple
138 <                               LabVectors * l);
139 <
140 < unsigned fails_HZZ4L_selection(ControlFlags &ctrl,           // input control
141 <                               mithep::TEventInfo *info,     // input event inof
142 <                               TClonesArray *electronArr,    // input electrons
143 <                               TClonesArray *muonArr,        // input muons
144 <                               double eventweight,           // weight
145 <                               TTree * passtuple,          // output ntuple
146 <                               LabVectors * l,
147 <                               TClonesArray *jetArr        // input muons
148 <                               );
43 > #include "EventData.h"
44 > #include "SelectionStatus.h"
45  
46 + EventData apply_HZZ4L_selection(ControlFlags &ctrl,           // input control
47 +                                     mithep::TEventInfo *info,     // input event info
48 +                                     TClonesArray *electronArr,    // input electrons
49 +                                     SelectionStatus (*ElectronPreSelector)( ControlFlags &, const mithep::TElectron*),
50 +                                     SelectionStatus (*ElectronIDSelector)( ControlFlags &, const mithep::TElectron*),
51 +                                     SelectionStatus (*ElectronIsoSelector)( ControlFlags &, const mithep::TElectron*),
52 +                                     TClonesArray *muonArr,         // input muons
53 +                                     SelectionStatus (*MuonPreSelector)( ControlFlags &, const mithep::TMuon*),
54 +                                     SelectionStatus (*MuonIDSelector)( ControlFlags &, const mithep::TMuon*),
55 +                                     SelectionStatus (*MuonIsoSelector)( ControlFlags &, const mithep::TMuon*)
56 +                                     );        
57   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines