#include <EcalFEtoDigi.h>
Public Member Functions | |
EcalFEtoDigi (const edm::ParameterSet &) | |
~EcalFEtoDigi () | |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Public Member Functions inherited from edm::EDConsumerBase | |
EDConsumerBase () | |
ProductHolderIndex | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Private Member Functions | |
virtual void | beginJob () |
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... | |
virtual void | endJob () |
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... | |
virtual void | produce (edm::Event &, const edm::EventSetup &) |
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 | |
std::string | basename_ |
bool | debug_ |
int | fileEventOffset_ |
TCCInputData | inputdata_ [N_SM] |
std::ofstream | outfile |
bool | singlefile |
int | sm_ |
bool | useIdentityLUT_ |
Additional Inherited Members | |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
typedef WorkerT< EDProducer > | WorkerType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Static Public Member Functions inherited from edm::EDProducer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::EDProducer | |
CurrentProcessingContext const * | currentContext () const |
Protected Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
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 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) |
Definition at line 36 of file EcalFEtoDigi.h.
|
explicit |
Definition at line 7 of file EcalFEtoDigi.cc.
References basename_, debug_, fileEventOffset_, edm::ParameterSet::getUntrackedParameter(), singlefile, sm_, AlCaHLTBitMon_QueryRunRegistry::string, and useIdentityLUT_.
|
inline |
Definition at line 41 of file EcalFEtoDigi.h.
|
privatevirtual |
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::EDProducer.
Definition at line 295 of file EcalFEtoDigi.cc.
References debug_, edm::hlt::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 237 of file EcalFEtoDigi.cc.
References create_TTDetId(), debug_, TCCinput::get_energy(), TCCinput::get_fg(), getLUT(), i, TCCinput::input, DetId::rawId(), and useIdentityLUT_.
Referenced by produce().
|
private |
create EcalTriggerPrimitiveSample in tcp format (uncomrpessed energy)
setup look up table
Definition at line 270 of file EcalFEtoDigi.cc.
References create_TTDetId(), TCCinput::get_energy(), TCCinput::get_fg(), getLUT(), i, DetId::rawId(), and useIdentityLUT_.
Referenced by produce().
|
private |
create EcalTrigTowerDetId from input data (line)
construct the EcalTrigTowerDetId object
Definition at line 203 of file EcalFEtoDigi.cc.
References debug_, EcalBarrel, TCCinput::get_energy(), sm_, and TCCinput::tower.
Referenced by create_TPSample(), create_TPSampleTcp(), and produce().
|
privatevirtual |
method called once each job just after ending the event loop
Reimplemented from edm::EDProducer.
Definition at line 314 of file EcalFEtoDigi.cc.
References outfile.
|
private |
return the LUT from eventSetup
Definition at line 328 of file EcalFEtoDigi.cc.
References edm::EventSetup::get(), edm::eventsetup::EventSetupRecord::get(), i, and edm::ESHandle< class >::product().
Referenced by create_TPSample(), and create_TPSampleTcp().
|
privatevirtual |
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::EDProducer.
Definition at line 23 of file EcalFEtoDigi.cc.
References begin, EcalTriggerPrimitiveDigi::compressedEt(), gather_cfg::cout, create_TPSample(), create_TPSampleTcp(), create_TTDetId(), debug_, fileEventOffset_, EcalTriggerPrimitiveDigi::fineGrain(), i, EcalTriggerPrimitiveDigi::id(), EcalTrigTowerDetId::ieta(), inputdata_, EcalTrigTowerDetId::iphi(), N_SM, outfile, edm::Event::put(), EcalTriggerPrimitiveDigi::setSample(), EcalTriggerPrimitiveDigi::setSize(), singlefile, EcalTriggerPrimitiveDigi::size(), sm_, and EcalTriggerPrimitiveDigi::ttFlag().
|
private |
open and read in input (flat) data file
Definition at line 139 of file EcalFEtoDigi.cc.
References prof2calltree::back, basename_, hitfit::clear(), gather_cfg::cout, debug_, f, fileEventOffset_, i, inputdata_, N_SM, alignCSCRings::s, singlefile, sm_, SMidToTCCid(), and groupFilesInBlocks::tt.
Referenced by beginJob(), and parserPerfsuiteMetadata.parserPerfsuiteMetadata::readCmsScimarkTest().
|
private |
translate input supermodule id into TCC id (barrel)
Definition at line 321 of file EcalFEtoDigi.cc.
Referenced by readInput().
|
private |
Definition at line 58 of file EcalFEtoDigi.h.
Referenced by EcalFEtoDigi(), and readInput().
|
private |
Definition at line 64 of file EcalFEtoDigi.h.
Referenced by beginJob(), create_TPSample(), create_TTDetId(), EcalFEtoDigi(), produce(), and readInput().
|
private |
Definition at line 63 of file EcalFEtoDigi.h.
Referenced by EcalFEtoDigi(), produce(), and readInput().
|
private |
Definition at line 56 of file EcalFEtoDigi.h.
Referenced by produce(), and readInput().
|
private |
Definition at line 65 of file EcalFEtoDigi.h.
Referenced by beginJob(), endJob(), and produce().
|
private |
Definition at line 61 of file EcalFEtoDigi.h.
Referenced by EcalFEtoDigi(), produce(), and readInput().
|
private |
Definition at line 60 of file EcalFEtoDigi.h.
Referenced by beginJob(), create_TTDetId(), EcalFEtoDigi(), produce(), and readInput().
|
private |
Definition at line 59 of file EcalFEtoDigi.h.
Referenced by create_TPSample(), create_TPSampleTcp(), and EcalFEtoDigi().