AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONTrackerPreprocessor.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 
21 #include "AliMUONHVSubprocessor.h"
22 #include "AliMUONLVSubprocessor.h"
23 #include "AliMUONGMSSubprocessor.h"
25 #include "AliLog.h"
27 #include "AliShuttleInterface.h"
28 #include "Riostream.h"
29 #include "TObjArray.h"
31 
32 //-----------------------------------------------------------------------------
41 //-----------------------------------------------------------------------------
42 
46 
47 //_____________________________________________________________________________
49 : AliMUONPreprocessor("MCH",shuttle),
50 fPedestalSubprocessor(new AliMUONPedestalSubprocessor(this)),
51 fGMSSubprocessor(new AliMUONGMSSubprocessor(this)),
52 fHVSubprocessor(new AliMUONHVSubprocessor(this,kTRUE)),
53 fOccupancySubprocessor(new AliMUONOccupancySubprocessor(this)),
54 fBusPatchEvolutionSubprocessor(new AliMUONBusPatchEvolutionSubprocessor(this)),
55 fConfigSubprocessor(new AliMUONConfigSubprocessor(this)),
56 fLVSubprocessor(new AliMUONLVSubprocessor(this))
57 {
59 
60  AddRunType("PEDESTAL");
61  AddRunType("CALIBRATION");
62  AddRunType("GMS");
63  AddRunType("PHYSICS");
64 }
65 
66 //_____________________________________________________________________________
68 {
70 
71  delete fPedestalSubprocessor;
72  delete fGMSSubprocessor;
73  delete fHVSubprocessor;
76  delete fConfigSubprocessor;
77  delete fLVSubprocessor;
78 }
79 
80 //_____________________________________________________________________________
81 void
82 AliMUONTrackerPreprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t endTime)
83 {
85 
87 
88  TString runType = GetRunType();
89 
90  fIsValid = kTRUE;
91  fIsApplicable = kTRUE;
92 
93  if ( runType == "PEDESTAL" )
94  {
95  Add(fPedestalSubprocessor); // to be called only for pedestal runs
96  Log("INFO-Will run Pedestal subprocessor");
97  }
98  else if ( runType == "GMS" )
99  {
101  Log("INFO-Will run GMS subprocessor");
102  }
103  else if ( runType == "PHYSICS" )
104  {
105  Bool_t useDCS(kTRUE);
106 
107  Add(fHVSubprocessor,useDCS); // to be called only for physics runs
108  Add(fLVSubprocessor,useDCS);
112 
113  Log("INFO-Will run LV subprocessor");
114  Log("INFO-Will run HV subprocessor");
115  if ( static_cast<AliMUONHVSubprocessor*>(fHVSubprocessor)->IncludeHVCurrent() )
116  {
117  Log("INFO-HV subprocessor will store HV currents in addition to the voltages");
118  }
119  Log("INFO-Will run Occupancy subprocessor");
120  Log("INFO-Will run Bus Patch Evolution subprocessor");
121  Log("INFO-Will run Config subprocessor");
122 
123  }
124  else
125  {
126  fIsApplicable = kFALSE;
127  }
128 
129  AliMUONPreprocessor::Initialize(run,startTime,endTime);
130 
131 }
A subprocessor to read HV values for one run.
Implementation of AliMUONVSubprocessor for MUON TRK pedestals.
AliMUONVSubprocessor * fGMSSubprocessor
GMS subprocessor.
AliMUONVSubprocessor * fBusPatchEvolutionSubprocessor
Buspatch evolution subprocessor.
ClassImp(TPCGenInfo)
Definition: AliTPCCmpNG.C:254
The shuttle subprocessor for GMS data.
Implementation of AliMUONVSubprocessor for MUON TRK config.
AliMUONVSubprocessor * fPedestalSubprocessor
Pedestal subprocessor.
TTimeStamp startTime(2009, 8, 7, 0, 0, 0)
AliMUONVSubprocessor * fConfigSubprocessor
config subprocessor
void Add(AliMUONVSubprocessor *subProcessor, Bool_t processDCS=kFALSE)
AliMUONVSubprocessor * fOccupancySubprocessor
Occupancy subprocessor.
virtual void Initialize(Int_t run, UInt_t startTime, UInt_t endTime)
AliMUONVSubprocessor * fLVSubprocessor
LV subprocessor.
void Log(const char *message)
Publish AliPreprocessor::Log function.
Bool_t fIsValid
! whether we were correctly initialized
Bool_t fIsApplicable
! whether we have something to do
A subprocessor to read LV values for one run.
Implementation of AliMUONVSubprocessor for MUON TRK occupancy.
virtual void Initialize(Int_t run, UInt_t startTime, UInt_t endTime)
Implementation of AliMUONVSubprocessor for MUON TRK bus patch evolution.
Shuttle preprocessor for MUON subsystems (TRK and TRG)
AliMUONVSubprocessor * fHVSubprocessor
HV subprocessor.
Shuttle preprocessor for MUON tracker.