File indexing completed on 2024-04-06 12:04:07
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #ifndef EgammaReco_ConversionTrack_h
0014 #define EgammaReco_ConversionTrack_h
0015
0016 #include "DataFormats/TrackReco/interface/TrackFwd.h"
0017 class Trajectory;
0018 namespace reco {
0019 class ConversionTrack {
0020 public:
0021 ConversionTrack()
0022 : isTrackerOnly_(false),
0023 isGsfTrackOpen_(false),
0024 isArbitratedEcalSeeded_(false),
0025 isArbitratedMerged_(false),
0026 isArbitratedMergedEcalGeneral_(false) {}
0027 ConversionTrack(const TrackBaseRef &trk)
0028 : track_(trk),
0029 isTrackerOnly_(false),
0030 isGsfTrackOpen_(false),
0031 isArbitratedEcalSeeded_(false),
0032 isArbitratedMerged_(false),
0033 isArbitratedMergedEcalGeneral_(false) {}
0034 virtual ~ConversionTrack() {}
0035
0036 const reco::Track *track() const { return track_.get(); }
0037 const TrackBaseRef &trackRef() const { return track_; }
0038 const edm::Ref<std::vector<Trajectory> > &trajRef() const { return traj_; }
0039 void setTrajRef(edm::Ref<std::vector<Trajectory> > tr) { traj_ = tr; }
0040 void setIsTrackerOnly(bool b) { isTrackerOnly_ = b; }
0041 void setIsGsfTrackOpen(bool b) { isGsfTrackOpen_ = b; }
0042 void setIsArbitratedEcalSeeded(bool b) { isArbitratedEcalSeeded_ = b; }
0043 void setIsArbitratedMerged(bool b) { isArbitratedMerged_ = b; }
0044 void setIsArbitratedMergedEcalGeneral(bool b) { isArbitratedMergedEcalGeneral_ = b; }
0045 bool isTrackerOnly() const { return isTrackerOnly_; }
0046 bool isArbitratedEcalSeeded() const { return isArbitratedEcalSeeded_; }
0047 bool isArbitratedMerged() const { return isArbitratedMerged_; }
0048 bool isArbitratedMergedEcalGeneral() const { return isArbitratedMergedEcalGeneral_; }
0049 bool isGsfTrackOpen() const { return isGsfTrackOpen_; }
0050
0051 private:
0052 TrackBaseRef track_;
0053 edm::Ref<std::vector<Trajectory> > traj_;
0054 bool isTrackerOnly_;
0055 bool isGsfTrackOpen_;
0056 bool isArbitratedEcalSeeded_;
0057 bool isArbitratedMerged_;
0058 bool isArbitratedMergedEcalGeneral_;
0059 };
0060 }
0061 #endif