test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ConversionInfo.h
Go to the documentation of this file.
1 #ifndef EgammaTools_ConversionInfo_h
2 #define EgammaTools_ConversionInfo_h
3 
6 //#include "DataFormats/TrackReco/interface/Track.h"
7 //#include "DataFormats/GsfTrackReco/interface/GsfTrack.h"
10 
11 
13  {
14  public:
15 
17  {
18  dist_ = -9999.;
19  dcot_ = -9999.;
20  radiusOfConversion_ = -9999.;
21  pointOfConversion_ = math::XYZPoint(-9999.,-9999.,-9999);
24  deltaMissingHits_ = -9999;
25  flag_ = -9999;
26  }
29  ( double dist, double dcot,
33  int deltaMissingHits,
34  int flag )
35  {
36  dist_ = dist;
37  dcot_ = dcot;
43  flag_ = flag;
44  }
45  double dist() const {return dist_ ; }
46  double dcot() const {return dcot_ ; }
47  double radiusOfConversion() const { return radiusOfConversion_ ; }
50 
51  //if the partner track is found in the GSF track collection,
52  //we return a ref to the GSF partner track
54 
55  //if the partner track is found in the CTF track collection,
56  //we return a ref to the CTF partner track
57  int deltaMissingHits() const { return deltaMissingHits_ ; }
58  /*
59  if(flag == 0) //Partner track found in the CTF collection using the electron's CTF track
60  if(flag == 1) //Partner track found in the CTF collection using the electron's GSF track
61  if(flag == 2) //Partner track found in the GSF collection using the electron's CTF track
62  if(flag == 3) //Partner track found in the GSF collection using the electron's GSF track
63  */
64  int flag() const { return flag_ ; }
65 
67  edm::LogWarning("ConversionInfo") << "The conversionPartnerTk() function is deprecated, but still returns the CTF partner track if found! \n"
68  << "Please use either conversionPartnerCtfTk() and conversionPartnerGsfTk() instead. \n";
70  }
71 
72  private:
73 
74  double dist_;
75  double dcot_;
81  int flag_;
82 
83  } ;
84 
85 
86 #endif
edm::Ref< GsfTrackCollection > GsfTrackRef
persistent reference to a GsfTrack
Definition: GsfTrackFwd.h:13
reco::TrackRef conversionPartnerCtfTk_
reco::GsfTrackRef conversionPartnerGsfTk() const
double radiusOfConversion() const
double dist() const
reco::TrackRef conversionPartnerCtfTk() const
math::XYZPoint pointOfConversion_
math::XYZPoint pointOfConversion() const
int deltaMissingHits() const
int flag() const
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
Definition: TrackFwd.h:14
reco::GsfTrackRef conversionPartnerGsfTk_
reco::TrackRef conversionPartnerTk() const
double radiusOfConversion_
double dcot() const