]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Obsolete file removed
authorkharlov <kharlov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 28 May 2006 19:40:34 +0000 (19:40 +0000)
committerkharlov <kharlov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 28 May 2006 19:40:34 +0000 (19:40 +0000)
PHOS/macros/AlignmentDB/CreateMisalignment0.C [deleted file]

diff --git a/PHOS/macros/AlignmentDB/CreateMisalignment0.C b/PHOS/macros/AlignmentDB/CreateMisalignment0.C
deleted file mode 100644 (file)
index 73a6c96..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-void CreateMisalignment0(const Int_t nModules=5)
-{
-  // *************************    1st step    ***************
-  // Create TClonesArray of alignment objects for PHOS
-  // with ideal geometry, i.e. zero displacement and disorientations
-  // 
-  TClonesArray *array = new TClonesArray("AliAlignObjAngles",nModules);
-  TClonesArray &alobj = *array;
-   
-  AliAlignObjAngles a;
-
-  Double_t dx=0., dy=0., dz=0., dpsi=0., dtheta=0., dphi=0.;
-  // null shifts and rotations
-
-  UShort_t iIndex=0;
-  AliAlignObj::ELayerID iLayer = AliAlignObj::kInvalidLayer;
-  UShort_t dvoluid = AliAlignObj::LayerToVolUID(iLayer,iIndex); //dummy volume identity 
-
-  TString basePath = "/ALIC_1/PHOS_"; 
-  
-  for (Int_t iModule = 1; iModule<=nModules; iModule++) {
-    printf("Alignment object for %s is created\n",(basePath+iModule).Data());
-    new(alobj[iModule-1]) AliAlignObjAngles((basePath+iModule).Data(),
-                                         dvoluid, dx, dy, dz, dpsi, dtheta, dphi);
-  }
-
-  // *************************    2nd step    ***************
-  // Make CDB storage and put TClonesArray in
-  // 
-  AliCDBManager *CDB = AliCDBManager::Instance();
-  CDB->SetDefaultStorage("local://$ALICE_ROOT");
-  
-  AliCDBMetaData *md= new AliCDBMetaData();
-  md->SetResponsible("Yuri Kharlov");
-  md->SetComment("Alignment objects for ideal geometry, i.e. applying them to TGeo has to leave geometry unchanged");
-  AliCDBId id("PHOS/Align/Data",0,0);
-  CDB->Put(array,id, md);
-}
-
-
-
-
-