41 <<
". Bailing out."<< std::endl;
46 for (
unsigned int s=0;
s<ebmask.size();
s++ ) {
47 if ( ebmask.at(
s)==0 || ebmask.at(
s)==1 ) {;}
49 std::cout <<
"in EcalSampleMask::setEcalSampleMaskRecordEB ebmask can only have values 0 or 1, while " << ebmask.at(
s) <<
" was found. Bailing out. " << std::endl;
58 for (
unsigned int sampleId=0; sampleId<ebmask.size(); sampleId++ ) {
69 <<
". Bailing out."<< std::endl;
74 for (
unsigned int s=0;
s<eemask.size();
s++ ) {
75 if ( eemask.at(
s)==0 || eemask.at(
s)==1 ) {;}
77 std::cout <<
"in EcalSampleMask::setEcalSampleMaskRecordEE eemask can only have values 0 or 1, while " << eemask.at(
s) <<
" was found. Bailing out. " << std::endl;
86 for (
unsigned int sampleId=0; sampleId<eemask.size(); sampleId++ ) {
97 <<
" can be used, while: " << sampleId <<
" was found. Bailing out." << std::endl;
113 <<
" can be used, while: " << sampleId <<
" was found. Bailing out." << std::endl;
129 <<
" can be used, while: " << sampleId <<
" was found. Bailing out." << std::endl;
141 std::cout <<
"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 const int MAXSAMPLES
Power< A, B >::type pow(const A &a, const B &b)
bool useSampleEE(const int sampleId) const