]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/UPGRADE/AliITSUDigitizer.cxx
Config for stave model22 layout. Modules are 30mm long in Z (works only
[u/mrichter/AliRoot.git] / ITS / UPGRADE / AliITSUDigitizer.cxx
index e9eb43343f9874e8734424d33b2331305419f3c4..2b30a0aa5e21710fffc103e1b451e23ecebc7af5 100644 (file)
@@ -106,7 +106,7 @@ Bool_t AliITSUDigitizer::Init()
 }
 
 //______________________________________________________________________
-void AliITSUDigitizer::Digitize(Option_t* opt)
+void AliITSUDigitizer::Digitize(Option_t* /*opt*/)
 {
   // Main digitization function. 
   //
@@ -154,12 +154,12 @@ void AliITSUDigitizer::Digitize(Option_t* opt)
   for (int module=0; module<nModules; module++ ) {
     //
     if (!fRoif && !fModActive[module]) continue;
-    int id = geom->GetModuleDetTypeID(module);
-    AliITSUSimulation *sim = fITS->GetSimulationModel(id);
-    if (!sim) AliFatal(Form("The simulation model %d is not available",id));
+    int lr = geom->GetLayer(module);
+    AliITSUSimulation *sim = fITS->GetSimulationModel(lr);
+    if (!sim) AliFatal(Form("The simulation model for layer %d is not available",lr));
     //
     // Fill the module with the sum of SDigits
-    sim->InitSimulationModule(module, event, fITS->GetSegmentation(id));
+    sim->InitSimulationModule(fITS->GetModule(module), event, fITS->GetSegmentation(lr), fITS->GetResponseParam(lr));
     //
     for (int ifiles=0; ifiles<nfiles; ifiles++ ) {
       //