]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/MUONTriggerEfficiency.C
Fixing anti-aliasing problem on MacOSX
[u/mrichter/AliRoot.git] / MUON / MUONTriggerEfficiency.C
index 5d1bbf18cda8bf484b40ad7d1cedd8f4dbdea5d3..b867968f159f13c68989fa3f3457f2e0f0844664 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*  */
+// $Id$
 
-//
-// Macro for checking trigger integrated efficiency for dimuons.
-// The efficiency is calculated with respect to the 3/4 coincidence.
-// Author: Fabien Guerin, LPC Clermont-Ferrand, Jan. 2006
-//
+/// \ingroup macros
+/// \file MUONTriggerEfficiency.C
+/// \brief Macro for checking trigger integrated efficiency for dimuons.
+///
+/// The efficiency is calculated with respect to the 3/4 coincidence.
+///
+/// \author Fabien Guerin, LPC Clermont-Ferrand, Jan. 2006
 
 #if !defined(__CINT__) || defined(__MAKECINT__)
 // ROOT includes
 #include "AliHeader.h"
 #include "AliLoader.h"
 #include "AliStack.h"
+#include "AliCDBManager.h"
 
 // MUON includes
 #include "AliMUON.h"
 #include "AliMUONHit.h"
 #include "AliMUONConstants.h"
 #include "AliMUONDigit.h"
-#include "AliMUONRawCluster.h"
 #include "AliMUONGlobalTrigger.h"
 #include "AliMUONTrack.h"
 
@@ -63,6 +65,11 @@ void MUONTriggerEfficiency(const char* filenameSim="galice_sim.root",
                            Bool_t readFromRP = 0)
 {
   
+  // Set default CDB storage
+  AliCDBManager* man = AliCDBManager::Instance();
+  man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
+  man->SetRun(0);
+  
   // output file
   
   AliMUONMCDataInterface diSim(filenameSim);
@@ -137,8 +144,6 @@ void MUONTriggerEfficiency(const char* filenameSim="galice_sim.root",
           }       
         }
       }
-      
-      delete hitStore;      
     } // end track loop     
     
     // 3/4 coincidence
@@ -160,8 +165,6 @@ void MUONTriggerEfficiency(const char* filenameSim="galice_sim.root",
     if (gloTrg->PairUnlikeLpt()>=1) muonlpt++;
     if (gloTrg->PairUnlikeHpt()>=1) muonhpt++;
 
-    delete triggerStore;
-       
   } // end loop on event  
  
   // calculate efficiency with as a ref. at least 3/4 planes fired