CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L25TauAnalyzer.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: L25TauAnalyzer
4 // Class: L25TauAnalyzer
5 //
13 //
14 // Original Author: Eduardo Luiggi
15 // Created: Fri Apr 4 16:37:44 CDT 2008
16 //
17 //
18 
19 
20 // system include files
21 #include <memory>
22 
23 // user include files
40 #include "HepMC/GenParticle.h"
46 #include "TLorentzVector.h"
47 #include <vector>
48 #include <string>
49 #include <TTree.h>
50 #include <TFile.h>
51 #include "TH1.h"
52 
53 using namespace edm;
54 using namespace reco;
55 using namespace std;
56 
58  public:
59  explicit L25TauAnalyzer(const edm::ParameterSet&);
60  ~L25TauAnalyzer();
61 
62  private:
63 
64  virtual void beginJob();
65  virtual void analyze(const edm::Event&, const edm::EventSetup&);
66  virtual void endJob();
67 
69  reco::CaloJet matchedToPFTau(const reco::PFTau&, const reco::L2TauInfoAssociation&);
70  void printInfo(const reco::PFTau& thePFTau, const reco::IsolatedTauTagInfo& theTauTagInfo);
71  void clearVectors();
72  void initializeVectors();
80 
81  bool signal_;
82  float _minTrackPt;
83  float _signalCone;
87  float _l25Dz;
89  int _nTrkIso;
90 
91  TTree *l25tree;
92 
97  int myNtrkIso;
98 
99  float l25JetEt;
100  float l25JetEta;
101  float l25JetPhi;
102 
103  std::vector<float> *l25TrkPt;
104  std::vector<float> *l25TrkEta;
105  std::vector<float> *l25TrkPhi;
106  std::vector<float> *l25TrkDz;
107  std::vector<float> *l25TrkDxy;
108  std::vector<float> *l25TrkChi2;
109  std::vector<float> *l25TrkChi2NdF;
110  std::vector<float> *l25TrkNRecHits;
111  std::vector<float> *l25TrkNValidPixelHits;
112 
113  std::vector<float> *l25SignalTrkPt;
114  std::vector<float> *l25SignalTrkChi2NdF;
115  std::vector<float> *l25SignalTrkChi2;
116  std::vector<float> *l25SignalTrkDxy;
117  std::vector<float> *l25SignalTrkDz;
118  std::vector<float> *l25SignalTrkEta;
119  std::vector<float> *l25SignalTrkPhi;
120  std::vector<int> *l25SignalTrkNValidHits;
121  std::vector<int> *l25SignalTrkNRecHits;
122  std::vector<int> *l25SignalTrkNValidPixelHits;
123  std::vector<int> *l25SignalTrkNLostHits;
124 
125  std::vector<float> *l25IsoTrkPt;
126  std::vector<float> *l25IsoTrkChi2NdF;
127  std::vector<float> *l25IsoTrkChi2;
128  std::vector<float> *l25IsoTrkDxy;
129  std::vector<float> *l25IsoTrkDz;
130  std::vector<float> *l25IsoTrkEta;
131  std::vector<float> *l25IsoTrkPhi;
132  std::vector<int> *l25IsoTrkNValidHits;
133  std::vector<int> *l25IsoTrkNRecHits;
134  std::vector<int> *l25IsoTrkNValidPixelHits;
135  std::vector<int> *l25IsoTrkNLostHits;
136 
141 
147  float pfTauEt;
148  float pfTauPt;
149  float pfTauEta;
150  float pfTauPhi;
151  float pfTauLTPt;
153  float pfTauTrkIso;
163 
164  float l2JetEt;
165  float l2JetEta;
166  float l2JetPhi;
167 
171 
175 };
std::vector< int > * l25SignalTrkNLostHits
float _l2l25MatchingCone
std::vector< PFTau > PFTauCollection
collection of PFTau objects
Definition: PFTauFwd.h:9
Jets made from CaloTowers.
Definition: CaloJet.h:29
std::vector< float > * l25SignalTrkPt
std::vector< float > * l25TrkChi2
std::vector< float > * l25SignalTrkPhi
std::vector< int > * l25SignalTrkNRecHits
std::vector< float > * l25TrkDxy
Base class for all types of Jets.
Definition: Jet.h:20
std::vector< int > * l25SignalTrkNValidPixelHits
std::vector< float > * l25SignalTrkDxy
edm::EDGetTokenT< PFTauDiscriminator > _pfTauIsoSource
std::vector< int > * l25IsoTrkNValidHits
edm::EDGetTokenT< L2TauInfoAssociation > _l2TauInfoAssoc
std::vector< float > * l25IsoTrkChi2
bool l25Disc_Trk5_IsoPtMin2_NTrk0
void beginJob()
Definition: Breakpoints.cc:15
std::vector< int > * l25IsoTrkNLostHits
edm::EDGetTokenT< PFTauCollection > _pfTauSource
int numQPixTrkInSignalCone
edm::EDGetTokenT< PFTauDiscriminator > _pfTauMuonDiscSource
std::vector< float > * l25SignalTrkChi2NdF
std::vector< float > * l25TrkPhi
std::vector< int > * l25IsoTrkNValidPixelHits
std::vector< float > * l25TrkNValidPixelHits
edm::EDGetTokenT< IsolatedTauTagInfoCollection > _l25JetSource
std::vector< float > * l25IsoTrkPt
std::vector< float > * l25SignalTrkDz
float pftauSignalTrkDeltaR
std::vector< float > * l25IsoTrkPhi
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
std::vector< int > * l25SignalTrkNValidHits
std::vector< float > * l25SignalTrkEta
std::vector< float > * l25TrkEta
edm::EDGetTokenT< VertexCollection > _pVtxSource
std::vector< float > * l25SignalTrkChi2
math::XYZPoint theVertexPosition
std::vector< float > * l25IsoTrkDxy
std::vector< int > * l25IsoTrkNRecHits
float _l25JetLeadTkMacthingCone
std::vector< float > * l25TrkDz
std::vector< float > * l25IsoTrkChi2NdF
std::vector< float > * l25IsoTrkEta
std::vector< float > * l25TrkNRecHits
std::vector< float > * l25IsoTrkDz
std::vector< float > * l25TrkPt
std::string match(BranchDescription const &a, BranchDescription const &b, std::string const &fileName)
std::vector< float > * l25TrkChi2NdF