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"
25 #include "AliShuttleInterface.h"
26 #include "Riostream.h"
27 #include "TObjArray.h"
29 /// \class AliMUONTrackerPreprocessor
31 /// Shuttle preprocessor for MUON tracker
33 /// It's simply a manager class that deals with a list of sub-tasks
34 /// (of type AliMUONVSubprocessor).
36 /// \author Laurent Aphecetche
39 ClassImp(AliMUONTrackerPreprocessor)
42 //_____________________________________________________________________________
43 AliMUONTrackerPreprocessor::AliMUONTrackerPreprocessor(AliShuttleInterface* shuttle)
44 : AliMUONPreprocessor("MCH",shuttle),
45 fPedestalSubprocessor(new AliMUONPedestalSubprocessor(this)),
46 fGMSSubprocessor(new AliMUONGMSSubprocessor(this)),
47 fHVSubprocessor(new AliMUONHVSubprocessor(this))
52 //_____________________________________________________________________________
53 AliMUONTrackerPreprocessor::~AliMUONTrackerPreprocessor()
57 delete fPedestalSubprocessor;
58 delete fGMSSubprocessor;
59 delete fHVSubprocessor;
62 //_____________________________________________________________________________
64 AliMUONTrackerPreprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t endTime)
66 /// Re-register the subprocessor(s) depnding on the actual runTYpe
70 TString runType = GetRunType();
72 if ( runType == "PEDESTAL_RUN" ) // FIXME : check the name
74 Add(fPedestalSubprocessor); // to be called only for pedestal runs
75 Log("INFO-Will run Pedestal subprocessor");
77 else if ( runType == "ELECTRONICS_CALIBRATION_RUN" ) // FIXME : check the name
79 Log("WARNING-Subprocessor for gains not yet implemented");
80 //fSubprocessors->Add(new AliMUONGainSubprocessor(this)); // to be called only for gain runs
82 else if ( runType == "GMS" ) // FIXME : check the name
84 Add(fGMSSubprocessor);
85 Log("INFO-Will run GMS subprocessor");
87 else if ( runType == "PHYSICS" ) // FIXME : check the name
89 Add(fHVSubprocessor); // to be called only for physics runs
90 Log("INFO-Will run HV subprocessor");
94 Log(Form("ERROR-Unknown RunType=%",runType.Data()));
97 AliMUONPreprocessor::Initialize(run,startTime,endTime);