|
void | analyze (const edm::Event &, const edm::EventSetup &) override |
|
void | beginJob () override |
|
void | endJob () override |
|
| HcalLuttoDB (const edm::ParameterSet &) |
|
| ~HcalLuttoDB () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () |
|
SerialTaskQueue * | globalRunsQueue () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
| ~EDAnalyzer () 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 |
|
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) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDAnalyzer | ModuleType |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &) |
|
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 ESProduct , Transition Tr = Transition::Event> |
auto | esConsumes (eventsetup::EventSetupRecordKey const &, 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) |
|
Description: <one line="" class="" summary>=""> R Implementation: <Notes on="" implementation>="">
Definition at line 56 of file HcalLuttoDB.cc.
void HcalLuttoDB::writeoutlut1 |
( |
HcalDetId |
id, |
|
|
HcalElectronicsId |
eid, |
|
|
const std::vector< unsigned short > & |
lut, |
|
|
std::ostream & |
os |
|
) |
| |
|
private |
Definition at line 140 of file HcalLuttoDB.cc.
References creationtag_, TauDecayModes::dec, HcalElectronicsId::fiberChanId(), HcalElectronicsId::fiberIndex(), formatRevision_, HcalForward, HcalElectronicsId::htrSlot(), HcalElectronicsId::htrTopBottom(), mps_fire::i, HcalElectronicsId::readoutVMECrateId(), and targetfirmware_.
142 os <<
"<CFGBrick> "<<std::endl;
143 os <<
" <Parameter name='IETA' type='int'>"<<
id.ieta()<<
"</Parameter>"<<std::endl;
144 os <<
" <Parameter name='IPHI' type='int'>"<<
id.iphi()<<
"</Parameter>"<<std::endl;
145 os <<
" <Parameter name='DEPTH' type='int'>"<<
id.depth()<<
"</Parameter>"<<std::endl;
146 os <<
" <Parameter name='CRATE' type='int'>"<<eid.
readoutVMECrateId()<<
"</Parameter>"<<std::endl;
147 os <<
" <Parameter name='SLOT' type='int'>"<<eid.
htrSlot()<<
"</Parameter>"<<std::endl;
148 os <<
" <Parameter name='TOPBOTTOM' type='int'>"<<eid.
htrTopBottom()<<
"</Parameter>"<<std::endl;
149 os <<
" <Parameter name='FIBER' type='int'>"<<eid.
fiberIndex()<<
"</Parameter>"<<std::endl;
150 os <<
" <Parameter name='FIBERCHAN' type='int'>"<<eid.
fiberChanId()<<
"</Parameter>"<<std::endl;
151 os <<
" <Parameter name='LUT_TYPE' type='int'>1</Parameter>"<<std::endl;
152 os <<
" <Parameter name='CREATIONTAG' type='string'>"<<
creationtag_<<
"</Parameter>"<<std::endl;
153 os <<
" <Parameter name='CREATIONSTAMP' type='string'>"<<
creationstamp_<<
"</Parameter>"<<std::endl;
154 os <<
" <Parameter name='FORMATREVISION' type='string'>"<<
formatRevision_<<
"</Parameter>"<<std::endl;
155 os <<
" <Parameter name='TARGETFIRMWARE' type='string'>"<<
targetfirmware_<<
"</Parameter>"<<std::endl;
156 int generalizedIndex=
id.ietaAbs()+1000*
id.depth()+10000*
id.iphi()+
157 ((
id.ieta()<0)?(0):(100))+((
id.subdet()==
HcalForward &&
id.ietaAbs()==29)?(4*10000):(0));
159 os <<
" <Parameter name='GENERALIZEDINDEX' type='int'>"<<generalizedIndex<<
"</Parameter>"<<std::endl;
162 md5_byte_t digest[16];
163 unsigned char tool[2];
165 for (
int i=0;
i<128;
i++) {
167 tool[1]=(
lut[
i]>>8)&0xFF;
168 md5_append(&md5er,tool,2);
170 md5_finish(&md5er,digest);
171 os <<
" <Parameter name='CHECKSUM' type='string'>";
172 for (
int i=0;
i<16;
i++) os << std::hex << (((
int)(digest[
i]))&0xFF);
173 os <<
"</Parameter>\n";
180 <<
"' luttype='1' elements='1' encoding='hex'>";
181 for (
int i=0; i<16; i++) *
oc_ << std::hex << (((
int)(digest[i]))&0xFF);
184 os <<
" <Data elements='128' encoding='hex'> "<<std::endl;
186 for(
int initr2 = 0; initr2 < 128; initr2++){
187 os<<
lut[initr2]<<
" ";
191 os <<
" </Data> "<<std::endl;
192 os <<
"</CFGBrick> "<<std::endl;
constexpr int htrTopBottom() const
get the htr top/bottom (1=top/0=bottom), valid for VME
std::string targetfirmware_
constexpr int htrSlot() const
get the htr slot
constexpr int readoutVMECrateId() const
get the readout VME crate number
constexpr int fiberIndex() const
get the fiber index. For VME 1-8 (which of eight fibers carried by a spigot), for uTCA fibers are zer...
std::string creationstamp_
constexpr int fiberChanId() const
get the fiber channel id (which of channels on a fiber)
static const int formatRevision_
Definition at line 197 of file HcalLuttoDB.cc.
References creationtag_, TauDecayModes::dec, formatRevision_, HcalElectronicsId::htrSlot(), HcalElectronicsId::htrTopBottom(), mps_fire::i, createfilelist::int, HcalElectronicsId::readoutVMECrateId(), HcalElectronicsId::slbChannelIndex(), HcalElectronicsId::slbSiteNumber(), and targetfirmware_.
199 os <<
"<CFGBrick> "<<std::endl;
200 os <<
" <Parameter name='IETA' type='int'>"<<
id.ieta()<<
"</Parameter>"<<std::endl;
201 os <<
" <Parameter name='IPHI' type='int'>"<<
id.iphi()<<
"</Parameter>"<<std::endl;
202 os <<
" <Parameter name='CRATE' type='int'>"<<eid.
readoutVMECrateId()<<
"</Parameter>"<<std::endl;
203 os <<
" <Parameter name='SLOT' type='int'>"<<eid.
htrSlot()<<
"</Parameter>"<<std::endl;
204 os <<
" <Parameter name='TOPBOTTOM' type='int'>"<<eid.
htrTopBottom()<<
"</Parameter>"<<std::endl;
205 os <<
" <Parameter name='SLB' type='int'>"<<eid.
slbSiteNumber()<<
"</Parameter>"<<std::endl;
206 os <<
" <Parameter name='SLBCHAN' type='int'>"<<eid.
slbChannelIndex()<<
"</Parameter>"<<std::endl;
207 os <<
" <Parameter name='LUT_TYPE' type='int'>2</Parameter>"<<std::endl;
208 os <<
" <Parameter name='CREATIONTAG' type='string'>"<<
creationtag_<<
"</Parameter>"<<std::endl;
209 os <<
" <Parameter name='CREATIONSTAMP' type='string'>"<<
creationstamp_<<
"</Parameter>"<<std::endl;
210 os <<
" <Parameter name='FORMATREVISION' type='string'>"<<
formatRevision_<<
"</Parameter>"<<std::endl;
211 os <<
" <Parameter name='TARGETFIRMWARE' type='string'>"<<
targetfirmware_<<
"</Parameter>"<<std::endl;
212 int generalizedIndex=
id.ietaAbs()+10000*
id.iphi()+
213 ((
id.ieta()<0)?(0):(100));
216 os <<
" <Parameter name='GENERALIZEDINDEX' type='int'>"<<generalizedIndex<<
"</Parameter>"<<std::endl;
221 md5_byte_t digest[16];
223 md5_append(&md5er,&(
lut[0]),1024);
224 md5_finish(&md5er,digest);
225 os <<
" <Parameter name='CHECKSUM' type='string'>";
226 for (
int i=0;
i<16;
i++) os << std::hex << (((
int)(digest[
i]))&0xFF);
227 os <<
"</Parameter>\n";
234 <<
"' luttype='2' elements='1' encoding='hex'>";
235 for (
int i=0; i<16; i++) *
oc_ << std::hex << (((
int)(digest[i]))&0xFF);
238 os <<
" <Data elements='1024' encoding='hex'> "<<std::endl;
240 for(
int initr2 = 0; initr2 < 1024; initr2++){
241 os<< (
int(
lut[initr2])&0xFF)<<
" ";
245 os <<
" </Data> "<<std::endl;
246 os <<
"</CFGBrick> "<<std::endl;
constexpr int slbChannelIndex() const
get the SLB channel index (valid only for VME trigger-chain ids)
constexpr int htrTopBottom() const
get the htr top/bottom (1=top/0=bottom), valid for VME
std::string targetfirmware_
constexpr int htrSlot() const
get the htr slot
constexpr int readoutVMECrateId() const
get the readout VME crate number
std::string creationstamp_
constexpr int slbSiteNumber() const
get the SLB site number (valid only for VME trigger-chain ids)
static const int formatRevision_