#include <SecSourceAnalyzer.h>
|
virtual void | dummyFunction (EventPrincipal const &ep) |
|
virtual void | getBranches (EventPrincipal const &ep, ModuleCallingContext const *) |
|
| SecSourceAnalyzer (const edm::ParameterSet &) |
|
virtual | ~SecSourceAnalyzer () |
|
| EDAnalyzer ()=default |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
virtual | ~EDAnalyzerBase () |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
|
std::vector
< ProductResolverIndexAndSkipBit >
const & | itemsToGetFromEvent () const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
Definition at line 40 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_, personalPlayback::playback, and AlCaHLTBitMon_QueryRunRegistry::string.
64 std::unique_ptr<TH1F> histoName(
new TH1F(
"h",
"",10,0,10));
T getParameter(std::string const &) const
tuple averageNumber
set the number of pileup
std::shared_ptr< PileUp > input_
SecSourceAnalyzer::~SecSourceAnalyzer |
( |
| ) |
|
|
virtual |
Implements edm::one::EDAnalyzerBase.
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_.
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;
virtual void dummyFunction(EventPrincipal const &ep)
ModuleCallingContext const * moduleCallingContext() const
std::shared_ptr< PileUp > input_
StreamID streamID() const
std::vector< std::vector< edm::SecondaryEventIDAndFileInfo > > vectorEventIDs_
virtual void getBranches(EventPrincipal const &ep, ModuleCallingContext const *)
void SecSourceAnalyzer::beginJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
virtual void edm::SecSourceAnalyzer::dummyFunction |
( |
EventPrincipal const & |
ep | ) |
|
|
inlinevirtual |
void SecSourceAnalyzer::endJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
Definition at line 128 of file SecSourceAnalyzer.cc.
References gather_cfg::cout, dataStep2_, edm::EventPrincipal::id(), HLT_FULL_cff::InputTag, label_, edm::one::EDAnalyzerBase::moduleDescription(), edm::Principal::size(), and tag_.
Referenced by analyze().
131 InternalContext internalContext(ep.id(), mcc);
132 ParentContext parentContext(&internalContext);
134 ModuleContextSentry moduleContextSentry(&moduleCallingContext, parentContext);
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;
160 tag_ =
InputTag(
"CFwriter",
"g4SimHits");
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;
ModuleDescription const & moduleDescription() const
bool edm::SecSourceAnalyzer::dataStep2_ |
|
private |
std::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 |