13 const uint16_t& fe_unit,
14 const uint16_t& fe_chan,
15 const uint16_t& fed_apv)
96 if (fe_unit != 0 && fe_chan != 0) {
97 return (95 - (12 * (fe_unit - 1) + (fe_chan - 1)));
107 return ((95 - fed_ch) / 12 + 1);
116 return ((95 - fed_ch) % 12 + 1);
327 std::stringstream
dir;
374 if (curr != std::string::npos) {
381 if (curr != std::string::npos) {
385 fedId_ = atoi(fed_id.c_str());
389 if (curr != std::string::npos) {
392 feUnit_ = atoi(fe_unit.c_str());
396 if (curr != std::string::npos) {
399 feChan_ = atoi(fe_chan.c_str());
403 if (curr != std::string::npos) {
404 next = std::string::npos;
406 fedApv_ = atoi(fed_apv.c_str());
412 std::stringstream
ss;
460 ss <<
"FED:crate/slot/id/unit/chan/apv= " 483 ss <<
" [SiStripFedKey::print]" << std::endl
484 << std::hex <<
" FED key : 0x" << std::setfill(
'0') << std::setw(8) <<
key() << std::endl
485 << std::setfill(
' ') <<
std::dec <<
" FED id : " <<
fedId() << std::endl
486 <<
" Front-End unit : " <<
feUnit() << std::endl
487 <<
" Front-End chan : " <<
feChan() << std::endl
488 <<
" (internal chan) : " 490 <<
" FED APV : " <<
fedApv() << std::endl
491 <<
" Directory : " <<
path() << std::endl
493 <<
" Channel : " <<
channel() << std::endl
500 std::stringstream
ss;
const uint16_t & channel() const
static const char feDriver_[]
static const uint16_t feChanMask_
void print(std::stringstream &ss) const override
void initFromValue() override
static const uint16_t FED_ID_MIN
const uint16_t & fedApv() const
const uint16_t & feChan() const
static const uint16_t feUnitOffset_
void initFromPath() override
const uint16_t & feUnit() const
A container class for generic run and event-related info, information required by the commissioning a...
bool isInvalid() const override
Various generic constants used by DQM.
static const uint32_t invalid32_
const std::string & path() const
void initFromKey() override
static std::string granularity(const sistrip::Granularity &)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
static uint32_t fedIndex(const uint16_t &fed_id, const uint16_t &fed_ch)
std::ostream & operator<<(std::ostream &os, const SiStripFedKey &input)
Constants and enumerated types for sistrip::View.
static std::string const input
void terse(std::stringstream &ss) const override
bool isConsistent(const SiStripKey &) const override
uint16_t fedChannel() const
static const char fedApv_[]
static const uint16_t FEUNITS_PER_FED
const uint32_t & key() const
bool isEqual(const SiStripKey &) const override
Base utility class that identifies a position within a logical structure of the strip tracker...
key
prepare the HTCondor submission files and eventually submit them
static const uint16_t feUnitMask_
static const uint16_t fedIdOffset_
void initGranularity() override
static const uint16_t feChanOffset_
const uint16_t & fedId() const
static const char feChan_[]
static const uint16_t FEDCH_PER_FEUNIT
Constants and enumerated types for FED/FEC systems.
static const uint16_t invalid_
static const uint16_t FEDCH_PER_FED
static const char root_[]
static const char feUnit_[]
static const uint16_t fedApvMask_
static const uint16_t FED_ID_MAX
static uint16_t fedCh(const uint16_t &fe_unit, const uint16_t &fe_chan)
static const uint16_t fedIdMask_
static const uint16_t APVS_PER_FEDCH
static const char readoutView_[]
const sistrip::Granularity & granularity() const
static const uint16_t fedApvOffset_
static const char null_[]
bool isValid() const override