CMS 3D CMS Logo

ConversionTrack.h
Go to the documentation of this file.
1 //--------------------------------------------------------------------------------------------------
2 //
3 // ConversionTrack
4 //
5 // Wrapper class holding a pointer to reco::Track plus some various arbitration flags used to
6 // keep track of overlaps in photon conversion reconstruction. This class is intended to be used
7 // to build mixed collections of Track and GsfTracks from different sources and reconstruction
8 // algorithms to be used for inclusive conversion reconstruction.
9 //
10 // Authors: J.Bendavid
11 //--------------------------------------------------------------------------------------------------
12 
13 #ifndef EgammaReco_ConversionTrack_h
14 #define EgammaReco_ConversionTrack_h
15 
17 class Trajectory;
18 namespace reco {
20  public:
28  : track_(trk),
34  virtual ~ConversionTrack() {}
35 
36  const reco::Track *track() const { return track_.get(); }
37  const TrackBaseRef &trackRef() const { return track_; }
38  const edm::Ref<std::vector<Trajectory> > &trajRef() const { return traj_; }
39  void setTrajRef(edm::Ref<std::vector<Trajectory> > tr) { traj_ = tr; }
40  void setIsTrackerOnly(bool b) { isTrackerOnly_ = b; }
45  bool isTrackerOnly() const { return isTrackerOnly_; }
47  bool isArbitratedMerged() const { return isArbitratedMerged_; }
49  bool isGsfTrackOpen() const { return isGsfTrackOpen_; }
50 
51  private:
52  TrackBaseRef track_; //ptr to track
53  edm::Ref<std::vector<Trajectory> > traj_; //reference to a trajectory
54  bool isTrackerOnly_; //from general tracks collection
55  bool isGsfTrackOpen_; //from gsf track open sequence for low pt electrons for B
56  bool isArbitratedEcalSeeded_; //from in out or out-in ecal-seeded collections (arbitrated)
57  bool isArbitratedMerged_; //is arbitrated among all input collections
58  bool isArbitratedMergedEcalGeneral_; //is arbitrated among ecal-seeded and generalTracks
59  };
60 } // namespace reco
61 #endif
reco::ConversionTrack::setIsArbitratedMerged
void setIsArbitratedMerged(bool b)
Definition: ConversionTrack.h:43
funct::false
false
Definition: Factorize.h:29
reco::ConversionTrack
Definition: ConversionTrack.h:19
reco::ConversionTrack::isArbitratedMergedEcalGeneral
bool isArbitratedMergedEcalGeneral() const
Definition: ConversionTrack.h:48
reco::ConversionTrack::isArbitratedMerged_
bool isArbitratedMerged_
Definition: ConversionTrack.h:57
reco::ConversionTrack::setIsArbitratedEcalSeeded
void setIsArbitratedEcalSeeded(bool b)
Definition: ConversionTrack.h:42
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
reco::ConversionTrack::traj_
edm::Ref< std::vector< Trajectory > > traj_
Definition: ConversionTrack.h:53
reco::ConversionTrack::track_
TrackBaseRef track_
Definition: ConversionTrack.h:52
edm::Ref
Definition: AssociativeIterator.h:58
TrackFwd.h
reco::ConversionTrack::isTrackerOnly
bool isTrackerOnly() const
Definition: ConversionTrack.h:45
reco::Track
Definition: Track.h:27
reco::ConversionTrack::setTrajRef
void setTrajRef(edm::Ref< std::vector< Trajectory > > tr)
Definition: ConversionTrack.h:39
b
double b
Definition: hdecay.h:118
edm::RefToBase::get
value_type const * get() const
Definition: RefToBase.h:209
reco::ConversionTrack::~ConversionTrack
virtual ~ConversionTrack()
Definition: ConversionTrack.h:34
reco::ConversionTrack::ConversionTrack
ConversionTrack(const TrackBaseRef &trk)
Definition: ConversionTrack.h:27
reco::ConversionTrack::isArbitratedMergedEcalGeneral_
bool isArbitratedMergedEcalGeneral_
Definition: ConversionTrack.h:58
reco::ConversionTrack::isTrackerOnly_
bool isTrackerOnly_
Definition: ConversionTrack.h:54
reco::ConversionTrack::isArbitratedMerged
bool isArbitratedMerged() const
Definition: ConversionTrack.h:47
reco::ConversionTrack::setIsTrackerOnly
void setIsTrackerOnly(bool b)
Definition: ConversionTrack.h:40
Trajectory
Definition: Trajectory.h:38
reco::ConversionTrack::trackRef
const TrackBaseRef & trackRef() const
Definition: ConversionTrack.h:37
reco::ConversionTrack::isGsfTrackOpen_
bool isGsfTrackOpen_
Definition: ConversionTrack.h:55
reco::ConversionTrack::track
const reco::Track * track() const
Definition: ConversionTrack.h:36
reco::ConversionTrack::isArbitratedEcalSeeded
bool isArbitratedEcalSeeded() const
Definition: ConversionTrack.h:46
edm::RefToBase< reco::Track >
reco::ConversionTrack::setIsGsfTrackOpen
void setIsGsfTrackOpen(bool b)
Definition: ConversionTrack.h:41
reco::ConversionTrack::setIsArbitratedMergedEcalGeneral
void setIsArbitratedMergedEcalGeneral(bool b)
Definition: ConversionTrack.h:44
reco::ConversionTrack::isGsfTrackOpen
bool isGsfTrackOpen() const
Definition: ConversionTrack.h:49
reco::ConversionTrack::trajRef
const edm::Ref< std::vector< Trajectory > > & trajRef() const
Definition: ConversionTrack.h:38
reco::ConversionTrack::ConversionTrack
ConversionTrack()
Definition: ConversionTrack.h:21
reco::ConversionTrack::isArbitratedEcalSeeded_
bool isArbitratedEcalSeeded_
Definition: ConversionTrack.h:56