13 :
PFBlockElement(TRACK), trackRefPF_(ref), trackRef_(ref->trackRef()), trackType_(0) {
15 throw cms::Exception(
"NullRef") <<
" PFBlockElementTrack constructed from a null reference to PFRecTrack.";
35 string s =
" at vertex";
53 out << setprecision(0);
54 out << tab << setw(7) <<
"charge=" << setw(3) <<
charge;
55 out << setprecision(3);
56 out << setiosflags(ios::right);
58 out <<
", pT =" << setw(7) <<
pt;
59 out <<
", p =" << setw(7) <<
p;
60 out <<
" (eta,phi)= (";
61 out << tracketa <<
",";
62 out << trackphi <<
")" <<
s;
Abstract base class for a PFBlock element (track, cluster...)
ALPAKA_FN_HOST_ACC ALPAKA_FN_INLINE constexpr float charge(ConstView const &tracks, int32_t i)
reco::TrackRef trackRef_
reference to the corresponding track
void setTrackType(TrackType trType, bool value) override
the trackType
bool isValid() const
is this point valid ?
bool isNull() const
Checks for null.
void Dump(std::ostream &out=std::cout, const char *tab=" ") const override
print the object inside the element
const math::XYZPoint & position() const
cartesian position (x, y, z)
A PFTrack holds several trajectory points, which basically contain the position and momentum of a tra...
math::XYZPointF positionAtECALEntrance_
position at ECAL entrance