#include <HcalTriggerPrimitiveAlgo.h>
Classes | |
struct | HFDetails |
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, const HcalFeatureBit *LongvrsShortCut=0) |
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::map < HcalTrigTowerDetId, std::map < uint32_t, HFDetails > > | HFDetailMap |
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, const int hf_lumi_shift) |
void | analyzeHFV1 (const IntegerCaloSamples &SAMPLES, HcalTriggerPrimitiveDigi &result, const int HF_LUMI_SHIFT, const HcalFeatureBit *HCALFEM) |
Private Attributes | |
uint32_t | FG_threshold_ |
FGbitMap | fgMap_ |
TowerMapVeto | HF_Veto |
const HcaluLUTTPGCoder * | incoder_ |
int | latency_ |
HcalFeatureBit * | LongvrsShortCut |
uint32_t | minSignalThreshold_ |
int | numberOfPresamples_ |
int | numberOfPresamplesHF_ |
int | numberOfSamples_ |
int | numberOfSamplesHF_ |
const HcalTPGCompressor * | outcoder_ |
int | peak_finder_algorithm_ |
bool | peakfind_ |
uint32_t | PMT_NoiseThreshold_ |
HFDetailMap | theHFDetailMap |
SumMap | theSumMap |
double | theThreshold |
TowerMapFGSum | theTowerMapFGSum |
const HcalTrigTowerGeometry * | theTrigTowerGeometry |
std::vector< double > | weights_ |
uint32_t | ZS_threshold_ |
int | ZS_threshold_I_ |
Definition at line 21 of file HcalTriggerPrimitiveAlgo.h.
|
private |
Definition at line 121 of file HcalTriggerPrimitiveAlgo.h.
|
private |
Definition at line 101 of file HcalTriggerPrimitiveAlgo.h.
|
private |
Definition at line 104 of file HcalTriggerPrimitiveAlgo.h.
|
private |
Definition at line 92 of file HcalTriggerPrimitiveAlgo.h.
|
private |
Definition at line 105 of file HcalTriggerPrimitiveAlgo.h.
|
private |
Definition at line 118 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 16 of file HcalTriggerPrimitiveAlgo.cc.
References numberOfPresamples_, numberOfPresamplesHF_, numberOfSamples_, numberOfSamplesHF_, peakfind_, ZS_threshold_, and ZS_threshold_I_.
HcalTriggerPrimitiveAlgo::~HcalTriggerPrimitiveAlgo | ( | ) |
Definition at line 44 of file HcalTriggerPrimitiveAlgo.cc.
|
private |
|
private |
adds the signal to the map
Definition at line 115 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 146 of file HcalTriggerPrimitiveAlgo.cc.
References HcaluLUTTPGCoder::adc2Linear(), addSignal(), HcalDetId::depth(), HF_Veto, i, HFDataFrame::id(), incoder_, HcalTriggerPrimitiveAlgo::HFDetails::long_fiber, HcalTriggerPrimitiveAlgo::HFDetails::LongDigi, HcalDetId::maskDepth(), minSignalThreshold_, HFDataFrame::presamples(), IntegerCaloSamples::setPresamples(), HcalTriggerPrimitiveAlgo::HFDetails::short_fiber, HcalTriggerPrimitiveAlgo::HFDetails::ShortDigi, HFDataFrame::size(), theHFDetailMap, theTowerMapFGSum, theTrigTowerGeometry, HcalTrigTowerGeometry::towerIds(), and HcalTrigTowerDetId::version().
|
private |
Definition at line 230 of file HcalTriggerPrimitiveAlgo.cc.
References i, IntegerCaloSamples::id(), IntegerCaloSamples::size(), and theSumMap.
|
private |
adds the actual RecHits
Definition at line 245 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 325 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().
|
private |
Definition at line 375 of file HcalTriggerPrimitiveAlgo.cc.
References assert(), newFWLiteAna::bin, HcalTPGCompressor::compress(), HcalFeatureBit::fineGrainbit(), IntegerCaloSamples::id(), min(), numberOfPresamples_, numberOfSamples_, outcoder_, convertSQLitetoXML_cfg::output, IntegerCaloSamples::presamples(), IntegerCaloSamples::size(), and theHFDetailMap.
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, | ||
const HcalFeatureBit * | LongvrsShortCut = 0 |
||
) |
Definition at line 48 of file HcalTriggerPrimitiveAlgo.cc.
References addSignal(), analyze(), analyzeHF(), analyzeHFV1(), edm::SortedCollection< T, SORT >::back(), edm::SortedCollection< T, SORT >::begin(), edm::SortedCollection< T, SORT >::end(), fgMap_, HcalTrigTowerGeometry::firstHFTower(), HF_Veto, incoder_, LongvrsShortCut, outcoder_, edm::SortedCollection< T, SORT >::push_back(), theHFDetailMap, theSumMap, theTowerMapFGSum, and theTrigTowerGeometry.
Referenced by HcalTrigPrimDigiProducer::produce().
void HcalTriggerPrimitiveAlgo::runFEFormatError | ( | const FEDRawDataCollection * | rawraw, |
const HcalElectronicsMap * | emap, | ||
HcalTrigPrimDigiCollection & | result | ||
) |
Definition at line 445 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 431 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 507 of file HcalTriggerPrimitiveAlgo.cc.
References ecalcalib_dqm_sourceclient-live_cfg::algo, Exception, and peak_finder_algorithm_.
Referenced by HcalTrigPrimDigiProducer::HcalTrigPrimDigiProducer().
|
private |
Definition at line 71 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyzeHF().
|
private |
Definition at line 122 of file HcalTriggerPrimitiveAlgo.h.
|
private |
Definition at line 119 of file HcalTriggerPrimitiveAlgo.h.
Referenced by addSignal(), analyzeHF(), and run().
|
private |
Definition at line 65 of file HcalTriggerPrimitiveAlgo.h.
Referenced by addSignal(), and run().
|
private |
Definition at line 70 of file HcalTriggerPrimitiveAlgo.h.
|
private |
Definition at line 117 of file HcalTriggerPrimitiveAlgo.h.
Referenced by run().
|
private |
Definition at line 78 of file HcalTriggerPrimitiveAlgo.h.
Referenced by addSignal().
|
private |
Definition at line 75 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyze(), analyzeHFV1(), and HcalTriggerPrimitiveAlgo().
|
private |
Definition at line 77 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyzeHF(), and HcalTriggerPrimitiveAlgo().
|
private |
Definition at line 74 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyze(), analyzeHFV1(), and HcalTriggerPrimitiveAlgo().
|
private |
Definition at line 76 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyzeHF(), and HcalTriggerPrimitiveAlgo().
|
private |
Definition at line 66 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyze(), analyzeHF(), analyzeHFV1(), and run().
|
private |
Definition at line 85 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyze(), and setPeakFinderAlgorithm().
|
private |
Definition at line 68 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyze(), and HcalTriggerPrimitiveAlgo().
|
private |
Definition at line 79 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyzeHF().
|
private |
Definition at line 102 of file HcalTriggerPrimitiveAlgo.h.
Referenced by addSignal(), analyzeHFV1(), and run().
|
private |
Definition at line 93 of file HcalTriggerPrimitiveAlgo.h.
Referenced by addSignal(), and run().
|
private |
Definition at line 67 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyze().
|
private |
Definition at line 106 of file HcalTriggerPrimitiveAlgo.h.
Referenced by addSignal(), analyzeHF(), and run().
|
private |
Definition at line 90 of file HcalTriggerPrimitiveAlgo.h.
Referenced by addSignal(), run(), and runFEFormatError().
|
private |
Definition at line 69 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyze().
|
private |
Definition at line 72 of file HcalTriggerPrimitiveAlgo.h.
Referenced by HcalTriggerPrimitiveAlgo().
|
private |
Definition at line 73 of file HcalTriggerPrimitiveAlgo.h.
Referenced by HcalTriggerPrimitiveAlgo(), and runZS().