CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/DQMOffline/Trigger/interface/HLTMuonOverlap.h

Go to the documentation of this file.
00001 #ifndef DQMOffline_Trigger_HLTMuonOverlap_H
00002 #define DQMOffline_Trigger_HLTMuonOverlap_H
00003 
00009 // Base Class Headers
00010 //
00011 #include "FWCore/Framework/interface/Frameworkfwd.h"
00012 #include "FWCore/Framework/interface/Event.h"
00013 #include "FWCore/Framework/interface/MakerMacros.h"
00014 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00015 #include "FWCore/Utilities/interface/InputTag.h"
00016 
00017 #include <vector>
00018 
00019 #include "TH1F.h"
00020 
00021 class HLTMuonOverlap {
00022 
00023 public:
00024   HLTMuonOverlap(const edm::ParameterSet&);
00025   void begin  ( );
00026   void analyze(const edm::Event & event);
00027   void finish ( );
00028 
00029 private:
00030   bool TrigResultsIn;
00031   edm::InputTag TrigResLabel_;
00032   unsigned int size;
00033   unsigned int Ntp; // # of trigger paths (should be the same for all events!)
00034   unsigned int Nall_trig; // # of all triggered events
00035   unsigned int Nevents; // # of analyzed events 
00036   typedef std::map<std::string, unsigned int> trigPath;
00037   double theCrossSection, theLuminosity;
00038   bool init_; 
00039   trigPath Ntrig; // # of triggered events per path
00040 
00041   // # of cross-triggered events per path
00042   // (pairs with same name correspond to unique trigger rates for that path)
00043   std::map<std::string, trigPath> Ncross;
00044 
00045   // whether a trigger path has fired for given event
00046   // (variable with event-scope)
00047   std::map<std::string, bool> fired; 
00048 };
00049 #endif