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);
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()){
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);
}
}
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;
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);
}
}
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;
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);
}
}