CMS 3D CMS Logo

Conversion.h
Go to the documentation of this file.
1 #ifndef DataFormats_PatCandidates_Conversion_h
2 #define DataFormats_PatCandidates_Conversion_h
3 
10 
11 // Define typedefs for convenience
12 namespace pat {
13  class Conversion;
14  typedef std::vector<Conversion> ConversionCollection;
17 } // namespace pat
18 
19 //we use index to match with electron. However, can we do this with gsfTrack instead of index?
20 namespace pat {
21  class Conversion {
22  public:
24  Conversion(int index);
25  virtual ~Conversion() {}
26 
27  const double vtxProb() const { return vtxProb_; }
28  void setVtxProb(double vtxProb);
29  const double lxy() const { return lxy_; }
30  void setLxy(double lxy);
31  const int nHitsMax() const { return nHitsMax_; }
32  void setNHitsMax(int nHitsMax);
33  const int index() const { return index_; }
34 
35  private:
36  double vtxProb_;
37  double lxy_;
38  int nHitsMax_;
39 
40  //electron index matched with conversion
41  int index_;
42  };
43 } // namespace pat
44 
45 #endif
pat::Conversion::nHitsMax_
int nHitsMax_
Definition: Conversion.h:38
GsfElectronCore.h
pat::ConversionCollection
std::vector< Conversion > ConversionCollection
Definition: Conversion.h:13
pat::Conversion::setLxy
void setLxy(double lxy)
Definition: Conversion.cc:10
pat::Conversion::vtxProb
const double vtxProb() const
Definition: Conversion.h:27
pat::Conversion::nHitsMax
const int nHitsMax() const
Definition: Conversion.h:31
edm::RefVector< ConversionCollection >
Lepton.h
edm::Ref< ConversionCollection >
pat::ConversionRefVector
edm::RefVector< ConversionCollection > ConversionRefVector
Definition: Conversion.h:16
pat::Conversion::vtxProb_
double vtxProb_
Definition: Conversion.h:36
pat::ConversionRef
edm::Ref< ConversionCollection > ConversionRef
Definition: Conversion.h:15
pat::Conversion::Conversion
Conversion()
Definition: Conversion.h:23
GsfElectronCoreFwd.h
pat::Conversion
Definition: Conversion.h:21
GsfElectron.h
pat::Conversion::setNHitsMax
void setNHitsMax(int nHitsMax)
Definition: Conversion.cc:12
pat::Conversion::lxy_
double lxy_
Definition: Conversion.h:37
GsfElectronFwd.h
GsfTrack.h
pat
Definition: HeavyIon.h:7
pat::Conversion::lxy
const double lxy() const
Definition: Conversion.h:29
pat::Conversion::index
const int index() const
Definition: Conversion.h:33
pat::Conversion::~Conversion
virtual ~Conversion()
Definition: Conversion.h:25
pat::Conversion::index_
int index_
Definition: Conversion.h:41
pat::Conversion::setVtxProb
void setVtxProb(double vtxProb)
Definition: Conversion.cc:8