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

Comparing UserCode/LJMet/MultivariateAnalysis/interface/TtLJetsAnalyzer.h (file contents):
Revision 1.9 by kukartse, Thu Apr 2 16:43:50 2009 UTC vs.
Revision 1.12 by kukartse, Tue May 12 19:35:58 2009 UTC

# Line 21 | Line 21
21  
22   #include <memory>
23   #include <string>
24 < #include "TFile.h"
24 > //#include "TFile.h"
25   #include "TTree.h"
26   #include "Rtypes.h"
27   #include "FWCore/Framework/interface/Frameworkfwd.h"
# Line 30 | Line 30
30   #include "FWCore/Framework/interface/MakerMacros.h"
31   #include "FWCore/ParameterSet/interface/ParameterSet.h"
32  
33 + #include "FWCore/ServiceRegistry/interface/Service.h"
34 + #include "PhysicsTools/UtilAlgos/interface/TFileService.h"
35 +
36   class TtLJetsAnalyzer : public edm::EDAnalyzer {
37   public:
38    explicit TtLJetsAnalyzer(const edm::ParameterSet&);
# Line 42 | Line 45 | private:
45    virtual void analyze(const edm::Event&, const edm::EventSetup&);
46    virtual void endJob(void);
47  
48 +  edm::Service<TFileService> fs;
49 +
50 +  bool first_event;
51 +
52    // _____ quantities read from the config file _________________________
53 <  std::string _jetSource, _electronSource, _muonSource, _METSource;
53 >  std::string _jetSource, _electronSource, _muonSource, _METSource,
54 >    _beamSpotSource, _trigger_source;
55 >  bool _lepton_flavor_is_muon;
56    std::string _outFile;
57    bool _is_mc;
58    int nCaloJets_min;
# Line 64 | Line 73 | private:
73    RooGKCounter eventCounter;
74    RooGKCounter selectedEvents;
75  
67  TFile * _file;
76    TTree * _tree;
77  
78    //
79    // _____ output tree variables ________________________________________
80 +  //
81    Int_t _event;
82    Int_t _process_id;
83    Int_t _n_jets;
# Line 77 | Line 86 | private:
86    Int_t _n_muons;
87    Int_t _n_electrons;
88    Int_t _lepton_is_muon;
89 +  //
90 +  //_____ trigger _______________________________________________________
91 +  //
92 +  std::map<std::string,bool> _hlt;
93 +  //vector<TBranch> b_hlt;
94 +  //
95    Double_t _event_weight;
96    Double_t _lepton_et;
97    Double_t _lepton_pt;
98    Double_t _lepton_eta;
99    Double_t _lepton_phi;
100 +  Double_t _lepton_jet_min_dr;
101 +  Double_t _lepton_ptrel; // relative to the nearest jet
102 +  Double_t _lepton_d0;    // relative to the beam spot
103 +  Double_t _lepton_d0_err;    // relative to the beam spot
104 +  Double_t _lepton_d0_significance;    // relative to the beam spot
105    Double_t _lepton_energy;
106 +  Double_t _lepton_track_iso;
107 +  Double_t _lepton_calo_iso;
108 +  Double_t _lepton_ecal_iso;
109 +  Double_t _lepton_hcal_iso;
110 +  Double_t _lepton_user_iso;
111 +  Double_t _lepton_IsoDeposit_em;
112 +  Double_t _lepton_IsoDeposit_had;
113 +  Int_t    _muon_track_nhits;
114    Double_t _muon_track_chi2;
115    Double_t _muon_track_ndof;
116    Double_t _muon_track_nChi2;
# Line 92 | Line 120 | private:
120    Double_t _muon_globalTrack_chi2;
121    Double_t _muon_globalTrack_ndof;
122    Double_t _muon_globalTrack_nChi2;
95  Double_t _lepton_track_iso;
96  Double_t _lepton_calo_iso;
97  Double_t _lepton_ecal_iso;
98  Double_t _lepton_hcal_iso;
99  Double_t _lepton_user_iso;
100  Double_t _lepton_IsoDeposit_em;
101  Double_t _lepton_IsoDeposit_had;
123    Double_t _met_et;
124    Double_t _met_pt;
125    Double_t _met_eta;
# Line 236 | Line 257 | private:
257    TBranch * b_lepton_et;
258    TBranch * b_lepton_energy;
259    TBranch * b_lepton_flavor;
260 +  TBranch * b_lepton_jet_min_dr;
261 +  TBranch * b_lepton_ptrel;
262 +  TBranch * b_lepton_d0;
263 +  TBranch * b_lepton_d0_err;
264 +  TBranch * b_lepton_d0_significance;
265    //
266    vector<string> * _b_tagger_label;
267    vector<float> * _b_tagger_discr;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines