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 "AliShuttleInterface.h"
23 #include "Riostream.h"
25 //-----------------------------------------------------------------------------
26 /// \class AliMUONTriggerPreprocessor
28 /// Shuttle preprocessor for MUON trigger. The real worker
29 /// class is AliMUONTriggerSubprocessor
31 /// \author Laurent Aphecetche
32 //-----------------------------------------------------------------------------
35 ClassImp(AliMUONTriggerPreprocessor)
38 //_____________________________________________________________________________
39 AliMUONTriggerPreprocessor::AliMUONTriggerPreprocessor(AliShuttleInterface* shuttle)
40 : AliMUONPreprocessor("MTR",shuttle),
41 fTriggerSubprocessor(new AliMUONTriggerSubprocessor(this))
44 AddRunType("PHYSICS");
45 AddRunType("CALIBRATION");
48 //_____________________________________________________________________________
49 AliMUONTriggerPreprocessor::~AliMUONTriggerPreprocessor()
52 delete fTriggerSubprocessor;
55 //_____________________________________________________________________________
57 AliMUONTriggerPreprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t endTime)
59 /// Re-register the subprocessor(s) depending on the actual runType
64 fIsApplicable = kTRUE;
66 TString runType = GetRunType();
68 if ( runType == "PHYSICS" ||
69 runType == "CALIBRATION" )
71 Add(fTriggerSubprocessor);
75 fIsApplicable = kFALSE;
78 AliMUONPreprocessor::Initialize(run,startTime,endTime);