54 : minBunch_(0), maxBunch_(0), tag_(
InputTag()) {
59 std::unique_ptr<TH1F> histoName(
new TH1F(
"h",
"", 10, 0, 10));
63 input_ = std::make_unique<edm::PileUp>(
84 using namespace std::placeholders;
106 std::cout <<
"-> The std::vector<EventPrincipalVector> of the secondary source 'input' has been filled with "
116 std::cout <<
"-> Get the event: id " << ep.
id() << std::endl;
120 std::cout <<
"-> Will try to get the branch with the tag : " <<
tag_ << std::endl;
121 std::cout <<
" and the EventPrincipal ep with a size = " << ep.
size() << std::endl;
127 std::shared_ptr<Wrapper<std::vector<SimTrack> >
const> shPtr =
128 getProductByTag<std::vector<SimTrack> >(ep,
tag_, &moduleCallingContext);
131 std::cout <<
"-> Could get SimTrack !" << std::endl;
133 std::cout <<
"-> Could not get SimTrack !" << std::endl;
140 std::shared_ptr<Wrapper<PCrossingFrame<SimTrack> >
const> shPtr =
141 getProductByTag<PCrossingFrame<SimTrack> >(ep,
tag_, &moduleCallingContext);
144 std::cout <<
"-> Could get PCrossingFrame<SimTrack> !" << std::endl;
146 std::cout <<
"-> Could not get PCrossingFrame<SimTrack> !" << std::endl;
void analyze(const edm::Event &, const edm::EventSetup &) override
tuple averageNumber
set the number of pileup
ModuleDescription const & moduleDescription() const
std::unique_ptr< PileUp > input_
EventID const & id() const
bool getBranches(EventPrincipal const &ep, ModuleCallingContext const *)
bool dummyFunction(EventPrincipal const &ep)
ModuleCallingContext const * moduleCallingContext() const
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
SecSourceAnalyzer(const edm::ParameterSet &)
~SecSourceAnalyzer() override
T getParameter(std::string const &) const
StreamID streamID() const
std::vector< std::vector< edm::SecondaryEventIDAndFileInfo > > vectorEventIDs_