45 <<
". Bailing out."<< std::endl;
50 for (
unsigned int s=0;
s<ebmask.size();
s++ ) {
51 if ( ebmask.at(
s)==0 || ebmask.at(
s)==1 ) {;}
53 LogError(
"DataMismatch")<<
"in EcalSampleMask::setEcalSampleMaskRecordEB ebmask can only have values 0 or 1, while " << ebmask.at(
s) <<
" was found. Bailing out. " << std::endl;
62 for (
unsigned int sampleId=0; sampleId<ebmask.size(); sampleId++ ) {
73 <<
". Bailing out."<< std::endl;
78 for (
unsigned int s=0;
s<eemask.size();
s++ ) {
79 if ( eemask.at(
s)==0 || eemask.at(
s)==1 ) {;}
81 LogError(
"DataMismatch") <<
"in EcalSampleMask::setEcalSampleMaskRecordEE eemask can only have values 0 or 1, while " << eemask.at(
s) <<
" was found. Bailing out. " << std::endl;
90 for (
unsigned int sampleId=0; sampleId<eemask.size(); sampleId++ ) {
101 <<
" can be used, while: " << sampleId <<
" was found. Bailing out." << std::endl;
117 <<
" can be used, while: " << sampleId <<
" was found. Bailing out." << std::endl;
133 <<
" can be used, while: " << sampleId <<
" was found. Bailing out." << std::endl;
145 LogError(
"DataMismatch")<<
"EcalSampleMaskuseSample::useSample can only be called for EcalBarrel or EcalEndcap DetID" << std::endl;
void setEcalSampleMaskRecordEE(const unsigned int mask)
unsigned int sampleMaskEB_
bool useSample(const int sampleId, DetId &theCrystal) const
bool useSampleEB(const int sampleId) 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)
bool useSampleEE(const int sampleId) const