--- UserCode/L1RpcTriggerAnalysis/interface/AnaMenu.h 2012/11/06 12:56:50 1.2 +++ UserCode/L1RpcTriggerAnalysis/interface/AnaMenu.h 2012/12/11 12:49:33 1.3 @@ -9,11 +9,14 @@ class TriggerMenuResultObj; #include #include #include +#include "FWCore/ParameterSet/interface/ParameterSet.h" + class AnaMenu { public: - AnaMenu() : debug(false) {} + AnaMenu(const edm::ParameterSet& cfg) : debug(false), theConfig(cfg) {} void init(TObjArray& histos); + void updateMenu(const std::vector & menuL1, const std::vector & menuHLT); bool filter( const EventObj* ev, const MuonObj* muon, const TriggerMenuResultObj *bitsL1, const TriggerMenuResultObj *bitsHLT); @@ -21,9 +24,11 @@ public: void resume(TObjArray& histos); bool debug; private: - typedef std::map< std::string, unsigned int> AlgoMap ; - AlgoMap theAlgosL1, theAlgosHLT; - std::vector namesL1, namesHLT; + typedef std::map< std::string, unsigned int> AlgoMap ; + AlgoMap theAlgosL1, theAlgosHLT; + std::vector theMenuL1, theMenuHLT; + edm::ParameterSet theConfig; + }; #endif