BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
RecTrackList.h
Go to the documentation of this file.
1#ifndef RECTRACKLIST_H
2#define RECTRACKLIST_H
3
4#include "GaudiKernel/ObjectVector.h"
5#include "GaudiKernel/ContainedObject.h"
6#include "GaudiKernel/SmartRef.h"
15
16using namespace EventModel;
17
18extern const CLID &CLID_RecTrackList;
19
20class RecTrackList:virtual public ContainedObject
21{
22 public:
23 virtual const CLID& clID() const {return RecTrackList::classID();}
24 static const CLID& classID() { return CLID_RecTrackList;}
25
28
30
31 bool IsMdcTrkValid() {return (myMdcTrk != 0);}
32 bool IsMdcKalTrkValid() {return (myKalTrk != 0);}
33 bool IsDedxValid() {return (myMdcDedx != 0);}
34 bool IsExtTrkValid() {return (myExtTrk != 0);}
35 bool IsTofTrkValid() {return (myTofTrk != 0);}
36 bool IsEmcTrkValid() {return (myRecEmcShower != 0);}
37 bool IsMucTrkValid() {return (myMucTrk != 0);}
38
39 int GetTrkId() {return myTrkId;}
40 RecMdcTrack* MdcTrk() {return myMdcTrk;}
41 RecMdcKalTrack* MdcKalTrk() {return myKalTrk;}
42 RecMdcDedx* DedxTrk() {return myMdcDedx;}
43 RecExtTrack* ExtTrk() {return myExtTrk;}
44 RecTofTrack* TofTrk() {return myTofTrk;}
45 RecEmcShower* EmcTrk() {return myRecEmcShower;}
46 RecMucTrack* MucTrk() {return myMucTrk;}
47
48 void setTrackID(const int trkID) { myTrkId = trkID;}
49 void setMdcTrk( RecMdcTrack* trk) { myMdcTrk = trk;}
50 void setMdcKalTrk( RecMdcKalTrack* trk) { myKalTrk = trk;}
51 void setDedxTrk( RecMdcDedx* trk) { myMdcDedx = trk;}
52 void setExtTrk( RecExtTrack* trk) { myExtTrk = trk;}
53 void setTofTrk( RecTofTrack* trk) { myTofTrk = trk;}
54 void setEmcTrk( RecEmcShower* trk) { myRecEmcShower = trk;}
55 void setMucTrk( RecMucTrack* trk) { myMucTrk = trk;}
56
57 int MdcTrkIdx() { return myMdcTrkIdx;}
58 int MdcKalTrkIdx() { return myKalTrkIdx;}
59 int DedxTrkIdx() { return myMdcDedxIdx;}
60 int ExtTrkIdx() { return myExtTrkIdx;}
61 int TofTrkIdx() { return myTofTrkIdx;}
62 int EmcTrkIdx() { return myRecEmcShowerIdx;}
63 int MucTrkIdx() { return myMucTrkIdx;}
64
65 void setMdcTrkIdx( int idx ) { myMdcTrkIdx = idx ;}
66 void setMdcKalTrkIdx( int idx ) { myKalTrkIdx = idx ;}
67 void setDedxTrkIdx( int idx ) { myMdcDedxIdx = idx ;}
68 void setExtTrkIdx( int idx ) { myExtTrkIdx = idx ;}
69 void setTofTrkIdx( int idx ) { myTofTrkIdx = idx ;}
70 void setEmcTrkIdx( int idx ) { myRecEmcShowerIdx = idx ;}
71 void setMucTrkIdx( int idx ) { myMucTrkIdx = idx;}
72
73
75
76
77 private:
78 int myTrkId;
79 SmartRef<RecMdcTrack> myMdcTrk;
80 SmartRef<RecMdcKalTrack> myKalTrk;
81 SmartRef<RecMdcDedx> myMdcDedx;
82 SmartRef<RecExtTrack> myExtTrk;
83 SmartRef<RecTofTrack> myTofTrk;
84 SmartRef<RecEmcShower> myRecEmcShower;
85 SmartRef<RecMucTrack> myMucTrk;
86
87 int myMdcTrkIdx;
88 int myKalTrkIdx;
89 int myMdcDedxIdx;
90 int myExtTrkIdx;
91 int myTofTrkIdx;
92 int myRecEmcShowerIdx;
93 int myMucTrkIdx;
94};
95
96typedef ObjectVector<RecTrackList> RecTrackListCol;
97
98typedef RecTrackListCol::iterator RecTrackIterator;
99typedef RecMdcTrackCol::iterator RecMdcTrackIterator;
100typedef RecMdcKalTrackCol::iterator RecMdcKalTrackIterator;
101
102
103#endif
ObjectVector< RecTrackList > RecTrackListCol
const CLID & CLID_RecTrackList
RecMdcKalTrackCol::iterator RecMdcKalTrackIterator
RecMdcTrackCol::iterator RecMdcTrackIterator
RecTrackListCol::iterator RecTrackIterator
static const CLID & classID()
void setMdcKalTrkIdx(int idx)
bool IsMdcKalTrkValid()
bool IsExtTrkValid()
RecMdcTrack * MdcTrk()
void setDedxTrk(RecMdcDedx *trk)
void setEmcTrk(RecEmcShower *trk)
bool IsDedxValid()
bool IsMdcTrkValid()
bool IsMucTrkValid()
void setEmcTrkIdx(int idx)
void setDedxTrkIdx(int idx)
void setTofTrk(RecTofTrack *trk)
RecMdcDedx * DedxTrk()
void setMdcTrkIdx(int idx)
RecEmcShower * EmcTrk()
int MdcKalTrkIdx()
void setMucTrkIdx(int idx)
void setExtTrkIdx(int idx)
void setMdcKalTrk(RecMdcKalTrack *trk)
bool IsTofTrkValid()
RecMdcKalTrack * MdcKalTrk()
RecExtTrack * ExtTrk()
RecMucTrack * MucTrk()
RecTrackList & operator=(const RecTrackList &)
void setTofTrkIdx(int idx)
void setMucTrk(RecMucTrack *trk)
RecTofTrack * TofTrk()
virtual const CLID & clID() const
bool IsEmcTrkValid()
void setTrackID(const int trkID)
void setMdcTrk(RecMdcTrack *trk)
void setExtTrk(RecExtTrack *trk)