|
| RctInputTextToDigi (const edm::ParameterSet &) |
|
| ~RctInputTextToDigi () |
|
| EDProducer () |
|
ModuleDescription const & | moduleDescription () const |
|
virtual | ~EDProducer () |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
|
| ProducerBase () |
|
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, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel) |
|
virtual | ~ProducerBase () noexcept(false) |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
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 & | itemsToGetFromEvent () 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 |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
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 54 of file RctInputTextToDigi.cc.
References funct::abs(), 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(), HcalTriggerPrimitiveDigi::setSize(), EcalTriggerPrimitiveDigi::setSize(), and AlCaHLTBitMon_QueryRunRegistry::string.
69 std::unique_ptr<EcalTrigPrimDigiCollection>
71 std::unique_ptr<HcalTrigPrimDigiCollection>
73 ecalTPs->reserve(56*72);
74 hcalTPs->reserve(56*72+18*8);
75 const int nEcalSamples = 1;
76 const int nHcalSamples = 1;
88 unsigned short junk_counter = 0;
100 if((junk_counter == 11) && (junk.compare(
"1-32") == 0))
106 while (junk.compare(
"LUTOut") != 0);
107 std::cout <<
"Skipped file header" << std::endl;
109 else {
std::cout <<
"oldVersion_ FALSE (tower 0-31)" << std::endl;}
114 for (
int i = 0;
i < 72;
i++)
117 for (
int j = 0; j < 56; j++)
123 unsigned short crate;
125 unsigned short tower;
129 inputStream_ >> std::hex >> fileEventNumber >> crate >> card
131 >> eAddr >> hAddr >> junk >>
std::dec;
137 int encodedEtEcal = (
int) (eAddr>>1);
138 bool fineGrainEcal = (bool) (eAddr&1);
139 int encodedEtHcal = (
int) (hAddr>>1);
140 bool fineGrainHcal = (bool) (hAddr&1);
150 iPhi = ((72 + 18 - iPhi) % 72);
151 if (iPhi == 0) {iPhi = 72;}
152 unsigned absIeta =
abs(iEta);
153 int zSide = (iEta/absIeta);
166 ecalDigi.setSize(nEcalSamples);
173 ecalTPs->push_back(ecalDigi);
178 hcalDigi.setSize(nHcalSamples);
185 hcalTPs->push_back(hcalDigi);
190 for (
int i = 0;
i < 18;
i++)
192 for (
int j = 0; j < 8; j++)
195 int hfIEta = (j%4)+29;
198 hfIEta = hfIEta*(-1);
202 int hfIPhi = (
i%9)*8 + (j/4)*4 + 1;
208 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