AliRoot Core  v5-06-15 (45dab64)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONTriggerPreprocessor.cxx
Go to the documentation of this file.
1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
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 **************************************************************************/
15 
16 // $Id$
17 
19 
20 #include "AliLog.h"
23 #include "AliShuttleInterface.h"
24 #include "Riostream.h"
25 
26 //-----------------------------------------------------------------------------
33 //-----------------------------------------------------------------------------
34 
38 
39 //_____________________________________________________________________________
41 : AliMUONPreprocessor("MTR",shuttle),
42  fTriggerSubprocessor(new AliMUONTriggerSubprocessor(this)),
43  fTriggerDCSSubprocessor(new AliMUONTriggerDCSSubprocessor(this))
44 {
46  AddRunType("PHYSICS");
47  AddRunType("CALIBRATION");
48 }
49 
50 //_____________________________________________________________________________
52 {
54  delete fTriggerSubprocessor;
56 }
57 
58 //_____________________________________________________________________________
59 void
60 AliMUONTriggerPreprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t endTime)
61 {
63 
65 
66  fIsValid = kTRUE;
67  fIsApplicable = kTRUE;
68 
69  TString runType = GetRunType();
70 
71  if ( runType == "PHYSICS" )
72  {
74  Add(fTriggerDCSSubprocessor,kTRUE); // uses DCS
75  }
76  else if (runType == "CALIBRATION")
77  {
79  }
80  else
81  {
82  fIsApplicable = kFALSE;
83  }
84 
85  AliMUONPreprocessor::Initialize(run,startTime,endTime);
86 }
AliMUONTriggerDCSSubprocessor * fTriggerDCSSubprocessor
! the real worker class for DCS info
virtual void Initialize(Int_t run, UInt_t startTime, UInt_t endTime)
ClassImp(TPCGenInfo)
Definition: AliTPCCmpNG.C:254
TTimeStamp startTime(2009, 8, 7, 0, 0, 0)
Implementation of AliMUONVSubprocessor for MUON TRK masks.
AliMUONTriggerSubprocessor * fTriggerSubprocessor
! the real worker class
void Add(AliMUONVSubprocessor *subProcessor, Bool_t processDCS=kFALSE)
virtual void Initialize(Int_t run, UInt_t startTime, UInt_t endTime)
Bool_t fIsValid
! whether we were correctly initialized
Bool_t fIsApplicable
! whether we have something to do
Shuttle preprocessor for MUON trigger.
A subprocessor to read TriggerDCS values for one run.
Shuttle preprocessor for MUON subsystems (TRK and TRG)