|
|
Go to the documentation of this file.
24 ZSFIRWeights_(nFIRTaps, 0.),
33 std::vector<double> normWeights(
_params.getUntrackedParameter<std::vector<double> >(
"ZSFIRWeights"));
52 vector<double> normWeights;
53 for (vector<float>::iterator it(
weights[0].begin()); it !=
weights[0].end(); it++)
54 normWeights.push_back(*it);
58 edm::LogWarning(
"EcalDQM") <<
"SelectiveReadoutTask: DCC weight set is not exactly 1.";
72 float ebSize(0.), eemSize(0.), eepSize(0.);
75 for (
int iFED(601); iFED <= 654; iFED++) {
94 std::vector<short>
const& feStatus(dcchItr->getFEStatus());
95 unsigned nFE(feStatus.size());
96 for (
unsigned iFE(0); iFE < nFE; ++iFE)
98 suppressed_.insert(std::make_pair(dcchItr->id(), iFE + 1));
102 template <
typename SRFlagCollection>
104 MESet& meFlagCounterMap(
MEs_.
at(
"FlagCounterMap"));
105 MESet& meFullReadoutMap(
MEs_.
at(
"FullReadoutMap"));
114 int flag(srf.value());
147 template <
typename DigiCollection>
151 MESet& meHighIntPayload(
MEs_.
at(
"HighIntPayload"));
154 MESet& meZSFullReadoutMap(
MEs_.
at(
"ZSFullReadoutMap"));
159 bool isEB(_collection ==
kEBDigi);
164 std::vector<unsigned> sizes(nTower, 0);
166 int nHighInt[] = {0, 0};
167 int nLowInt[] = {0, 0};
169 for (
typename DigiCollection::const_iterator digiItr(_digis.begin()); digiItr != _digis.end(); ++digiItr) {
170 DetId const&
id(digiItr->id());
194 bool gain12saturated(
false);
195 const int gain12(0x01);
197 for (
int iWeight(0); iWeight <
nFIRTaps; ++iWeight) {
200 if (iSample >= 0 && iSample <
frame.size()) {
202 if (
sample.gainId() != gain12) {
203 gain12saturated =
true;
208 edm::LogWarning(
"EcalDQM") <<
"SelectiveReadoutTask: Not enough samples in data frame or "
209 "'ecalDccZs1stSample' module parameter is not valid";
216 ZSFIRValue /= (0x1 << 8);
243 meHighIntPayload.fill(
251 for (
unsigned iTower(0); iTower < nTower; ++iTower, ++iRU) {
273 bool ruFullyReadout(sizes[iTower] ==
GetElectronicsMap()->dccTowerConstituents(dccid, towerid).
size());
289 throw cms::Exception(
"InvalidConfiguration") <<
"weightsForZsFIR" << std::endl;
291 bool notNormalized(
false), notInt(
false);
292 for (std::vector<double>::const_iterator it(_normWeights.begin()); it != _normWeights.end(); ++it) {
294 notNormalized =
true;
298 if (notInt && notNormalized) {
299 throw cms::Exception(
"InvalidConfiguration") <<
"weigtsForZsFIR paramater values are not valid: they "
300 <<
"must either be integer and uses the hardware representation "
301 <<
"of the weights or less or equal than 1 and used the normalized "
302 <<
"representation.";
312 const int maxWeight(0xEFF);
std::vector< T >::const_iterator const_iterator
void addDependencies(DependencySet &) override
virtual void fill(EcalDQMSetupObjects const, DetId const &, double=1., double=1., double=1.)
std::vector< int > ZSFIRWeights_
static EcalScDetId unhashIndex(int hi)
Log< level::Warning, false > LogWarning
const EcalElectronicsMapping * GetElectronicsMap()
void runOnDigis(DigiCollection const &, Collections)
unsigned towerId(DetId const &, EcalElectronicsMapping const *)
EcalTrigTowerDetId tower() const
get the HCAL/trigger iphi of this crystal
const_iterator begin() const
const FEDRawData & FEDData(int fedid) const
retrieve data for fed
std::set< std::pair< int, int > > suppressed_
void runOnSrFlags(SRFlagCollection const &, Collections)
const_iterator end() const
void setFIRWeights_(std::vector< double > const &)
MESet & at(const std::string &key)
void push_back(Dependency const &_d)
int hashedIndex() const
get a compact index for arrays [TODO: NEEDS WORK]
void runOnRawData(EcalRawDataCollection const &)
Container::value_type value_type
void beginRun(edm::Run const &, edm::EventSetup const &) override
void runOnSource(FEDRawDataCollection const &)
size_t size() const
Lenght of the data buffer in bytes.
unsigned dccId(DetId const &, EcalElectronicsMapping const *)
const EcalDQMSetupObjects getEcalDQMSetupObjects()
std::vector< std::vector< float > > dccNormalizedWeights_
void beginEvent(edm::Event const &, edm::EventSetup const &, bool const &, bool &) override
static const int SRF_FULL
static EcalTrigTowerDetId detIdFromDenseIndex(uint32_t di)
#define DEFINE_ECALDQM_WORKER(TYPE)
Abs< T >::type abs(const T &t)
void setParams(edm::ParameterSet const &) override
static const int SRF_FORCED_MASK
std::vector< short > flags_