added instruction how should get the EMCAL geometry in case of MC data
authorpavlinov <pavlinov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 Mar 2007 19:28:10 +0000 (19:28 +0000)
committerpavlinov <pavlinov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 Mar 2007 19:28:10 +0000 (19:28 +0000)
EMCAL/AliEMCALGeometry.cxx

index dc1863c..4641d61 100644 (file)
@@ -75,6 +75,11 @@ Char_t*            AliEMCALGeometry::fgDefaultGeometryName = "SHISH_77_TRD1_2X2_
 //  ..
 //  g = AliEMCALGeometry::GetInstance();                             // after first time
 //
+//  MC:   If you work with MC data you have to get geometry the next way: 
+//  ==                                      =============================
+//  AliRunLoader    *rl   = AliRunLoader::GetRunLoader();
+// AliEMCALGeometry *geom = dynamic_cast<AliEMCAL*>(rl->GetAliRun()->GetDetector("EMCAL"))->GetGeometry();
+
 
 AliEMCALGeometry::AliEMCALGeometry() 
   : AliGeometry(),