#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::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_.
|
inlineoverride |
Definition at line 41 of file EcalFEtoDigi.h.
References beginJob(), create_TPSample(), create_TPSampleTcp(), create_TTDetId(), endJob(), getLUT(), lumiPlot::lut, produce(), readInput(), SMidToTCCid(), and DataFormats::L1THGCal::towerId.
|
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 295 of file EcalFEtoDigi.cc.
References debug_, Exception, outfile, readInput(), and sm_.
Referenced by ~EcalFEtoDigi().
|
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(), mps_fire::i, TCCinput::input, DetId::rawId(), and useIdentityLUT_.
Referenced by produce(), and ~EcalFEtoDigi().
|
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(), mps_fire::i, DetId::rawId(), and useIdentityLUT_.
Referenced by produce(), and ~EcalFEtoDigi().
|
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_, TCCinput::tower, and ecaldqm::zside().
Referenced by create_TPSample(), create_TPSampleTcp(), produce(), and ~EcalFEtoDigi().
|
overrideprivatevirtual |
method called once each job just after ending the event loop
Reimplemented from edm::one::EDProducerBase.
Definition at line 314 of file EcalFEtoDigi.cc.
References outfile.
Referenced by ~EcalFEtoDigi().
|
private |
return the LUT from eventSetup
Definition at line 328 of file EcalFEtoDigi.cc.
References edm::EventSetup::get(), edm::eventsetup::EventSetupRecord::get(), EcalTPGGroups::getMap(), mps_fire::i, and edm::ESHandle< T >::product().
Referenced by create_TPSample(), create_TPSampleTcp(), and ~EcalFEtoDigi().
|
overrideprivate |
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
Definition at line 23 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(), inputdata_, EcalTrigTowerDetId::iphi(), eostools::move(), N_SM, outfile, edm::Event::put(), EcalTriggerPrimitiveDigi::setSample(), EcalTriggerPrimitiveDigi::setSize(), singlefile, EcalTriggerPrimitiveDigi::size(), sm_, and EcalTriggerPrimitiveDigi::ttFlag().
Referenced by ~EcalFEtoDigi().
|
private |
open and read in input (flat) data file
Definition at line 139 of file EcalFEtoDigi.cc.
References basename_, hitfit::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(), parserPerfsuiteMetadata.parserPerfsuiteMetadata::readCmsScimarkTest(), and ~EcalFEtoDigi().
|
private |
translate input supermodule id into TCC id (barrel)
Definition at line 321 of file EcalFEtoDigi.cc.
Referenced by readInput(), and ~EcalFEtoDigi().
|
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().