1 #ifndef EcalSelectiveReadoutSuppressor_h 2 #define EcalSelectiveReadoutSuppressor_h 5 #include "boost/multi_array.hpp" 106 double endcapLowInterest,
107 double barrelHighInterest,
108 double endcapHighInterest);
142 int iEta2cIndex(
int iEta)
const {
return (iEta < 0) ? iEta + 85 : iEta + 84; }
156 int iTTEta2cIndex(
int iEta)
const {
return (iEta < 0) ? iEta + 28 : iEta + 27; }
void setGeometry(const CaloGeometry *caloGeometry)
EcalSelectiveReadoutSuppressor(const edm::ParameterSet ¶ms, const EcalSRSettings *settings)
static const size_t nTriggerTowersInEta
void initCellThresholds(double barrelLowInterest, double endcapLowInterest, double barrelHighInterest, double endcapHighInterest)
helpers for constructors
EcalSelectiveReadout * getEcalSelectiveReadout()
int iEta2cIndex(int iEta) const
void printTTFlags(std::ostream &os, int iEvent=-1, bool withHeader=true) const
bool trigPrimBypassWithPeakFinder_
double frame2Energy(const T &frame, int timeOffset=0) const
double trigPrimBypassHTH_
int iPhi2cIndex(int iPhi) const
static const size_t nEndcaps
bool ttThresOnCompressedEt_
int iTTPhi2cIndex(int iPhi) const
void setTriggerMap(const EcalTrigTowerConstituentsMap *map)
std::unique_ptr< EcalSelectiveReadout > ecalSelectiveReadout
EcalSelectiveReadout::ttFlag_t ttFlags[nTriggerTowersInEta][nTriggerTowersInPhi]
std::vector< float > weights
void run(const edm::EventSetup &eventSetup, const EcalTrigPrimDigiCollection &trigPrims, EBDigiCollection &barrelDigis, EEDigiCollection &endcapDigis)
int internalThreshold(double thresholdInGeV, int iSubDet) const
double trigPrimBypassLTH_
EcalSelectiveReadout::ttFlag_t defaultTtf_
std::vector< int > firWeights
static const size_t nBarrelTriggerTowersInEta
static int getFIRTapCount()
static const size_t nEndcapTriggerTowersInEta
int iTTEta2cIndex(int iEta) const
std::vector< int > getFIRWeigths()
bool accept(const edm::DataFrame &frame, int thr)
static const int nFIRTaps
void setTtFlags(const edm::EventSetup &eventSetup, const EBDigiCollection &ebDigis, const EEDigiCollection &eeDigis)
void setElecMap(const EcalElectronicsMapping *map)
const EcalTrigTowerConstituentsMap * theTriggerMap
std::vector< int > actions_
static const size_t nTriggerTowersInPhi