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 "AliMUONTrackerPreprocessor.h"
20 #include "AliMUONPedestalSubprocessor.h"
21 #include "AliMUONHVSubprocessor.h"
22 #include "AliMUONGMSSubprocessor.h"
23 #include "AliMUONGainSubprocessor.h"
26 #include "AliShuttleInterface.h"
27 #include "Riostream.h"
28 #include "TObjArray.h"
30 /// \class AliMUONTrackerPreprocessor
32 /// Shuttle preprocessor for MUON tracker
34 /// It's simply a manager class that deals with a list of sub-tasks
35 /// (of type AliMUONVSubprocessor).
37 /// \author Laurent Aphecetche
40 ClassImp(AliMUONTrackerPreprocessor)
43 //_____________________________________________________________________________
44 AliMUONTrackerPreprocessor::AliMUONTrackerPreprocessor(AliShuttleInterface* shuttle)
45 : AliMUONPreprocessor("MCH",shuttle),
46 fPedestalSubprocessor(new AliMUONPedestalSubprocessor(this)),
47 fGMSSubprocessor(new AliMUONGMSSubprocessor(this)),
48 fHVSubprocessor(new AliMUONHVSubprocessor(this)),
49 fGainSubprocessor(new AliMUONGainSubprocessor(this))
54 //_____________________________________________________________________________
55 AliMUONTrackerPreprocessor::~AliMUONTrackerPreprocessor()
59 delete fPedestalSubprocessor;
60 delete fGMSSubprocessor;
61 delete fHVSubprocessor;
62 delete fGainSubprocessor;
65 //_____________________________________________________________________________
67 AliMUONTrackerPreprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t endTime)
69 /// Re-register the subprocessor(s) depnding on the actual runTYpe
73 TString runType = GetRunType();
75 if ( runType == "PEDESTAL_RUN" ) // FIXME : check the name
77 Add(fPedestalSubprocessor); // to be called only for pedestal runs
78 Log("INFO-Will run Pedestal subprocessor");
80 else if ( runType == "ELECTRONICS_CALIBRATION_RUN" ) // FIXME : check the name
82 Add(new AliMUONGainSubprocessor(this)); // to be called only for gain runs
83 Log("INFO-Will run Gain subprocessor");
85 else if ( runType == "GMS" ) // FIXME : check the name
87 Add(fGMSSubprocessor);
88 Log("INFO-Will run GMS subprocessor");
90 else if ( runType == "PHYSICS" ) // FIXME : check the name
92 Add(fHVSubprocessor); // to be called only for physics runs
93 Log("INFO-Will run HV subprocessor");
97 Log(Form("ERROR-Unknown RunType=%",runType.Data()));
100 AliMUONPreprocessor::Initialize(run,startTime,endTime);