#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 float energy, std::ostream &os) const |
run proton reconstruction using multiple-RP strategy More... | |
reco::ForwardProton | reconstructFromSingleRP (const CTPPSLocalTrackLiteRef &track, const float energy, 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 50 of file ProtonReconstructionAlgorithm.h.
ProtonReconstructionAlgorithm::ProtonReconstructionAlgorithm | ( | bool | fit_vtx_y, |
bool | improved_estimate, | ||
const std::string & | multiRPAlgorithm, | ||
unsigned int | verbosity | ||
) |
Definition at line 22 of file ProtonReconstructionAlgorithm.cc.
References chiSquareCalculator_, Exception, fitter_, mrpaAnalIter, mrpaChi2, mrpaNewton, mrpaUndefined, multi_rp_algorithm_, and HLT_2024v12_cff::multiRPAlgorithm.
|
default |
|
staticprivate |
Definition at line 99 of file ProtonReconstructionAlgorithm.cc.
References a, b, ztail::d, mps_fire::i, btvMC_cff::vx, and btvMC_cff::vy.
Referenced by init().
void ProtonReconstructionAlgorithm::init | ( | const LHCInterpolatedOpticalFunctionsSetCollection & | opticalFunctions | ) |
Definition at line 54 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(), profile_base_cff::opticalFunctions, ProtonReconstructionAlgorithm::RPOpticsData::optics, AlCaHLTBitMon_ParallelJobs::p, release(), 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 160 of file ProtonReconstructionAlgorithm.cc.
References ProtonReconstructionAlgorithm::RPOpticsData::s_L_x_vs_xi, ProtonReconstructionAlgorithm::RPOpticsData::s_x_d_vs_xi, and protons_cff::xi.
Referenced by reconstructFromMultiRP().
reco::ForwardProton ProtonReconstructionAlgorithm::reconstructFromMultiRP | ( | const CTPPSLocalTrackLiteRefVector & | tracks, |
const float | energy, | ||
std::ostream & | os | ||
) | const |
run proton reconstruction using multiple-RP strategy
Definition at line 171 of file ProtonReconstructionAlgorithm.cc.
References a, funct::abs(), protons_cff::arm, b, HltBtagPostValidation_cff::c, ProtonReconstructionAlgorithm::RPOpticsData::ch0, ProtonReconstructionAlgorithm::RPOpticsData::ch1, nano_mu_local_reco_cff::chi2, chiSquareCalculator_, hcalRecHitTable_cff::energy, fitter_, fitVtxY_, g, runTauDisplay::gp, mps_fire::i, createfilelist::int, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, dqmiolumiharvest::j, ProtonReconstructionAlgorithm::RPOpticsData::la0, ProtonReconstructionAlgorithm::RPOpticsData::la1, m_rp_optics_, HLT_2024v12_cff::maxIterations, mrpaAnalIter, mrpaChi2, mrpaNewton, multi_rp_algorithm_, newtonGoalFcn(), AlCaHLTBitMon_ParallelJobs::p, submitPVValidationJobs::params, mps_fire::result, 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_2024v12_cff::track, DiMuonV_cfg::tracks, useImprovedInitialEstimate_, validateGeometry_cfg::valid, verbosity_, bphysicsOniaDQM_cfi::vertex, protons_cff::xi, and y.
Referenced by CTPPSProtonProducer::produce().
reco::ForwardProton ProtonReconstructionAlgorithm::reconstructFromSingleRP | ( | const CTPPSLocalTrackLiteRef & | track, |
const float | energy, | ||
std::ostream & | os | ||
) | const |
run proton reconstruction using single-RP strategy
Definition at line 405 of file ProtonReconstructionAlgorithm.cc.
References funct::abs(), protons_cff::arm, CTPPSDetId::arm(), hcalRecHitTable_cff::energy, m_rp_optics_, AlCaHLTBitMon_ParallelJobs::p, funct::pow(), edm::RefVector< C, T, F >::push_back(), mathSSE::sqrt(), HLT_2024v12_cff::track, verbosity_, bphysicsOniaDQM_cfi::vertex, and protons_cff::xi.
Referenced by CTPPSProtonProducer::produce().
void ProtonReconstructionAlgorithm::release | ( | ) |
Definition at line 119 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 83 of file ProtonReconstructionAlgorithm.h.
Referenced by ProtonReconstructionAlgorithm(), and reconstructFromMultiRP().
|
private |
fitter object
Definition at line 80 of file ProtonReconstructionAlgorithm.h.
Referenced by ProtonReconstructionAlgorithm(), and reconstructFromMultiRP().
|
private |
Definition at line 48 of file ProtonReconstructionAlgorithm.h.
Referenced by reconstructFromMultiRP().
|
private |
Definition at line 51 of file ProtonReconstructionAlgorithm.h.
|
private |
map: RP id –> optics data
Definition at line 66 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 49 of file ProtonReconstructionAlgorithm.h.
Referenced by reconstructFromMultiRP().
|
private |
Definition at line 47 of file ProtonReconstructionAlgorithm.h.
Referenced by reconstructFromMultiRP(), and reconstructFromSingleRP().