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
|
#ifndef DataFormats_ParticleFlowReco_PFRecTrack_h
#define DataFormats_ParticleFlowReco_PFRecTrack_h
#include "DataFormats/ParticleFlowReco/interface/PFTrack.h"
#include "DataFormats/TrackReco/interface/Track.h"
#include "DataFormats/TrackReco/interface/TrackFwd.h"
namespace reco {
/**\class PFRecTrack
\brief reconstructed track used as an input to particle flow
Additional information w/r to PFTrack:
- algorithm used to reconstruct the track
- track ID, soon to be replaced by a RefToBase to the corresponding Track
\author Renaud Bruneliere, Michele Pioppi
\date July 2006
*/
class PFRecTrack : public PFTrack {
public:
/// different types of fitting algorithms
enum AlgoType_t {
Unknown = 0,
KF = 1, // Kalman filter
GSF = 2,
KF_ELCAND = 3 // Gaussian sum filter
};
PFRecTrack();
~PFRecTrack() {}
PFRecTrack(double charge, AlgoType_t algoType, int trackId, const reco::TrackRef& trackref);
PFRecTrack(double charge, AlgoType_t algoType);
/* PFRecTrack(const PFRecTrack& other); */
/// \return type of algorithm
unsigned int algoType() const { return algoType_; }
/// \return id
int trackId() const { return trackId_; }
/// \return reference to corresponding track
const reco::TrackRef& trackRef() const { return trackRef_; }
/// \set the significance of the signed transverse impact parameter
void setSTIP(float STIP) { STIP_ = STIP; }
/// \return the significance of the signed transverse impact parameter
const float STIP() const { return STIP_; }
/// \return eta
inline auto eta() const { return trackRef_->eta(); }
/// \return phi
inline auto phi() const { return trackRef_->phi(); }
private:
/// type of fitting algorithm used to reconstruct the track
AlgoType_t algoType_;
/// track id
int trackId_;
/// reference to corresponding track
reco::TrackRef trackRef_;
float STIP_;
};
std::ostream& operator<<(std::ostream& out, const PFRecTrack& track);
} // namespace reco
#endif
|