22 #include <boost/bind.hpp>
64 TH1F * histoName =
new TH1F(
"h",
"",10,0,10);
68 averageNumber,histoName,playback));
122 std::cout <<
"-> The std::vector<EventPrincipalVector> of the secondary source 'input' has been filled with "
124 <<
" bunch." << std::endl;
135 std::cout <<
"-> Get the event: id " << ep.
id() << std::endl;
139 std::cout <<
"-> Will try to get the branch with the tag : " <<
tag_ << std::endl;
140 std::cout <<
" and the EventPrincipal ep with a size = " << ep.
size() << std::endl;
146 boost::shared_ptr<Wrapper<std::vector<SimTrack> >
const> shPtr =
147 getProductByTag<std::vector<SimTrack> >(ep,
tag_, &moduleCallingContext);
150 std::cout <<
"-> Could get SimTrack !" << std::endl;
152 std::cout <<
"-> Could not get SimTrack !" << std::endl;
160 boost::shared_ptr<Wrapper<PCrossingFrame<SimTrack> >
const> shPtr =
161 getProductByTag<PCrossingFrame<SimTrack> >(ep,
tag_, &moduleCallingContext);
164 std::cout <<
"-> Could get PCrossingFrame<SimTrack> !" << std::endl;
166 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
std::vector< std::vector< edm::EventID > > vectorEventIDs_
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 &)
boost::shared_ptr< PileUp > input_
StreamID streamID() const
virtual void getBranches(EventPrincipal const &ep, ModuleCallingContext const *)