]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Partial geometry option removed from the alignment macros (R.Grosso)
authordecaro <decaro@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 25 Sep 2008 17:18:10 +0000 (17:18 +0000)
committerdecaro <decaro@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 25 Sep 2008 17:18:10 +0000 (17:18 +0000)
TOF/MakeTOFFullMisAlignment.C
TOF/MakeTOFResMisAlignment.C
TOF/MakeTOFZeroMisAlignment.C

index 9ce1657a5fae9e4e7ecd291f3bb6fdea33bb38db..4c0bc45c4a21a7dc443a79a5bc7eb29bc1286de0 100644 (file)
@@ -62,7 +62,6 @@ void MakeTOFFullMisAlignment(){
   UShort_t dvoluid = AliGeomManager::LayerToVolUID(iLayer,iIndex); //dummy vol id 
 
   Int_t nSMTOF = 18;
-  Int_t sActive[18]={0,1,1,0,0,0,1,1,0,1,1,1,1,0,0,1,1,1};
   Int_t j=0;
   Double_t smdx, smdy, smdz=0., dpsi=0., dtheta, dphi=0.;
   TRandom *rnd   = new TRandom(2345);
@@ -74,13 +73,11 @@ void MakeTOFFullMisAlignment(){
     smdx = rnd->Gaus(0.,sigmatr);
     smdy = rnd->Gaus(0.,sigmatr);
     dtheta = rnd->Gaus(0.,sigmarot);
-    if( (TString(gSystem->Getenv("PARTGEOM")) == TString("kTRUE")) && !sActive[isect] ) continue;
     new((*array)[j++]) AliAlignObjParams(symname.Data(), dvoluid, smdx, smdy, smdz, dpsi, dtheta, dphi, kFALSE);
   }
   // Apply objects for TOF supermodules 
   Int_t smCounter=0;
   for(Int_t isect=0; isect<nSMTOF; isect++){
-    if( (TString(gSystem->Getenv("PARTGEOM")) == TString("kTRUE")) && !sActive[isect] ) continue;
     AliAlignObjParams* smobj = (AliAlignObjParams*)array->UncheckedAt(smCounter++);
     Info(macroname,Form("Applying object for sector %d ",isect));
     if(!smobj->ApplyToGeometry()){
@@ -109,7 +106,6 @@ void MakeTOFFullMisAlignment(){
     sdz = rnds->Gaus(0.,sigmatr);
     strId++;
     if ((isect==13 || isect==14 || isect==15) && (istr >= 39 && istr <= 53)) continue;
-    if( (TString(gSystem->Getenv("PARTGEOM")) == TString("kTRUE")) && !sActive[isect] ) continue;
     new((*array)[j++]) AliAlignObjParams(AliGeomManager::SymName(idTOF,strId),AliGeomManager::LayerToVolUID(idTOF,strId), sdx, sdy, sdz, sdpsi, sdtheta, sdphi, kFALSE);
     }
   }
index 5595ecc349d0f306286869adc5f109e0645b3494..59a879cdc688e76001bf2bdb922518633b509c2c 100644 (file)
@@ -42,8 +42,6 @@ void MakeTOFResMisAlignment(){
   TRandom *rnd   = new TRandom(4357);
   Double_t sigmatr = 0.1; // sigma (in cm) for shift w.r.t. local ideal RS
 
-  Int_t sActive[18]={0,1,1,0,0,0,1,1,0,1,1,1,1,0,0,1,1,1};
-
   Int_t nstrA=15;
   Int_t nstrB=19;
   Int_t nstrC=19;
@@ -56,7 +54,6 @@ void MakeTOFResMisAlignment(){
     dz = rnd->Gaus(0.,sigmatr);
       strId++;
       if ((isect==13 || isect==14 || isect==15) && (istr >= 39 && istr <= 53)) continue;
-      if( (TString(gSystem->Getenv("PARTGEOM")) == TString("kTRUE")) && !sActive[isect] ) continue;
       new(alobj[j++]) AliAlignObjParams(AliGeomManager::SymName(idTOF,strId),AliGeomManager::LayerToVolUID(idTOF,strId), dx, dy, dz, dpsi, dtheta, dphi, kFALSE);
     }
   }
index 48c5c7441effc93fb9fe9c76d9af36dcc7794bac..871c54094ebbd848f0cad1872440293719f544da 100644 (file)
@@ -39,9 +39,6 @@ void MakeTOFZeroMisAlignment(){
   Int_t strId=-1;
   Double_t dx=0., dy=0., dz=0., dpsi=0., dtheta=0., dphi=0.;
 
-
-  Int_t sActive[18]={0,1,1,0,0,0,1,1,0,1,1,1,1,0,0,1,1,1};
-
   Int_t nstrA=15;
   Int_t nstrB=19;
   Int_t nstrC=19;
@@ -52,7 +49,6 @@ void MakeTOFZeroMisAlignment(){
     for (Int_t istr = 1; istr <= nStrips; istr++) {
       strId++;
       if ((isect==13 || isect==14 || isect==15) && (istr >= 39 && istr <= 53)) continue;
-      if( (TString(gSystem->Getenv("PARTGEOM")) == TString("kTRUE")) && !sActive[isect] ) continue;
       new(alobj[j++]) AliAlignObjParams(AliGeomManager::SymName(idTOF,strId), AliGeomManager::LayerToVolUID(idTOF,strId), dx, dy, dz, dpsi, dtheta, dphi, kTRUE);
     }
   }