Go to the documentation of this file.
12 :
reco::
Jet(fP4, fVertex, fConstituents) {
31 throw cms::Exception(
"TrackRef unavailable") <<
"TrackJet consituent track not in the event.";
34 throw cms::Exception(
"Invalid Constituent") <<
"TrackJet constituent is not of RecoChargedRefCandidate type";
43 std::vector<edm::Ptr<reco::Track> >
result;
44 for (
unsigned i = 0;
i < numberOfDaughters();
i++)
64 std::ostringstream
out;
66 <<
" TrackJet specific:" << std::endl;
68 out <<
" Associated PV:"
71 out <<
" Associated PV not available on the event" << std::endl;
73 std::vector<edm::Ptr<reco::Track> > thetracks =
tracks();
74 for (
unsigned i = 0;
i < thetracks.size();
i++) {
75 if (thetracks[
i].
get()) {
76 out <<
" #" <<
i <<
" px=" << thetracks[
i]->px() <<
" py=" << thetracks[
i]->py()
77 <<
" pz=" << thetracks[
i]->pz() <<
" eta=" << thetracks[
i]->eta() <<
" phi=" << thetracks[
i]->phi()
80 out <<
" #" <<
i <<
" track is not available in the event" << std::endl;
std::string print() const override
Print object.
std::vector< Constituent > Constituents
void setPrimaryVertex(const reco::VertexRef &vtx)
set associated primary vertex
T const * get() const
Returns C++ pointer to the item.
T const * get() const
Returns C++ pointer to the item.
std::vector< edm::Ptr< reco::Track > > tracks() const
Return pointers to all track costituents.
const reco::VertexRef primaryVertex() const
get associated primary vertex
primaryVertex
hltOfflineBeamSpot for HLTMON
virtual std::string print() const
Print object.
int Charge
electric charge type
Structure Point Contains parameters of Gaussian fits to DMRs.
const uint32_t *__restrict__ const HitContainer *__restrict__ TkSoA *__restrict__ tracks
TrackJet()
Default constructor.
T get(const Candidate &c)
bool overlap(const Candidate &dummy) const override
Polymorphic overlap.
ProductID id() const
Accessor for product ID.
void resetCharge()
calculate and set the charge by adding up the constituting track charges
TrackJet * clone() const override
Polymorphic clone.
bool isNonnull() const
Checks for non-null.
key_type key() const
Accessor for product key.
reco::TrackRef track() const
math::XYZTLorentzVector LorentzVector
Lorentz vector.
virtual edm::Ptr< reco::Track > track(size_t i) const
Return Ptr to the track costituent.