ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/LJMet/MultivariateAnalysis/interface/FirstCollisionsAnalyzer.h
Revision: 1.1
Committed: Thu Apr 1 16:08:43 2010 UTC (15 years, 1 month ago) by msegala
Content type: text/plain
Branch: MAIN
CVS Tags: V00-03-01, ZMorph_BASE_20100408, gak040610_morphing, HEAD
Branch point for: ZMorph-V00-03-01
Log Message:
CMSSW_3_5_6

File Contents

# User Rev Content
1 msegala 1.1 // -*- C++ -*-
2     //
3     // Package: FirstCollisonsAnalyzer
4     // Class: FirstCollisonsAnalyzer
5     //
6     /**\class FirstCollisonsAnalyzer FirstCollisonsAnalyzer.cc FirstCollisonsAnalyzer/FirstCollisonsAnalyzer/src/FirstCollisonsAnalyzer.cc
7    
8     Description: [one line class summary]
9    
10     Implementation:
11     [Notes on implementation]
12     */
13     //
14     // Original Author: "Michael Segala"
15     // Created: Wed Mar 31 10:29:20 CDT 2010
16     // $Id$
17     //
18     //
19    
20    
21     #include "DataFormats/BeamSpot/interface/BeamSpot.h"
22    
23     #include "LJMet/MultivariateAnalysis/interface/RooGKCounter.h"
24    
25     #include <memory>
26     #include <string>
27     //#include "TFile.h"
28     #include "TTree.h"
29     #include "Rtypes.h"
30     #include "FWCore/Framework/interface/Frameworkfwd.h"
31     #include "FWCore/Framework/interface/EDAnalyzer.h"
32     #include "FWCore/Framework/interface/Event.h"
33     #include "FWCore/Framework/interface/MakerMacros.h"
34     #include "FWCore/ParameterSet/interface/ParameterSet.h"
35    
36     #include "DataFormats/Math/interface/LorentzVector.h"
37     #include "DataFormats/Common/interface/View.h"
38     #include "DataFormats/PatCandidates/interface/Electron.h"
39     #include "DataFormats/TrackReco/interface/Track.h"
40     #include "TLorentzVector.h"
41    
42    
43     class FirstCollisonsAnalyzer : public edm::EDAnalyzer {
44     public:
45     explicit FirstCollisonsAnalyzer(const edm::ParameterSet&);
46     ~FirstCollisonsAnalyzer();
47    
48    
49     private:
50     virtual void endJob() ;
51     virtual void analyze(const edm::Event&, const edm::EventSetup&);
52    
53    
54     // ----------member data ---------------------------
55    
56    
57    
58    
59     // _____ quantities read from the config file _________________________
60     std::string _jetSource, _electronSource, _muonSource, _METSource;
61     bool _is_mc;
62     int nCaloJets_min;
63     int nLepton_min;
64     double jet_pt_min;
65     double jet_eta_max;
66     double muon_pt_min;
67     double muon_eta_max;
68     double muon_trackIso_max;
69     double muon_caloIso_max;
70     double electron_pt_min;
71     double electron_eta_max;
72     double electron_trackIso_max;
73     double electron_caloIso_max;
74    
75    
76     RooGKCounter eventCounter;
77     RooGKCounter selectedEvents;
78    
79     TTree * _tree;
80    
81     //
82     // _____ output tree variables ________________________________________
83     //
84    
85     //
86     //___Number of objects per event
87     //
88     Int_t _n_jets;
89     Int_t _n_met;
90     Int_t _n_muons;
91     Int_t _n_electrons;
92    
93     TBranch * b_n_jets;
94     TBranch * b_n_met;
95     TBranch * b_n_muons;
96     TBranch * b_n_electrons;
97    
98     //
99     //___MET
100     //
101    
102     Double_t _met_eta;
103     Double_t _met_phi;
104     Double_t _met_energy;
105     Double_t _met_et;
106     Double_t _met_pt;
107     Double_t _met_pz;
108    
109     TBranch * b_met_pt;
110     TBranch * b_met_pz;
111     TBranch * b_met_eta;
112     TBranch * b_met_phi;
113     TBranch * b_met_et;
114     TBranch * b_met_energy;
115    
116     //
117     //___JETS
118     //
119     vector<double> * _jet_pt;
120     vector<double> * _jet_pz;
121     vector<double> * _jet_px;
122     vector<double> * _jet_py;
123     vector<double> * _jet_eta;
124     vector<double> * _jet_phi;
125     vector<double> * _jet_et;
126     vector<double> * _jet_energy;
127    
128     TBranch * b_jet_pt;
129     TBranch * b_jet_pz;
130     TBranch * b_jet_eta;
131     TBranch * b_jet_phi;
132     TBranch * b_jet_et;
133     TBranch * b_jet_energy;
134    
135    
136     //
137     //___MUONS
138     //
139     vector<double> * _muon_eta;
140     vector<double> * _muon_phi;
141     vector<double> * _muon_energy;
142     vector<double> * _muon_et;
143     vector<double> * _muon_pt;
144     vector<double> * _muon_pz;
145    
146     TBranch * b_muon_et;
147     TBranch * b_muon_pt;
148     TBranch * b_muon_pz;
149     TBranch * b_muon_eta;
150     TBranch * b_muon_phi;
151     TBranch * b_muon_energy;
152    
153     //
154     //___ELECTRONS
155     //
156     vector<double> * _electron_eta;
157     vector<double> * _electron_phi;
158     vector<double> * _electron_energy;
159     vector<double> * _electron_et;
160     vector<double> * _electron_pt;
161     vector<double> * _electron_pz;
162    
163     TBranch * b_electron_et;
164     TBranch * b_electron_pt;
165     TBranch * b_electron_pz;
166     TBranch * b_electron_eta;
167     TBranch * b_electron_phi;
168     TBranch * b_electron_energy;
169    
170    
171    
172    
173    
174    
175    
176    
177     };