64 std::unique_ptr<TH1F> histoName(
new TH1F(
"h",
"",10,0,10));
67 std::shared_ptr<PileUpConfig> conf(
new PileUpConfig(
"input",averageNumber,histoName,playback));
96 using namespace std::placeholders;
123 std::cout <<
"-> The std::vector<EventPrincipalVector> of the secondary source 'input' has been filled with "
125 <<
" bunch." << std::endl;
136 std::cout <<
"-> Get the event: id " << ep.
id() << std::endl;
140 std::cout <<
"-> Will try to get the branch with the tag : " <<
tag_ << std::endl;
141 std::cout <<
" and the EventPrincipal ep with a size = " << ep.
size() << std::endl;
147 std::shared_ptr<Wrapper<std::vector<SimTrack> >
const> shPtr =
148 getProductByTag<std::vector<SimTrack> >(ep,
tag_, &moduleCallingContext);
151 std::cout <<
"-> Could get SimTrack !" << std::endl;
153 std::cout <<
"-> Could not get SimTrack !" << std::endl;
161 std::shared_ptr<Wrapper<PCrossingFrame<SimTrack> >
const> shPtr =
162 getProductByTag<PCrossingFrame<SimTrack> >(ep,
tag_, &moduleCallingContext);
165 std::cout <<
"-> Could get PCrossingFrame<SimTrack> !" << std::endl;
167 std::cout <<
"-> Could not get PCrossingFrame<SimTrack> !" << std::endl;
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
T getParameter(std::string const &) const
virtual void dummyFunction(EventPrincipal const &ep)
EventID const & id() const
ModuleDescription const & moduleDescription() const
ModuleCallingContext const * moduleCallingContext() const
tuple averageNumber
set the number of pileup
SecSourceAnalyzer(const edm::ParameterSet &)
std::shared_ptr< PileUp > input_
StreamID streamID() const
std::vector< std::vector< edm::SecondaryEventIDAndFileInfo > > vectorEventIDs_
virtual void getBranches(EventPrincipal const &ep, ModuleCallingContext const *)