|
| RctInputTextToDigi (const edm::ParameterSet &) |
|
| ~RctInputTextToDigi () override |
|
| EDProducer () |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () |
|
SerialTaskQueue * | globalRunsQueue () |
|
ModuleDescription const & | moduleDescription () const |
|
| ~EDProducer () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
|
| ProducerBase () |
|
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
|
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
|
std::function< void(BranchDescription const &)> | registrationCallback () const |
| used by the fwk to register list of products More...
|
|
void | resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
|
| ~ProducerBase () noexcept(false) 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 const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
ESProxyIndex const * | esGetTokenIndices (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::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDProducer | ModuleType |
|
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
|
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &descriptions) |
|
static bool | wantsGlobalLuminosityBlocks () |
|
static bool | wantsGlobalRuns () |
|
static bool | wantsStreamLuminosityBlocks () |
|
static bool | wantsStreamRuns () |
|
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 ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes () |
|
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> |
auto | esConsumes (ESInputTag const &tag) |
|
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) |
|
L1Trigger/TextToDigi/plugins/RctInputTextToDigi.h
Description: Creates an EcalTrigPrimDigiCollection and an HcalTrigPrimDigiCollection from a text file (formatted as read out from saveRCTInput module), for input to the L1Trigger/RegionalCaloTrigger module.
Definition at line 50 of file RctInputTextToDigi.h.
Definition at line 44 of file RctInputTextToDigi.cc.
References funct::abs(), electrons_cff::bool, L1RCTParameters::calcIEta(), L1RCTParameters::calcIPhi(), gather_cfg::cout, TauDecayModes::dec, EcalTriggerTower, edm::EventSetup::get(), mps_fire::i, inputStream_, createfilelist::int, lookupTables_, eostools::move(), nEvent_, oldVersion_, edm::ESHandle< T >::product(), edm::Event::put(), alignCSCRings::r, L1RCTLookupTables::rctParameters(), L1RCTLookupTables::setRCTParameters(), EcalTriggerPrimitiveDigi::setSample(), HcalTriggerPrimitiveDigi::setSample(), EcalTriggerPrimitiveDigi::setSize(), HcalTriggerPrimitiveDigi::setSize(), and AlCaHLTBitMon_QueryRunRegistry::string.
60 std::unique_ptr<EcalTrigPrimDigiCollection> ecalTPs(
62 std::unique_ptr<HcalTrigPrimDigiCollection> hcalTPs(
64 ecalTPs->reserve(56 * 72);
65 hcalTPs->reserve(56 * 72 + 18 * 8);
66 const int nEcalSamples = 1;
67 const int nHcalSamples = 1;
78 unsigned short junk_counter = 0;
90 if ((junk_counter == 11) && (junk ==
"1-32")) {
94 }
while (junk !=
"LUTOut");
95 std::cout <<
"Skipped file header" << std::endl;
97 std::cout <<
"oldVersion_ TRUE (tower 1-32)" << std::endl;
99 std::cout <<
"oldVersion_ FALSE (tower 0-31)" << std::endl;
105 for (
int i = 0;
i < 72;
i++) {
107 for (
int j = 0; j < 56; j++) {
112 unsigned short crate;
114 unsigned short tower;
118 inputStream_ >> std::hex >> fileEventNumber >> crate >> card >> tower >>
124 int encodedEtEcal = (
int)(eAddr >> 1);
125 bool fineGrainEcal = (
bool)(eAddr & 1);
126 int encodedEtHcal = (
int)(hAddr >> 1);
127 bool fineGrainHcal = (
bool)(hAddr & 1);
137 iPhi = ((72 + 18 - iPhi) % 72);
141 unsigned absIeta =
abs(iEta);
142 int zSide = (iEta / absIeta);
154 ecalDigi.setSize(nEcalSamples);
161 ecalTPs->push_back(ecalDigi);
165 hcalDigi.setSize(nHcalSamples);
171 hcalTPs->push_back(hcalDigi);
176 for (
int i = 0;
i < 18;
i++) {
177 for (
int j = 0; j < 8; j++) {
179 int hfIEta = (j % 4) + 29;
181 hfIEta = hfIEta * (-1);
185 int hfIPhi = (
i % 9) * 8 + (j / 4) * 4 + 1;
190 hcalTPs->push_back(hfDigi);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
edm::SortedCollection< HcalTriggerPrimitiveDigi > HcalTrigPrimDigiCollection
short calcIEta(unsigned short iCrate, unsigned short iCard, unsigned short iTower) const
Abs< T >::type abs(const T &t)
unsigned short calcIPhi(unsigned short iCrate, unsigned short iCard, unsigned short iTower) const
edm::SortedCollection< EcalTriggerPrimitiveDigi > EcalTrigPrimDigiCollection
L1RCTLookupTables * lookupTables_
std::ifstream inputStream_
const L1RCTParameters * rctParameters() const
void setRCTParameters(const L1RCTParameters *rctParameters)
T const * product() const