]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - T0/AliT0v2.cxx
Use the storage provided by the AliCDBManager. Set the initialization flag to kFALSE...
[u/mrichter/AliRoot.git] / T0 / AliT0v2.cxx
index d04abed19759e88ba3ef648859929b31379e4c45..91b1edc948ad4fd967633373c6dd6b82aa89cbe2 100644 (file)
@@ -245,16 +245,12 @@ void AliT0v2::DrawModule() const
   gMC->Gdopt ("hide", "off");
 }
 
-
 //////////////////////////////////////////////////////////////////////
-// Initialises version 2 of the Forward Multiplicity Detector
+// Definition of optical properties for the Forward Multiplicity Detector
 //////////////////////////////////////////////////////////////////////
-void AliT0v2::Init()
+void AliT0v2::DefineOpticalProperties()
 {
-//Int_t *idtmed  = gAlice->Idtmed();
-
-  AliT0::Init();
-  fIdSens1 = gMC->VolId ("0REG");
+// Optical properties definition.
 // Definition Cherenkov parameters
   const Int_t NUMENTRIES = 32;
 
@@ -303,7 +299,15 @@ void AliT0v2::Init()
 
    gMC->SetCerenkov (idtmed[6], NUMENTRIES, ppckov, absor_qwarz, effic_all, rindex_qwarz);
    gMC->SetCerenkov (idtmed[1], NUMENTRIES, ppckov, absor_air, effic_all, rindex_air);
+}
 
+//////////////////////////////////////////////////////////////////////
+// Initialises version 2 of the Forward Multiplicity Detector
+//////////////////////////////////////////////////////////////////////
+void AliT0v2::Init()
+{
+  AliT0::Init();
+  fIdSens1 = gMC->VolId ("0REG");
   printf ("*** T0 version 2 initialized ***\n");
 }