00001 #include <iostream> 00002 00003 #include "HLTrigger/HLTanalyzers/interface/EventHeader.h" 00004 #include "HLTrigger/HLTanalyzers/interface/HLTInfo.h" 00005 00006 #include "FWCore/Framework/interface/Frameworkfwd.h" 00007 #include "FWCore/Framework/interface/MakerMacros.h" 00008 #include "FWCore/Framework/interface/EDAnalyzer.h" 00009 #include "FWCore/Framework/interface/Event.h" 00010 #include "FWCore/Framework/interface/EventSetup.h" 00011 #include "FWCore/Framework/interface/ESHandle.h" 00012 00013 #include "FWCore/ParameterSet/interface/Registry.h" 00014 00015 #include "DataFormats/Common/interface/Handle.h" 00016 00017 #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerReadoutRecord.h" 00018 #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerReadoutSetupFwd.h" 00019 #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerObjectMapRecord.h" 00020 #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerObjectMapFwd.h" 00021 #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerObjectMap.h" 00022 00023 #include "SimDataFormats/GeneratorProducts/interface/GenEventInfoProduct.h" 00024 00032 class HLTBitAnalyzer : public edm::EDAnalyzer { 00033 public: 00034 explicit HLTBitAnalyzer(edm::ParameterSet const& conf); 00035 virtual void analyze(edm::Event const& e, edm::EventSetup const& iSetup); 00036 virtual void endJob(); 00037 00038 // static void fillDescriptions(edm::ConfigurationDescriptions & descriptions); 00039 00040 // Analysis tree to be filled 00041 TTree *HltTree; 00042 00043 private: 00044 // variables persistent across events should be declared here. 00045 // 00047 00048 EventHeader evt_header_; 00049 HLTInfo hlt_analysis_; 00050 00051 edm::InputTag hltresults_,genEventInfo_; 00052 std::string l1extramc_, l1extramu_; 00053 edm::InputTag m_l1extramu; 00054 edm::InputTag m_l1extraemi; 00055 edm::InputTag m_l1extraemn; 00056 edm::InputTag m_l1extrajetc; 00057 edm::InputTag m_l1extrajetf; 00058 edm::InputTag m_l1extrataujet; 00059 edm::InputTag m_l1extramet; 00060 edm::InputTag m_l1extramht; 00061 00062 edm::InputTag gtReadoutRecord_,gtObjectMap_; 00063 edm::InputTag gctBitCounts_,gctRingSums_; 00064 00065 int errCnt; 00066 const int errMax(){return 100;} 00067 00068 std::string _HistName; // Name of histogram file 00069 double _EtaMin,_EtaMax; 00070 TFile* m_file; // pointer to Histogram file 00071 00072 };