#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 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 | 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 | setNCTScaleShift (int) |
void | setPeakFinderAlgorithm (int algo) |
void | setRCTScaleShift (int) |
~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_HF_threshold_ |
uint32_t | FG_threshold_ |
FGbitMap | fgMap_ |
TowerMapVeto | HF_Veto |
const HcaluLUTTPGCoder * | incoder_ |
int | latency_ |
HcalFeatureBit * | LongvrsShortCut |
uint32_t | minSignalThreshold_ |
int | NCTScaleShift |
int | numberOfPresamples_ |
int | numberOfPresamplesHF_ |
int | numberOfSamples_ |
int | numberOfSamplesHF_ |
const HcalTPGCompressor * | outcoder_ |
int | peak_finder_algorithm_ |
bool | peakfind_ |
uint32_t | PMT_NoiseThreshold_ |
int | RCTScaleShift |
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 127 of file HcalTriggerPrimitiveAlgo.h.
|
private |
Definition at line 107 of file HcalTriggerPrimitiveAlgo.h.
|
private |
Definition at line 110 of file HcalTriggerPrimitiveAlgo.h.
|
private |
Definition at line 98 of file HcalTriggerPrimitiveAlgo.h.
|
private |
Definition at line 111 of file HcalTriggerPrimitiveAlgo.h.
|
private |
Definition at line 124 of file HcalTriggerPrimitiveAlgo.h.
HcalTriggerPrimitiveAlgo::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 |
||
) |
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 45 of file HcalTriggerPrimitiveAlgo.cc.
|
private |
|
private |
adds the signal to the map
Definition at line 110 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 141 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 225 of file HcalTriggerPrimitiveAlgo.cc.
References i, IntegerCaloSamples::id(), IntegerCaloSamples::size(), and theSumMap.
|
private |
adds the actual RecHits
Definition at line 240 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 320 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 370 of file HcalTriggerPrimitiveAlgo.cc.
References assert(), newFWLiteAna::bin, HcalTPGCompressor::compress(), FG_HF_threshold_, 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 49 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, NCTScaleShift, outcoder_, edm::SortedCollection< T, SORT >::push_back(), RCTScaleShift, theHFDetailMap, theSumMap, theTowerMapFGSum, and theTrigTowerGeometry.
Referenced by HcalTrigPrimDigiProducer::produce().
void HcalTriggerPrimitiveAlgo::runFEFormatError | ( | const FEDRawDataCollection * | rawraw, |
const HcalElectronicsMap * | emap, | ||
HcalTrigPrimDigiCollection & | result | ||
) |
Definition at line 453 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 439 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::setNCTScaleShift | ( | int | shift | ) |
Definition at line 521 of file HcalTriggerPrimitiveAlgo.cc.
References NCTScaleShift, and edm::shift.
Referenced by HcalTrigPrimDigiProducer::HcalTrigPrimDigiProducer().
void HcalTriggerPrimitiveAlgo::setPeakFinderAlgorithm | ( | int | algo | ) |
Definition at line 515 of file HcalTriggerPrimitiveAlgo.cc.
References ecalcalib_dqm_sourceclient-live_cfg::algo, Exception, and peak_finder_algorithm_.
Referenced by HcalTrigPrimDigiProducer::HcalTrigPrimDigiProducer().
void HcalTriggerPrimitiveAlgo::setRCTScaleShift | ( | int | shift | ) |
Definition at line 525 of file HcalTriggerPrimitiveAlgo.cc.
References RCTScaleShift, and edm::shift.
Referenced by HcalTrigPrimDigiProducer::HcalTrigPrimDigiProducer().
|
private |
Definition at line 75 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyzeHFV1().
|
private |
Definition at line 74 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyzeHF().
|
private |
Definition at line 128 of file HcalTriggerPrimitiveAlgo.h.
|
private |
Definition at line 125 of file HcalTriggerPrimitiveAlgo.h.
Referenced by addSignal(), analyzeHF(), and run().
|
private |
Definition at line 68 of file HcalTriggerPrimitiveAlgo.h.
Referenced by addSignal(), and run().
|
private |
Definition at line 73 of file HcalTriggerPrimitiveAlgo.h.
|
private |
Definition at line 123 of file HcalTriggerPrimitiveAlgo.h.
Referenced by run().
|
private |
Definition at line 82 of file HcalTriggerPrimitiveAlgo.h.
Referenced by addSignal().
|
private |
Definition at line 84 of file HcalTriggerPrimitiveAlgo.h.
Referenced by run(), and setNCTScaleShift().
|
private |
Definition at line 79 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyze(), analyzeHFV1(), and HcalTriggerPrimitiveAlgo().
|
private |
Definition at line 81 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyzeHF(), and HcalTriggerPrimitiveAlgo().
|
private |
Definition at line 78 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyze(), analyzeHFV1(), and HcalTriggerPrimitiveAlgo().
|
private |
Definition at line 80 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyzeHF(), and HcalTriggerPrimitiveAlgo().
|
private |
Definition at line 69 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyze(), analyzeHF(), analyzeHFV1(), and run().
|
private |
Definition at line 91 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyze(), and setPeakFinderAlgorithm().
|
private |
Definition at line 71 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyze(), and HcalTriggerPrimitiveAlgo().
|
private |
Definition at line 83 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyzeHF().
|
private |
Definition at line 85 of file HcalTriggerPrimitiveAlgo.h.
Referenced by run(), and setRCTScaleShift().
|
private |
Definition at line 108 of file HcalTriggerPrimitiveAlgo.h.
Referenced by addSignal(), analyzeHFV1(), and run().
|
private |
Definition at line 99 of file HcalTriggerPrimitiveAlgo.h.
Referenced by addSignal(), and run().
|
private |
Definition at line 70 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyze().
|
private |
Definition at line 112 of file HcalTriggerPrimitiveAlgo.h.
Referenced by addSignal(), analyzeHF(), and run().
|
private |
Definition at line 96 of file HcalTriggerPrimitiveAlgo.h.
Referenced by addSignal(), run(), and runFEFormatError().
|
private |
Definition at line 72 of file HcalTriggerPrimitiveAlgo.h.
Referenced by analyze().
|
private |
Definition at line 76 of file HcalTriggerPrimitiveAlgo.h.
Referenced by HcalTriggerPrimitiveAlgo().
|
private |
Definition at line 77 of file HcalTriggerPrimitiveAlgo.h.
Referenced by HcalTriggerPrimitiveAlgo(), and runZS().