#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 | |
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::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<class ProductType > | |
BranchAliasSetterT< ProductType > | produces () |
declare what type of product will make and with which optional label More... | |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces () |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces () |
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) |
template<Transition B> | |
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 (std::string instanceName) |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
ProducesCollector | producesCollector () |
Protected Member Functions inherited from edm::EDConsumerBase | |
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> | |
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) |
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) |
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_.
|
inlineoverride |
Definition at line 39 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 280 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 219 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 257 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 180 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 294 of file EcalFEtoDigi.cc.
References outfile.
|
private |
return the LUT from eventSetup
Definition at line 303 of file EcalFEtoDigi.cc.
References edm::EventSetup::get(), edm::eventsetup::EventSetupRecordImplementation< T >::get(), get, EcalTPGGroups::getMap(), mps_fire::i, edm::ESHandle< T >::product(), and ecaldqm::towerId().
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 21 of file EcalFEtoDigi.cc.
References begin, 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 112 of file EcalFEtoDigi.cc.
References basename_, l1GtPatternGenerator_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 300 of file EcalFEtoDigi.cc.
Referenced by readInput().
|
private |
Definition at line 55 of file EcalFEtoDigi.h.
Referenced by EcalFEtoDigi(), and readInput().
|
private |
Definition at line 61 of file EcalFEtoDigi.h.
Referenced by beginJob(), create_TPSample(), create_TTDetId(), EcalFEtoDigi(), produce(), and readInput().
|
private |
Definition at line 60 of file EcalFEtoDigi.h.
Referenced by EcalFEtoDigi(), produce(), and readInput().
|
private |
Definition at line 53 of file EcalFEtoDigi.h.
Referenced by produce(), and readInput().
|
private |
Definition at line 62 of file EcalFEtoDigi.h.
Referenced by beginJob(), endJob(), and produce().
|
private |
Definition at line 58 of file EcalFEtoDigi.h.
Referenced by EcalFEtoDigi(), produce(), and readInput().
|
private |
Definition at line 57 of file EcalFEtoDigi.h.
Referenced by beginJob(), create_TTDetId(), EcalFEtoDigi(), produce(), and readInput().
|
private |
Definition at line 56 of file EcalFEtoDigi.h.
Referenced by create_TPSample(), create_TPSampleTcp(), and EcalFEtoDigi().