CMS 3D CMS Logo

TrackJet.h
Go to the documentation of this file.
1 #ifndef DataFormats_JetReco_TrackJet_h
2 #define DataFormats_JetReco_TrackJet_h
3 
21 
22 namespace reco {
23 
24  class TrackJet : public Jet {
25  public:
27  TrackJet();
29  TrackJet(const LorentzVector& fP4, const Point& fVertex);
31  TrackJet(const LorentzVector& fP4, const Point& fVertex, const Jet::Constituents& fConstituents);
33  ~TrackJet() override {}
35  TrackJet* clone() const override;
36 
38  size_t numberOfTracks() const { return numberOfDaughters(); }
40  virtual edm::Ptr<reco::Track> track(size_t i) const;
42  std::vector<edm::Ptr<reco::Track> > tracks() const;
43 
45  void resetCharge();
47  const reco::VertexRef primaryVertex() const;
51  bool fromHardVertex() const { return (this->primaryVertex().index() == 0); }
52 
54  std::string print() const override;
55 
56  private:
58  bool overlap(const Candidate& dummy) const override;
59 
60  private:
63  };
64 
65 } // namespace reco
66 
67 #endif
mps_fire.i
i
Definition: mps_fire.py:355
reco::TrackJet::print
std::string print() const override
Print object.
Definition: TrackJet.cc:63
reco::Jet::Constituents
std::vector< Constituent > Constituents
Definition: Jet.h:23
reco::LeafCandidate::index
unsigned int index
Definition: LeafCandidate.h:31
reco::TrackJet::setPrimaryVertex
void setPrimaryVertex(const reco::VertexRef &vtx)
set associated primary vertex
Definition: TrackJet.cc:59
Jet.h
reco::TrackJet::tracks
std::vector< edm::Ptr< reco::Track > > tracks() const
Return pointers to all track costituents.
Definition: TrackJet.cc:42
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
reco::TrackJet::primaryVertex
const reco::VertexRef primaryVertex() const
get associated primary vertex
Definition: TrackJet.cc:57
reco::TrackJet::~TrackJet
~TrackJet() override
Destructor.
Definition: TrackJet.h:33
reco::TrackJet
Jets made out of tracks.
Definition: TrackJet.h:24
edm::Ref< VertexCollection >
Jet
Definition: Jet.py:1
reco::TrackJet::fromHardVertex
bool fromHardVertex() const
check jet to be associated to the hard primary vertex
Definition: TrackJet.h:51
badGlobalMuonTaggersAOD_cff.vtx
vtx
Definition: badGlobalMuonTaggersAOD_cff.py:5
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
RecoChargedRefCandidate.h
Point
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:57
reco::TrackJet::TrackJet
TrackJet()
Default constructor.
Definition: TrackJet.cc:7
reco::CompositePtrCandidate::numberOfDaughters
size_t numberOfDaughters() const override
number of daughters
Definition: CompositePtrCandidate.cc:18
edm::Ptr< reco::Track >
reco::Candidate
Definition: Candidate.h:27
reco::TrackJet::overlap
bool overlap(const Candidate &dummy) const override
Polymorphic overlap.
Definition: TrackJet.cc:61
VertexFwd.h
reco::TrackJet::resetCharge
void resetCharge()
calculate and set the charge by adding up the constituting track charges
Definition: TrackJet.cc:49
reco::TrackJet::numberOfTracks
size_t numberOfTracks() const
Number of track daughters.
Definition: TrackJet.h:38
reco::TrackJet::vtx_
reco::VertexRef vtx_
Associated primary vertex.
Definition: TrackJet.h:62
reco::TrackJet::clone
TrackJet * clone() const override
Polymorphic clone.
Definition: TrackJet.cc:16
dummy
Definition: DummySelector.h:38
reco::Candidate::LorentzVector
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:36
reco::TrackJet::track
virtual edm::Ptr< reco::Track > track(size_t i) const
Return Ptr to the track costituent.
Definition: TrackJet.cc:18