AliRoot Core  edcc906 (edcc906)
MakeFMDFullMisAlignment.C
Go to the documentation of this file.
2 {
3  // Create TClonesArray of full misalignment objects for FMD
4  const char* macroname = "MakeFMDFullMisAlignment.C";
5 
6  // Activate CDB storage and load geometry from CDB
8  if(!cdb->IsDefaultStorageSet()) cdb->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
9  cdb->SetRun(0);
10 
11  Bool_t toCdb = TString(gSystem->Getenv("TOCDB")) == TString("kTRUE");
12  TString storage = gSystem->Getenv("STORAGE");
13  TString output = "FMDfullMisalignment.root";
14  if(toCdb) output = storage;
15 
16  gSystem->Load("libFMDutil");
17  AliFMDAlignFaker::GetGeometry(toCdb, storage);
19  "geometry.root",
20  output.Data());
21 
22  // Displacements and rotations
23  faker->SetSensorDisplacement(-0.005, -0.005, -0.005, 0.005, 0.005, 0.005);
24  faker->SetSensorRotation(-0.5, -0.5, -0.5, 0.5, 0.5, 0.5);
25  faker->SetHalfDisplacement(-0.25, -0.25, -0.25, 0.25, 0.25, 0.25);
26  faker->SetHalfRotation(-0.5, -0.5, -0.5, 0.5, 0.5, 0.5);
27  faker->Exec();
28  delete faker;
29 }
void Exec(Option_t *option="")
void MakeFMDFullMisAlignment()
static Bool_t GetGeometry(Bool_t toCdb=kFALSE, const TString &storage=TString())
This task creates fake alignment.
void SetHalfDisplacement(Double_t x1=0, Double_t y1=0, Double_t z1=0, Double_t x2=.05, Double_t y2=.05, Double_t z2=.05)
void SetRun(Int_t run)
void SetDefaultStorage(const char *dbString)
void SetSensorRotation(Double_t x1=0, Double_t y1=0, Double_t z1=0, Double_t x2=.5, Double_t y2=.5, Double_t z2=.5)
void SetHalfRotation(Double_t x1=0, Double_t y1=0, Double_t z1=0, Double_t x2=0, Double_t y2=0, Double_t z2=0)
static AliCDBManager * Instance(TMap *entryCache=NULL, Int_t run=-1)
Bool_t IsDefaultStorageSet() const
Definition: AliCDBManager.h:60
void SetSensorDisplacement(Double_t x1=0, Double_t y1=0, Double_t z1=0, Double_t x2=.01, Double_t y2=.01, Double_t z2=0)