#include <TotemTimingRecHitProducerAlgorithm.h>
Classes | |
struct | RegressionResults |
Public Member Functions | |
void | build (const CTPPSGeometry &, const edm::DetSetVector< TotemTimingDigi > &, edm::DetSetVector< TotemTimingRecHit > &) |
void | setCalibration (const PPSTimingCalibration &) |
TotemTimingRecHitProducerAlgorithm (const edm::ParameterSet &conf) | |
Private Member Functions | |
float | constantFractionDiscriminator (const std::vector< float > &time, const std::vector< float > &data) |
int | fastDiscriminator (const std::vector< float > &data, float threshold) const |
RegressionResults | simplifiedLinearRegression (const std::vector< float > &time, const std::vector< float > &data, const unsigned int start_at, const unsigned int points) const |
Private Attributes | |
int | baselinePoints_ |
double | cfdFraction_ |
double | hysteresis_ |
double | lowPassFrequency_ |
bool | mergeTimePeaks_ |
TotemTimingRecHit::TimingAlgorithm | mode_ |
std::unique_ptr< TotemTimingConversions > | sampicConversions_ |
double | saturationLimit_ |
int | smoothingPoints_ |
Static Private Attributes | |
static constexpr float | SINC_COEFFICIENT = M_PI * 2 / 7.8 |
Definition at line 28 of file TotemTimingRecHitProducerAlgorithm.h.
TotemTimingRecHitProducerAlgorithm::TotemTimingRecHitProducerAlgorithm | ( | const edm::ParameterSet & | conf | ) |
Definition at line 17 of file TotemTimingRecHitProducerAlgorithm.cc.
void TotemTimingRecHitProducerAlgorithm::build | ( | const CTPPSGeometry & | geom, |
const edm::DetSetVector< TotemTimingDigi > & | input, | ||
edm::DetSetVector< TotemTimingRecHit > & | output | ||
) |
Definition at line 34 of file TotemTimingRecHitProducerAlgorithm.cc.
References baselinePoints_, TotemTimingRecHit::CFD, constantFractionDiscriminator(), data, Exception, relativeConstraints::geom, mps_fire::i, input, mode_, TotemTimingRecHit::NO_T_AVAILABLE, convertSQLitetoXML_cfg::output, DetGeomDesc::params(), DetGeomDesc::parentZPosition(), edm::DetSet< T >::push_back(), sampicConversions_, saturationLimit_, simplifiedLinearRegression(), OrderedSet::t, ntuplemaker::time, and DetGeomDesc::translation().
Referenced by TotemTimingRecHitProducer::produce().
|
private |
Definition at line 170 of file TotemTimingRecHitProducerAlgorithm.cc.
References baselinePoints_, cfdFraction_, data, fastDiscriminator(), dqmMemoryStats::float, mps_fire::i, dqmiolumiharvest::j, lowPassFrequency_, SiStripPI::max, TotemTimingRecHit::NO_T_AVAILABLE, funct::sin(), SINC_COEFFICIENT, smoothingPoints_, remoteMonitoring_LED_IterMethod_cfg::threshold, ntuplemaker::time, and x.
Referenced by build().
|
private |
Definition at line 140 of file TotemTimingRecHitProducerAlgorithm.cc.
References data, hysteresis_, mps_fire::i, and remoteMonitoring_LED_IterMethod_cfg::threshold.
Referenced by constantFractionDiscriminator().
void TotemTimingRecHitProducerAlgorithm::setCalibration | ( | const PPSTimingCalibration & | calib | ) |
Definition at line 28 of file TotemTimingRecHitProducerAlgorithm.cc.
References mergeTimePeaks_, and sampicConversions_.
Referenced by TotemTimingRecHitProducer::produce().
|
private |
Definition at line 101 of file TotemTimingRecHitProducerAlgorithm.cc.
References data, mps_fire::i, min(), GetRecoTauVFromDQM_MC_cff::next, HLT_2018_cff::points, funct::pow(), bookConverter::results, mathSSE::sqrt(), fftjetcommon_cfi::sx, fftjetcommon_cfi::sy, and ntuplemaker::time.
Referenced by build().
|
private |
Definition at line 61 of file TotemTimingRecHitProducerAlgorithm.h.
Referenced by build(), and constantFractionDiscriminator().
|
private |
Definition at line 63 of file TotemTimingRecHitProducerAlgorithm.h.
Referenced by constantFractionDiscriminator().
|
private |
Definition at line 66 of file TotemTimingRecHitProducerAlgorithm.h.
Referenced by fastDiscriminator().
|
private |
Definition at line 65 of file TotemTimingRecHitProducerAlgorithm.h.
Referenced by constantFractionDiscriminator().
|
private |
Definition at line 60 of file TotemTimingRecHitProducerAlgorithm.h.
Referenced by setCalibration().
|
private |
Definition at line 67 of file TotemTimingRecHitProducerAlgorithm.h.
Referenced by build().
|
private |
Definition at line 58 of file TotemTimingRecHitProducerAlgorithm.h.
Referenced by build(), and setCalibration().
|
private |
Definition at line 62 of file TotemTimingRecHitProducerAlgorithm.h.
Referenced by build().
|
staticconstexprprivate |
Definition at line 56 of file TotemTimingRecHitProducerAlgorithm.h.
Referenced by constantFractionDiscriminator().
|
private |
Definition at line 64 of file TotemTimingRecHitProducerAlgorithm.h.
Referenced by constantFractionDiscriminator().