#include <OpticalFunctionsTransport.h>
Public Member Functions | |
OpticalFunctionsTransport (const edm::ParameterSet &ps, edm::ConsumesCollector iC) | |
void | process (const HepMC::GenEvent *ev, const edm::EventSetup &es, CLHEP::HepRandomEngine *engine) override |
~OpticalFunctionsTransport () override | |
Public Member Functions inherited from BaseProtonTransport | |
void | addPartToHepMC (const HepMC::GenEvent *, HepMC::GenEvent *) |
void | ApplyBeamCorrection (HepMC::GenParticle *p) |
void | ApplyBeamCorrection (TLorentzVector &p) |
BaseProtonTransport (const edm::ParameterSet &iConfig) | |
double | beamEnergy () |
double | beamMomentum () |
void | clear () |
std::vector< LHCTransportLink > & | getCorrespondenceMap () |
virtual | ~BaseProtonTransport () |
Private Member Functions | |
bool | transportProton (const HepMC::GenParticle *) |
Private Attributes | |
const CTPPSBeamParameters * | beamParameters_ {nullptr} |
edm::ESGetToken< CTPPSBeamParameters, CTPPSBeamParametersRcd > | beamParametersToken_ |
const SimBeamSpotObjects * | beamspot_ {nullptr} |
edm::ESGetToken< SimBeamSpotObjects, SimBeamSpotObjectsRcd > | beamspotToken_ |
double | empiricalAperture45_a_int_ |
double | empiricalAperture45_a_slp_ |
double | empiricalAperture45_xi0_int_ |
double | empiricalAperture45_xi0_slp_ |
double | empiricalAperture56_a_int_ |
double | empiricalAperture56_a_slp_ |
double | empiricalAperture56_xi0_int_ |
double | empiricalAperture56_xi0_slp_ |
const LHCInfo * | lhcInfo_ {nullptr} |
edm::ESGetToken< LHCInfo, LHCInfoRcd > | lhcInfoToken_ |
unsigned int | optFunctionId45_ {0} |
unsigned int | optFunctionId56_ {0} |
const LHCInterpolatedOpticalFunctionsSetCollection * | opticalFunctions_ {nullptr} |
edm::ESGetToken< LHCInterpolatedOpticalFunctionsSetCollection, CTPPSInterpolatedOpticsRcd > | opticsToken_ |
bool | useEmpiricalApertures_ |
Additional Inherited Members | |
Protected Types inherited from BaseProtonTransport | |
enum | TransportMode { TransportMode::HECTOR, TransportMode::TOTEM, TransportMode::OPTICALFUNCTIONS } |
Protected Member Functions inherited from BaseProtonTransport | |
void | setBeamFileNames (const std::string &nam1, const std::string &nam2) |
void | setBeamParameters (double stx, double sty, double sx, double sy, double se) |
void | setCrossingAngles (double cx45, double cx56, double cy45, double cy56) |
Protected Attributes inherited from BaseProtonTransport | |
bool | bApplyZShift_ |
std::string | beam1Filename_ {""} |
std::string | beam2Filename_ {""} |
CLHEP::HepRandomEngine * | engine_ {nullptr} |
double | etaCut_ |
double | fCrossingAngleX_45_ {0.0} |
double | fCrossingAngleX_56_ {0.0} |
double | fCrossingAngleY_45_ {0.0} |
double | fCrossingAngleY_56_ {0.0} |
double | fPPSRegionStart_45_ |
double | fPPSRegionStart_56_ |
std::map< unsigned int, TLorentzVector > | m_beamPart |
std::vector< LHCTransportLink > | m_CorrespondenceMap |
std::map< unsigned int, double > | m_xAtTrPoint |
std::map< unsigned int, double > | m_yAtTrPoint |
TransportMode | MODE |
double | momentumCut_ |
bool | produceHitsRelativeToBeam_ |
bool | useBeamPositionFromLHCInfo_ |
bool | verbosity_ |
Definition at line 19 of file OpticalFunctionsTransport.h.
OpticalFunctionsTransport::OpticalFunctionsTransport | ( | const edm::ParameterSet & | ps, |
edm::ConsumesCollector | iC | ||
) |
Definition at line 4 of file OpticalFunctionsTransport.cc.
References BaseProtonTransport::MODE, and BaseProtonTransport::OPTICALFUNCTIONS.
|
override |
Definition at line 21 of file OpticalFunctionsTransport.cc.
|
overridevirtual |
Implements BaseProtonTransport.
Definition at line 23 of file OpticalFunctionsTransport.cc.
References beamParameters_, beamParametersToken_, beamspot_, beamspotToken_, BaseProtonTransport::clear(), BaseProtonTransport::engine_, BaseProtonTransport::etaCut_, GenParticle::GenParticle, edm::EventSetup::getData(), lhcInfo_, lhcInfoToken_, mps_splice::line, BaseProtonTransport::m_beamPart, BaseProtonTransport::momentumCut_, optFunctionId45_, optFunctionId56_, opticalFunctions_, opticsToken_, and transportProton().
|
private |
Definition at line 75 of file OpticalFunctionsTransport.cc.
References funct::abs(), CTPPSDetId::arm(), BaseProtonTransport::beamMomentum(), beamParameters_, beamspot_, cm_to_mm, LHCInfo::crossingAngle(), MillePedeFileConverter_cfg::e, SiPixelPhase1Clusters_cfi::e3, empiricalAperture45_a_int_, empiricalAperture45_a_slp_, empiricalAperture45_xi0_int_, empiricalAperture45_xi0_slp_, empiricalAperture56_a_int_, empiricalAperture56_a_slp_, empiricalAperture56_xi0_int_, empiricalAperture56_xi0_slp_, BaseProtonTransport::fPPSRegionStart_45_, BaseProtonTransport::fPPSRegionStart_56_, CTPPSBeamParameters::getBeamMom45(), CTPPSBeamParameters::getBeamMom56(), CTPPSBeamParameters::getHalfXangleX45(), CTPPSBeamParameters::getHalfXangleX56(), CTPPSBeamParameters::getVtxOffsetX45(), CTPPSBeamParameters::getVtxOffsetY45(), lhcInfo_, mps_splice::line, LogDebug, BaseProtonTransport::m_beamPart, BaseProtonTransport::m_xAtTrPoint, BaseProtonTransport::m_yAtTrPoint, optFunctionId45_, optFunctionId56_, opticalFunctions_, AlCaHLTBitMon_ParallelJobs::p, BaseProtonTransport::produceHitsRelativeToBeam_, ProtonMassSQ, multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, CTPPSDetId::rp(), mathSSE::sqrt(), CTPPSDetId::station(), funct::tan(), LHCInterpolatedOpticalFunctionsSet::Kinematics::th_x, LHCInterpolatedOpticalFunctionsSet::Kinematics::th_y, urad, BaseProtonTransport::useBeamPositionFromLHCInfo_, useEmpiricalApertures_, BaseProtonTransport::verbosity_, LHCInterpolatedOpticalFunctionsSet::Kinematics::x, SimBeamSpotObjects::x(), profile_base_cff::xangle, protons_cff::xi, LHCInterpolatedOpticalFunctionsSet::Kinematics::y, and SimBeamSpotObjects::y().
Referenced by process().
|
private |
Definition at line 35 of file OpticalFunctionsTransport.h.
Referenced by process(), and transportProton().
|
private |
Definition at line 30 of file OpticalFunctionsTransport.h.
Referenced by process().
|
private |
Definition at line 37 of file OpticalFunctionsTransport.h.
Referenced by process(), and transportProton().
|
private |
Definition at line 32 of file OpticalFunctionsTransport.h.
Referenced by process().
|
private |
Definition at line 43 of file OpticalFunctionsTransport.h.
Referenced by transportProton().
|
private |
Definition at line 43 of file OpticalFunctionsTransport.h.
Referenced by transportProton().
|
private |
Definition at line 43 of file OpticalFunctionsTransport.h.
Referenced by transportProton().
|
private |
Definition at line 43 of file OpticalFunctionsTransport.h.
Referenced by transportProton().
|
private |
Definition at line 45 of file OpticalFunctionsTransport.h.
Referenced by transportProton().
|
private |
Definition at line 45 of file OpticalFunctionsTransport.h.
Referenced by transportProton().
|
private |
Definition at line 45 of file OpticalFunctionsTransport.h.
Referenced by transportProton().
|
private |
Definition at line 45 of file OpticalFunctionsTransport.h.
Referenced by transportProton().
|
private |
Definition at line 34 of file OpticalFunctionsTransport.h.
Referenced by process(), and transportProton().
|
private |
Definition at line 29 of file OpticalFunctionsTransport.h.
Referenced by process().
|
private |
Definition at line 39 of file OpticalFunctionsTransport.h.
Referenced by process(), and transportProton().
|
private |
Definition at line 40 of file OpticalFunctionsTransport.h.
Referenced by process(), and transportProton().
|
private |
Definition at line 36 of file OpticalFunctionsTransport.h.
Referenced by process(), and transportProton().
|
private |
Definition at line 31 of file OpticalFunctionsTransport.h.
Referenced by process().
|
private |
Definition at line 42 of file OpticalFunctionsTransport.h.
Referenced by transportProton().