1 #ifndef HcalSimAlgos_HcalTriggerPrimitiveAlgo_h
2 #define HcalSimAlgos_HcalTriggerPrimitiveAlgo_h
25 uint32_t FG_threshold, uint32_t FG_HF_threshold, uint32_t ZS_threshold,
26 int numberOfSamples,
int numberOfPresamples,
27 int numberOfSamplesHF,
int numberOfPresamplesHF,
28 uint32_t minSignalThreshold=0, uint32_t PMT_NoiseThreshold=0);
63 const int HF_LUMI_SHIFT,
98 typedef std::map<HcalTrigTowerDetId, IntegerCaloSamples>
SumMap;
107 typedef std::map<HcalTrigTowerDetId, std::map<uint32_t, HFDetails>>
HFDetailMap;
127 typedef std::map<HcalTrigTowerDetId, std::vector<bool> >
FGbitMap;
void analyzeHFV1(const IntegerCaloSamples &SAMPLES, HcalTriggerPrimitiveDigi &result, const int HF_LUMI_SHIFT, const HcalFeatureBit *HCALFEM)
void analyze(IntegerCaloSamples &samples, HcalTriggerPrimitiveDigi &result)
adds the actual RecHits
void runFEFormatError(const FEDRawDataCollection *rawraw, const HcalElectronicsMap *emap, HcalTrigPrimDigiCollection &result)
std::map< uint32_t, std::vector< bool > > TowerMapVeto
HcalTriggerPrimitiveAlgo(bool pf, const std::vector< double > &w, int latency, uint32_t FG_threshold, uint32_t FG_HF_threshold, uint32_t ZS_threshold, int numberOfSamples, int numberOfPresamples, int numberOfSamplesHF, int numberOfPresamplesHF, uint32_t minSignalThreshold=0, uint32_t PMT_NoiseThreshold=0)
void analyzeHF(IntegerCaloSamples &samples, HcalTriggerPrimitiveDigi &result, const int hf_lumi_shift)
int peak_finder_algorithm_
const HcalTPGCompressor * outcoder_
void addFG(const HcalTrigTowerDetId &id, std::vector< bool > &msb)
IntegerCaloSamples long_fiber
TowerMapFGSum theTowerMapFGSum
uint32_t minSignalThreshold_
std::vector< IntegerCaloSamples > SumFGContainer
const HcalTrigTowerGeometry * theTrigTowerGeometry
std::vector< double > weights_
int numberOfPresamplesHF_
IntegerCaloSamples short_fiber
void runZS(HcalTrigPrimDigiCollection &tp)
std::map< HcalTrigTowerDetId, std::vector< bool > > FGbitMap
void setNCTScaleShift(int)
std::map< HcalTrigTowerDetId, SumFGContainer > TowerMapFGSum
uint32_t PMT_NoiseThreshold_
std::map< HcalTrigTowerDetId, IntegerCaloSamples > SumMap
HcalFeatureBit * LongvrsShortCut
const HcaluLUTTPGCoder * incoder_
HFDetailMap theHFDetailMap
uint32_t FG_HF_threshold_
void setRCTScaleShift(int)
void addSignal(const HBHEDataFrame &frame)
adds the signal to the map
std::map< HcalTrigTowerDetId, std::map< uint32_t, HFDetails > > HFDetailMap
~HcalTriggerPrimitiveAlgo()
void setPeakFinderAlgorithm(int algo)
void run(const HcalTPGCoder *incoder, const HcalTPGCompressor *outcoder, const HBHEDigiCollection &hbheDigis, const HFDigiCollection &hfDigis, HcalTrigPrimDigiCollection &result, const HcalTrigTowerGeometry *trigTowerGeometry, float rctlsb, const HcalFeatureBit *LongvrsShortCut=0)