1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
18 #include "AliMUONTriggerPreprocessor.h"
21 #include "AliMUONTriggerSubprocessor.h"
22 #include "AliMUONTriggerDCSSubprocessor.h"
23 #include "AliShuttleInterface.h"
24 #include "Riostream.h"
26 //-----------------------------------------------------------------------------
27 /// \class AliMUONTriggerPreprocessor
29 /// Shuttle preprocessor for MUON trigger. The real worker
30 /// class is AliMUONTriggerSubprocessor
32 /// \author Laurent Aphecetche
33 //-----------------------------------------------------------------------------
36 ClassImp(AliMUONTriggerPreprocessor)
39 //_____________________________________________________________________________
40 AliMUONTriggerPreprocessor::AliMUONTriggerPreprocessor(AliShuttleInterface* shuttle)
41 : AliMUONPreprocessor("MTR",shuttle),
42 fTriggerSubprocessor(new AliMUONTriggerSubprocessor(this)),
43 fTriggerDCSSubprocessor(new AliMUONTriggerDCSSubprocessor(this))
46 AddRunType("PHYSICS");
47 AddRunType("CALIBRATION");
50 //_____________________________________________________________________________
51 AliMUONTriggerPreprocessor::~AliMUONTriggerPreprocessor()
54 delete fTriggerSubprocessor;
55 delete fTriggerDCSSubprocessor;
58 //_____________________________________________________________________________
60 AliMUONTriggerPreprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t endTime)
62 /// Re-register the subprocessor(s) depending on the actual runType
67 fIsApplicable = kTRUE;
69 TString runType = GetRunType();
71 if ( runType == "PHYSICS" )
73 Add(fTriggerSubprocessor);
74 Add(fTriggerDCSSubprocessor,kTRUE); // uses DCS
76 else if (runType == "CALIBRATION")
78 Add(fTriggerSubprocessor);
82 fIsApplicable = kFALSE;
85 AliMUONPreprocessor::Initialize(run,startTime,endTime);