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
LowPtConversion::max_nhits_before_vtx_
uint max_nhits_before_vtx_
Definition: LowPtConversion.h:55
LowPtConversion::ilead_
int ilead_
Definition: LowPtConversion.h:39
LowPtConversion::mee
static float mee(float ipx1, float ipy1, float ipz1, float ipx2, float ipy2, float ipz2)
Definition: LowPtConversion.cc:202
Handle.h
pwdgSkimBPark_cfi.beamSpot
beamSpot
Definition: pwdgSkimBPark_cfi.py:5
LowPtConversion
Definition: LowPtConversion.h:13
LowPtConversion::match
bool match(const reco::BeamSpot &beamSpot, const reco::ConversionCollection &conversions, const pat::Electron &ele)
Definition: LowPtConversion.cc:77
LowPtConversion::itrail_
int itrail_
Definition: LowPtConversion.h:40
LowPtConversion::addUserVars
void addUserVars(pat::Electron &ele) const
Definition: LowPtConversion.cc:25
ChiSquaredProbability.h
LowPtConversion::vtx_radius_
float vtx_radius_
Definition: LowPtConversion.h:44
LowPtConversion::valid_
bool valid_
Definition: LowPtConversion.h:31
LowPtConversion::quality_high_purity_
bool quality_high_purity_
Definition: LowPtConversion.h:33
parallelization.uint
uint
Definition: parallelization.py:124
LowPtConversion::trail_nhits_before_vtx_
uint trail_nhits_before_vtx_
Definition: LowPtConversion.h:54
reco::ConversionCollection
std::vector< Conversion > ConversionCollection
collectin of Conversion objects
Definition: ConversionFwd.h:9
LowPtConversion::matched_lead_
edm::RefToBase< reco::Track > matched_lead_
Definition: LowPtConversion.h:64
LowPtConversion::min_trk_pt_
float min_trk_pt_
Definition: LowPtConversion.h:38
LowPtConversion::matched_
bool matched_
Definition: LowPtConversion.h:63
Track.h
LowPtConversion::lead_nhits_before_vtx_
uint lead_nhits_before_vtx_
Definition: LowPtConversion.h:53
BeamSpot.h
LowPtConversion::~LowPtConversion
~LowPtConversion()=default
reco::BeamSpot
Definition: BeamSpot.h:21
LowPtConversion::mass_from_Pin_
float mass_from_Pin_
Definition: LowPtConversion.h:48
LowPtConversion::wpLoose
bool wpLoose() const
Definition: LowPtConversion.cc:11
RefToBase.h
LowPtConversion::mass_from_conv_
float mass_from_conv_
Definition: LowPtConversion.h:47
LowPtConversion::chi2prob_
float chi2prob_
Definition: LowPtConversion.h:32
LowPtConversion::mass_before_fit_
float mass_before_fit_
Definition: LowPtConversion.h:49
LowPtConversion::ntracks_
uint ntracks_
Definition: LowPtConversion.h:37
LowPtConversion::mass_after_fit_
float mass_after_fit_
Definition: LowPtConversion.h:50
LowPtConversion::delta_cot_from_Pin_
float delta_cot_from_Pin_
Definition: LowPtConversion.h:60
LowPtConversion::sum_nhits_before_vtx_
uint sum_nhits_before_vtx_
Definition: LowPtConversion.h:56
LowPtConversion::wpTight
bool wpTight() const
Definition: LowPtConversion.cc:18
LowPtConversion::addExtraUserVars
void addExtraUserVars(pat::Electron &ele) const
Definition: LowPtConversion.cc:38
edm::RefToBase< reco::Track >
Electron.h
LowPtConversion::wpOpen
bool wpOpen() const
Definition: LowPtConversion.cc:6
LowPtConversion::LowPtConversion
LowPtConversion()=default
pat::Electron
Analysis-level electron class.
Definition: Electron.h:51
View.h
LowPtConversion::delta_expected_nhits_inner_
int delta_expected_nhits_inner_
Definition: LowPtConversion.h:57
LowPtConversion::matched_trail_
edm::RefToBase< reco::Track > matched_trail_
Definition: LowPtConversion.h:65
pwdgSkimBPark_cfi.conversions
conversions
Definition: pwdgSkimBPark_cfi.py:10
LowPtConversion::l_xy_
float l_xy_
Definition: LowPtConversion.h:43
LowPtConversion::quality_high_efficiency_
bool quality_high_efficiency_
Definition: LowPtConversion.h:34
Conversion.h