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.11 by khahn, Sat May 5 21:43:55 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
32   //
33 < #include "HiggsAnaDefs.hh"
34 < #include "TGenInfo.hh"
35 < #include "TEventInfo.hh"
36 < #include "TElectron.hh"
37 < #include "TMuon.hh"
37 < #include "TJet.hh"
33 > #include "EventHeader.h"
34 > #include "Electron.h"
35 > #include "Muon.h"
36 > #include "PFCandidate.h"
37 > #include "PFCandidateCol.h"
38   #include "RunLumiRangeMap.h"
39  
40 //
41 // utility headers
42 //
43 #include "PassHLT.h"
40   #include "ParseArgs.h"
41 < #include "SimpleLepton.h"
42 < #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 <                               );
41 > #include "EventData.h"
42 > #include "SelectionStatus.h"
43  
44 + void fillVetoArrays( ControlFlags & ctrl,
45 +                     const mithep::Array<mithep::Muon> *muonArr,    
46 +                     vector< const mithep::Muon*>     & muonsToVeto,
47 +                     const mithep::Array<mithep::Electron> *electronArr,    
48 +                     vector< const mithep::Electron*> & electronsToVeto,
49 +                     const mithep::Vertex & vtx );
50 + EventData apply_HZZ4L_selection(ControlFlags &ctrl,           // input control
51 +                                const mithep::EventHeader *info,     // input event info
52 +                                const mithep::Vertex & fVertex,
53 +                                const mithep::Array<mithep::PFCandidate>  *fPFCandidates,
54 +                                const mithep::Array<mithep::PileupEnergyDensity> *,
55 +                                const mithep::Array<mithep::Electron> *electronArr,    // input electrons
56 +                                SelectionStatus (*ElectronPreSelector)( ControlFlags &,
57 +                                                                        const mithep::Electron*,
58 +                                                                        const mithep::Vertex &),
59 +                                SelectionStatus (*ElectronIDSelector)( ControlFlags &,
60 +                                                                       const mithep::Electron*,
61 +                                                                       const mithep::Vertex &),
62 +                                SelectionStatus (*ElectronIsoSelector)( ControlFlags &,
63 +                                                                        const mithep::Electron*,
64 +                                                                        const mithep::Vertex & ,
65 +                                                                        const mithep::Array<mithep::PFCandidate> *,
66 +                                                                        const mithep::Array<mithep::PileupEnergyDensity> *,
67 +                                                                        mithep::ElectronTools::EElectronEffectiveAreaTarget,
68 +                                                                        vector<const mithep::Muon*>,
69 +                                                                        vector<const mithep::Electron*> ),
70 +                                const mithep::Array<mithep::Muon> *muonArr,    // input muons
71 +                                SelectionStatus (*MuonPreSelector)( ControlFlags &,
72 +                                                                    const mithep::Muon*,
73 +                                                                    const mithep::Vertex &,
74 +                                                                    const mithep::Array<mithep::PFCandidate> *),
75 +                                SelectionStatus (*MuonIDSelector)( ControlFlags &,
76 +                                                                   const mithep::Muon*,
77 +                                                                   // const mithep::Vertex &),
78 +                                                                   const mithep::Vertex &,
79 +                                                                   const mithep::Array<mithep::PFCandidate> *),
80 +                                SelectionStatus (*MuonIsoSelector)( ControlFlags &,
81 +                                                                    const mithep::Muon*,
82 +                                                                    const mithep::Vertex & ,
83 +                                                                    const mithep::Array<mithep::PFCandidate> *,
84 +                                                                    const mithep::Array<mithep::PileupEnergyDensity> *,
85 +                                                                    mithep::MuonTools::EMuonEffectiveAreaTarget,
86 +                                                                    vector<const mithep::Muon*>,
87 +                                                                    vector<const mithep::Electron*> )
88 +                                );        
89   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines