virtual void Print(Option_t */*option=""*/) const { Dump(); }
const char *GetLHCState() const { return fLHCState.GetString().Data(); }
+ const char *GetRunType() const { return fRunType.GetString().Data(); }
+ const char *GetActiveDetectors() const { return fActiveDetectors.GetString().Data(); }
+ UInt_t GetEventType() const { return fEventType; }
+ const char *GetTriggerClasses() const { return fTriggerClasses.GetString().Data(); }
+ ULong_t GetTriggerMask() const { return fTriggerMask; }
+ const char *GetTriggerCluster() const { return fTriggerCluster.GetString().Data(); }
AliEventInfo(const AliEventInfo &evInfo);
AliEventInfo& operator= (const AliEventInfo& evInfo);
#include "TObjArray.h"
#include "AliDetectorRecoParam.h"
+#include "AliLog.h"
#include "AliRecoParam.h"
}
}
+AliDetectorRecoParam *AliRecoParam::GetRecoParam(const AliEventInfo &/*evInfo*/) const {
+ // To be implemented by the detectors
+ // Here we return the last AliDetectorRecoParam!!
+ if (!fRecoParamArray) return NULL;
+ if (fRecoParamArray->GetEntriesFast() != 1)
+ AliWarning(Form("Method not implemented by the detector %s, using the last AliDetectorRecoParam !",GetName()));
+
+ return (AliDetectorRecoParam *)fRecoParamArray->Last();
+}
+
void AliRecoParam::AddRecoParam(AliDetectorRecoParam* param){
// Add an instance of reco params object into
// the fRecoParamArray
//
virtual void Print(Option_t *option="") const;
TObjArray *GetAllRecoParams() const { return fRecoParamArray; }
- virtual AliDetectorRecoParam *GetRecoParam(const AliEventInfo &evInfo) const = 0;
+ virtual AliDetectorRecoParam *GetRecoParam(const AliEventInfo &/*evInfo*/) const;
void AddRecoParam(AliDetectorRecoParam* param);
protected: