#include <EcalFEtoDigi.h>
Private Member Functions | |
void | beginJob () override |
method called once each job just before starting event loop More... | |
EcalTriggerPrimitiveSample | create_TPSample (TCCinput, const edm::EventSetup &) |
create EcalTriggerPrimitiveSample from input data (line) More... | |
EcalTriggerPrimitiveSample | create_TPSampleTcp (TCCinput, const edm::EventSetup &) |
create EcalTriggerPrimitiveSample in tcp format (uncomrpessed energy) More... | |
EcalTrigTowerDetId | create_TTDetId (TCCinput) |
create EcalTrigTowerDetId from input data (line) More... | |
void | endJob () override |
method called once each job just after ending the event loop More... | |
void | getLUT (unsigned int *lut, const int towerId, const edm::EventSetup &) const |
return the LUT from eventSetup More... | |
void | produce (edm::Event &, const edm::EventSetup &) override |
method called to produce the data More... | |
void | readInput () |
open and read in input (flat) data file More... | |
int | SMidToTCCid (const int) const |
translate input supermodule id into TCC id (barrel) More... | |
Private Attributes | |
const std::string | basename_ |
const bool | debug_ |
const int | fileEventOffset_ |
TCCInputData | inputdata_ [N_SM] |
std::ofstream | outfile |
bool | singlefile |
int | sm_ |
const edm::ESGetToken< EcalTPGLutGroup, EcalTPGLutGroupRcd > | tpgLutGroupToken_ |
const edm::ESGetToken< EcalTPGLutIdMap, EcalTPGLutIdMapRcd > | tpgLutIdMapToken_ |
const bool | useIdentityLUT_ |
Additional Inherited Members | |
Public Types inherited from edm::one::EDProducerBase | |
typedef EDProducerBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > > |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::one::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::ProducerBase | |
template<Transition Tr = Transition::Event> | |
auto | produces (std::string instanceName) noexcept |
declare what type of product will make and with which optional label More... | |
template<Transition B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<BranchType B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces () |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces () |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces () |
template<Transition Tr = Transition::Event> | |
auto | produces () noexcept |
ProducesCollector | producesCollector () |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
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<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
void | resetItemsToGetFrom (BranchType iType) |
Definition at line 38 of file EcalFEtoDigi.h.
|
explicit |
Definition at line 3 of file EcalFEtoDigi.cc.
References singlefile, and sm_.
|
inlineoverride |
Definition at line 41 of file EcalFEtoDigi.h.
|
overrideprivatevirtual |
method called once each job just before starting event loop
check SM numbering convetion: 1-38 [or -1 flag to indicate all sm's are to be read in]
debug: open file for recreating input copy
Reimplemented from edm::one::EDProducerBase.
Definition at line 277 of file EcalFEtoDigi.cc.
References debug_, Exception, outfile, readInput(), and sm_.
|
private |
create EcalTriggerPrimitiveSample from input data (line)
setup look up table
compress energy 10 -> 8 bit
crate sample
Definition at line 216 of file EcalFEtoDigi.cc.
References create_TTDetId(), data, debug_, getLUT(), mps_fire::i, DetId::rawId(), hgcalTowerProducer_cfi::tower, and useIdentityLUT_.
Referenced by produce().
|
private |
create EcalTriggerPrimitiveSample in tcp format (uncomrpessed energy)
setup look up table
Definition at line 254 of file EcalFEtoDigi.cc.
References create_TTDetId(), data, getLUT(), mps_fire::i, DetId::rawId(), hgcalTowerProducer_cfi::tower, and useIdentityLUT_.
Referenced by produce().
|
private |
create EcalTrigTowerDetId from input data (line)
construct the EcalTrigTowerDetId object
Definition at line 177 of file EcalFEtoDigi.cc.
References data, debug_, EcalBarrel, sm_, and ecaldqm::zside().
Referenced by create_TPSample(), create_TPSampleTcp(), and produce().
|
overrideprivatevirtual |
method called once each job just after ending the event loop
Reimplemented from edm::one::EDProducerBase.
Definition at line 291 of file EcalFEtoDigi.cc.
References outfile.
|
private |
return the LUT from eventSetup
Definition at line 300 of file EcalFEtoDigi.cc.
References edm::EventSetup::getData(), mps_fire::i, ecaldqm::towerId(), tpgLutGroupToken_, and tpgLutIdMapToken_.
Referenced by create_TPSample(), and create_TPSampleTcp().
|
overrideprivatevirtual |
method called to produce the data
event counter
re-read input (needed in case of event-by-event input production)
create EcalTrigTowerDetId
create EcalTriggerPrimitiveDigi
create EcalTriggerPrimitiveSample
set sample
add to EcalTrigPrimDigiCollection
set sample (uncompressed format)
add to EcalTrigPrimDigiCollection (uncompressed format)
print & debug
in case no info was found for the event:need to create something
Implements edm::one::EDProducerBase.
Definition at line 18 of file EcalFEtoDigi.cc.
References EcalTriggerPrimitiveDigi::compressedEt(), gather_cfg::cout, create_TPSample(), create_TPSampleTcp(), create_TTDetId(), debug_, TauDecayModes::dec, fileEventOffset_, EcalTriggerPrimitiveDigi::fineGrain(), mps_fire::i, EcalTriggerPrimitiveDigi::id(), EcalTrigTowerDetId::ieta(), iEvent, inputdata_, EcalTrigTowerDetId::iphi(), eostools::move(), N_SM, outfile, EcalTriggerPrimitiveDigi::setSample(), EcalTriggerPrimitiveDigi::setSize(), singlefile, EcalTriggerPrimitiveDigi::size(), sm_, and EcalTriggerPrimitiveDigi::ttFlag().
|
private |
open and read in input (flat) data file
Definition at line 109 of file EcalFEtoDigi.cc.
References basename_, simKBmtfDigis_cfi::bx, clear(), gather_cfg::cout, debug_, TauDecayModes::dec, f, fileEventOffset_, mps_fire::i, inputdata_, N_SM, alignCSCRings::s, singlefile, sm_, SMidToTCCid(), groupFilesInBlocks::tt, and heppy_batch::val.
Referenced by beginJob().
|
private |
translate input supermodule id into TCC id (barrel)
Definition at line 297 of file EcalFEtoDigi.cc.
Referenced by readInput().
|
private |
Definition at line 60 of file EcalFEtoDigi.h.
Referenced by readInput().
|
private |
Definition at line 66 of file EcalFEtoDigi.h.
Referenced by beginJob(), create_TPSample(), create_TTDetId(), produce(), and readInput().
|
private |
Definition at line 65 of file EcalFEtoDigi.h.
Referenced by produce(), and readInput().
|
private |
Definition at line 58 of file EcalFEtoDigi.h.
Referenced by produce(), and readInput().
|
private |
Definition at line 67 of file EcalFEtoDigi.h.
Referenced by beginJob(), endJob(), and produce().
|
private |
Definition at line 63 of file EcalFEtoDigi.h.
Referenced by EcalFEtoDigi(), produce(), and readInput().
|
private |
Definition at line 62 of file EcalFEtoDigi.h.
Referenced by beginJob(), create_TTDetId(), EcalFEtoDigi(), produce(), and readInput().
|
private |
Definition at line 55 of file EcalFEtoDigi.h.
Referenced by getLUT().
|
private |
Definition at line 56 of file EcalFEtoDigi.h.
Referenced by getLUT().
|
private |
Definition at line 61 of file EcalFEtoDigi.h.
Referenced by create_TPSample(), and create_TPSampleTcp().