test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
JPTJet.h
Go to the documentation of this file.
1 #ifndef JetReco_JPTJet_h
2 #define JetReco_JPTJet_h
3 
27 
28 namespace reco {
29 class JPTJet : public Jet {
30  public:
31 
32  struct Specific {
33  Specific () :
34  mZSPCor(0),
37  mChargedEmEnergy (0),
38  mNeutralEmEnergy (0),
45  R2momtr (0),
46  Eta2momtr (0),
47  Phi2momtr (0),
48  Pout (0),
49  Zch (0)
50  {}
51  float mZSPCor;
72  float R2momtr;
73  float Eta2momtr;
74  float Phi2momtr;
75  float Pout;
76  float Zch;
77  };
78 
80  JPTJet() {}
81 
83  JPTJet(const LorentzVector& fP4, const Point& fVertex, const Specific& fSpecific, const Jet::Constituents& fConstituents);
84 
86  JPTJet(const LorentzVector& fP4, const Specific& fSpecific, const Jet::Constituents& fConstituents);
87 
88  virtual ~JPTJet() {};
89 
90 
94  float chargedHadronEnergyFraction () const {return chargedHadronEnergy () / energy ();}
98  float neutralHadronEnergyFraction () const {return neutralHadronEnergy () / energy ();}
100  float chargedEmEnergy () const {return mspecific.mChargedEmEnergy;}
102  float chargedEmEnergyFraction () const {return chargedEmEnergy () / energy ();}
104  float neutralEmEnergy () const {return mspecific.mNeutralEmEnergy;}
106  float neutralEmEnergyFraction () const {return neutralEmEnergy () / energy ();}
125 
126 
127 
128  const float& getZSPCor() const {return mspecific.mZSPCor;}
129 
132 
133  const Specific& getSpecific () const {return mspecific;}
134 
136  virtual JPTJet* clone () const;
137 
139  virtual void printJet () const;
140 
141  virtual std::string print () const;
142 
143  private:
145  virtual bool overlap( const Candidate & ) const;
146 
147  //Variables specific to to the JPTJet class
148 
150  //reco::CaloJetRef theCaloJetRef;
151 };
152 
153 // streamer
154  //std::ostream& operator<<(std::ostream& out, const reco::JPTJet& jet);
155 }
156 // temporary fix before include_checcker runs globally
157 #include "DataFormats/JetReco/interface/JPTJetCollection.h" //INCLUDECHECKER:SKIP
158 #endif
int elecMultiplicity() const
elecMultiplicity
Definition: JPTJet.h:114
reco::TrackRefVector muonsInVertexOutCalo
Definition: JPTJet.h:57
float chargedEmEnergy() const
chargedEmEnergy
Definition: JPTJet.h:100
float mSumEnergyOfChargedWithoutEff
Definition: JPTJet.h:71
const reco::TrackRefVector & getElecsOutVertexInCalo() const
Definition: JPTJet.h:124
reco::TrackRefVector muonsInVertexInCalo
Definition: JPTJet.h:56
float mChargedEmEnergy
Definition: JPTJet.h:64
const reco::TrackRefVector & getPionsInVertexOutCalo() const
Definition: JPTJet.h:117
virtual double energy() const final
energy
const Specific & getSpecific() const
block accessors
Definition: JPTJet.h:133
Base class for all types of Jets.
Definition: Jet.h:20
float mChargedHadronEnergy
Definition: JPTJet.h:62
float mSumPtOfChargedWithEff
Definition: JPTJet.h:68
reco::TrackRefVector muonsOutVertexInCalo
Definition: JPTJet.h:58
math::XYZTLorentzVector LorentzVector
float chargedEmEnergyFraction() const
chargedEmEnergyFraction
Definition: JPTJet.h:102
std::vector< Constituent > Constituents
Definition: Jet.h:23
float neutralEmEnergy() const
neutralEmEnergy
Definition: JPTJet.h:104
const edm::RefToBase< reco::Jet > & getCaloJetRef() const
Definition: JPTJet.h:130
float mResponseOfChargedWithEff
Definition: JPTJet.h:66
float mNeutralHadronEnergy
Definition: JPTJet.h:63
reco::TrackRefVector elecsOutVertexInCalo
Definition: JPTJet.h:61
reco::TrackRefVector pionsInVertexOutCalo
Definition: JPTJet.h:54
float mNeutralEmEnergy
Definition: JPTJet.h:65
Jets made from CaloJets corrected for ZSP and tracks.
Definition: JPTJet.h:29
float neutralHadronEnergyFraction() const
neutralHadronEnergyFraction
Definition: JPTJet.h:98
math::XYZPoint Point
reco::TrackRefVector pionsOutVertexInCalo
Definition: JPTJet.h:55
virtual void printJet() const
Print object in details.
Definition: JPTJet.cc:37
float mSumEnergyOfChargedWithEff
Definition: JPTJet.h:70
reco::TrackRefVector elecsInVertexInCalo
Definition: JPTJet.h:59
edm::RefToBase< reco::Jet > theCaloJetRef
Definition: JPTJet.h:52
int muonMultiplicity() const
muonMultiplicity
Definition: JPTJet.h:112
float mResponseOfChargedWithoutEff
Definition: JPTJet.h:67
reco::TrackRefVector pionsInVertexInCalo
Definition: JPTJet.h:53
const reco::TrackRefVector & getPionsInVertexInCalo() const
Tracks.
Definition: JPTJet.h:116
float neutralEmEnergyFraction() const
neutralEmEnergyFraction
Definition: JPTJet.h:106
const float & getZSPCor() const
Definition: JPTJet.h:128
float mSumPtOfChargedWithoutEff
Definition: JPTJet.h:69
const reco::TrackRefVector & getElecsInVertexOutCalo() const
Definition: JPTJet.h:123
reco::TrackRefVector elecsInVertexOutCalo
Definition: JPTJet.h:60
virtual std::string print() const
Print object.
Definition: JPTJet.cc:49
const reco::TrackRefVector & getMuonsInVertexOutCalo() const
Definition: JPTJet.h:120
const reco::TrackRefVector & getPionsOutVertexInCalo() const
Definition: JPTJet.h:118
int chargedMultiplicity() const
chargedMultiplicity
Definition: JPTJet.h:108
Specific mspecific
Definition: JPTJet.h:149
virtual JPTJet * clone() const
Polymorphic clone.
Definition: JPTJet.cc:28
size_type size() const
Size of the RefVector.
Definition: RefVector.h:107
const reco::TrackRefVector & getElecsInVertexInCalo() const
Definition: JPTJet.h:122
virtual bool overlap(const Candidate &) const
Polymorphic overlap.
Definition: JPTJet.cc:32
float chargedHadronEnergy() const
chargedHadronEnergy
Definition: JPTJet.h:92
const reco::TrackRefVector & getMuonsInVertexInCalo() const
Definition: JPTJet.h:119
virtual ~JPTJet()
Definition: JPTJet.h:88
float chargedHadronEnergyFraction() const
chargedHadronEnergyFraction
Definition: JPTJet.h:94
const reco::TrackRefVector & getMuonsOutVertexInCalo() const
Definition: JPTJet.h:121
float neutralHadronEnergy() const
neutralHadronEnergy
Definition: JPTJet.h:96