]>
Commit | Line | Data |
---|---|---|
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 "AliMUONTrackerPreprocessor.h" | |
19 | ||
20 | #include "AliMUONPedestalSubprocessor.h" | |
21 | #include "AliMUONHVSubprocessor.h" | |
22 | #include "AliMUONGMSSubprocessor.h" | |
23 | ||
24 | #include "AliLog.h" | |
25 | #include "AliShuttleInterface.h" | |
26 | #include "Riostream.h" | |
27 | #include "TObjArray.h" | |
28 | ||
29 | /// \class AliMUONTrackerPreprocessor | |
30 | /// | |
31 | /// Shuttle preprocessor for MUON tracker | |
32 | /// | |
33 | /// It's simply a manager class that deals with a list of sub-tasks | |
34 | /// (of type AliMUONVSubprocessor). | |
35 | /// | |
36 | /// \author Laurent Aphecetche | |
37 | ||
38 | /// \cond CLASSIMP | |
39 | ClassImp(AliMUONTrackerPreprocessor) | |
40 | /// \endcond | |
41 | ||
42 | //_____________________________________________________________________________ | |
43 | AliMUONTrackerPreprocessor::AliMUONTrackerPreprocessor(AliShuttleInterface* shuttle) | |
44 | : AliMUONPreprocessor("MCH",shuttle) | |
45 | { | |
46 | /// ctor. | |
47 | } | |
48 | ||
49 | //_____________________________________________________________________________ | |
50 | AliMUONTrackerPreprocessor::~AliMUONTrackerPreprocessor() | |
51 | { | |
52 | /// dtor | |
53 | } | |
54 | ||
55 | //_____________________________________________________________________________ | |
56 | void | |
57 | AliMUONTrackerPreprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t endTime) | |
58 | { | |
59 | DeleteSubprocessors(); | |
60 | ||
61 | TString runType = GetRunType(); | |
62 | if ( runType == "PEDESTAL_RUN" ) // FIXME : check the name | |
63 | { | |
64 | Add(new AliMUONPedestalSubprocessor(this)); // to be called only for pedestal runs | |
65 | Log("INFO-Will run Pedestal subprocessor"); | |
66 | } | |
67 | else if ( runType == "ELECTRONICS_CALIBRATION_RUN" ) // FIXME : check the name | |
68 | { | |
69 | Log("WARNING-Subprocessor for gains not yet implemented"); | |
70 | //fSubprocessors->Add(new AliMUONGainSubprocessor(this)); // to be called only for gain runs | |
71 | } | |
72 | else if ( runType == "GMS" ) // FIXME : check the name | |
73 | { | |
74 | Add(new AliMUONGMSSubprocessor(this)); | |
75 | Log("INFO-Will run GMS subprocessor"); | |
76 | } | |
77 | else if ( runType == "PHYSICS" ) // FIXME : check the name | |
78 | { | |
79 | Add(new AliMUONHVSubprocessor(this)); // to be called only for physics runs | |
80 | Log("INFO-Will run HV subprocessor"); | |
81 | } | |
82 | else | |
83 | { | |
84 | Log(Form("ERROR-Unknown RunType=%",runType.Data())); | |
85 | } | |
86 | ||
87 | AliMUONPreprocessor::Initialize(run,startTime,endTime); | |
88 | ||
89 | } |