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
const double vtxProb() const
Definition: Conversion.h:27
const int nHitsMax() const
Definition: Conversion.h:31
void setLxy(double lxy)
Definition: Conversion.cc:10
Definition: HeavyIon.h:7
double vtxProb_
Definition: Conversion.h:36
std::vector< Conversion > ConversionCollection
Definition: Conversion.h:13
edm::RefVector< ConversionCollection > ConversionRefVector
Definition: Conversion.h:16
const double lxy() const
Definition: Conversion.h:29
const int index() const
Definition: Conversion.h:33
void setNHitsMax(int nHitsMax)
Definition: Conversion.cc:12
edm::Ref< ConversionCollection > ConversionRef
Definition: Conversion.h:15
virtual ~Conversion()
Definition: Conversion.h:25
void setVtxProb(double vtxProb)
Definition: Conversion.cc:8