#include <HcalTriggerPrimitiveAlgo.h>
Public Member Functions | |
HcalTriggerPrimitiveAlgo (bool pf, const std::vector< double > &w, int latency, uint32_t FG_threshold1, uint32_t FG_threshold2, 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 (int ieta, int iphi, int(&FGBit)[18][22], IntegerCaloSamples &samples, HcalTriggerPrimitiveDigi &result, float rctlsb) |
Private Attributes | |
uint32_t | FG_threshold1_ |
uint32_t | FG_threshold2_ |
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 103 of file HcalTriggerPrimitiveAlgo.h.
|
private |
Definition at line 87 of file HcalTriggerPrimitiveAlgo.h.
|
private |
Definition at line 84 of file HcalTriggerPrimitiveAlgo.h.
|
private |
Definition at line 88 of file HcalTriggerPrimitiveAlgo.h.
|
private |
Definition at line 100 of file HcalTriggerPrimitiveAlgo.h.
HcalTriggerPrimitiveAlgo::HcalTriggerPrimitiveAlgo | ( | bool | pf, |
const std::vector< double > & | w, | ||
int | latency, | ||
uint32_t | FG_threshold1, | ||
uint32_t | FG_threshold2, | ||
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 518 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 548 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 600 of file HcalTriggerPrimitiveAlgo.cc.
References i, IntegerCaloSamples::id(), IntegerCaloSamples::size(), and theSumMap.
|
private |
adds the actual RecHits
Definition at line 615 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 695 of file HcalTriggerPrimitiveAlgo.cc.
References assert(), HcalTPGCompressor::compress(), converttoGCTetaFromTPG(), converttoGCTphiFromTPG(), HF_Veto, IntegerCaloSamples::id(), customizeTrackingMonitorSeedNumber::idx, cmsHarvester::index, 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 402 of file HcalTriggerPrimitiveAlgo.cc.
References addSignal(), analyze(), analyzeHF(), edm::SortedCollection< T, SORT >::back(), edm::SortedCollection< T, SORT >::begin(), converttoGCTeta(), converttoGCTphi(), edm::SortedCollection< T, SORT >::end(), FG_threshold1_, FG_threshold2_, fgMap_, HcalTrigTowerGeometry::firstHFTower(), HF_Veto, i, HcalTrigTowerDetId::ieta(), HcalDetId::ieta(), incoder_, HcalDetId::iphi(), j, relval_steps::k, 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 765 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 751 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 827 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 run().
|
private |
Definition at line 63 of file HcalTriggerPrimitiveAlgo.h.
Referenced by run().
|
private |
Definition at line 104 of file HcalTriggerPrimitiveAlgo.h.
|
private |
Definition at line 101 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 70 of file HcalTriggerPrimitiveAlgo.h.
Referenced by addSignal().
|
private |
Definition at line 67 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyze(), and HcalTriggerPrimitiveAlgo().
|
private |
Definition at line 69 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyzeHF(), and HcalTriggerPrimitiveAlgo().
|
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 57 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyze(), analyzeHF(), and run().
|
private |
Definition at line 77 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 71 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyzeHF().
|
private |
Definition at line 85 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 89 of file HcalTriggerPrimitiveAlgo.h.
Referenced by addSignal(), analyzeHF(), and run().
|
private |
Definition at line 82 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 64 of file HcalTriggerPrimitiveAlgo.h.
Referenced by HcalTriggerPrimitiveAlgo().
|
private |
Definition at line 65 of file HcalTriggerPrimitiveAlgo.h.
Referenced by HcalTriggerPrimitiveAlgo(), and runZS().