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 // $Id: L25TauAnalyzer.h,v 1.10 2011/03/01 22:54:26 eluiggi Exp $
17 //
18 //
19 
20 
21 // system include files
22 #include <memory>
23 
24 // user include files
41 #include "HepMC/GenParticle.h"
47 #include "TLorentzVector.h"
48 #include <vector>
49 #include <string>
50 #include <TTree.h>
51 #include <TFile.h>
52 #include "TH1.h"
53 
54 
56  public:
57  explicit L25TauAnalyzer(const edm::ParameterSet&);
59 
60  private:
61 
62  virtual void beginJob();
63  virtual void analyze(const edm::Event&, const edm::EventSetup&);
64  virtual void endJob();
65 
68  void printInfo(const reco::PFTau& thePFTau, const reco::IsolatedTauTagInfo& theTauTagInfo);
69  void clearVectors();
70  void initializeVectors();
78 
79  bool signal_;
80  float _minTrackPt;
81  float _signalCone;
85  float _l25Dz;
87  int _nTrkIso;
88 
89  TTree *l25tree;
90 
95  int myNtrkIso;
96 
97  float l25JetEt;
98  float l25JetEta;
99  float l25JetPhi;
100 
101  std::vector<float> *l25TrkPt;
102  std::vector<float> *l25TrkEta;
103  std::vector<float> *l25TrkPhi;
104  std::vector<float> *l25TrkDz;
105  std::vector<float> *l25TrkDxy;
106  std::vector<float> *l25TrkChi2;
107  std::vector<float> *l25TrkChi2NdF;
108  std::vector<float> *l25TrkNRecHits;
109  std::vector<float> *l25TrkNValidPixelHits;
110 
111  std::vector<float> *l25SignalTrkPt;
112  std::vector<float> *l25SignalTrkChi2NdF;
113  std::vector<float> *l25SignalTrkChi2;
114  std::vector<float> *l25SignalTrkDxy;
115  std::vector<float> *l25SignalTrkDz;
116  std::vector<float> *l25SignalTrkEta;
117  std::vector<float> *l25SignalTrkPhi;
118  std::vector<int> *l25SignalTrkNValidHits;
119  std::vector<int> *l25SignalTrkNRecHits;
120  std::vector<int> *l25SignalTrkNValidPixelHits;
121  std::vector<int> *l25SignalTrkNLostHits;
122 
123  std::vector<float> *l25IsoTrkPt;
124  std::vector<float> *l25IsoTrkChi2NdF;
125  std::vector<float> *l25IsoTrkChi2;
126  std::vector<float> *l25IsoTrkDxy;
127  std::vector<float> *l25IsoTrkDz;
128  std::vector<float> *l25IsoTrkEta;
129  std::vector<float> *l25IsoTrkPhi;
130  std::vector<int> *l25IsoTrkNValidHits;
131  std::vector<int> *l25IsoTrkNRecHits;
132  std::vector<int> *l25IsoTrkNValidPixelHits;
133  std::vector<int> *l25IsoTrkNLostHits;
134 
139 
145  float pfTauEt;
146  float pfTauPt;
147  float pfTauEta;
148  float pfTauPhi;
149  float pfTauLTPt;
151  float pfTauTrkIso;
161 
162  float l2JetEt;
163  float l2JetEta;
164  float l2JetPhi;
165 
169 
173 };
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:30
edm::InputTag _l2TauInfoAssoc
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:21
edm::InputTag _l25JetSource
std::vector< int > * l25SignalTrkNValidPixelHits
std::vector< float > * l25SignalTrkDxy
std::vector< int > * l25IsoTrkNValidHits
void printInfo(const reco::PFTau &thePFTau, const reco::IsolatedTauTagInfo &theTauTagInfo)
std::vector< float > * l25IsoTrkChi2
bool l25Disc_Trk5_IsoPtMin2_NTrk0
std::vector< int > * l25IsoTrkNLostHits
virtual void beginJob()
edm::InputTag _pfTauSource
edm::InputTag _pfTauIsoSource
int numQPixTrkInSignalCone
virtual void analyze(const edm::Event &, const edm::EventSetup &)
void initializeVectors()
std::vector< float > * l25SignalTrkChi2NdF
reco::PFTau match(const reco::Jet &, const reco::PFTauCollection &)
std::vector< float > * l25TrkPhi
std::vector< int > * l25IsoTrkNValidPixelHits
edm::InputTag _pVtxSource
L25TauAnalyzer(const edm::ParameterSet &)
std::vector< float > * l25TrkNValidPixelHits
std::vector< float > * l25IsoTrkPt
std::vector< float > * l25SignalTrkDz
float pftauSignalTrkDeltaR
virtual void endJob()
std::vector< float > * l25IsoTrkPhi
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:13
std::vector< int > * l25SignalTrkNValidHits
std::vector< float > * l25SignalTrkEta
edm::InputTag _pfTauMuonDiscSource
std::vector< float > * l25TrkEta
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
reco::CaloJet matchedToPFTau(const reco::PFTau &, const reco::L2TauInfoAssociation &)
std::vector< float > * l25TrkPt
std::vector< float > * l25TrkChi2NdF