File indexing completed on 2024-04-06 12:30:37
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef SecSourceAnalyzer_h
0015 #define SecSourceAnalyzer_h
0016
0017
0018 #include <memory>
0019
0020
0021 #include "FWCore/Framework/interface/Frameworkfwd.h"
0022 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0023
0024 #include "FWCore/Framework/interface/Event.h"
0025 #include "FWCore/Framework/interface/MakerMacros.h"
0026
0027 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0028
0029 #include "DataFormats/Provenance/interface/EventID.h"
0030
0031 #include "Mixing/Base/interface/PileUp.h"
0032
0033
0034
0035
0036 namespace edm {
0037
0038 class ModuleCallingContext;
0039
0040 class SecSourceAnalyzer : public edm::one::EDAnalyzer<> {
0041 public:
0042 explicit SecSourceAnalyzer(const edm::ParameterSet&);
0043 ~SecSourceAnalyzer() override;
0044
0045 bool getBranches(EventPrincipal const& ep, ModuleCallingContext const*);
0046 bool dummyFunction(EventPrincipal const& ep) { return true; }
0047
0048 private:
0049 void beginJob() override;
0050 void analyze(const edm::Event&, const edm::EventSetup&) override;
0051 void endJob() override;
0052
0053
0054 int minBunch_;
0055 int maxBunch_;
0056
0057 bool dataStep2_;
0058 edm::InputTag label_;
0059
0060 std::vector<std::vector<edm::SecondaryEventIDAndFileInfo> > vectorEventIDs_;
0061
0062 std::unique_ptr<PileUp> input_;
0063 std::vector<float> TrueNumInteractions_[5];
0064
0065 InputTag tag_;
0066 };
0067 }
0068 #endif