#include <HcalTriggerPrimitiveAlgo.h>
Public Member Functions | |
HcalTriggerPrimitiveAlgo (bool pf, const std::vector< double > &w, int latency, uint32_t FG_threshold, uint32_t ZS_threshold, int numberOfSamples, int numberOfPresamples, int numberOfSamplesHF, int numberOfPresamplesHF, uint32_t minSignalThreshold=0, uint32_t PMT_NoiseThreshold=0) | |
void | run (const HcalTPGCoder *incoder, const HcalTPGCompressor *outcoder, const HBHEDigiCollection &hbheDigis, const HFDigiCollection &hfDigis, HcalTrigPrimDigiCollection &result, const HcalTrigTowerGeometry *trigTowerGeometry, float rctlsb) |
void | runFEFormatError (const FEDRawDataCollection *rawraw, const HcalElectronicsMap *emap, HcalTrigPrimDigiCollection &result) |
void | runZS (HcalTrigPrimDigiCollection &tp) |
void | setPeakFinderAlgorithm (int algo) |
~HcalTriggerPrimitiveAlgo () | |
Private Types | |
typedef std::map < HcalTrigTowerDetId, std::vector< bool > > | FGbitMap |
typedef std::vector < IntegerCaloSamples > | SumFGContainer |
typedef std::map < HcalTrigTowerDetId, IntegerCaloSamples > | SumMap |
typedef std::map < HcalTrigTowerDetId, SumFGContainer > | TowerMapFGSum |
typedef std::map< uint32_t, std::vector< bool > > | TowerMapVeto |
Private Member Functions | |
void | addFG (const HcalTrigTowerDetId &id, std::vector< bool > &msb) |
void | addSignal (const HBHEDataFrame &frame) |
adds the signal to the map More... | |
void | addSignal (const HFDataFrame &frame) |
void | addSignal (const IntegerCaloSamples &samples) |
void | analyze (IntegerCaloSamples &samples, HcalTriggerPrimitiveDigi &result) |
adds the actual RecHits More... | |
void | analyzeHF (IntegerCaloSamples &samples, HcalTriggerPrimitiveDigi &result, float rctlsb) |
Private Attributes | |
uint32_t | FG_threshold_ |
FGbitMap | fgMap_ |
TowerMapVeto | HF_Veto |
const HcaluLUTTPGCoder * | incoder_ |
int | latency_ |
uint32_t | minSignalThreshold_ |
int | numberOfPresamples_ |
int | numberOfPresamplesHF_ |
int | numberOfSamples_ |
int | numberOfSamplesHF_ |
const HcalTPGCompressor * | outcoder_ |
int | peak_finder_algorithm_ |
bool | peakfind_ |
uint32_t | PMT_NoiseThreshold_ |
SumMap | theSumMap |
double | theThreshold |
TowerMapFGSum | theTowerMapFGSum |
const HcalTrigTowerGeometry * | theTrigTowerGeometry |
std::vector< double > | weights_ |
uint32_t | ZS_threshold_ |
int | ZS_threshold_I_ |
Definition at line 20 of file HcalTriggerPrimitiveAlgo.h.
|
private |
Definition at line 102 of file HcalTriggerPrimitiveAlgo.h.
|
private |
Definition at line 86 of file HcalTriggerPrimitiveAlgo.h.
|
private |
Definition at line 83 of file HcalTriggerPrimitiveAlgo.h.
|
private |
Definition at line 87 of file HcalTriggerPrimitiveAlgo.h.
|
private |
Definition at line 99 of file HcalTriggerPrimitiveAlgo.h.
HcalTriggerPrimitiveAlgo::HcalTriggerPrimitiveAlgo | ( | bool | pf, |
const std::vector< double > & | w, | ||
int | latency, | ||
uint32_t | FG_threshold, | ||
uint32_t | ZS_threshold, | ||
int | numberOfSamples, | ||
int | numberOfPresamples, | ||
int | numberOfSamplesHF, | ||
int | numberOfPresamplesHF, | ||
uint32_t | minSignalThreshold = 0 , |
||
uint32_t | PMT_NoiseThreshold = 0 |
||
) |
Definition at line 15 of file HcalTriggerPrimitiveAlgo.cc.
References numberOfPresamples_, numberOfPresamplesHF_, numberOfSamples_, numberOfSamplesHF_, peakfind_, ZS_threshold_, and ZS_threshold_I_.
HcalTriggerPrimitiveAlgo::~HcalTriggerPrimitiveAlgo | ( | ) |
Definition at line 43 of file HcalTriggerPrimitiveAlgo.cc.
|
private |
|
private |
adds the signal to the map
Definition at line 88 of file HcalTriggerPrimitiveAlgo.cc.
References HcaluLUTTPGCoder::adc2Linear(), addFG(), assert(), HcalDetId::depth(), i, HBHEDataFrame::id(), incoder_, HcaluLUTTPGCoder::lookupMSB(), HBHEDataFrame::presamples(), HBHEDataFrame::size(), theTrigTowerGeometry, and HcalTrigTowerGeometry::towerIds().
Referenced by addSignal(), and run().
|
private |
Definition at line 118 of file HcalTriggerPrimitiveAlgo.cc.
References HcaluLUTTPGCoder::adc2Linear(), addSignal(), assert(), HcalDetId::depth(), HF_Veto, i, HFDataFrame::id(), incoder_, HcalDetId::maskDepth(), minSignalThreshold_, HFDataFrame::presamples(), IntegerCaloSamples::setPresamples(), HFDataFrame::size(), theTowerMapFGSum, theTrigTowerGeometry, and HcalTrigTowerGeometry::towerIds().
|
private |
Definition at line 170 of file HcalTriggerPrimitiveAlgo.cc.
References i, IntegerCaloSamples::id(), IntegerCaloSamples::size(), and theSumMap.
|
private |
adds the actual RecHits
Definition at line 185 of file HcalTriggerPrimitiveAlgo.cc.
References HcalTPGCompressor::compress(), fgMap_, i, IntegerCaloSamples::id(), customizeTrackingMonitorSeedNumber::idx, numberOfPresamples_, numberOfSamples_, outcoder_, convertSQLitetoXML_cfg::output, peak_finder_algorithm_, peakfind_, IntegerCaloSamples::presamples(), edm::shift, IntegerCaloSamples::size(), theThreshold, and weights_.
Referenced by run().
|
private |
Definition at line 265 of file HcalTriggerPrimitiveAlgo.cc.
References assert(), HcalTPGCompressor::compress(), FG_threshold_, HF_Veto, IntegerCaloSamples::id(), customizeTrackingMonitorSeedNumber::idx, numberOfPresamplesHF_, numberOfSamplesHF_, outcoder_, convertSQLitetoXML_cfg::output, PMT_NoiseThreshold_, IntegerCaloSamples::presamples(), edm::shift, IntegerCaloSamples::size(), theTowerMapFGSum, and TriggerAnalyzer::veto.
Referenced by run().
void HcalTriggerPrimitiveAlgo::run | ( | const HcalTPGCoder * | incoder, |
const HcalTPGCompressor * | outcoder, | ||
const HBHEDigiCollection & | hbheDigis, | ||
const HFDigiCollection & | hfDigis, | ||
HcalTrigPrimDigiCollection & | result, | ||
const HcalTrigTowerGeometry * | trigTowerGeometry, | ||
float | rctlsb | ||
) |
Definition at line 47 of file HcalTriggerPrimitiveAlgo.cc.
References addSignal(), analyze(), analyzeHF(), edm::SortedCollection< T, SORT >::back(), edm::SortedCollection< T, SORT >::begin(), edm::SortedCollection< T, SORT >::end(), fgMap_, HcalTrigTowerGeometry::firstHFTower(), HF_Veto, incoder_, outcoder_, edm::SortedCollection< T, SORT >::push_back(), theSumMap, theTowerMapFGSum, and theTrigTowerGeometry.
Referenced by HcalTrigPrimDigiProducer::produce().
void HcalTriggerPrimitiveAlgo::runFEFormatError | ( | const FEDRawDataCollection * | rawraw, |
const HcalElectronicsMap * | emap, | ||
HcalTrigPrimDigiCollection & | result | ||
) |
Definition at line 328 of file HcalTriggerPrimitiveAlgo.cc.
References edm::SortedCollection< T, SORT >::begin(), HcalHTRData::check(), FEDRawData::data(), DetId::det(), edm::SortedCollection< T, SORT >::end(), FEDRawDataCollection::FEDData(), HcalHTRData::getErrorsWord(), HcalDCCHeader::getSourceId(), HcalDCCHeader::getSpigotData(), HcalDCCHeader::getSpigotPresent(), HcalBarrel, HcalEndcap, HcalForward, HcalHTRData::htrSlot(), HcalHTRData::htrTopBottom(), i, HcalHTRData::isHistogramEvent(), HcalElectronicsMap::lookup(), FEDNumbering::MAXHCALFEDID, FEDNumbering::MINHCALFEDID, DetId::null(), HcalHTRData::readoutVMECrateId(), HcalElectronicsId::setHTR(), FEDRawData::size(), HcalDCCHeader::SPIGOT_COUNT, DetId::subdetId(), theTrigTowerGeometry, and HcalTrigTowerGeometry::towerIds().
Referenced by HcalTrigPrimDigiProducer::produce().
void HcalTriggerPrimitiveAlgo::runZS | ( | HcalTrigPrimDigiCollection & | tp | ) |
Definition at line 314 of file HcalTriggerPrimitiveAlgo.cc.
References edm::SortedCollection< T, SORT >::begin(), edm::SortedCollection< T, SORT >::end(), i, and ZS_threshold_I_.
Referenced by HcalTrigPrimDigiProducer::produce().
void HcalTriggerPrimitiveAlgo::setPeakFinderAlgorithm | ( | int | algo | ) |
Definition at line 390 of file HcalTriggerPrimitiveAlgo.cc.
References ecalcalib_dqm_sourceclient-live_cfg::algo, Exception, and peak_finder_algorithm_.
Referenced by HcalTrigPrimDigiProducer::HcalTrigPrimDigiProducer().
|
private |
Definition at line 62 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyzeHF().
|
private |
Definition at line 103 of file HcalTriggerPrimitiveAlgo.h.
|
private |
Definition at line 100 of file HcalTriggerPrimitiveAlgo.h.
Referenced by addSignal(), analyzeHF(), and run().
|
private |
Definition at line 56 of file HcalTriggerPrimitiveAlgo.h.
Referenced by addSignal(), and run().
|
private |
Definition at line 61 of file HcalTriggerPrimitiveAlgo.h.
|
private |
Definition at line 69 of file HcalTriggerPrimitiveAlgo.h.
Referenced by addSignal().
|
private |
Definition at line 66 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyze(), and HcalTriggerPrimitiveAlgo().
|
private |
Definition at line 68 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyzeHF(), and HcalTriggerPrimitiveAlgo().
|
private |
Definition at line 65 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyze(), and HcalTriggerPrimitiveAlgo().
|
private |
Definition at line 67 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyzeHF(), and HcalTriggerPrimitiveAlgo().
|
private |
Definition at line 57 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyze(), analyzeHF(), and run().
|
private |
Definition at line 76 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyze(), and setPeakFinderAlgorithm().
|
private |
Definition at line 59 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyze(), and HcalTriggerPrimitiveAlgo().
|
private |
Definition at line 70 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyzeHF().
|
private |
Definition at line 84 of file HcalTriggerPrimitiveAlgo.h.
Referenced by addSignal(), and run().
|
private |
Definition at line 58 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyze().
|
private |
Definition at line 88 of file HcalTriggerPrimitiveAlgo.h.
Referenced by addSignal(), analyzeHF(), and run().
|
private |
Definition at line 81 of file HcalTriggerPrimitiveAlgo.h.
Referenced by addSignal(), run(), and runFEFormatError().
|
private |
Definition at line 60 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyze().
|
private |
Definition at line 63 of file HcalTriggerPrimitiveAlgo.h.
Referenced by HcalTriggerPrimitiveAlgo().
|
private |
Definition at line 64 of file HcalTriggerPrimitiveAlgo.h.
Referenced by HcalTriggerPrimitiveAlgo(), and runZS().