#include <SecSourceAnalyzer.h>
|
virtual void | dummyFunction (EventPrincipal const &ep) |
|
virtual void | getBranches (EventPrincipal const &ep, ModuleCallingContext const *) |
|
| SecSourceAnalyzer (const edm::ParameterSet &) |
|
| ~SecSourceAnalyzer () |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
virtual | ~EDAnalyzer () |
|
| EDConsumerBase () |
|
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
std::vector
< ProductHolderIndexAndSkipBit >
const & | itemsToGetFromEvent () const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
|
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
|
virtual | ~EDConsumerBase () |
|
Definition at line 43 of file SecSourceAnalyzer.h.
Definition at line 55 of file SecSourceAnalyzer.cc.
References customise_phase1_hcal::averageNumber, dataStep2_, edm::ParameterSet::getParameter(), diJetCalib::histoFileName, input_, label_, Playback_cff::playback, and AlCaHLTBitMon_QueryRunRegistry::string.
64 TH1F * histoName =
new TH1F(
"h",
"",10,0,10);
68 averageNumber,histoName,playback));
T getParameter(std::string const &) const
tuple averageNumber
set the number of pileup
boost::shared_ptr< PileUp > input_
SecSourceAnalyzer::~SecSourceAnalyzer |
( |
| ) |
|
Implements edm::EDAnalyzer.
Definition at line 94 of file SecSourceAnalyzer.cc.
References gather_cfg::cout, dummyFunction(), getBranches(), edm::EventBase::id(), input_, maxBunch_, minBunch_, edm::Event::moduleCallingContext(), nevt, edm::Event::streamID(), and vectorEventIDs_.
122 std::cout <<
"-> The std::vector<EventPrincipalVector> of the secondary source 'input' has been filled with "
124 <<
" bunch." << std::endl;
std::vector< std::vector< edm::EventID > > vectorEventIDs_
virtual void dummyFunction(EventPrincipal const &ep)
ModuleCallingContext const * moduleCallingContext() const
boost::shared_ptr< PileUp > input_
StreamID streamID() const
virtual void getBranches(EventPrincipal const &ep, ModuleCallingContext const *)
void SecSourceAnalyzer::beginJob |
( |
void |
| ) |
|
|
privatevirtual |
virtual void edm::SecSourceAnalyzer::dummyFunction |
( |
EventPrincipal const & |
ep | ) |
|
|
inlinevirtual |
void SecSourceAnalyzer::endJob |
( |
void |
| ) |
|
|
privatevirtual |
Definition at line 127 of file SecSourceAnalyzer.cc.
References gather_cfg::cout, dataStep2_, edm::EventPrincipal::id(), label_, edm::EDAnalyzer::moduleDescription(), edm::Principal::size(), and tag_.
Referenced by analyze().
130 InternalContext internalContext(ep.id(), mcc);
131 ParentContext parentContext(&internalContext);
133 ModuleContextSentry moduleContextSentry(&moduleCallingContext, parentContext);
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;
159 tag_ = InputTag(
"CFwriter",
"g4SimHits");
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;
ModuleDescription const & moduleDescription() const
bool edm::SecSourceAnalyzer::dataStep2_ |
|
private |
boost::shared_ptr<PileUp> edm::SecSourceAnalyzer::input_ |
|
private |
int edm::SecSourceAnalyzer::maxBunch_ |
|
private |
int edm::SecSourceAnalyzer::minBunch_ |
|
private |
std::vector< float > edm::SecSourceAnalyzer::TrueNumInteractions_[5] |
|
private |
std::vector<std::vector<edm::EventID> > edm::SecSourceAnalyzer::vectorEventIDs_ |
|
private |