fSensVolMatrix = new TGeoHMatrix;
fSensVolModifMatrix = new TGeoHMatrix;
fTempAlignObj=new AliAlignObjParams;
+ for(Int_t k=0; k<fgkSensModules; k++){
+ fSensVolIndex[k] = 0;
+ fSensVolVolumeID[k] = 0;
+ }
}
//-------------------------------------------------------------
-AliITSAlignMilleModule::AliITSAlignMilleModule(Int_t index, UShort_t volid, char* symname, TGeoHMatrix *m, Int_t nsv, UShort_t *volidsv) : TNamed(),
+AliITSAlignMilleModule::AliITSAlignMilleModule(Int_t index, UShort_t volid, char* symname, const TGeoHMatrix *m, Int_t nsv, const UShort_t *volidsv) : TNamed(),
fNSensVol(0),
fIndex(-1),
fVolumeID(0),
fTempAlignObj=new AliAlignObjParams;
if (Set(index,volid,symname,m,nsv,volidsv)) {
AliInfo("Error in AliITSAlignMilleModule::Set() - initializing void supermodule...");
+
}
-}
+ for(Int_t k=0; k<fgkSensModules; k++){
+ fSensVolIndex[k] = 0;
+ fSensVolVolumeID[k] = 0;
+ }
+}
//-------------------------------------------------------------
AliITSAlignMilleModule::AliITSAlignMilleModule(UShort_t volid) : TNamed(),
fNSensVol(0),
}
else {
AliInfo("Wrong VolumeID or Geometry not loaded - initializing void supermodule...");
+ for(Int_t k=0; k<fgkSensModules; k++){
+ fSensVolIndex[k] = 0;
+ fSensVolVolumeID[k] = 0;
+ }
}
}
//-------------------------------------------------------------
delete fTempAlignObj;
}
//-------------------------------------------------------------
-Int_t AliITSAlignMilleModule::Set(Int_t index, UShort_t volid, char* symname, const TGeoHMatrix * const m, Int_t nsv, UShort_t *volidsv)
+Int_t AliITSAlignMilleModule::Set(Int_t index, UShort_t volid, char* symname, const TGeoHMatrix * const m, Int_t nsv, const UShort_t *volidsv)
{
// initialize a custom supermodule
// index, volid, symname and matrix must be given
return GetSensitiveVolumeMisalignment(voluid,fTempAlignObj);
}
//-------------------------------------------------------------
-AliAlignObjParams *AliITSAlignMilleModule::GetSensitiveVolumeMisalignment(UShort_t voluid, AliAlignObjParams *a)
+AliAlignObjParams *AliITSAlignMilleModule::GetSensitiveVolumeMisalignment(UShort_t voluid, const AliAlignObjParams *a)
{
// return the misalignment of the sens. vol. 'voluid' corresponding with
// a misalignment 'a' in the mother volume
fTempAlignObj(new AliAlignObjParams)
{
// Copy constructor
+ for(Int_t k=0; k<fgkSensModules; k++){
+ fSensVolIndex[k] = 0;
+ fSensVolVolumeID[k] = 0;
+ }
for (int i=0; i<fNSensVol; i++) {
fSensVolIndex[i]=m.fSensVolIndex[i];
fSensVolVolumeID[i]=m.fSensVolVolumeID[i];