58 int averageNumber = 1;
60 TH1F * histoName =
new TH1F(
"h",
"",10,0,10);
97 std::cout <<
"-> The std::vector<EventPrincipalVector> of the secondary source 'input' has been filled with "
99 <<
" bunch." << std::endl;
110 std::cout <<
"-> Loop over EventPrincipalVector wich size is "<< vec.size() <<
"." << std::endl;
112 for (EventPrincipalVector::const_iterator it = vec.begin(); it != vec.end(); ++it) {
113 std::cout <<
"-> Get the event: id " << (*it)->id() << std::endl;
125 std::cout <<
"-> Will try to get the branch with the tag : " <<
tag_ << std::endl;
126 std::cout <<
" and the EventPrincipal ep with a size = " << ep->
size() << std::endl;
132 boost::shared_ptr<Wrapper<std::vector<SimTrack> >
const> shPtr =
133 getProductByTag<std::vector<SimTrack> >(*ep,
tag_);
136 std::cout <<
"-> Could get SimTrack !" << std::endl;
138 std::cout <<
"-> Could not get SimTrack !" << std::endl;
146 boost::shared_ptr<Wrapper<PCrossingFrame<SimTrack> >
const> shPtr =
147 getProductByTag<PCrossingFrame<SimTrack> >(*ep,
tag_);
150 std::cout <<
"-> Could get PCrossingFrame<SimTrack> !" << std::endl;
152 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_
std::vector< float > TrueNumInteractions_[5]
PileUp::EventPrincipalVector EventPrincipalVector
virtual void getBranches(EventPrincipal *ep)
virtual void analyze(const edm::Event &, const edm::EventSetup &)