- Added option to disable reading trigger (for testing data taken without trigger)
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 20 Feb 2007 14:48:04 +0000 (14:48 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 20 Feb 2007 14:48:04 +0000 (14:48 +0000)
- In GetCalibrationTask() - get run number from AliCDBManager
(Christian, Ivana)

MUON/AliMUONReconstructor.cxx

index ec99f78..be45070 100644 (file)
@@ -22,9 +22,6 @@
 
 #include "AliMUONReconstructor.h"
 
-#include "AliESD.h"
-#include "AliESDMuonTrack.h"
-#include "AliLog.h"
 #include "AliMUONConstants.h"
 #include "AliMUONCalibrationData.h"
 #include "AliMUONClusterFinderAZ.h"
 #include "AliMUONTriggerCrateStore.h"
 #include "AliMUONSegFactory.h"
 #include "AliMUONSegmentation.h"
-
-#include "AliMpSegmentation.h"
-
 #include "AliMUONPreClusterFinder.h"
 #include "AliMUONClusterFinderCOG.h"
 #include "AliMUONClusterFinderSimpleFit.h"
 #include "AliMUONClusterFinderMLEM.h"
-  
+
+#include "AliESD.h"
+#include "AliESDMuonTrack.h"
+#include "AliLog.h"
 #include "AliRawReader.h"
-#include "AliRun.h"
 #include "AliRunLoader.h"
+#include "AliCDBManager.h"
+
 #include "TTask.h"
 #include "TStopwatch.h"
 
@@ -65,7 +63,6 @@ ClassImp(AliMUONReconstructor)
 //_____________________________________________________________________________
 AliMUONReconstructor::AliMUONReconstructor()
   : AliReconstructor(), 
-    fRunLoader(0x0),
     fDigitMaker(new AliMUONDigitMaker()), 
     fCalibrationData(0x0),
     fCrateManager(new AliMUONTriggerCrateStore()),
@@ -124,10 +121,11 @@ AliMUONReconstructor::GetCalibrationTask(AliMUONData* data) const
 {
 /// Create the calibration task(s). 
   
-  const AliRun* run = fRunLoader->GetAliRun();
-
+  //const AliRun* run = fRunLoader->GetAliRun();
+  //Int_t runNumber = run->GetRunNumber();     
+  Int_t runNumber = AliCDBManager::Instance()->GetRun();
   AliInfo("Calibration will occur.");
-  Int_t runNumber = run->GetRunNumber();     
   fCalibrationData = new AliMUONCalibrationData(runNumber);
   if ( !fCalibrationData->IsValid() )
     {
@@ -144,15 +142,6 @@ AliMUONReconstructor::GetCalibrationTask(AliMUONData* data) const
 }
 
 //_____________________________________________________________________________
-void
-AliMUONReconstructor::Init(AliRunLoader* runLoader)
-{
-/// Initialize
-
-  fRunLoader = runLoader;
-}
-
-//_____________________________________________________________________________
 AliMUONClusterReconstructor*
 AliMUONReconstructor::CreateClusterReconstructor(AliMUONData* data) const
 {
@@ -340,6 +329,10 @@ void AliMUONReconstructor::Reconstruct(AliRunLoader* runLoader,
   // passing loader as argument.
   fDigitMaker->SetMUONData(&data);
 
+  // disable trigger rawdata reading
+  if (strstr(GetOption(),"TriggerDisable"))
+      fDigitMaker->DisableTrigger();
+
   AliMUONClusterReconstructor* recoCluster = CreateClusterReconstructor(&data);
 
   AliMUONVTrackReconstructor *recoEvent;