]>
Commit | Line | Data |
---|---|---|
bcdecbbe | 1 | #ifndef ALIEMCALALIGNDATA_H |
2 | #define ALIEMCALALIGNDATA_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
7 | /* $Id$ */ | |
8 | ||
d434833b | 9 | /////////////////////////////////////////////////////////////////////// |
10 | // Class for EMCAL alignment parameters - go to standard tools // | |
11 | // Apply allignment to super modules only // | |
12 | /////////////////////////////////////////////////////////////////////// | |
bcdecbbe | 13 | |
14 | #include "TNamed.h" | |
d434833b | 15 | |
16 | class AliAlignObjMatrix; | |
bcdecbbe | 17 | |
18 | class AliEMCALAlignData: public TNamed { | |
19 | ||
20 | public: | |
21 | AliEMCALAlignData(); | |
22 | AliEMCALAlignData(const char* name); | |
23 | AliEMCALAlignData(const AliEMCALAlignData &alignda); | |
24 | AliEMCALAlignData& operator= (const AliEMCALAlignData &alignda); | |
25 | virtual ~AliEMCALAlignData(); | |
d434833b | 26 | |
bcdecbbe | 27 | void Reset(); |
d434833b | 28 | virtual void Print(Option_t *option = "") const; // *MENU* |
bcdecbbe | 29 | |
30 | // Getters | |
31 | Int_t GetNSuperModules() const {return fNSuperModules;} | |
d434833b | 32 | AliAlignObjMatrix *GetSuperModuleMatrix(Int_t module) const |
33 | { | |
34 | if(module>=0&&module<fNSuperModules) return fSuperModuleMatrix[module]; | |
35 | else return 0; | |
36 | } | |
bcdecbbe | 37 | |
38 | // Setters | |
39 | void SetNSuperModules(Int_t nSuperModules) {fNSuperModules = nSuperModules;} | |
d434833b | 40 | void SetSuperModuleMatrix(Int_t module, AliAlignObjMatrix *matrix) |
41 | { | |
42 | if(module>=0&&module<fNSuperModules) fSuperModuleMatrix[module] = matrix; | |
43 | } | |
bcdecbbe | 44 | |
45 | protected: | |
d434833b | 46 | Int_t fNSuperModules; // number of EMCAL supermodules (max=12) |
14ce0a6e | 47 | AliAlignObjMatrix *fSuperModuleMatrix[12]; //matrix info for supermodules |
bcdecbbe | 48 | |
49 | ClassDef(AliEMCALAlignData,1) // EMCAL Alignment data | |
50 | }; | |
51 | ||
52 | #endif |