00001 #include <iostream>
00002
00003 #include "HLTrigger/HLTanalyzers/interface/HLTEgamma.h"
00004 #include "HLTrigger/HLTanalyzers/interface/HLTInfo.h"
00005 #include "HLTrigger/HLTanalyzers/interface/HLTJets.h"
00006 #include "HLTrigger/HLTanalyzers/interface/HLTBJet.h"
00007 #include "HLTrigger/HLTanalyzers/interface/HLTMCtruth.h"
00008 #include "HLTrigger/HLTanalyzers/interface/HLTMuon.h"
00009 #include "HLTrigger/HLTanalyzers/interface/EventHeader.h"
00010
00011 #include "FWCore/Framework/interface/Frameworkfwd.h"
00012 #include "FWCore/Framework/interface/MakerMacros.h"
00013 #include "FWCore/Framework/interface/EDAnalyzer.h"
00014 #include "FWCore/Framework/interface/Event.h"
00015 #include "FWCore/Framework/interface/EventSetup.h"
00016 #include "FWCore/Framework/interface/ESHandle.h"
00017 #include "Geometry/Records/interface/IdealGeometryRecord.h"
00018
00019 #include "DataFormats/Common/interface/Handle.h"
00020
00021 #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerReadoutRecord.h"
00022 #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerReadoutSetupFwd.h"
00023 #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerObjectMapRecord.h"
00024 #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerObjectMapFwd.h"
00025 #include "DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerObjectMap.h"
00026
00034 class HLTAnalyzer : public edm::EDAnalyzer {
00035 public:
00036 explicit HLTAnalyzer(edm::ParameterSet const& conf);
00037 virtual void analyze(edm::Event const& e, edm::EventSetup const& iSetup);
00038 virtual void endJob();
00039
00040
00041 TTree *HltTree;
00042
00043 private:
00044
00045
00047
00048 EventHeader evt_header_;
00049 HLTJets jet_analysis_;
00050 HLTBJet bjet_analysis_;
00051 HLTMuon muon_analysis_;
00052 HLTEgamma elm_analysis_;
00053 HLTMCtruth mct_analysis_;
00054 HLTInfo hlt_analysis_;
00055
00056 edm::InputTag recjets_,genjets_,recmet_,genmet_,ht_, calotowers_,hltresults_,genEventScale_;
00057 edm::InputTag muon_;
00058 std::string l1extramc_, l1extramu_;
00059 edm::InputTag m_l1extramu;
00060 edm::InputTag m_l1extraemi;
00061 edm::InputTag m_l1extraemn;
00062 edm::InputTag m_l1extrajetc;
00063 edm::InputTag m_l1extrajetf;
00064 edm::InputTag m_l1extrataujet;
00065 edm::InputTag m_l1extramet;
00066
00067 edm::InputTag particleMapSource_,mctruth_;
00068 edm::InputTag gtReadoutRecord_,gtObjectMap_;
00069 edm::InputTag gctCounts_;
00070
00071 edm::InputTag MuCandTag2_,MuIsolTag2_,MuCandTag3_,MuIsolTag3_,MuLinkTag_;
00072 edm::InputTag HLTTau_;
00073
00074
00075 edm::InputTag m_rawBJets;
00076 edm::InputTag m_correctedBJets;
00077 edm::InputTag m_lifetimeBJetsL25;
00078 edm::InputTag m_lifetimeBJetsL3;
00079 edm::InputTag m_lifetimeBJetsL25Relaxed;
00080 edm::InputTag m_lifetimeBJetsL3Relaxed;
00081 edm::InputTag m_softmuonBJetsL25;
00082 edm::InputTag m_softmuonBJetsL3;
00083 edm::InputTag m_performanceBJetsL25;
00084 edm::InputTag m_performanceBJetsL3;
00085
00086
00087 edm::InputTag Electron_;
00088 edm::InputTag Photon_;
00089 edm::InputTag CandIso_;
00090 edm::InputTag CandNonIso_;
00091 edm::InputTag EcalIso_;
00092 edm::InputTag EcalNonIso_;
00093 edm::InputTag HcalIsoPho_;
00094 edm::InputTag HcalNonIsoPho_;
00095 edm::InputTag IsoPhoTrackIsol_;
00096 edm::InputTag NonIsoPhoTrackIsol_;
00097 edm::InputTag IsoElectron_;
00098 edm::InputTag NonIsoElectron_;
00099 edm::InputTag IsoEleHcal_;
00100 edm::InputTag NonIsoEleHcal_;
00101 edm::InputTag IsoEleTrackIsol_;
00102 edm::InputTag NonIsoEleTrackIsol_;
00103 edm::InputTag IsoElectronLW_;
00104 edm::InputTag NonIsoElectronLW_;
00105 edm::InputTag IsoEleTrackIsolLW_;
00106 edm::InputTag NonIsoEleTrackIsolLW_;
00107 edm::InputTag L1IsoPixelSeeds_;
00108 edm::InputTag L1NonIsoPixelSeeds_;
00109 edm::InputTag L1IsoPixelSeedsLW_;
00110 edm::InputTag L1NonIsoPixelSeedsLW_;
00111
00112 int errCnt;
00113 const int errMax(){return 100;}
00114
00115 string _HistName;
00116 double _EtaMin,_EtaMax;
00117 TFile* m_file;
00118
00119 };