// ------------------------------------------------------------------------- // ----- PNDMCMATCHSELECTORTASK header file ----- // ----- Created 18/01/10 by T.Stockmanns ----- // ------------------------------------------------------------------------- /** PNDMCMATCHSELECTORTASK.h *@author T.Stockmanns ** ** Displays all available informations for a given event **/ #ifndef PNDMCMATCHSELECTORTASK_H #define PNDMCMATCHSELECTORTASK_H // framework includes #include "FairTask.h" #include "PndMCMatch.h" #include "PndDetectorList.h" #include #include class TClonesArray; class PndMCMatchSelectorTask : public FairTask { public: /** Default constructor **/ PndMCMatchSelectorTask(); PndMCMatchSelectorTask(fDetectorType start, fDetectorType stop); /** Destructor **/ virtual ~PndMCMatchSelectorTask(); /** Virtual method Init **/ virtual void SetParContainers(); virtual InitStatus Init(); /** Virtual method Exec **/ virtual void Exec(Option_t* opt); virtual void Finish(); virtual void SetStart(fDetectorType type){fStart = type;} virtual void SetStop(fDetectorType type){fStop = type;} virtual void SetAllWeights(Float_t weight) {fCommonWeight = weight;} virtual void SetWeightStage(Int_t type, Float_t weight){ fStageWeights.push_back(std::pair(static_cast(type), weight)); } virtual void SetWeights(); private: PndMCMatch* fMCMatch; fDetectorType fStart; fDetectorType fStop; std::vector > fStageWeights; Float_t fCommonWeight; void Register(); void Reset(); void ProduceHits(); ClassDef(PndMCMatchSelectorTask,1); }; #endif