]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCAL.cxx
Pass the request of checking the runnumber for the geometry setting via the ctor...
[u/mrichter/AliRoot.git] / EMCAL / AliEMCAL.cxx
index 290b60035d585c326559ee767ff0b5f7e4035574..dc49de3ae60d1311837fbdc25eb259e59155ad96 100644 (file)
@@ -80,13 +80,14 @@ AliEMCAL::AliEMCAL()
 }
 
 //____________________________________________________________________________
-AliEMCAL::AliEMCAL(const char* name, const char* title)
+AliEMCAL::AliEMCAL(const char* name, const char* title, 
+                   const Bool_t checkGeoAndRun)
   : AliDetector(name,title),
     fBirkC0(0),
     fBirkC1(0.),
     fBirkC2(0.),
     fGeometry(0), 
-    fCheckRunNumberAndGeoVersion(kTRUE),
+    fCheckRunNumberAndGeoVersion(checkGeoAndRun),
     fTriggerData(0x0)
 {
   //   ctor : title is used to identify the layout
@@ -447,7 +448,6 @@ AliEMCALGeometry* AliEMCAL::GetGeometry() const
   if(!(AliEMCALGeometry::GetInstance()))
   {
     // Check the transport model name and option, set sampling fraction depending on it
-    
     if(!fCheckRunNumberAndGeoVersion){// Set geometry with the name used in the configuration file
       return AliEMCALGeometry::GetInstance(GetTitle(),"EMCAL",mcname,mctitle) ;
     }