CMS 3D CMS Logo

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
reco::JPTJet
Jets made from CaloJets corrected for ZSP and tracks.
Definition: JPTJet.h:28
reco::JPTJet::Specific::mNeutralEmEnergy
float mNeutralEmEnergy
Definition: JPTJet.h:62
CaloJetCollection.h
CaloJet.h
reco::JPTJet::Specific::mSumEnergyOfChargedWithoutEff
float mSumEnergyOfChargedWithoutEff
Definition: JPTJet.h:68
reco::JPTJet::neutralEmEnergy
float neutralEmEnergy() const
neutralEmEnergy
Definition: JPTJet.h:103
reco::JPTJet::mspecific
Specific mspecific
Definition: JPTJet.h:152
reco::Jet::Constituents
std::vector< Constituent > Constituents
Definition: Jet.h:23
reco::JPTJet::getMuonsInVertexInCalo
const reco::TrackRefVector & getMuonsInVertexInCalo() const
Definition: JPTJet.h:124
reco::JPTJet::getElecsInVertexInCalo
const reco::TrackRefVector & getElecsInVertexInCalo() const
Definition: JPTJet.h:127
reco::JPTJet::Specific::mResponseOfChargedWithoutEff
float mResponseOfChargedWithoutEff
Definition: JPTJet.h:64
reco::JPTJet::Specific::mChargedHadronEnergy
float mChargedHadronEnergy
Definition: JPTJet.h:59
reco::JPTJet::getPionsOutVertexInCalo
const reco::TrackRefVector & getPionsOutVertexInCalo() const
Definition: JPTJet.h:123
reco::JPTJet::chargedHadronEnergy
float chargedHadronEnergy() const
chargedHadronEnergy
Definition: JPTJet.h:91
reco::JPTJet::getZSPCor
const float & getZSPCor() const
Definition: JPTJet.h:131
reco::JPTJet::Specific::R2momtr
float R2momtr
Definition: JPTJet.h:69
Jet.h
edm::RefVector< TrackCollection >
reco::JPTJet::Specific::pionsInVertexOutCalo
reco::TrackRefVector pionsInVertexOutCalo
Definition: JPTJet.h:51
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:46
reco::JPTJet::Specific::elecsInVertexOutCalo
reco::TrackRefVector elecsInVertexOutCalo
Definition: JPTJet.h:57
reco::JPTJet::Specific::mNeutralHadronEnergy
float mNeutralHadronEnergy
Definition: JPTJet.h:60
reco::JPTJet::Specific::Eta2momtr
float Eta2momtr
Definition: JPTJet.h:70
reco::JPTJet::neutralEmEnergyFraction
float neutralEmEnergyFraction() const
neutralEmEnergyFraction
Definition: JPTJet.h:105
Track.h
TrackFwd.h
reco::JPTJet::Specific::mZSPCor
float mZSPCor
Definition: JPTJet.h:48
Jet
Definition: Jet.py:1
reco::JPTJet::getCaloJetRef
const edm::RefToBase< reco::Jet > & getCaloJetRef() const
Definition: JPTJet.h:133
reco::JPTJet::neutralHadronEnergyFraction
float neutralHadronEnergyFraction() const
neutralHadronEnergyFraction
Definition: JPTJet.h:97
reco::JPTJet::Specific::pionsOutVertexInCalo
reco::TrackRefVector pionsOutVertexInCalo
Definition: JPTJet.h:52
reco::JPTJet::Specific::elecsInVertexInCalo
reco::TrackRefVector elecsInVertexInCalo
Definition: JPTJet.h:56
reco::JPTJet::getMuonsInVertexOutCalo
const reco::TrackRefVector & getMuonsInVertexOutCalo() const
Definition: JPTJet.h:125
JetCollection.h
JPTJetCollection.h
reco::JPTJet::Specific
Definition: JPTJet.h:30
reco::JPTJet::Specific::mChargedEmEnergy
float mChargedEmEnergy
Definition: JPTJet.h:61
reco::JPTJet::printJet
virtual void printJet() const
Print object in details.
Definition: JPTJet.cc:26
reco::JPTJet::getPionsInVertexInCalo
const reco::TrackRefVector & getPionsInVertexInCalo() const
Tracks.
Definition: JPTJet.h:121
Point
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:57
reco::JPTJet::Specific::muonsInVertexOutCalo
reco::TrackRefVector muonsInVertexOutCalo
Definition: JPTJet.h:54
RefVector.h
reco::JPTJet::getSpecific
const Specific & getSpecific() const
block accessors
Definition: JPTJet.h:136
reco::JPTJet::Specific::mResponseOfChargedWithEff
float mResponseOfChargedWithEff
Definition: JPTJet.h:63
reco::JPTJet::Specific::Specific
Specific()
Definition: JPTJet.h:31
reco::JPTJet::neutralHadronEnergy
float neutralHadronEnergy() const
neutralHadronEnergy
Definition: JPTJet.h:95
reco::JPTJet::Specific::pionsInVertexInCalo
reco::TrackRefVector pionsInVertexInCalo
Definition: JPTJet.h:50
reco::JPTJet::chargedHadronEnergyFraction
float chargedHadronEnergyFraction() const
chargedHadronEnergyFraction
Definition: JPTJet.h:93
reco::JPTJet::Specific::Pout
float Pout
Definition: JPTJet.h:72
reco::JPTJet::elecMultiplicity
int elecMultiplicity() const
elecMultiplicity
Definition: JPTJet.h:117
reco::JPTJet::Specific::mSumPtOfChargedWithoutEff
float mSumPtOfChargedWithoutEff
Definition: JPTJet.h:66
reco::JPTJet::chargedMultiplicity
int chargedMultiplicity() const
chargedMultiplicity
Definition: JPTJet.h:107
reco::JPTJet::muonMultiplicity
int muonMultiplicity() const
muonMultiplicity
Definition: JPTJet.h:113
reco::JPTJet::Specific::elecsOutVertexInCalo
reco::TrackRefVector elecsOutVertexInCalo
Definition: JPTJet.h:58
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
reco::JPTJet::Specific::Phi2momtr
float Phi2momtr
Definition: JPTJet.h:71
reco::Candidate
Definition: Candidate.h:27
CaloTowerCollection.h
reco::JPTJet::Specific::Zch
float Zch
Definition: JPTJet.h:73
Ref.h
reco::JPTJet::getElecsOutVertexInCalo
const reco::TrackRefVector & getElecsOutVertexInCalo() const
Definition: JPTJet.h:129
reco::JPTJet::Specific::mSumPtOfChargedWithEff
float mSumPtOfChargedWithEff
Definition: JPTJet.h:65
reco::JPTJet::chargedEmEnergy
float chargedEmEnergy() const
chargedEmEnergy
Definition: JPTJet.h:99
reco::JPTJet::Specific::muonsOutVertexInCalo
reco::TrackRefVector muonsOutVertexInCalo
Definition: JPTJet.h:55
LorentzVector
math::XYZTLorentzVector LorentzVector
Definition: HLTMuonMatchAndPlot.h:49
reco::JPTJet::chargedEmEnergyFraction
float chargedEmEnergyFraction() const
chargedEmEnergyFraction
Definition: JPTJet.h:101
reco::JPTJet::overlap
bool overlap(const Candidate &) const override
Polymorphic overlap.
Definition: JPTJet.cc:24
reco::JPTJet::~JPTJet
~JPTJet() override
Definition: JPTJet.h:88
edm::RefToBase< reco::Jet >
reco::LeafCandidate::energy
double energy() const final
energy
Definition: LeafCandidate.h:125
reco::JPTJet::JPTJet
JPTJet()
Definition: JPTJet.h:77
edm::RefVector::size
size_type size() const
Size of the RefVector.
Definition: RefVector.h:102
reco::JPTJet::clone
JPTJet * clone() const override
Polymorphic clone.
Definition: JPTJet.cc:22
reco::JPTJet::Specific::mSumEnergyOfChargedWithEff
float mSumEnergyOfChargedWithEff
Definition: JPTJet.h:67
reco::JPTJet::getPionsInVertexOutCalo
const reco::TrackRefVector & getPionsInVertexOutCalo() const
Definition: JPTJet.h:122
reco::JPTJet::print
std::string print() const override
Print object.
Definition: JPTJet.cc:38
reco::JPTJet::getElecsInVertexOutCalo
const reco::TrackRefVector & getElecsInVertexOutCalo() const
Definition: JPTJet.h:128
reco::JPTJet::getMuonsOutVertexInCalo
const reco::TrackRefVector & getMuonsOutVertexInCalo() const
Definition: JPTJet.h:126
reco::JPTJet::Specific::muonsInVertexInCalo
reco::TrackRefVector muonsInVertexInCalo
Definition: JPTJet.h:53
reco::JPTJet::Specific::theCaloJetRef
edm::RefToBase< reco::Jet > theCaloJetRef
Definition: JPTJet.h:49