ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/DGele/MiniTreeFormat/TTbar/interface/Event.h.bck
Revision: 1.1
Committed: Tue Oct 20 17:15:16 2009 UTC (15 years, 6 months ago) by dgele
Branch: MAIN
Branch point for: ANA
Log Message:
Initial revision

File Contents

# User Rev Content
1 dgele 1.1 #ifndef __TOP_TREE_EVENT_H__
2     #define __TOP_TREE_EVENT_H__
3     //-------------------------------------------------------------------------------
4     // Header file for the CatoEvent class that provides a mini-event format
5     // for top analysis. It is filled after the preselection step.
6     //
7     // CVS revision record:
8     // $Author: D. Gele (from A.G. skeleton code) $
9     // $Date: 2008/08
10     //
11     //-------------------------------------------------------------------------------
12    
13     #include <string>
14     #include <vector>
15     #include <map>
16    
17    
18     #include "Vec.h"
19     #include "Jet.h"
20     #include "Lepton.h"
21     #include "Electron.h"
22     #include "Muon.h"
23     #include "MET.h"
24     #include "TTbarEvtMC.h"
25     #include "ZJetsEvtMC.h"
26     #include "WJetsEvtMC.h"
27    
28     namespace TopTree
29     {
30     class Event
31     {
32     public:
33     Event();
34     ~Event();
35    
36     void Reset();
37     void PrintHeader(std::ostream &os = std::cout);
38     void Print(std::ostream &os = std::cout) const;
39     void PrintTrailer(std::ostream &os = std::cout);
40    
41     // ---- General event information.
42     unsigned int runNb;
43     unsigned int eventNb;
44     double eventWeight;
45    
46     int nZvtx;
47     Point3 primV; // Primary vertex.
48    
49     // ---- Monte Carlo information
50     int procId;
51    
52     // ---- Trigger info
53     bool Trig_topDiLeptonMuonX; // for CSA07 only
54     bool Trig_topDiLepton2Muon;
55     bool Trig_topDiLepton2Electron;
56     bool Trig_topDiLeptonElectronMuon;
57    
58     // ---- jets
59     std::vector<Jet> jetVec; // vector of selected jets
60     std::vector<Jet> looseJetVec; // vector of loose jets
61     Jet* NewJet();
62     Jet* NewLooseJet();
63    
64     double sumEtJet; // include also soft jets.
65     double sumEtJetRaw; // use uncorrected JetEt for mistag matrix
66     int nJets;
67     int nLooseJets;
68    
69     // ---- MET
70     MET met;
71    
72     // ---- leptons
73     std::vector<Lepton> lepVec; // vector of selected leptons
74     Lepton* NewLepton();
75     std::vector<Electron> elecVec; // vector of selected electrons
76     Electron* NewElectron();
77     std::vector<Muon> muonVec; // vector of selected muons
78     Muon* NewMuon();
79    
80     // ---- info filled in EventSelection:
81     int nBtags;
82     int nTaggable;
83     int nLooseBtags;
84     int nHyp;
85    
86     // ---- MC event infos
87     TTbarEvtMC ttbarevtmc;
88     WJetsEvtMC wjetsevtmc;
89     ZJetsEvtMC zjetsevtmc;
90    
91    
92    
93     };
94     }
95     #endif
96    
97