AliRoot Core  edcc906 (edcc906)
AliEMCALSurvey.h
Go to the documentation of this file.
1 #ifndef ALIEMCALSURVEY_H
2 #define ALIEMCALSURVEY_H
3 
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice */
6 
7 #include <TObject.h>
8 #include <Rtypes.h>
9 
10 class TClonesArray;
11 class TString;
12 
13 class AliEMCALGeometry;
14 
39 
40 class AliEMCALSurvey : public TObject
41 {
42 
43 public:
44 
46  {
47  kSurvey = 0,
48  kDummy = 1
49  };
50 
52  AliEMCALSurvey(const TString &txtFileName, const SurveyDataType_t dataType=kSurvey);
53 
54  virtual ~AliEMCALSurvey();
55 
56  // Create AliAlignObjParams for strips.
57  void CreateAliAlignObjParams(TClonesArray &array);
58 
59  // Create AliAlignObjParams with null shifts and rotations.
60  void CreateNullObjects(TClonesArray &alObj, const AliEMCALGeometry *geom) const;
61 
62  void SetDataType(const SurveyDataType_t dataType) { fDataType = dataType ; }
63  Int_t GetDataType() const { return (Int_t)fDataType ; }
64 
65 protected:
66 
68  Float_t fXShift; //x shift
69  Float_t fYShift; //y shift
70  Float_t fZShift; //z shift
71  Float_t fPsi; //psi
72  Float_t fTheta; //theta
73  Float_t fPhi; //phi
74  };
75 
76  Int_t fNSuperModule;
78 
79  void InitSuperModuleData(const Double_t *xReal , const Double_t *yReal , const Double_t *zReal,
80  const Double_t *psiReal, const Double_t *thetaReal, const Double_t *phiReal);
81  void InitSuperModuleData(const TObjArray* surveypoints);
82 
83 private:
84 
85  // Calculate shifts and rotations for supermodule.
86  virtual AliEMCALSuperModuleDelta GetSuperModuleTransformation(Int_t smIndex) const;
87 
90 
91  Int_t fDataType;
92 
94  ClassDef(AliEMCALSurvey, 2) ;
96 
97 };
98 
99 #endif // ALIEMCALSURVEY_H
virtual ~AliEMCALSurvey()
Destructor.
use real survey parameters
void SetDataType(const SurveyDataType_t dataType)
#define TObjArray
void InitSuperModuleData(const Double_t *xReal, const Double_t *yReal, const Double_t *zReal, const Double_t *psiReal, const Double_t *thetaReal, const Double_t *phiReal)
Read survey data and create alignement.
void CreateAliAlignObjParams(TClonesArray &array)
Create AliAlignObjParams.
TObjArray * array
Definition: AnalyzeLaser.C:12
AliEMCALSuperModuleDelta * fSuperModuleData
Supermodule transformation data.
Int_t fDataType
! which date type (survey or dummy) to use
AliEMCALSurvey()
Default constructor.
Int_t GetDataType() const
virtual AliEMCALSuperModuleDelta GetSuperModuleTransformation(Int_t smIndex) const
Supermodule transformation.
AliEMCALSurvey & operator=(const AliEMCALSurvey &)
void CreateNullObjects(TClonesArray &alObj, const AliEMCALGeometry *geom) const
Create null shifts and rotations.
TEveGeoShape * geom
Definition: tpc_tracks.C:10
use dummy values for testing
EMCal geometry, singleton.
Int_t fNSuperModule
Number of supermodules.