1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
#ifndef DataFormats_TauReco_RecoTauPiZero_h
#define DataFormats_TauReco_RecoTauPiZero_h
#include "DataFormats/Candidate/interface/CompositePtrCandidate.h"
namespace reco {
class RecoTauPiZero : public CompositePtrCandidate {
public:
enum PiZeroAlgorithm {
// Algorithm where each photon becomes a pi zero
kUndefined = 0,
kTrivial = 1,
kCombinatoric = 2,
kStrips = 3
};
RecoTauPiZero() : CompositePtrCandidate(), algoName_(kUndefined), bendCorrEta_(0.), bendCorrPhi_(0.) {
this->setPdgId(111);
}
RecoTauPiZero(PiZeroAlgorithm algoName)
: CompositePtrCandidate(), algoName_(algoName), bendCorrEta_(0.), bendCorrPhi_(0.) {
this->setPdgId(111);
}
/// constructor from values
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)
: CompositePtrCandidate(q, p4, vtx, pdgId, status, integerCharge),
algoName_(algoName),
bendCorrEta_(0.),
bendCorrPhi_(0.) {}
/// constructor from values
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)
: CompositePtrCandidate(q, p4, vtx, pdgId, status, integerCharge),
algoName_(algoName),
bendCorrEta_(0.),
bendCorrPhi_(0.) {}
/// constructor from a Candidate
explicit RecoTauPiZero(const Candidate& p, PiZeroAlgorithm algoName = kUndefined)
: CompositePtrCandidate(p), algoName_(algoName), bendCorrEta_(0.), bendCorrPhi_(0.) {
this->setPdgId(111);
}
/// destructor
~RecoTauPiZero() override {}
/// Number of PFGamma constituents
size_t numberOfGammas() const;
/// Number of electron constituents
size_t numberOfElectrons() const;
/// Maximum DeltaPhi between a constituent and the four vector
double maxDeltaPhi() const;
/// Maxmum DeltaEta between a constituent and the four vector
double maxDeltaEta() const;
/// Algorithm that built this piZero
PiZeroAlgorithm algo() const;
/// Check whether a given algo produced this pi zero
bool algoIs(PiZeroAlgorithm algo) const;
/// Size of correction to account for spread of photon energy in eta and phi
/// in case charged pions make nuclear interactions or photons convert within the tracking detector
float bendCorrEta() const { return bendCorrEta_; }
float bendCorrPhi() const { return bendCorrPhi_; }
void setBendCorrEta(float bendCorrEta) { bendCorrEta_ = bendCorrEta; }
void setBendCorrPhi(float bendCorrPhi) { bendCorrPhi_ = bendCorrPhi; }
void print(std::ostream& out = std::cout) const;
private:
PiZeroAlgorithm algoName_;
float bendCorrEta_;
float bendCorrPhi_;
};
std::ostream& operator<<(std::ostream& out, const RecoTauPiZero& c);
} // namespace reco
#endif
|