CMS 3D CMS Logo

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