fGainSubprocessor(new AliMUONGainSubprocessor(this))
{
/// ctor.
+
+ AddRunType("PEDESTAL");
+ AddRunType("CALIBRATION");
+ AddRunType("GMS");
+ AddRunType("PHYSICS");
}
//_____________________________________________________________________________
void
AliMUONTrackerPreprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t endTime)
{
- /// Re-register the subprocessor(s) depnding on the actual runTYpe
+ /// Re-register the subprocessor(s) depending on the actual runType
ClearSubprocessors();
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
}
else
{
- Log(Form("ERROR-Unknown RunType=%",runType.Data()));
- fIsValid = kFALSE;
+ fIsApplicable = kFALSE;
}
AliMUONPreprocessor::Initialize(run,startTime,endTime);