X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FAliMUONTrackerPreprocessor.cxx;h=0b18b2c58dd548a1359000999b6d10d3f84abd67;hb=ec499c6d175049e280bd6e7841e90330ae7a94bc;hp=8d813bacda0443fae51b10d56fce1534f12d1f5f;hpb=52f6e34b7d923d0f91c44709b231934cf324d1e4;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUONTrackerPreprocessor.cxx b/MUON/AliMUONTrackerPreprocessor.cxx index 8d813bacda0..0b18b2c58dd 100644 --- a/MUON/AliMUONTrackerPreprocessor.cxx +++ b/MUON/AliMUONTrackerPreprocessor.cxx @@ -21,6 +21,7 @@ #include "AliMUONHVSubprocessor.h" #include "AliMUONGMSSubprocessor.h" #include "AliMUONGainSubprocessor.h" +#include "AliMUONOccupancySubprocessor.h" #include "AliLog.h" #include "AliShuttleInterface.h" @@ -45,12 +46,18 @@ ClassImp(AliMUONTrackerPreprocessor) //_____________________________________________________________________________ AliMUONTrackerPreprocessor::AliMUONTrackerPreprocessor(AliShuttleInterface* shuttle) : AliMUONPreprocessor("MCH",shuttle), - fPedestalSubprocessor(new AliMUONPedestalSubprocessor(this)), - fGMSSubprocessor(new AliMUONGMSSubprocessor(this)), - fHVSubprocessor(new AliMUONHVSubprocessor(this)), - fGainSubprocessor(new AliMUONGainSubprocessor(this)) +fPedestalSubprocessor(new AliMUONPedestalSubprocessor(this)), +fGMSSubprocessor(new AliMUONGMSSubprocessor(this)), +fHVSubprocessor(new AliMUONHVSubprocessor(this,kTRUE)), +fGainSubprocessor(new AliMUONGainSubprocessor(this)), +fOccupancySubprocessor(new AliMUONOccupancySubprocessor(this)) { /// ctor. + + AddRunType("PEDESTAL"); + AddRunType("CALIBRATION"); + AddRunType("GMS"); + AddRunType("PHYSICS"); } //_____________________________________________________________________________ @@ -62,6 +69,7 @@ AliMUONTrackerPreprocessor::~AliMUONTrackerPreprocessor() delete fGMSSubprocessor; delete fHVSubprocessor; delete fGainSubprocessor; + delete fOccupancySubprocessor; } //_____________________________________________________________________________ @@ -75,31 +83,38 @@ AliMUONTrackerPreprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t endTi TString runType = GetRunType(); fIsValid = kTRUE; + fIsApplicable = kTRUE; - if ( runType == "PEDESTAL_RUN" ) // FIXME : check the name + if ( runType == "PEDESTAL" ) { Add(fPedestalSubprocessor); // to be called only for pedestal runs Log("INFO-Will run Pedestal subprocessor"); } - else if ( runType == "ELECTRONICS_CALIBRATION_RUN" ) // FIXME : check the name + else if ( runType == "CALIBRATION" ) { - Add(new AliMUONGainSubprocessor(this)); // to be called only for gain runs + Add(fGainSubprocessor); // to be called only for gain runs Log("INFO-Will run Gain subprocessor"); } - else if ( runType == "GMS" ) // FIXME : check the name + else if ( runType == "GMS" ) { Add(fGMSSubprocessor); Log("INFO-Will run GMS subprocessor"); } - else if ( runType == "PHYSICS" ) // FIXME : check the name + else if ( runType == "PHYSICS" ) { Bool_t useDCS(kTRUE); Add(fHVSubprocessor,useDCS); // to be called only for physics runs + Add(fOccupancySubprocessor); Log("INFO-Will run HV subprocessor"); + if ( fHVSubprocessor->IncludeHVCurrent() ) + { + Log("INFO-HV subprocessor will store HV currents in addition to the voltages"); + } + Log("INFO-Will run Occupancy subprocessor"); } else { - Log(Form("WARNING-RunType=%s is not one I should handle.",runType.Data())); + fIsApplicable = kFALSE; } AliMUONPreprocessor::Initialize(run,startTime,endTime);