Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:23:28

0001 #ifndef __L1Analysis_L1AnalysisEvent_H__
0002 #define __L1Analysis_L1AnalysisEvent_H__
0003 
0004 //-------------------------------------------------------------------------------
0005 // Created 06/01/2010 - A.C. Le Bihan
0006 //
0007 //
0008 // Original code : L1Trigger/L1TNtuples/L1NtupleProducer
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     //void Print(std::ostream &os = std::cout) const;
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     // ---- General L1AnalysisEvent information.
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 }  // namespace L1Analysis
0058 #endif