6 #ifndef ECALSELECTIVEREADOUT_H
7 #define ECALSELECTIVEREADOUT_H
18 #define ECALSELECTIVEREADOUT_NOGEOM //version w/o geometry dependency.
20 #ifndef ECALSELECTIVEREADOUT_NOGEOM
22 #endif //ECALSELECTIVEREADOUT_NOGEOM not defined
184 #ifndef ECALSELECTIVEREADOUT_NOGEOM
186 theGeometry = caloGeometry;
188 #endif //ECALSELECTIVEREADOUT_NOGEOM not defined
249 void print(std::ostream & os)
const;
290 if(val<var) var = val;
301 if(val>var) var = val;
319 | ((val | var) & 0x4));
323 if(var < 0 || var > 7){
324 std::cout << __FILE__ <<
":" << __LINE__ <<
": ---------->"
325 << var <<
" " << val <<
" "
326 <<
std::max(val & 0x3, var & 0x3) <<
" "
327 << (val | var) <<
" "
328 << ((val | var) & 0x4) <<
" "
330 | ((val | var) & 0x4)) <<
" "
332 | ((val | var) & 0x4)) <<
"\n";
351 #ifndef ECALSELECTIVEREADOUT_NOGEOM
353 #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
std::ostream & operator<<(std::ostream &out, const ALILine &li)
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
unsigned towerId(const DetId &)
static const size_t nBarrelTowerPhiBins
EcalSelectiveReadout(int dEta=1, int dPhi=1)
const T & max(const T &a, const T &b)
static const size_t supercrystalEdge
static const int maxDccChs
void combineFlags(T &var, T val) 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
void setElecMap(const EcalElectronicsMapping *map)
void printDccChMap(std::ostream &os) const