12 #include "TObjArray.h" 32 dictionary_[
"PEDESTAL_ONLINE_HIGH_GAIN_MEAN_ERROR"] = 0x1
34 dictionary_[
"PEDESTAL_ONLINE_HIGH_GAIN_RMS_ERROR"] = 0x1
124 "^[ ]*(Crystal|TT|PN)[ ]+(EB[0-9+-]*|EE[0-9+-]*|[0-9]+)[ " 125 "]+([0-9]+)[ ]([a-zA-Z_]+)");
129 std::getline(_input,
line);
133 if (!linePat.MatchB(
line))
137 TString channelType(
matches->At(1)->GetName());
139 unsigned channel(TString(
matches->At(3)->GetName()).Atoi());
140 TString statusName(
matches->At(4)->GetName());
143 std::map<std::string, uint32_t>::const_iterator dItr(
dictionary_.find(statusName.Data()));
146 uint32_t statusVal(dItr->second);
148 if (channelType ==
"Crystal") {
157 }
else if (
module ==
"EE") {
162 }
else if (channelType ==
"TT") {
167 if (
module.Contains(
"EB")) {
170 int iEta((channel - 1) / 4 + 1);
174 unsigned smNumber(std::atoi(
smName.substr(3).c_str()));
178 iPhi = 4 * (smNumber - 1) + (channel - 1) % 4 - 1;
181 iPhi = 4 * (smNumber - 1) + (68 - channel) % 4 - 1;
186 }
else if (
module.Contains(
"EE")) {
188 for (
unsigned iS(0); iS != scIds.size(); ++iS)
189 status_.insert(std::pair<uint32_t, uint32_t>(scIds[iS].rawId(), statusVal));
191 }
else if (channelType ==
"PN") {
194 unsigned iDCC(
module.Atoi() - 1);
215 barrelTowStatus[iC].getStatusCode()));
248 std::map<uint32_t, uint32_t>::const_iterator itr(
status_.find(_key));
static constexpr int kSizeForDenseIndexing
void writeToObj(EcalDQMChannelStatus &, EcalDQMTowerStatus &) const
static const int LED_MEAN_ERROR
static constexpr int kEBTotalTowers
static const int PEDESTAL_MIDDLE_GAIN_RMS_ERROR
static EcalTrigTowerDetId detIdFromDenseIndex(uint32_t di)
static const int LASER_MEAN_ERROR
static const int TESTPULSE_LOW_GAIN_RMS_ERROR
static const int PHYSICS_BAD_CHANNEL_WARNING
const Items & barrelItems() const
std::vector< Item > Items
static const int LASER_TIMING_RMS_ERROR
static const int PEDESTAL_HIGH_GAIN_MEAN_ERROR
static const int PEDESTAL_ONLINE_HIGH_GAIN_RMS_ERROR
static EcalScDetId unhashIndex(int hi)
const Items & endcapItems() const
static const int PHYSICS_BAD_CHANNEL_ERROR
static const int TT_SIZE_ERROR
static const int CH_GAIN_SWITCH_ERROR
static const int TESTPULSE_MIDDLE_GAIN_MEAN_ERROR
static EEDetId unhashIndex(int hi)
static const int PEDESTAL_LOW_GAIN_RMS_ERROR
std::map< std::string, uint32_t > dictionary_
void setValue(const uint32_t id, const Item &item)
static const int PEDESTAL_HIGH_GAIN_RMS_ERROR
static const int STATUS_FLAG_ERROR
void setValue(const uint32_t id, const Item &item)
static const int TESTPULSE_MIDDLE_GAIN_RMS_ERROR
const Items & endcapItems() const
static constexpr int kSizeForDenseIndexing
static const int TESTPULSE_HIGH_GAIN_RMS_ERROR
unsigned dccId(DetId const &, EcalElectronicsMapping const *)
key
prepare the HTCondor submission files and eventually submit them
static const int LED_TIMING_MEAN_ERROR
const Items & barrelItems() const
static const int PEDESTAL_LOW_GAIN_MEAN_ERROR
static const int TESTPULSE_LOW_GAIN_MEAN_ERROR
std::string smName(unsigned)
void writeToStream(std::ostream &) const
constexpr uint32_t rawId() const
get the raw id
static const int LED_TIMING_RMS_ERROR
static const int CH_GAIN_ZERO_ERROR
static const int PEDESTAL_ONLINE_HIGH_GAIN_MEAN_ERROR
std::vector< Item > Items
static const int LASER_TIMING_MEAN_ERROR
static EBDetId unhashIndex(int hi)
get a DetId from a compact index for arrays
std::map< uint32_t, uint32_t > status_
void readFromStream(std::istream &, EcalElectronicsMapping const *)
static bool validDenseIndex(uint32_t din)
std::vector< EcalScDetId > getEcalScDetId(int DCCid, int DCC_Channel, bool ignoreSingleCrystal=true) const
static const int TT_ID_ERROR
uint32_t getStatus(uint32_t) const
static const int LED_RMS_ERROR
static const int PEDESTAL_MIDDLE_GAIN_MEAN_ERROR
static const int TESTPULSE_HIGH_GAIN_MEAN_ERROR
static const int LASER_RMS_ERROR
static const int CH_ID_ERROR
void readFromObj(EcalDQMChannelStatus const &, EcalDQMTowerStatus const &)
static bool validDenseIndex(uint32_t din)