#ifndef Weighter_h #define Weighter_h /** \class Weighter * * Apply a weight depending on PDG code. * * $Date$ * $Revision$ * * * \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