-
Notifications
You must be signed in to change notification settings - Fork 5
/
TStarJetPicoEvent.h
78 lines (60 loc) · 2.56 KB
/
TStarJetPicoEvent.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#ifndef __TSTARJETPICOEVENT_HH
#define __TSTARJETPICOEVENT_HH
#include <TObject.h>
#include <TRef.h>
#include "TStarJetPicoEventHeader.h"
class TClonesArray;
class TStarJetPicoPrimaryTrack;
class TStarJetPicoTower;
class TStarJetPicoV0;
class TStarJetPicoTriggerInfo;
class TStarJetPicoEvent : public TObject
{
public:
TStarJetPicoEvent();
virtual ~TStarJetPicoEvent();
void Clear(Option_t *Option = "");
static void Reset(Option_t *Option = "");
void AddPrimaryTrack(TStarJetPicoPrimaryTrack *t);
void AddFtpcPrimaryTrack(TStarJetPicoPrimaryTrack *t);
void AddTower(TStarJetPicoTower *t);
void AddV0(TStarJetPicoV0 *t);
void AddTrigObj(TStarJetPicoTriggerInfo *t);
TClonesArray *GetPrimaryTracks() const {return fPrimaryTracks;}
TClonesArray *GetFtpcPrimaryTracks() const {return fFtpcPrimaryTracks;}
TClonesArray *GetTowers() const {return fTowers;}
TClonesArray *GetV0s() const {return fV0s;}
TClonesArray *GetTrigObjs() const {return fTrigObjs;}
TStarJetPicoPrimaryTrack *GetPrimaryTrack(Int_t n);
TStarJetPicoPrimaryTrack *GetFtpcPrimaryTrack(Int_t n);
TStarJetPicoTower *GetTower(Int_t n);
TStarJetPicoV0 *GetV0(Int_t n);
TStarJetPicoTriggerInfo *GetTrigObj(Int_t n);
TStarJetPicoPrimaryTrack *GetMatchedPrimaryTrack(Int_t nTower, Int_t nTrack);
TStarJetPicoPrimaryTrack *GetMatchedPrimaryTrack(TStarJetPicoTower *tower, Int_t nTrack);
TStarJetPicoEventHeader *GetHeader() { return &fEventHeader; }
Float_t GetZdcsmd(Int_t eastwest,Int_t verthori,Int_t strip) {return fZdcsmd[eastwest][verthori][strip-1];}
void SetZdcsmd(Int_t eastwest,Int_t verthori,Int_t strip, Float_t x) {fZdcsmd[eastwest][verthori][strip-1]=x;}
protected:
private:
TStarJetPicoEventHeader fEventHeader;
// DATA Containers:
TClonesArray *fPrimaryTracks; //->array with primary tracks
TClonesArray *fFtpcPrimaryTracks; //->array with primary tracks in FTPC
TClonesArray *fTowers; //->array with towers
TClonesArray *fV0s; //->array with V0S
TClonesArray *fTrigObjs; //->array with TrigObj
static TClonesArray *fgPrimaryTracks;//!
static TClonesArray *fgFtpcPrimaryTracks;//!
static TClonesArray *fgTowers;//!
static TClonesArray *fgV0s;//!
static TClonesArray *fgTrigObjs;//!
TRef fLastPrimaryTrack; //ref to the last primary track
TRef fLastFtpcPrimaryTrack; //ref to the last primary track in FTPC
TRef fLastTower; //ref to the last primary track
TRef fLastV0; //ref to the last primary track
TRef fLastTrigObj; //ref to the last trigger obj
Double_t fZdcsmd[2][2][8];
ClassDef(TStarJetPicoEvent, 4)
};
#endif