|
| L1TS2PFJetInputPatternWriter (const edm::ParameterSet &) |
|
| ~L1TS2PFJetInputPatternWriter () override |
|
| EDAnalyzer ()=default |
|
| EDAnalyzer (const EDAnalyzer &)=delete |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
|
SerialTaskQueue * | globalRunsQueue () final |
|
const EDAnalyzer & | operator= (const EDAnalyzer &)=delete |
|
bool | wantsGlobalLuminosityBlocks () const final |
|
bool | wantsGlobalRuns () const final |
|
bool | wantsInputProcessBlocks () const final |
|
bool | wantsProcessBlocks () const final |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzerBase () |
|
ModuleDescription const & | moduleDescription () const |
|
bool | wantsStreamLuminosityBlocks () const |
|
bool | wantsStreamRuns () const |
|
| ~EDAnalyzerBase () override |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
|
std::vector< ESProxyIndex > const & | esGetTokenIndicesVector (edm::Transition iTrans) const |
|
std::vector< ESRecordIndex > const & | esGetTokenRecordIndicesVector (edm::Transition iTrans) const |
|
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 & | itemsToGetFrom (BranchType iType) const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase) |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDAnalyzerBase | ModuleType |
|
typedef ProductLabels | Labels |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
|
template<BranchType B = InEvent> |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
|
template<BranchType B> |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
|
ConsumesCollector | consumesCollector () |
| Use a ConsumesCollector to gather consumes information from helper functions. More...
|
|
template<typename ProductType , BranchType B = InEvent> |
void | consumesMany () |
|
void | consumesMany (const TypeToGet &id) |
|
template<BranchType B> |
void | consumesMany (const TypeToGet &id) |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<Transition Tr = Transition::Event> |
constexpr auto | esConsumes () noexcept |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
template<Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag tag) noexcept |
|
template<Transition Tr = Transition::Event> |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
| Used with EventSetupRecord::doGet. More...
|
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
Description:
Implementation:
Definition at line 58 of file L1TS2PFJetInputPatternWriter.cc.
Implements edm::one::EDAnalyzerBase.
Definition at line 139 of file L1TS2PFJetInputPatternWriter.cc.
147 std::vector<l1t::PFCandidate>
const& pfCands = *pfHandle;
149 std::vector<l1t::PFCandidate> pfPartsA;
150 std::vector<l1t::PFCandidate> pfPartsB;
152 for (
auto const& pfc : pfCands) {
155 pfPartsA.push_back(pfc);
158 pfPartsB.push_back(pfc);
161 if (pfPartsA.empty() && pfPartsB.empty())
168 for (
unsigned iQuad = 0; iQuad <
nQuad_; ++iQuad) {
169 for (
unsigned iChan = 0; iChan <
nChan_; ++iChan) {
171 data_.at(iLink).push_back(0);
183 for (
unsigned iQuad = 0; iQuad <
nQuad_; ++iQuad) {
184 for (
unsigned iChan = 0; iChan <
nChan_; ++iChan) {
191 if (iLink < 24 && pfPartsA.size() > iLink) {
198 if (iLink < 24 && pfPartsB.size() > iLink) {
References bit_shift_eta, bit_shift_phi, data, data_, dataValid_, eta_first_region_boundary, eta_second_region_boundary, etaLSB, framesPerFile, hash_bitmask_10, hash_bitmask_16, iEvent, mod_13_1, mod_13_2, n_first_empty_frames, n_latency_clocks, nChan_, nEvents_, nFrame_, nFrameFile_, nPayloadFrames_, nQuad_, pfToken_, phi_region_boundary, phiLSB, ptLSB, and parallelization::uint.
void L1TS2PFJetInputPatternWriter::endJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 220 of file L1TS2PFJetInputPatternWriter.cc.
228 unsigned int nOutFiles =
ceil((
float)
nEvents_ / (
float)evPerFile);
232 LogDebug(
"L1TDebug") <<
"Writing " << nOutFiles <<
" files" << std::endl;
233 LogDebug(
"L1TDebug") <<
"Output directory: ./" <<
outDir_ <<
"/" << std::endl;
236 std::vector<std::ofstream> outFiles(nOutFiles);
239 for (
uint itFile = 0; itFile < nOutFiles; ++itFile) {
240 std::stringstream outFilename;
242 outFiles[itFile] = std::ofstream(outFilename.str());
243 LogDebug(
"L1TDebug") <<
"Writing to file: ./" << outFilename.str() << std::endl;
245 outFiles[itFile] <<
"Board SRNTY_TEST" << std::endl;
248 outFiles[itFile] <<
" Quad/Chan : ";
251 outFiles[itFile] <<
" q" << setfill(
'0') << setw(2) <<
i <<
"c" <<
j <<
" ";
254 outFiles[itFile] << std::endl;
257 outFiles[itFile] <<
" Link : ";
260 outFiles[itFile] <<
" " << setfill(
'0') << setw(2) << (
i *
nChan_) +
j <<
" ";
264 outFiles[itFile] << std::endl;
267 unsigned iFileFrame = 0;
270 outFiles[itFile] <<
"Frame " <<
std::dec << std::setw(4) << std::setfill(
'0') << iFileFrame <<
" : ";
271 for (
unsigned iQuad = 0; iQuad <
nQuad_; ++iQuad) {
272 for (
unsigned iChan = 0; iChan <
nChan_; ++iChan) {
273 unsigned iLink = (iQuad *
nChan_) + iChan;
274 if (iLink <
data_.size() && iFrame <
data_.at(iLink).size()) {
275 outFiles[itFile] << std::hex << ::std::setw(1) <<
dataValid_.at(iFrame) <<
"v" << std::hex
276 << std::setw(16) << std::setfill(
'0') <<
data_.at(iLink).at(iFrame) <<
" ";
278 outFiles[itFile] << std::hex << ::std::setw(1) << 0 <<
"v" << std::hex << std::setw(16)
279 << std::setfill(
'0') << 0 <<
" ";
284 outFiles[itFile] << std::endl;
287 outFiles[itFile].close();
References reco::ceil(), data_, dataValid_, TauDecayModes::dec, filename_, framesPerFile, mps_fire::i, dqmiolumiharvest::j, LogDebug, nChan_, nClearFrames_, nEvents_, nFrame_, nHeaderFrames_, nPayloadFrames_, nQuad_, outDir_, and parallelization::uint.