File indexing completed on 2024-04-06 12:21:11
0001 #ifndef __L1Analysis_L1AnalysisEvent_H__
0002 #define __L1Analysis_L1AnalysisEvent_H__
0003
0004
0005
0006
0007
0008
0009
0010
0011 #include "FWCore/Utilities/interface/EDGetToken.h"
0012
0013 #include "FWCore/Framework/interface/Event.h"
0014 #include "DataFormats/Common/interface/TriggerResults.h"
0015 #include "FWCore/Common/interface/TriggerNames.h"
0016
0017 #include "PhysicsTools/Utilities/interface/LumiReWeighting.h"
0018
0019 #include "L1AnalysisEventDataFormat.h"
0020
0021 #include "FWCore/Framework/interface/ConsumesCollector.h"
0022 #include "SimDataFormats/PileupSummaryInfo/interface/PileupSummaryInfo.h"
0023
0024 #include <string>
0025
0026 namespace L1Analysis {
0027 class L1AnalysisEvent {
0028 public:
0029 L1AnalysisEvent(std::string puMCFile,
0030 std::string puMCHist,
0031 std::string puDataFile,
0032 std::string puDataHist,
0033 bool useAvgVtx,
0034 double maxWeight,
0035 edm::ConsumesCollector&&);
0036 ~L1AnalysisEvent();
0037
0038
0039 void Set(const edm::Event& e, const edm::EDGetTokenT<edm::TriggerResults>& hlt_);
0040 void Reset() { event_.Reset(); }
0041 L1AnalysisEventDataFormat* getData() { return &event_; }
0042
0043
0044
0045 private:
0046 bool fillHLT_;
0047 bool doPUWeights_;
0048
0049 bool useAvgVtx_;
0050 double maxAllowedWeight_;
0051
0052 edm::LumiReWeighting lumiWeights_;
0053
0054 edm::EDGetTokenT<std::vector<PileupSummaryInfo>> pileupSummaryInfoToken_;
0055 L1Analysis::L1AnalysisEventDataFormat event_;
0056 };
0057 }
0058 #endif