]>
Commit | Line | Data |
---|---|---|
18da6e54 | 1 | #ifndef ALIITSDRIFTSPEEDARRAYSDD_H |
2 | #define ALIITSDRIFTSPEEDARRAYSDD_H | |
3 | /* Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | /////////////////////////////////////////////////////////////////// | |
9 | // // | |
4c1bcb5e | 10 | // Class for a TOnjArray of the AliITSDriftSpeedSDD objects // |
18da6e54 | 11 | // from 1 run (1 AliITSDriftSpeedSDD for each injector trigger // |
12 | // Origin: F.Prino, Torino, prino@to.infn.it // | |
13 | // // | |
14 | /////////////////////////////////////////////////////////////////// | |
15 | ||
16 | #include<TObject.h> | |
4c1bcb5e | 17 | #include<TObjArray.h> |
18da6e54 | 18 | |
19 | class AliITSDriftSpeedSDD; | |
20 | ||
21 | ||
22 | class AliITSDriftSpeedArraySDD : public TObject{ | |
23 | public: | |
24 | AliITSDriftSpeedArraySDD(); | |
25 | AliITSDriftSpeedArraySDD(Int_t numEv); | |
4c1bcb5e | 26 | virtual ~AliITSDriftSpeedArraySDD() {}; |
18da6e54 | 27 | |
28 | void AddDriftSpeed(AliITSDriftSpeedSDD* drSpeed); | |
50d25e98 | 29 | void SetInjectorStatus(UInt_t status=0x3E000000){fInjectorStatus=status;} |
18da6e54 | 30 | void PrintAll() const; |
5990cdfe | 31 | UInt_t GetTimestamp(Int_t iElement); |
50d25e98 | 32 | UInt_t GetInjectorStatus() const {return fInjectorStatus;} |
4c1bcb5e | 33 | Double_t GetDriftSpeed(Int_t iEvent, Double_t iAnode); |
915c0469 | 34 | AliITSDriftSpeedSDD* GetDriftSpeedObject(Int_t iEvent) const{ |
35 | if(iEvent>=0 && iEvent<fNEvents) return (AliITSDriftSpeedSDD*)fDriftSpeedSDD.At(iEvent); | |
36 | else return 0; | |
37 | } | |
38 | ||
18da6e54 | 39 | protected: |
40 | Int_t fNEvents; // number of drift speed determination | |
4c1bcb5e | 41 | TObjArray fDriftSpeedSDD; // array of AliITSDriftSpeedSDD objects |
50d25e98 | 42 | UInt_t fInjectorStatus; // encoded info on injector status |
43 | // see AliITSOnlineSDDInjectors for definition | |
44 | ||
45 | ClassDef(AliITSDriftSpeedArraySDD,3); | |
18da6e54 | 46 | }; |
47 | #endif |