remove usage old trigger code
authorpcrochet <pcrochet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 6 Oct 2006 11:32:07 +0000 (11:32 +0000)
committerpcrochet <pcrochet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 6 Oct 2006 11:32:07 +0000 (11:32 +0000)
MUON/AliMUONDigitizerV3.cxx
MUON/AliMUONDigitizerV3.h

index fb258d0..4ae6267 100644 (file)
@@ -25,7 +25,6 @@
 #include "AliMUONDataIterator.h"
 #include "AliMUONDigit.h"
 #include "AliMUONSegmentation.h"
-#include "AliMUONTriggerDecisionV1.h"
 #include "AliMUONTriggerEfficiencyCells.h"
 #include "AliMUONTriggerElectronics.h"
 #include "AliMUONVCalibParam.h"
@@ -77,14 +76,12 @@ ClassImp(AliMUONDigitizerV3)
 
 //_____________________________________________________________________________
 AliMUONDigitizerV3::AliMUONDigitizerV3(AliRunDigitizer* manager, 
-                                       ETriggerCodeVersion triggerCodeVersion,
                                        Bool_t generateNoisyDigits)
 : AliDigitizer(manager),
 fIsInitialized(kFALSE),
 fOutputData(0x0),
 fCalibrationData(0x0),
 fTriggerProcessor(0x0),
-fTriggerCodeVersion(triggerCodeVersion),
 fTriggerEfficiency(0x0),
 fFindDigitIndexTimer(),
 fGenerateNoisyDigitsTimer(),
@@ -704,20 +701,7 @@ AliMUONDigitizerV3::Init()
   
   fCalibrationData = new AliMUONCalibrationData(runnumber);
   
-  switch (fTriggerCodeVersion)
-  {
-    case kTriggerDecision:
-      fTriggerProcessor = new AliMUONTriggerDecisionV1(fOutputData);
-      break;
-    case kTriggerElectronics:
-      fTriggerProcessor = new AliMUONTriggerElectronics(fOutputData,fCalibrationData);
-      break;
-    default:
-      AliFatal("Unknown trigger processor type");
-      break;
-  }
-  AliDebug(1,Form("Using the following trigger code %s - %s",
-                  fTriggerProcessor->GetName(),fTriggerProcessor->GetTitle()));
+  fTriggerProcessor = new AliMUONTriggerElectronics(fOutputData,fCalibrationData);
   
   if ( muon()->GetTriggerEffCells() )
   {
index 838db20..fd36084 100644 (file)
@@ -31,14 +31,7 @@ class TString;
 class AliMUONDigitizerV3 : public AliDigitizer
 {
 public:
-  enum ETriggerCodeVersion
-  {
-    kTriggerDecision=-1,
-    kTriggerElectronics
-  };
-  
   AliMUONDigitizerV3(AliRunDigitizer* manager=0, 
-                     ETriggerCodeVersion=kTriggerDecision,
                      Bool_t generateNoisyDigits=kTRUE);
   virtual ~AliMUONDigitizerV3();
 
@@ -79,7 +72,6 @@ private:
   AliMUONData* fOutputData; //!< pointer to access digits
   AliMUONCalibrationData* fCalibrationData; //!< pointer to access calib parameters
   TTask* fTriggerProcessor; ///< pointer to the trigger part of the job
-  ETriggerCodeVersion fTriggerCodeVersion; ///< which version of trigger job
   AliMUONTriggerEfficiencyCells* fTriggerEfficiency; ///< trigger efficiency map  
   mutable TStopwatch fFindDigitIndexTimer; //!< counting time spent in FindDigitIndex
   TStopwatch fGenerateNoisyDigitsTimer; //!< counting time spent in GenerateNoisyDigits()