CMS 3D CMS Logo

PFBlockElementGsfTrack.h
Go to the documentation of this file.
1 #ifndef __PFBlockElementGsfTrack__
2 #define __PFBlockElementGsfTrack__
3 
4 #include <iostream>
12 
13 namespace reco {
14 
18  class PFBlockElementGsfTrack final : public PFBlockElement {
19  public:
21 
25 
26  PFBlockElement* clone() const override { return new PFBlockElementGsfTrack(*this); }
27 
28  void Dump(std::ostream& out = std::cout, const char* tab = " ") const override;
29 
31  bool trackType(TrackType trType) const override { return (trackType_ >> trType) & 1; }
32 
34  void setTrackType(TrackType trType, bool value) override {
35  if (value)
36  trackType_ = trackType_ | (1 << trType);
37  else
38  trackType_ = trackType_ ^ (1 << trType);
39  }
40 
41  static constexpr unsigned int kSecondaryMask = 1 << T_FROM_GAMMACONV;
42 
43  bool isSecondary() const override { return trackType_ & kSecondaryMask; }
44 
46  const GsfPFRecTrackRef& GsftrackRefPF() const { return GsftrackRefPF_; }
47 
49  const reco::GsfTrackRef& GsftrackRef() const { return GsftrackRef_; }
50 
53 
54  const GsfPFRecTrack& GsftrackPF() const { return *GsftrackRefPF_; }
55 
56  const math::XYZTLorentzVector& Pin() const { return Pin_; }
57  const math::XYZTLorentzVector& Pout() const { return Pout_; }
58 
59  private:
62 
65 
69  unsigned int trackType_;
70 
73  };
74 } // namespace reco
75 
76 #endif
Abstract base class for a PFBlock element (track, cluster...)
const GsfPFRecTrack & GsftrackPF() const
const math::XYZPointF & positionAtECALEntrance() const
const reco::GsfTrackRef & GsftrackRef() const
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float > > XYZPointF
point in space with cartesian internal representation
Definition: Point3D.h:10
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
Definition: value.py:1
void Dump(std::ostream &out=std::cout, const char *tab=" ") const override
print the object inside the element
bool trackType(TrackType trType) const override
math::XYZPointF positionAtECALEntrance_
position at ECAL entrance
reco::GsfTrackRef GsftrackRef_
reference to the corresponding GSF track
static constexpr unsigned int kSecondaryMask
const math::XYZTLorentzVector & Pout() const
math::XYZTLorentzVector Pin_
The CorrespondingKFTrackRef is needeed.
PFBlockElement * clone() const override
necessary to have the edm::OwnVector<PFBlockElement> working
void setTrackType(TrackType trType, bool value) override
the trackType
fixed size matrix
const GsfPFRecTrackRef & GsftrackRefPF() const
GsfPFRecTrackRef GsftrackRefPF_
reference to the corresponding GSF track (transient)
const math::XYZTLorentzVector & Pin() const