#include <ProtonReconstructionAlgorithm.h>
Classes | |
class | ChiSquareCalculator |
class for calculation of chi^2 More... | |
struct | RPOpticsData |
optics data associated with 1 RP More... | |
Public Member Functions | |
void | init (const LHCInterpolatedOpticalFunctionsSetCollection &opticalFunctions) |
ProtonReconstructionAlgorithm (bool fit_vtx_y, bool improved_estimate, const std::string &multiRPAlgorithm, unsigned int verbosity) | |
reco::ForwardProton | reconstructFromMultiRP (const CTPPSLocalTrackLiteRefVector &tracks, const LHCInfo &lhcInfo, std::ostream &os) const |
run proton reconstruction using multiple-RP strategy More... | |
reco::ForwardProton | reconstructFromSingleRP (const CTPPSLocalTrackLiteRef &track, const LHCInfo &lhcInfo, std::ostream &os) const |
run proton reconstruction using single-RP strategy More... | |
void | release () |
~ProtonReconstructionAlgorithm ()=default | |
Private Types | |
enum | { mrpaUndefined, mrpaChi2, mrpaNewton, mrpaAnalIter } |
Static Private Member Functions | |
static void | doLinearFit (const std::vector< double > &vx, const std::vector< double > &vy, double &b, double &a) |
static double | newtonGoalFcn (double xi, double x_N, double x_F, const RPOpticsData &i_N, const RPOpticsData &i_F) |
Private Attributes | |
std::unique_ptr< ChiSquareCalculator > | chiSquareCalculator_ |
object to calculate chi^2 More... | |
std::unique_ptr< ROOT::Fit::Fitter > | fitter_ |
fitter object More... | |
bool | fitVtxY_ |
bool | initialized_ |
std::map< unsigned int, RPOpticsData > | m_rp_optics_ |
map: RP id --> optics data More... | |
enum ProtonReconstructionAlgorithm:: { ... } | multi_rp_algorithm_ |
bool | useImprovedInitialEstimate_ |
unsigned int | verbosity_ |
Definition at line 25 of file ProtonReconstructionAlgorithm.h.
|
private |
Enumerator | |
---|---|
mrpaUndefined | |
mrpaChi2 | |
mrpaNewton | |
mrpaAnalIter |
Definition at line 53 of file ProtonReconstructionAlgorithm.h.
ProtonReconstructionAlgorithm::ProtonReconstructionAlgorithm | ( | bool | fit_vtx_y, |
bool | improved_estimate, | ||
const std::string & | multiRPAlgorithm, | ||
unsigned int | verbosity | ||
) |
Definition at line 21 of file ProtonReconstructionAlgorithm.cc.
References chiSquareCalculator_, Exception, fitter_, mrpaAnalIter, mrpaChi2, mrpaNewton, mrpaUndefined, and multi_rp_algorithm_.
|
default |
|
staticprivate |
Definition at line 98 of file ProtonReconstructionAlgorithm.cc.
References a, b, ztail::d, and mps_fire::i.
Referenced by init().
void ProtonReconstructionAlgorithm::init | ( | const LHCInterpolatedOpticalFunctionsSetCollection & | opticalFunctions | ) |
Definition at line 53 of file ProtonReconstructionAlgorithm.cc.
References ProtonReconstructionAlgorithm::RPOpticsData::ch0, ProtonReconstructionAlgorithm::RPOpticsData::ch1, doLinearFit(), LHCOpticalFunctionsSet::eLx, LHCOpticalFunctionsSet::eLy, LHCOpticalFunctionsSet::evy, LHCOpticalFunctionsSet::exd, LHCOpticalFunctionsSet::eyd, LHCOpticalFunctionsSet::getFcnValues(), LHCOpticalFunctionsSet::getXiValues(), initialized_, ProtonReconstructionAlgorithm::RPOpticsData::la0, ProtonReconstructionAlgorithm::RPOpticsData::la1, m_rp_optics_, eostools::move(), ctppsOpticalFunctionsESSource_cfi::opticalFunctions, ProtonReconstructionAlgorithm::RPOpticsData::optics, AlCaHLTBitMon_ParallelJobs::p, release(), year_2016_postTS2_cff::rpId, ProtonReconstructionAlgorithm::RPOpticsData::s_L_x_vs_xi, ProtonReconstructionAlgorithm::RPOpticsData::s_L_y_vs_xi, ProtonReconstructionAlgorithm::RPOpticsData::s_v_y_vs_xi, ProtonReconstructionAlgorithm::RPOpticsData::s_x_d_vs_xi, ProtonReconstructionAlgorithm::RPOpticsData::s_xi_vs_x_d, ProtonReconstructionAlgorithm::RPOpticsData::s_y_d_vs_xi, LHCInterpolatedOpticalFunctionsSet::splines(), LHCInterpolatedOpticalFunctionsSet::transport(), LHCInterpolatedOpticalFunctionsSet::Kinematics::x, ProtonReconstructionAlgorithm::RPOpticsData::x0, LHCInterpolatedOpticalFunctionsSet::Kinematics::y, and ProtonReconstructionAlgorithm::RPOpticsData::y0.
Referenced by CTPPSProtonProducer::produce().
|
staticprivate |
Definition at line 159 of file ProtonReconstructionAlgorithm.cc.
References ProtonReconstructionAlgorithm::RPOpticsData::s_L_x_vs_xi, ProtonReconstructionAlgorithm::RPOpticsData::s_x_d_vs_xi, and hybridSuperClusters_cfi::xi.
Referenced by reconstructFromMultiRP().
reco::ForwardProton ProtonReconstructionAlgorithm::reconstructFromMultiRP | ( | const CTPPSLocalTrackLiteRefVector & | tracks, |
const LHCInfo & | lhcInfo, | ||
std::ostream & | os | ||
) | const |
run proton reconstruction using multiple-RP strategy
Definition at line 170 of file ProtonReconstructionAlgorithm.cc.
References a, funct::abs(), b, HltBtagPostValidation_cff::c, ProtonReconstructionAlgorithm::RPOpticsData::ch0, ProtonReconstructionAlgorithm::RPOpticsData::ch1, hltPixelTracks_cff::chi2, chiSquareCalculator_, LHCInfo::energy(), fitter_, fitVtxY_, g, runTauDisplay::gp, mps_fire::i, createfilelist::int, dqmiolumiharvest::j, ProtonReconstructionAlgorithm::RPOpticsData::la0, ProtonReconstructionAlgorithm::RPOpticsData::la1, m_rp_optics_, HLT_2018_cff::maxIterations, mrpaAnalIter, mrpaChi2, mrpaNewton, multi_rp_algorithm_, newtonGoalFcn(), AlCaHLTBitMon_ParallelJobs::p, CalibrationSummaryClient_cfi::params, mps_fire::result, year_2016_postTS2_cff::rpId, ProtonReconstructionAlgorithm::RPOpticsData::s_L_x_vs_xi, ProtonReconstructionAlgorithm::RPOpticsData::s_L_y_vs_xi, ProtonReconstructionAlgorithm::RPOpticsData::s_v_y_vs_xi, ProtonReconstructionAlgorithm::RPOpticsData::s_x_d_vs_xi, ProtonReconstructionAlgorithm::RPOpticsData::s_y_d_vs_xi, mathSSE::sqrt(), HLT_2018_cff::track, PDWG_EXOHSCP_cff::tracks, useImprovedInitialEstimate_, validateGeometry_cfg::valid, verbosity_, bphysicsOniaDQM_cfi::vertex, hybridSuperClusters_cfi::xi, and y.
Referenced by CTPPSProtonProducer::produce().
reco::ForwardProton ProtonReconstructionAlgorithm::reconstructFromSingleRP | ( | const CTPPSLocalTrackLiteRef & | track, |
const LHCInfo & | lhcInfo, | ||
std::ostream & | os | ||
) | const |
run proton reconstruction using single-RP strategy
Definition at line 403 of file ProtonReconstructionAlgorithm.cc.
References funct::abs(), LHCInfo::energy(), m_rp_optics_, AlCaHLTBitMon_ParallelJobs::p, funct::pow(), edm::RefVector< C, T, F >::push_back(), year_2016_postTS2_cff::rpId, mathSSE::sqrt(), HLT_2018_cff::track, verbosity_, bphysicsOniaDQM_cfi::vertex, and hybridSuperClusters_cfi::xi.
Referenced by CTPPSProtonProducer::produce().
void ProtonReconstructionAlgorithm::release | ( | ) |
Definition at line 118 of file ProtonReconstructionAlgorithm.cc.
References initialized_, and m_rp_optics_.
Referenced by init(), and CTPPSProtonProducer::produce().
|
private |
object to calculate chi^2
Definition at line 86 of file ProtonReconstructionAlgorithm.h.
Referenced by ProtonReconstructionAlgorithm(), and reconstructFromMultiRP().
|
private |
fitter object
Definition at line 83 of file ProtonReconstructionAlgorithm.h.
Referenced by ProtonReconstructionAlgorithm(), and reconstructFromMultiRP().
|
private |
Definition at line 51 of file ProtonReconstructionAlgorithm.h.
Referenced by reconstructFromMultiRP().
|
private |
Definition at line 54 of file ProtonReconstructionAlgorithm.h.
|
private |
map: RP id --> optics data
Definition at line 69 of file ProtonReconstructionAlgorithm.h.
Referenced by init(), reconstructFromMultiRP(), reconstructFromSingleRP(), and release().
enum { ... } ProtonReconstructionAlgorithm::multi_rp_algorithm_ |
Referenced by ProtonReconstructionAlgorithm(), and reconstructFromMultiRP().
|
private |
Definition at line 52 of file ProtonReconstructionAlgorithm.h.
Referenced by reconstructFromMultiRP().
|
private |
Definition at line 50 of file ProtonReconstructionAlgorithm.h.
Referenced by reconstructFromMultiRP(), and reconstructFromSingleRP().