CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 }
18 
19 
20 //we use index to match with electron. However, can we do this with gsfTrack instead of index?
21 namespace pat {
22  class Conversion {
23  public:
24  Conversion () {}
25  Conversion ( int index );
26  virtual ~Conversion() {}
27 
28  const double vtxProb() const {return vtxProb_;}
29  void setVtxProb(double vtxProb);
30  const double lxy() const {return lxy_;}
31  void setLxy( double lxy );
32  const int nHitsMax() const {return nHitsMax_;}
33  void setNHitsMax( int nHitsMax );
34  const int index() const {return index_; }
35 
36  private:
37  double vtxProb_;
38  double lxy_;
39  int nHitsMax_;
40 
41  //electron index matched with conversion
42  int index_;
43 
44  };
45 }
46 
47 #endif
const int nHitsMax() const
Definition: Conversion.h:32
void setLxy(double lxy)
Definition: Conversion.cc:18
double vtxProb_
Definition: Conversion.h:37
const double lxy() const
Definition: Conversion.h:30
const int index() const
Definition: Conversion.h:34
std::vector< Conversion > ConversionCollection
Definition: Conversion.h:13
edm::RefVector< ConversionCollection > ConversionRefVector
Definition: Conversion.h:16
void setNHitsMax(int nHitsMax)
Definition: Conversion.cc:22
edm::Ref< ConversionCollection > ConversionRef
Definition: Conversion.h:15
virtual ~Conversion()
Definition: Conversion.h:26
void setVtxProb(double vtxProb)
Definition: Conversion.cc:14
const double vtxProb() const
Definition: Conversion.h:28