7 #include "TClonesArray.h"
10 #include "THashList.h"
19 EventTHeader() : fEvtNum(0), fRun(0), fDate(0), fField(0) { }
21 void Set(Int_t i, Int_t r, Int_t d, Double32_t Field = 0)
22 { fEvtNum = i; fRun = r; fDate = d; fField = Field;}
23 Int_t GetEvtNum()
const {
return fEvtNum; }
24 Int_t GetRun()
const {
return fRun; }
25 Int_t GetDate()
const {
return fDate; }
26 Double32_t GetField()
const {
return fField;}
40 Double32_t fVertex[3];
41 Double32_t fCovariantMatrix[6];
42 TClonesArray *fTracks;
46 static TClonesArray *fgTracks;
47 static TClonesArray *fgHits;
48 static THashList *fRotList;
53 Int_t Build(
StEvent *pEventT, UInt_t MinNoHits = 2, Double_t pCut = 0.2);
54 void Clear(Option_t *option =
"");
55 Bool_t IsValid()
const {
return fIsValid; }
56 static void Reset(Option_t *option =
"");
57 void SetNtrack(UInt_t n) { fNtrack = n; }
58 void SetNhit(UInt_t n) { fNhit = n; }
59 void SetFlag(UInt_t f) { fFlag = f; }
60 void SetHeader(Int_t i, Int_t run, Int_t date, Double32_t field);
64 Double32_t GetVertex(UInt_t i=0) {
return (i<3)?fVertex[i]:0;}
65 UInt_t GetTotalNoTracks()
const {
return fNPTracks;}
66 UInt_t GetNtrack()
const {
return fNtrack; }
67 UInt_t GetNhit()
const {
return fNhit; }
68 UInt_t GetFlag()
const {
return fFlag; }
70 const Double32_t *GetVertex()
const {
return fVertex;}
71 const Double32_t *GetCovMatrix()
const {
return fCovariantMatrix;}
72 TClonesArray *GetTracks()
const {
return fTracks;}
73 TClonesArray *GetHits()
const {
return fHits;}
74 TrackT *GetTrackT(UInt_t i=0)
const {
return fTracks && i < fNtrack ? (
TrackT*) fTracks->At(i): 0;}
75 HitT *GetHitT(UInt_t i=0)
const {
return fHits && i < fNhit ? (
HitT*) fHits->At(i): 0;}
76 Int_t GetIndexOfTrackT(
const TrackT *obj)
const {
return fgTracks->IndexOf(obj);}
77 Int_t GetIndexOfHitT(
const HitT *obj)
const {
return fgHits->IndexOf(obj);}
78 static void SetRotMatrices(THashList *Rot) {fRotList = Rot;}
79 static void RestoreListOfRotations();
80 static THashList *RotMatrices() {
return fRotList;}
81 virtual void Print(Option_t *opt=
"")
const;