]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSAlignMilleModule.cxx
add the possibility to process the event stat file
[u/mrichter/AliRoot.git] / ITS / AliITSAlignMilleModule.cxx
index 829f3f18ffb44476da68c1b3b7afd84b9a53fd24..9afc86152f10ada3fb9389e5c312107556470abd 100644 (file)
@@ -54,9 +54,13 @@ AliITSAlignMilleModule::AliITSAlignMilleModule() : TNamed(),
   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),  
@@ -72,8 +76,13 @@ AliITSAlignMilleModule::AliITSAlignMilleModule(Int_t index, UShort_t volid, char
   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), 
@@ -101,6 +110,10 @@ AliITSAlignMilleModule::AliITSAlignMilleModule(UShort_t volid) : TNamed(),
   }
   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;
+  }
   }
 } 
 //-------------------------------------------------------------
@@ -112,7 +125,7 @@ AliITSAlignMilleModule::~AliITSAlignMilleModule() {
   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
@@ -254,7 +267,7 @@ AliAlignObjParams *AliITSAlignMilleModule::GetSensitiveVolumeMisalignment(UShort
   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
@@ -654,6 +667,10 @@ AliITSAlignMilleModule::AliITSAlignMilleModule(const AliITSAlignMilleModule &m)
   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];