#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, 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 | |
Static Private Member Functions | |
static void | doLinearFit (const std::vector< double > &vx, const std::vector< double > &vy, double &b, double &a) |
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... | |
bool | useImprovedInitialEstimate_ |
unsigned int | verbosity_ |
Definition at line 26 of file ProtonReconstructionAlgorithm.h.
ProtonReconstructionAlgorithm::ProtonReconstructionAlgorithm | ( | bool | fit_vtx_y, |
bool | improved_estimate, | ||
unsigned int | verbosity | ||
) |
Definition at line 22 of file ProtonReconstructionAlgorithm.cc.
References chiSquareCalculator_, and fitter_.
|
default |
|
staticprivate |
Definition at line 83 of file ProtonReconstructionAlgorithm.cc.
References edmIntegrityCheck::d, and mps_fire::i.
Referenced by init().
void ProtonReconstructionAlgorithm::init | ( | const LHCInterpolatedOpticalFunctionsSetCollection & | opticalFunctions | ) |
Definition at line 39 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(), ProtonReconstructionAlgorithm::RPOpticsData::optics, AlCaHLTBitMon_ParallelJobs::p, release(), ProtonReconstructionAlgorithm::RPOpticsData::s_L_y_vs_xi, ProtonReconstructionAlgorithm::RPOpticsData::s_v_y_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().
reco::ForwardProton ProtonReconstructionAlgorithm::reconstructFromMultiRP | ( | const CTPPSLocalTrackLiteRefVector & | tracks, |
const LHCInfo & | lhcInfo, | ||
std::ostream & | os | ||
) | const |
run proton reconstruction using multiple-RP strategy
Definition at line 144 of file ProtonReconstructionAlgorithm.cc.
References a, b, EnergyCorrector::c, ProtonReconstructionAlgorithm::RPOpticsData::ch0, ProtonReconstructionAlgorithm::RPOpticsData::ch1, chiSquareCalculator_, LHCInfo::energy(), fitter_, fitVtxY_, mps_fire::i, createfilelist::int, ProtonReconstructionAlgorithm::RPOpticsData::la0, ProtonReconstructionAlgorithm::RPOpticsData::la1, m_rp_optics_, AlCaHLTBitMon_ParallelJobs::p, mps_fire::result, mathSSE::sqrt(), HiIsolationCommonParameters_cff::track, l1t::tracks, useImprovedInitialEstimate_, verbosity_, 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 302 of file ProtonReconstructionAlgorithm.cc.
References funct::abs(), CTPPSDetId::arm(), LHCInfo::energy(), m_rp_optics_, AlCaHLTBitMon_ParallelJobs::p, funct::pow(), edm::RefVector< C, T, F >::push_back(), mathSSE::sqrt(), verbosity_, and hybridSuperClusters_cfi::xi.
Referenced by CTPPSProtonProducer::produce().
void ProtonReconstructionAlgorithm::release | ( | ) |
Definition at line 102 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 81 of file ProtonReconstructionAlgorithm.h.
Referenced by ProtonReconstructionAlgorithm(), and reconstructFromMultiRP().
|
private |
fitter object
Definition at line 78 of file ProtonReconstructionAlgorithm.h.
Referenced by ProtonReconstructionAlgorithm(), and reconstructFromMultiRP().
|
private |
Definition at line 45 of file ProtonReconstructionAlgorithm.h.
Referenced by reconstructFromMultiRP().
|
private |
Definition at line 47 of file ProtonReconstructionAlgorithm.h.
|
private |
map: RP id –> optics data
Definition at line 63 of file ProtonReconstructionAlgorithm.h.
Referenced by init(), reconstructFromMultiRP(), reconstructFromSingleRP(), and release().
|
private |
Definition at line 46 of file ProtonReconstructionAlgorithm.h.
Referenced by reconstructFromMultiRP().
|
private |
Definition at line 44 of file ProtonReconstructionAlgorithm.h.
Referenced by reconstructFromMultiRP(), and reconstructFromSingleRP().