CMS 3D CMS Logo

LowPtConversion.h
Go to the documentation of this file.
1 #ifndef RecoEgamma_EgammaTools_LowPtConversion_h
2 #define RecoEgamma_EgammaTools_LowPtConversion_h
3 
12 
14 public:
15  LowPtConversion() = default;
16  ~LowPtConversion() = default;
17 
18  bool wpOpen() const; // Matched to any conversion (without selections)
19  bool wpLoose() const; // Nancy's baseline selections for conversions
20  bool wpTight() const; // Nancy's selection for analysis of conversions
21 
22  void addUserVars(pat::Electron& ele) const; // adds minimal set of flags to electron userData
23  void addExtraUserVars(pat::Electron& ele) const; // adds all variables to electron userData
24 
26 
27  static float mee(float ipx1, float ipy1, float ipz1, float ipx2, float ipy2, float ipz2);
28 
29 private:
30  // quality
31  bool valid_ = false;
32  float chi2prob_ = -1.;
33  bool quality_high_purity_ = false;
35 
36  // tracks
38  float min_trk_pt_ = -1.;
39  int ilead_ = -1;
40  int itrail_ = -1;
41 
42  // displacement
43  float l_xy_ = -1.;
44  float vtx_radius_ = -1.;
45 
46  // invariant mass
47  float mass_from_conv_ = -1.;
48  float mass_from_Pin_ = -1.;
49  float mass_before_fit_ = -1.;
50  float mass_after_fit_ = -1.;
51 
52  // hits before vertex
58 
59  // opening angle
60  float delta_cot_from_Pin_ = -1.;
61 
62  // match?
63  bool matched_ = false;
66 };
67 
68 #endif // RecoEgamma_EgammaTools_LowPtConversion_h
int delta_expected_nhits_inner_
void addExtraUserVars(pat::Electron &ele) const
bool wpLoose() const
bool quality_high_efficiency_
void addUserVars(pat::Electron &ele) const
std::vector< Conversion > ConversionCollection
collectin of Conversion objects
Definition: ConversionFwd.h:9
bool wpTight() const
edm::RefToBase< reco::Track > matched_trail_
bool wpOpen() const
~LowPtConversion()=default
edm::RefToBase< reco::Track > matched_lead_
def uint(string)
Analysis-level electron class.
Definition: Electron.h:52
bool match(const reco::BeamSpot &beamSpot, const reco::ConversionCollection &conversions, const pat::Electron &ele)
uint trail_nhits_before_vtx_
static float mee(float ipx1, float ipy1, float ipz1, float ipx2, float ipy2, float ipz2)
LowPtConversion()=default