5 #ifndef ECALSELECTIVEREADOUT_H 6 #define ECALSELECTIVEREADOUT_H 17 #define ECALSELECTIVEREADOUT_NOGEOM //version w/o geometry dependency. 19 #ifndef ECALSELECTIVEREADOUT_NOGEOM 21 #endif //ECALSELECTIVEREADOUT_NOGEOM not defined 175 #ifndef ECALSELECTIVEREADOUT_NOGEOM 177 #endif //ECALSELECTIVEREADOUT_NOGEOM not defined 237 void print(std::ostream& os)
const;
300 var = (
T)(
std::max(val & ~TTF_FORCED_RO_MASK,
302 var & ~TTF_FORCED_RO_MASK)
307 | ((val |
var) & 0x4));
310 if (var < 0 || var > 7) {
311 std::cout << __FILE__ <<
":" << __LINE__ <<
": ---------->" << var <<
" " << val <<
" " 312 <<
std::max(val & 0x3, var & 0x3) <<
" " << (val |
var) <<
" " << ((val | var) & 0x4) <<
" " 313 << (
std::max(val & 0x3, var & 0x3) | ((val |
var) & 0x4)) <<
" " 314 << (
T)(
std::max(val & 0x3, var & 0x3) | ((val |
var) & 0x4)) <<
"\n";
331 #ifndef ECALSELECTIVEREADOUT_NOGEOM 333 #endif //ECALSELECTIVEREADOUT_NOGEOM not defined
static const int FORCED_MASK
static const size_t nEndcapXBins
towerInterest_t getSuperCrystalInterest(const EcalScDetId &scDetId) const
void setTriggerMap(const EcalTrigTowerConstituentsMap *map)
the mapping of which cell goes with which trigger tower
static const size_t nSupercrystalXBins
void printHeader(std::ostream &os) const
print out header for the map: see print(std::ostream&)
static const int TTF_FORCED_RO_MASK
towerInterest_t getTowerInterest(const EcalTrigTowerDetId &towerId) const
static const size_t nEndcaps
void setHigher(T &var, T val) const
static const int nDccPerEe
static const size_t nBarrelPhiBins
void printEndcap(int endcap, std::ostream &s) const
void classifyTriggerTowers(const ttFlag_t ttFlags[nTriggerTowersInEta][nTriggerTowersInPhi])
towerInterest_t & eeRuInterest(const EEDetId &id)
static const size_t nEndcapYBins
static const size_t nSupercrystalYBins
static const size_t nBarrelTowerPhiBins
EcalSelectiveReadout(int dEta=1, int dPhi=1)
static const size_t supercrystalEdge
static const int maxDccChs
void combineFlags(T &var, T val) const
void setGeometry(CaloGeometry const *)
void printBarrel(std::ostream &os) const
void setLower(int &var, int val) const
static const size_t nEndcapTriggerTowersInEta
const EcalElectronicsMapping * theElecMap
towerInterest_t eeRuInterest_[nEndcaps][nDccPerEe][maxDccChs]
const EcalTrigTowerConstituentsMap * theTriggerMap
void print(std::ostream &os) const
print out the map
static const size_t nTriggerTowersInEta
static const size_t nTriggerTowersInPhi
static const char srpFlagMarker[]
void runSelectiveReadout0(const ttFlag_t towerFlags[nTriggerTowersInEta][nTriggerTowersInPhi])
towerInterest_t towerInterest[nTriggerTowersInEta][nTriggerTowersInPhi]
static const size_t nBarrelTriggerTowersInEta
static const size_t nBarrelEtaBins
static const size_t nBarrelTowerEtaBins
towerInterest_t getCrystalInterest(const EBDetId &ebDetId) const
std::ostream & operator<<(std::ostream &os, const EcalSelectiveReadout &selectiveReadout)
void setElecMap(const EcalElectronicsMapping *map)
void printDccChMap(std::ostream &os) const