CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L2TauAnalyzer.h
Go to the documentation of this file.
1 // Original Author: Michail Bachtis
2 // Created: Sun Jan 20 20:10:02 CST 2008
3 // University of Wisconsin-Madison
4 
5 
6 // system include files
7 #include <memory>
8 
9 // user include files
21 #include <string>
22 #include <TTree.h>
23 #include <TFile.h>
24 
26 typedef std::vector<LV> LVColl;
27 
28 //Matching struct
29 
30 
32  bool matched;
33  double deltar;
34  double mcEta;
35  double mcEt;
36 };
37 
38 
40  public:
41  explicit L2TauAnalyzer(const edm::ParameterSet&);
43 
44  private:
45  virtual void beginJob() ;
46  virtual void analyze(const edm::Event&, const edm::EventSetup&);
47  virtual void endJob() ;
48  //Parameters to read
49  edm::InputTag l2TauInfoAssoc_; //Path to analyze
50  edm::InputTag l1Taus_; //Path to analyze
51  edm::InputTag l1Jets_; //Path to analyze
52  std::string rootFile_; //Output File Name
53  bool IsSignal_; //Flag to tell the analyzer if it is signal OR QCD
54  edm::InputTag mcColl_; // input products from HLTMcInfo
55 
56 
57  double matchDR_;
58 
61  TFile *l2file;//File to store the histos...
62  TTree *l2tree;
63 
64  MatchElementL2 match(const reco::Jet&,const LVColl&);//See if this Jet Is Matched
65  MatchElementL2 match(const reco::Jet&,const l1extra::L1JetParticleCollection&);//See if this Jet Is Matched
66 
67 };
68 
69 
edm::InputTag l1Taus_
Definition: L2TauAnalyzer.h:50
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > XYZTLorentzVectorD
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:15
Base class for all types of Jets.
Definition: Jet.h:21
std::vector< L1JetParticle > L1JetParticleCollection
virtual void analyze(const edm::Event &, const edm::EventSetup &)
math::XYZTLorentzVectorD LV
TFile * l2file
Definition: L2TauAnalyzer.h:61
virtual void endJob()
L2TauAnalyzer(const edm::ParameterSet &)
Definition: L2TauAnalyzer.cc:7
edm::InputTag l2TauInfoAssoc_
Definition: L2TauAnalyzer.h:49
std::vector< LV > LVColl
MatchElementL2 match(const reco::Jet &, const LVColl &)
edm::InputTag mcColl_
Definition: L2TauAnalyzer.h:54
edm::InputTag l1Jets_
Definition: L2TauAnalyzer.h:51
std::string rootFile_
Definition: L2TauAnalyzer.h:52
float towerIsol_Et
Definition: L2TauAnalyzer.h:60
TTree * l2tree
Definition: L2TauAnalyzer.h:62
virtual void beginJob()