58 int averageNumber = 1;
60 TH1F * histoName =
new TH1F(
"h",
"",10,0,10);
96 std::cout <<
"-> The std::vector<EventPrincipalVector> of the secondary source 'input' has been filled with "
98 <<
" bunch." << std::endl;
109 std::cout <<
"-> Loop over EventPrincipalVector wich size is "<< vec.size() <<
"." << std::endl;
111 for (EventPrincipalVector::const_iterator it = vec.begin(); it != vec.end(); ++it) {
112 std::cout <<
"-> Get the event: id " << (*it)->id() << std::endl;
124 std::cout <<
"-> Will try to get the branch with the tag : " <<
tag_ << std::endl;
125 std::cout <<
" and the EventPrincipal ep with a size = " << ep->
size() << std::endl;
131 boost::shared_ptr<Wrapper<std::vector<SimTrack> >
const> shPtr =
132 getProductByTag<std::vector<SimTrack> >(*ep,
tag_);
135 std::cout <<
"-> Could get SimTrack !" << std::endl;
137 std::cout <<
"-> Could not get SimTrack !" << std::endl;
145 boost::shared_ptr<Wrapper<PCrossingFrame<SimTrack> >
const> shPtr =
146 getProductByTag<PCrossingFrame<SimTrack> >(*ep,
tag_);
149 std::cout <<
"-> Could get PCrossingFrame<SimTrack> !" << std::endl;
151 std::cout <<
"-> Could not get PCrossingFrame<SimTrack> !" << std::endl;
T getParameter(std::string const &) const
std::vector< EventPrincipalVector > pileup_[5]
std::vector< std::vector< edm::EventID > > vectorEventIDs_
SecSourceAnalyzer(const edm::ParameterSet &)
virtual void Loop(const EventPrincipalVector &vec)
boost::shared_ptr< PileUp > input_
PileUp::EventPrincipalVector EventPrincipalVector
virtual void getBranches(EventPrincipal *ep)
virtual void analyze(const edm::Event &, const edm::EventSetup &)