CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RecoTauPiZero.h
Go to the documentation of this file.
1 #ifndef DataFormats_TauReco_RecoTauPiZero_h
2 #define DataFormats_TauReco_RecoTauPiZero_h
3 
5 
6 namespace reco {
8  public:
10  // Algorithm where each photon becomes a pi zero
12  kTrivial = 1,
14  kStrips = 3
15  };
16 
18  this->setPdgId(111); }
19 
21  CompositePtrCandidate(), algoName_(algoName) { this->setPdgId(111); }
22 
25  const Point& vtx = Point( 0, 0, 0 ),
26  int pdgId = 111, int status = 0, bool integerCharge = true,
27  PiZeroAlgorithm algoName=kUndefined):
29  q, p4, vtx, pdgId, status, integerCharge ),algoName_(algoName) {}
30 
33  const Point& vtx = Point( 0, 0, 0 ),
34  int pdgId = 111, int status = 0, bool integerCharge = true,
35  PiZeroAlgorithm algoName=kUndefined):
37  q, p4, vtx, pdgId, status, integerCharge ),algoName_(algoName) {}
38 
40  explicit RecoTauPiZero(
41  const Candidate & p, PiZeroAlgorithm algoName=kUndefined):
42  CompositePtrCandidate(p),algoName_(algoName) { this->setPdgId(111); }
43 
46 
48  size_t numberOfGammas() const;
49 
51  size_t numberOfElectrons() const;
52 
54  double maxDeltaPhi() const;
55 
57  double maxDeltaEta() const;
58 
60  PiZeroAlgorithm algo() const;
61 
63  bool algoIs(PiZeroAlgorithm algo) const;
64 
65  void print(std::ostream& out=std::cout) const;
66 
67  private:
69 
70 };
71 
72 std::ostream & operator<<(std::ostream& out, const RecoTauPiZero& c);
73 
74 }
75 
76 #endif
int Charge
electric charge type
Definition: Candidate.h:39
virtual double p() const GCC11_FINAL
magnitude of momentum vector
virtual const LorentzVector & p4() const GCC11_FINAL
four-momentum Lorentz vector
virtual int pdgId() const GCC11_FINAL
PDG identifier.
RecoTauPiZero(Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=111, int status=0, bool integerCharge=true, PiZeroAlgorithm algoName=kUndefined)
constructor from values
Definition: RecoTauPiZero.h:24
void print(std::ostream &out=std::cout) const
double maxDeltaPhi() const
Maximum DeltaPhi between a constituent and the four vector.
RecoTauPiZero(PiZeroAlgorithm algoName)
Definition: RecoTauPiZero.h:20
double maxDeltaEta() const
Maxmum DeltaEta between a constituent and the four vector.
std::ostream & operator<<(std::ostream &, BeamSpot beam)
Definition: BeamSpot.cc:71
virtual int status() const GCC11_FINAL
status word
size_t numberOfElectrons() const
Number of electron constituents.
PiZeroAlgorithm algoName_
Definition: RecoTauPiZero.h:68
tuple out
Definition: dbtoconf.py:99
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: Candidate.h:41
math::XYZPoint Point
point in the space
Definition: Candidate.h:45
tuple cout
Definition: gather_cfg.py:121
size_t numberOfGammas() const
Number of PFGamma constituents.
Definition: RecoTauPiZero.cc:6
PiZeroAlgorithm algo() const
Algorithm that built this piZero.
bool algoIs(PiZeroAlgorithm algo) const
Check whether a given algo produced this pi zero.
virtual void setPdgId(int pdgId) GCC11_FINAL
RecoTauPiZero(const Candidate &p, PiZeroAlgorithm algoName=kUndefined)
constructor from a Candidate
Definition: RecoTauPiZero.h:40
~RecoTauPiZero()
destructor
Definition: RecoTauPiZero.h:45
math::XYZPoint Point
point in the space
Definition: LeafCandidate.h:30
RecoTauPiZero(Charge q, const PolarLorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=111, int status=0, bool integerCharge=true, PiZeroAlgorithm algoName=kUndefined)
constructor from values
Definition: RecoTauPiZero.h:32
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.
Definition: Candidate.h:43