35 LogError(
"DataMismatch") <<
" in EcalSampleMask::setEcalSampleMaskRecordEB size of ebmask (" << ebmask.size()
41 for (
unsigned int s = 0;
s < ebmask.size();
s++) {
42 if (ebmask.at(
s) == 0 || ebmask.at(
s) == 1) {
46 <<
"in EcalSampleMask::setEcalSampleMaskRecordEB ebmask can only have values 0 or 1, while " << ebmask.at(
s)
47 <<
" was found. Bailing out. " << std::endl;
56 for (
unsigned int sampleId = 0; sampleId < ebmask.size(); sampleId++) {
64 LogError(
"DataMismatch") <<
" in EcalSampleMask::setEcalSampleMaskRecordEE size of eemask (" << eemask.size()
70 for (
unsigned int s = 0;
s < eemask.size();
s++) {
71 if (eemask.at(
s) == 0 || eemask.at(
s) == 1) {
75 <<
"in EcalSampleMask::setEcalSampleMaskRecordEE eemask can only have values 0 or 1, while " << eemask.at(
s)
76 <<
" was found. Bailing out. " << std::endl;
85 for (
unsigned int sampleId = 0; sampleId < eemask.size(); sampleId++) {
93 <<
" can be used, while: " << sampleId <<
" was found. Bailing out." << std::endl;
106 <<
" can be used, while: " << sampleId <<
" was found. Bailing out." << std::endl;
119 <<
" can be used, while: " << sampleId <<
" was found. Bailing out." << std::endl;
129 <<
"EcalSampleMaskuseSample::useSample can only be called for EcalBarrel or EcalEndcap DetID" << std::endl;
void setEcalSampleMaskRecordEE(const unsigned int mask)
bool useSampleEB(const int sampleId) const
bool useSampleEE(const int sampleId) const
Log< level::Error, false > LogError
unsigned int sampleMaskEB_
bool useSample(const int sampleId, DetId &theCrystal) const
unsigned int sampleMaskEE_
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
void setEcalSampleMaskRecordEB(const unsigned int mask)
static constexpr int MAXSAMPLES
Power< A, B >::type pow(const A &a, const B &b)