TPG Param Builder for Phase2
More...
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &) |
Static Public Member Functions inherited from edm::one::EDAnalyzerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Member Functions | |
bool | computeLinearizerParam (double theta, double gainRatio, double calibCoeff, int &shift, int &mult) |
std::vector< int > | computeWeights (int type) |
void | fillFMat (std::vector< unsigned int > clockSampleSet, bool useThirdPulse, std::vector< float > sampleSet, std::vector< float > sampleDotSet, TMatrix &FMat, unsigned int binOfMaximum) |
void | getGMatrix (TMatrix FMat, float scaleMatrixBy, TMatrix &GMat) |
void | getNumericalDeriv (TGraph graph, TGraph &deriv) |
void | getPulseSampleSet (TGraph pulseGraph, float phaseShift, std::vector< float > &sampleSet) |
Private Attributes | |
const unsigned int | binOfMaximum_ |
const double | et_sat_ |
int | i2cSub_ [2] = {0, 0} |
const edm::FileInPath | inFile_ |
int | multToInt_ = 0x1000 |
const UInt_t | NPoints_ = 1599 |
const int | nSamplesToUse_ |
const unsigned int | nWeightGroups_ |
gzFile | out_file_ |
const std::string | outFile_ |
const double | phaseShift_ |
TGraph * | pulseDot_ |
const edm::ESGetToken< CaloSubdetectorGeometry, EcalBarrelGeometryRecord > | theBarrelGeometryToken_ |
const edm::ESGetToken< EcalLiteDTUPedestalsMap, EcalLiteDTUPedestalsRcd > | theEcalTPGPedestals_Token_ |
TGraph * | thePulse_ |
const bool | useBXPlusOne_ |
const double | xtal_LSB_ |
Static Private Attributes | |
static const int | linTopRange_ |
static constexpr float | norm_ = 1 / 503.109 |
static constexpr float | offset_ = 0. |
Additional Inherited Members | |
Public Types inherited from edm::one::EDAnalyzerBase | |
typedef EDAnalyzerBase | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
template<BranchType B = InEvent> | |
EDConsumerBaseAdaptor< B > | consumes (edm::InputTag tag) noexcept |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes () |
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag const &tag) |
template<Transition Tr = Transition::Event> | |
constexpr auto | esConsumes () |
template<Transition Tr = Transition::Event> | |
auto | esConsumes (ESInputTag tag) |
template<Transition Tr = Transition::Event> | |
ESGetTokenGeneric | esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey) |
Used with EventSetupRecord::doGet. More... | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
void | resetItemsToGetFrom (BranchType iType) |
TPG Param Builder for Phase2
Definition at line 38 of file EcalEBPhase2TPParamProducer.cc.
|
explicit |
Definition at line 87 of file EcalEBPhase2TPParamProducer.cc.
References binOfMaximum_, corrVsCorr::filename, edm::FileInPath::fullPath(), testHGCalDigi_cfg::inFile, inFile_, nSamplesToUse_, out_file_, outFile_, AlCaHLTBitMon_QueryRunRegistry::string, and thePulse_.
|
override |
|
overridevirtual |
Implements edm::one::EDAnalyzerBase.
Definition at line 136 of file EcalEBPhase2TPParamProducer.cc.
References funct::abs(), computeLinearizerParam(), computeWeights(), TauDecayModes::dec, DetId::Ecal, EcalBarrel, Exception, ecalph2::gains, edm::EventSetup::getData(), mps_fire::i, i2cSub_, EcalPhiSymFlatTableProducers_cfi::id, createfilelist::int, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, EcalLiteDTUPedestals::mean(), PixelBaryCentreAnalyzer_cfg::mult, ecalPh2::NGAINS, nWeightGroups_, convertSQLiteXML::ok, out_file_, nano_mu_digi_cff::rawId, edm::shift, AlCaHLTBitMon_QueryRunRegistry::string, theBarrelGeometryToken_, theEcalTPGPedestals_Token_, and tauSpinnerTable_cfi::theta.
|
overridevirtual |
Reimplemented from edm::one::EDAnalyzerBase.
Definition at line 120 of file EcalEBPhase2TPParamProducer.cc.
|
private |
Definition at line 410 of file EcalEBPhase2TPParamProducer.cc.
References ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr(), et_sat_, createfilelist::int, linTopRange_, PixelBaryCentreAnalyzer_cfg::mult, mps_fire::result, edm::shift, funct::sin(), tauSpinnerTable_cfi::theta, and xtal_LSB_.
Referenced by analyze().
|
private |
Definition at line 253 of file EcalEBPhase2TPParamProducer.cc.
References binOfMaximum_, fillFMat(), getGMatrix(), getNumericalDeriv(), getPulseSampleSet(), multToInt_, nSamplesToUse_, phaseShift_, pulseDot_, thePulse_, and useBXPlusOne_.
Referenced by analyze().
|
static |
Definition at line 122 of file EcalEBPhase2TPParamProducer.cc.
References edm::ConfigurationDescriptions::add(), submitPVResolutionJobs::desc, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 363 of file EcalEBPhase2TPParamProducer.cc.
References ecalTPGAnalyzer_cfg::binOfMaximum, and mps_fire::i.
Referenced by computeWeights().
|
private |
Definition at line 385 of file EcalEBPhase2TPParamProducer.cc.
References JetComb::kMult.
Referenced by computeWeights().
|
private |
Definition at line 342 of file EcalEBPhase2TPParamProducer.cc.
References NPoints_, AlCaHLTBitMon_ParallelJobs::p, writedatasetfile::run, makeMEIFBenchmarkPlots::xval, and makeMEIFBenchmarkPlots::yval.
Referenced by computeWeights().
|
private |
Definition at line 400 of file EcalEBPhase2TPParamProducer.cc.
References mps_fire::i, norm_, offset_, ecalPh2::Samp_Period, ecalPh2::sampleSize, submitPVValidationJobs::t, and y.
Referenced by computeWeights().
|
private |
Definition at line 83 of file EcalEBPhase2TPParamProducer.cc.
Referenced by computeWeights(), and EcalEBPhase2TPParamProducer().
|
private |
Definition at line 81 of file EcalEBPhase2TPParamProducer.cc.
Referenced by computeLinearizerParam().
|
private |
Definition at line 79 of file EcalEBPhase2TPParamProducer.cc.
Referenced by analyze().
|
private |
Definition at line 61 of file EcalEBPhase2TPParamProducer.cc.
Referenced by EcalEBPhase2TPParamProducer().
|
staticprivate |
Definition at line 84 of file EcalEBPhase2TPParamProducer.cc.
Referenced by computeLinearizerParam().
|
private |
Definition at line 77 of file EcalEBPhase2TPParamProducer.cc.
Referenced by computeWeights().
|
staticprivate |
Definition at line 75 of file EcalEBPhase2TPParamProducer.cc.
Referenced by getPulseSampleSet().
|
private |
Definition at line 73 of file EcalEBPhase2TPParamProducer.cc.
Referenced by getNumericalDeriv().
|
private |
Definition at line 63 of file EcalEBPhase2TPParamProducer.cc.
Referenced by computeWeights(), and EcalEBPhase2TPParamProducer().
|
private |
Definition at line 66 of file EcalEBPhase2TPParamProducer.cc.
Referenced by analyze().
|
staticprivate |
Definition at line 76 of file EcalEBPhase2TPParamProducer.cc.
Referenced by getPulseSampleSet().
|
private |
Definition at line 69 of file EcalEBPhase2TPParamProducer.cc.
Referenced by analyze(), EcalEBPhase2TPParamProducer(), and ~EcalEBPhase2TPParamProducer().
|
private |
Definition at line 62 of file EcalEBPhase2TPParamProducer.cc.
Referenced by EcalEBPhase2TPParamProducer().
|
private |
Definition at line 65 of file EcalEBPhase2TPParamProducer.cc.
Referenced by computeWeights().
|
private |
Definition at line 71 of file EcalEBPhase2TPParamProducer.cc.
Referenced by computeWeights().
|
private |
Definition at line 60 of file EcalEBPhase2TPParamProducer.cc.
Referenced by analyze().
|
private |
Definition at line 67 of file EcalEBPhase2TPParamProducer.cc.
Referenced by analyze().
|
private |
Definition at line 70 of file EcalEBPhase2TPParamProducer.cc.
Referenced by computeWeights(), and EcalEBPhase2TPParamProducer().
|
private |
Definition at line 64 of file EcalEBPhase2TPParamProducer.cc.
Referenced by computeWeights().
|
private |
Definition at line 82 of file EcalEBPhase2TPParamProducer.cc.
Referenced by computeLinearizerParam().