#ifndef Weighter_h #define Weighter_h /** \class Weighter * * Apply a weight depending on PDG code. * * $Date: 2013-05-26 22:36:00 +0000 (Sun, 26 May 2013) $ * $Revision: 1125 $ * * * \author P. Demin - UCL, Louvain-la-Neuve * */ #include "classes/DelphesModule.h" #include #include class TObjArray; class Weighter: public DelphesModule { public: Weighter(); ~Weighter(); void Init(); void Process(); void Finish(); private: struct TIndexStruct { Int_t codes[4]; bool operator< (const TIndexStruct &value) const; }; std::set fWeightSet, fCodeSet; std::map fWeightMap; TIterator *fItInputArray; //! const TObjArray *fInputArray; //! TObjArray *fOutputArray; //! ClassDef(Weighter, 1) }; #endif