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 {
40  R2momtr(0),
41  Eta2momtr(0),
42  Phi2momtr(0),
43  Pout(0),
44  Zch(0),
45  JPTSeed(0) {}
64  float R2momtr;
65  float Eta2momtr;
66  float Phi2momtr;
67  float Pout;
68  float Zch;
69  int JPTSeed;
70  };
71 
73  JPTJet() {}
74 
76  JPTJet(const LorentzVector& fP4,
77  const Point& fVertex,
78  const Specific& fSpecific,
79  const Jet::Constituents& fConstituents);
80 
82  JPTJet(const LorentzVector& fP4, const Specific& fSpecific, const Jet::Constituents& fConstituents);
83 
84  ~JPTJet() override{};
88  float chargedHadronEnergyFraction() const { return chargedHadronEnergy() / energy(); }
90  float chargedEmEnergy() const { return mspecific.mChargedEmEnergy; }
92  float chargedEmEnergyFraction() const { return chargedEmEnergy() / energy(); }
94  int chargedMultiplicity() const {
98  }
100  int muonMultiplicity() const {
102  }
104  int elecMultiplicity() const {
106  }
117 
120 
121  const Specific& getSpecific() const { return mspecific; }
122 
124  JPTJet* clone() const override;
125 
127  virtual void printJet() const;
128 
129  std::string print() const override;
130 
131  private:
133  bool overlap(const Candidate&) const override;
134 
135  //Variables specific to to the JPTJet class
136 
138  };
139 
140  // streamer
141  //std::ostream& operator<<(std::ostream& out, const reco::JPTJet& jet);
142 } // namespace reco
143 // temporary fix before include_checcker runs globally
144 #include "DataFormats/JetReco/interface/JPTJetCollection.h" //INCLUDECHECKER:SKIP
145 #endif
JPTJet * clone() const override
Polymorphic clone.
Definition: JPTJet.cc:22
reco::TrackRefVector muonsInVertexOutCalo
Definition: JPTJet.h:51
const reco::TrackRefVector & getPionsOutVertexInCalo() const
Definition: JPTJet.h:110
float mSumEnergyOfChargedWithoutEff
Definition: JPTJet.h:63
float chargedEmEnergyFraction() const
chargedEmEnergyFraction
Definition: JPTJet.h:92
bool overlap(const Candidate &) const override
Polymorphic overlap.
Definition: JPTJet.cc:24
const reco::TrackRefVector & getElecsInVertexOutCalo() const
Definition: JPTJet.h:115
reco::TrackRefVector muonsInVertexInCalo
Definition: JPTJet.h:50
float mChargedEmEnergy
Definition: JPTJet.h:57
const reco::TrackRefVector & getElecsInVertexInCalo() const
Definition: JPTJet.h:114
float mChargedHadronEnergy
Definition: JPTJet.h:56
float mSumPtOfChargedWithEff
Definition: JPTJet.h:60
reco::TrackRefVector muonsOutVertexInCalo
Definition: JPTJet.h:52
std::vector< Constituent > Constituents
Definition: Jet.h:23
virtual void printJet() const
Print object in details.
Definition: JPTJet.cc:26
float mResponseOfChargedWithEff
Definition: JPTJet.h:58
reco::TrackRefVector elecsOutVertexInCalo
Definition: JPTJet.h:55
reco::TrackRefVector pionsInVertexOutCalo
Definition: JPTJet.h:48
int muonMultiplicity() const
muonMultiplicity
Definition: JPTJet.h:100
const reco::TrackRefVector & getMuonsInVertexOutCalo() const
Definition: JPTJet.h:112
Definition: Jet.py:1
Jets made from CaloJets corrected for ZSP and tracks.
Definition: JPTJet.h:28
int chargedMultiplicity() const
chargedMultiplicity
Definition: JPTJet.h:94
int elecMultiplicity() const
elecMultiplicity
Definition: JPTJet.h:104
reco::TrackRefVector pionsOutVertexInCalo
Definition: JPTJet.h:49
float mSumEnergyOfChargedWithEff
Definition: JPTJet.h:62
math::XYZTLorentzVector LorentzVector
float chargedEmEnergy() const
chargedEmEnergy
Definition: JPTJet.h:90
reco::TrackRefVector elecsInVertexInCalo
Definition: JPTJet.h:53
const edm::RefToBase< reco::Jet > & getCaloJetRef() const
Definition: JPTJet.h:118
edm::RefToBase< reco::Jet > theCaloJetRef
Definition: JPTJet.h:46
float mResponseOfChargedWithoutEff
Definition: JPTJet.h:59
reco::TrackRefVector pionsInVertexInCalo
Definition: JPTJet.h:47
size_type size() const
Size of the RefVector.
Definition: RefVector.h:102
const Specific & getSpecific() const
block accessors
Definition: JPTJet.h:121
std::string print() const override
Print object.
Definition: JPTJet.cc:37
const reco::TrackRefVector & getElecsOutVertexInCalo() const
Definition: JPTJet.h:116
float mSumPtOfChargedWithoutEff
Definition: JPTJet.h:61
reco::TrackRefVector elecsInVertexOutCalo
Definition: JPTJet.h:54
~JPTJet() override
Definition: JPTJet.h:84
fixed size matrix
Specific mspecific
Definition: JPTJet.h:137
Structure Point Contains parameters of Gaussian fits to DMRs.
float chargedHadronEnergyFraction() const
chargedHadronEnergyFraction
Definition: JPTJet.h:88
float chargedHadronEnergy() const
chargedHadronEnergy
Definition: JPTJet.h:86
const reco::TrackRefVector & getPionsInVertexInCalo() const
Tracks.
Definition: JPTJet.h:108
const reco::TrackRefVector & getMuonsInVertexInCalo() const
Definition: JPTJet.h:111
const reco::TrackRefVector & getPionsInVertexOutCalo() const
Definition: JPTJet.h:109
const reco::TrackRefVector & getMuonsOutVertexInCalo() const
Definition: JPTJet.h:113
double energy() const final
energy