]>
Commit | Line | Data |
---|---|---|
2ab3623b | 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 | ||
18 | #include "AliMUONTriggerPreprocessor.h" | |
19 | ||
20 | #include "AliLog.h" | |
21 | #include "AliMUONTriggerSubprocessor.h" | |
22 | #include "AliShuttleInterface.h" | |
23 | #include "Riostream.h" | |
24 | ||
25 | //----------------------------------------------------------------------------- | |
26 | /// \class AliMUONTriggerPreprocessor | |
27 | /// | |
28 | /// Shuttle preprocessor for MUON trigger. The real worker | |
29 | /// class is AliMUONTriggerSubprocessor | |
30 | /// | |
31 | /// \author Laurent Aphecetche | |
32 | //----------------------------------------------------------------------------- | |
33 | ||
34 | /// \cond CLASSIMP | |
35 | ClassImp(AliMUONTriggerPreprocessor) | |
36 | /// \endcond | |
37 | ||
38 | //_____________________________________________________________________________ | |
39 | AliMUONTriggerPreprocessor::AliMUONTriggerPreprocessor(AliShuttleInterface* shuttle) | |
40 | : AliMUONPreprocessor("MTR",shuttle), | |
41 | fTriggerSubprocessor(new AliMUONTriggerSubprocessor(this)) | |
42 | { | |
43 | /// ctor. | |
44 | } | |
45 | ||
46 | //_____________________________________________________________________________ | |
47 | AliMUONTriggerPreprocessor::~AliMUONTriggerPreprocessor() | |
48 | { | |
49 | /// dtor | |
50 | delete fTriggerSubprocessor; | |
51 | } | |
52 | ||
53 | //_____________________________________________________________________________ | |
54 | void | |
55 | AliMUONTriggerPreprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t endTime) | |
56 | { | |
57 | /// Re-register the subprocessor(s) depending on the actual runType | |
58 | ||
59 | ClearSubprocessors(); | |
60 | ||
61 | fIsValid = kTRUE; | |
62 | ||
63 | TString runType = GetRunType(); | |
64 | ||
65 | if ( runType == "PHYSICS" || | |
66 | runType == "ELECTRONICS_CALIBRATION_RUN" || | |
67 | runType == "DETECTOR_CALIBRATION_RUN" ) | |
68 | { | |
69 | Add(fTriggerSubprocessor); | |
70 | } | |
71 | else | |
72 | { | |
52f6e34b | 73 | Log(Form("WARNING-RunType=%s is not one I should handle.",runType.Data())); |
2ab3623b | 74 | } |
75 | ||
76 | AliMUONPreprocessor::Initialize(run,startTime,endTime); | |
77 | } |