Line data Source code
1 : #ifndef ALITRDCALDCSGTUSEGMENT_H
2 : #define ALITRDCALDCSGTUSEGMENT_H
3 : /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 : * See cxx source for full Copyright notice */
5 :
6 : /* $Id: AliTRDCalDCSGTUSegment.h 18952 2007-06-08 11:36:12Z cblume $ */
7 :
8 : ///////////////////////////////////////////////////////////////////////////////
9 : // //
10 : // TRD calibration class for TRD GTU configuration parameters //
11 : // //
12 : ///////////////////////////////////////////////////////////////////////////////
13 :
14 : #include "TNamed.h"
15 :
16 : class TString;
17 : class TObjArray;
18 : class AliTRDCalDCSGTUBoardInfo;
19 :
20 : class AliTRDCalDCSGTUSegment : public TNamed {
21 :
22 : public:
23 :
24 : AliTRDCalDCSGTUSegment();
25 : AliTRDCalDCSGTUSegment(const char *name, const char *title);
26 : AliTRDCalDCSGTUSegment(const AliTRDCalDCSGTUSegment &);
27 : AliTRDCalDCSGTUSegment& operator=(const AliTRDCalDCSGTUSegment& sh);
28 0 : virtual ~AliTRDCalDCSGTUSegment() { };
29 :
30 0 : Int_t GetId() const { return fId; }
31 0 : Int_t GetFromRunNumber() const { return fFromRunNumber; }
32 0 : Int_t GetFromSORFlag() const { return fFromSORFlag; }
33 0 : Int_t GetFromChild() const { return fChild; }
34 :
35 0 : void SetId(Int_t id) { fId = id; }
36 0 : void SetFromRunNumber(Int_t rn) { fFromRunNumber = rn; }
37 0 : void SetFromSORFlag(Int_t fg) { fFromSORFlag = fg; }
38 0 : void SetFromChild(Int_t ch) { fChild = ch; }
39 :
40 0 : TObjArray* GetTmuArray() const { return fTmuArr; }
41 0 : void SetTmuArray(TObjArray * const ta) { fTmuArr = ta; }
42 :
43 0 : TString GetSmuStackMask() const { return fSmuStackMask; }
44 0 : Int_t GetSmuTracklets() const { return fSmuTracklets; }
45 0 : Int_t GetSmuTracks() const { return fSmuTracks; }
46 0 : Int_t GetSmuIdelay() const { return fSmuIdelay; }
47 0 : Int_t GetSmuTriggerWindowL1Low() const { return fSmuTriggerWindowL1Low; }
48 0 : Int_t GetSmuTriggerWindowL1High() const { return fSmuTriggerWindowL1High; }
49 0 : Int_t GetSmuTriggerWindowL2Low() const { return fSmuTriggerWindowL2Low; }
50 0 : Int_t GetSmuTriggerWindowL2High() const { return fSmuTriggerWindowL2High; }
51 0 : Int_t GetSmuTtcEmulatorEnable() const { return fSmuTtcEmulatorEnable; }
52 :
53 0 : void SetSmuStackMask(TString sm) { fSmuStackMask = sm; }
54 0 : void SetSmuTracklets(Int_t ts) { fSmuTracklets = ts; }
55 0 : void SetSmuTracks(Int_t tk) { fSmuTracks = tk; }
56 0 : void SetSmuIdelay(Int_t id) { fSmuIdelay = id; }
57 0 : void SetSmuTriggerWindowL1Low(Int_t ll) { fSmuTriggerWindowL1Low = ll; }
58 0 : void SetSmuTriggerWindowL1High(Int_t lh) { fSmuTriggerWindowL1High = lh; }
59 0 : void SetSmuTriggerWindowL2Low(Int_t ml) { fSmuTriggerWindowL2Low = ml; }
60 0 : void SetSmuTriggerWindowL2High(Int_t mh) { fSmuTriggerWindowL2High = mh; }
61 0 : void SetSmuTtcEmulatorEnable(Int_t te) { fSmuTtcEmulatorEnable = te; }
62 :
63 0 : AliTRDCalDCSGTUBoardInfo* GetSmuBoardInfo() const { return fSmuBoardInfo; }
64 0 : void SetSmuBoardInfo(AliTRDCalDCSGTUBoardInfo * const bi) { fSmuBoardInfo = bi; }
65 :
66 : protected:
67 : Int_t fId; // this is the number of the segment
68 : Int_t fFromRunNumber; // this is the run number from when this configuration data was saved
69 : Int_t fFromSORFlag; // this indicates when the data was saved (1 = start of run and 2 = end)
70 : Int_t fChild; // this comes from the value of the child attribute of the tag named from
71 :
72 : TObjArray *fTmuArr; // an array of objects holding the segment's tmu information
73 :
74 : TString fSmuStackMask; // value of the attribute named value within the stackmask tag
75 : Int_t fSmuTracklets; // value of the attribute named send within the tracklets tag
76 : Int_t fSmuTracks; // value of the attribute named send within the tracklets tag
77 : Int_t fSmuIdelay; // value of the attribute named value within the idelay tag
78 : Int_t fSmuTriggerWindowL1Low; // value of the attribute named l1_low within the trigger_window tag
79 : Int_t fSmuTriggerWindowL1High; // value of the attribute named l1_high within the trigger_window tag
80 : Int_t fSmuTriggerWindowL2Low; // value of the attribute named l2_low within the trigger_window tag
81 : Int_t fSmuTriggerWindowL2High; // value of the attribute named l2_high within the trigger_window tag
82 : Int_t fSmuTtcEmulatorEnable; // value of the attribute named enable within the ttc_emulator tag
83 :
84 : AliTRDCalDCSGTUBoardInfo *fSmuBoardInfo; // the boardinfo for the smu
85 :
86 48 : ClassDef(AliTRDCalDCSGTUSegment,1) // TRD calibration class for TRD GTU parameters
87 :
88 : };
89 : #endif
|