CMS 3D CMS Logo

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  ~JPTJet() override {};
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  JPTJet* clone () const override;
137 
139  virtual void printJet () const;
140 
141  std::string print () const override;
142 
143  private:
145  bool overlap( const Candidate & ) const override;
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
const Specific & getSpecific() const
block accessors
Definition: JPTJet.h:133
float mChargedHadronEnergy
Definition: JPTJet.h:62
float mSumPtOfChargedWithEff
Definition: JPTJet.h:68
reco::TrackRefVector muonsOutVertexInCalo
Definition: JPTJet.h:58
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
Definition: Jet.py:1
Jets made from CaloJets corrected for ZSP and tracks.
Definition: JPTJet.h:29
float neutralHadronEnergyFraction() const
neutralHadronEnergyFraction
Definition: JPTJet.h:98
bool overlap(const Candidate &) const override
Polymorphic overlap.
Definition: JPTJet.cc:32
JPTJet * clone() const override
Polymorphic clone.
Definition: JPTJet.cc:28
reco::TrackRefVector pionsOutVertexInCalo
Definition: JPTJet.h:55
double energy() const final
energy
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
std::string print() const override
Print object.
Definition: JPTJet.cc:49
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
~JPTJet() override
Definition: JPTJet.h:88
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:37
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
fixed size matrix
Specific mspecific
Definition: JPTJet.h:149
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:55
size_type size() const
Size of the RefVector.
Definition: RefVector.h:107
const reco::TrackRefVector & getElecsInVertexInCalo() const
Definition: JPTJet.h:122
float chargedHadronEnergy() const
chargedHadronEnergy
Definition: JPTJet.h:92
const reco::TrackRefVector & getMuonsInVertexInCalo() const
Definition: JPTJet.h:119
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