#include <CTPPSHector.h>
Public Types | |
typedef CLHEP::HepLorentzVector | LorentzVector |
Public Member Functions | |
void | add (const HepMC::GenEvent *ev, const edm::EventSetup &es, CLHEP::HepRandomEngine *engine) |
HepMC::GenEvent * | addPartToHepMC (HepMC::GenEvent *event) |
void | ApplyBeamCorrection (LorentzVector &, CLHEP::HepRandomEngine *engine) |
void | clear () |
void | clearApertureFlags () |
CTPPSHector (const edm::ParameterSet &ps, bool verbosity, bool CTPPSTransport) | |
void | filterCTPPS (TRandom3 *) |
double | get_BeamEnergy () |
double | get_BeamMomentum () |
std::vector< LHCTransportLink > & | getCorrespondenceMap () |
int | getDirect (unsigned int part_n) const |
void | LorentzBoost (LorentzVector &p_out, const string &frame) |
void | print () const |
void | set_BeamEnergy (double e) |
virtual | ~CTPPSHector () |
Private Attributes | |
string | beam1filename |
string | beam2filename |
double | etacut |
double | fBeamEnergy |
double | fBeamMomentum |
bool | fCrossAngleCorr |
double | fCrossingAngle |
double | fMomentumMin |
double | fVtxMeanX |
double | fVtxMeanY |
double | fVtxMeanZ |
double | lengthctpps |
float | m_b_ctpps_b |
std::unique_ptr< H_BeamLine > | m_beamlineCTPPS1 |
std::unique_ptr< H_BeamLine > | m_beamlineCTPPS2 |
std::map< unsigned int, H_BeamParticle * > | m_beamPart |
bool | m_CTPPSTransport |
std::map< unsigned int, int > | m_direct |
std::map< unsigned int, double > | m_eAtTrPoint |
std::map< unsigned int, double > | m_eta |
float | m_f_ctpps_f |
std::map< unsigned int, bool > | m_isCharged |
std::map< unsigned int, bool > | m_isStoppedctpps |
std::map< unsigned int, int > | m_pdg |
std::map< unsigned int, double > | m_pz |
double | m_sig_e |
double | m_sigmaSTX |
double | m_sigmaSTY |
bool | m_smearAng |
bool | m_smearE |
std::map< unsigned int, double > | m_TxAtTrPoint |
std::map< unsigned int, double > | m_TyAtTrPoint |
bool | m_verbosity |
std::map< unsigned int, double > | m_xAtTrPoint |
std::map< unsigned int, double > | m_yAtTrPoint |
int | NEvent |
edm::ESHandle< ParticleDataTable > | pdt |
std::vector< LHCTransportLink > | theCorrespondenceMap |
Definition at line 39 of file CTPPSHector.h.
typedef CLHEP::HepLorentzVector CTPPSHector::LorentzVector |
Definition at line 46 of file CTPPSHector.h.
CTPPSHector::CTPPSHector | ( | const edm::ParameterSet & | ps, |
bool | verbosity, | ||
bool | CTPPSTransport | ||
) |
Definition at line 20 of file CTPPSHector.cc.
References beam1filename, beam2filename, etacut, fBeamEnergy, fCrossAngleCorr, fCrossingAngle, objects.autophobj::float, fMomentumMin, fVtxMeanX, fVtxMeanY, fVtxMeanZ, edm::ParameterSet::getParameter(), lengthctpps, LogDebug, m_b_ctpps_b, m_beamlineCTPPS1, m_beamlineCTPPS2, m_CTPPSTransport, m_f_ctpps_f, m_sig_e, m_sigmaSTX, m_sigmaSTY, m_smearAng, m_smearE, m_verbosity, and theCorrespondenceMap.
|
virtual |
Definition at line 99 of file CTPPSHector.cc.
References m_beamPart.
void CTPPSHector::add | ( | const HepMC::GenEvent * | ev, |
const edm::EventSetup & | es, | ||
CLHEP::HepRandomEngine * | engine | ||
) |
Adds the stable protons from the event ev to a beamline
Definition at line 123 of file CTPPSHector.cc.
References funct::abs(), ApplyBeamCorrection(), ALCARECOTkAlJpsiMuMu_cff::charge, cm_to_m, cm_to_um, MillePedeFileConverter_cfg::e, etacut, fCrossAngleCorr, fMomentumMin, fVtxMeanX, fVtxMeanY, fVtxMeanZ, g, GenParticle::GenParticle, edm::EventSetup::getData(), geometryCSVtoXML::line, LogDebug, LorentzBoost(), m_beamPart, m_direct, m_eta, m_isCharged, m_pdg, m_pz, m_verbosity, ResonanceBuilder::mass, NULL, pdt, funct::pow(), and mathSSE::sqrt().
Referenced by CTPPSHectorProducer::produce(), and counter.Counter::register().
HepMC::GenEvent * CTPPSHector::addPartToHepMC | ( | HepMC::GenEvent * | event | ) |
Definition at line 345 of file CTPPSHector.cc.
References funct::cos(), GenParticle::GenParticle, geometryCSVtoXML::line, LogDebug, m_b_ctpps_b, m_beamPart, m_CTPPSTransport, m_direct, m_eAtTrPoint, m_f_ctpps_f, m_isStoppedctpps, m_TxAtTrPoint, m_TyAtTrPoint, m_verbosity, m_xAtTrPoint, m_yAtTrPoint, NEvent, pi, ProtonMassSQ, edm::second(), funct::sin(), mathSSE::sqrt(), theCorrespondenceMap, theta(), and ntuplemaker::time.
Referenced by get_BeamMomentum(), and CTPPSHectorProducer::produce().
void CTPPSHector::ApplyBeamCorrection | ( | LorentzVector & | p_out, |
CLHEP::HepRandomEngine * | engine | ||
) |
Definition at line 281 of file CTPPSHector.cc.
References funct::cos(), MillePedeFileConverter_cfg::e, m_sig_e, m_sigmaSTX, m_sigmaSTY, m_smearAng, m_smearE, AlCaHLTBitMon_ParallelJobs::p, pi, ProtonMassSQ, funct::sin(), mathSSE::sqrt(), and theta().
Referenced by add(), and get_BeamMomentum().
void CTPPSHector::clear | ( | void | ) |
Clears BeamParticle, prepares CTPPSHector for a next Aperture check or/and a next event
Definition at line 111 of file CTPPSHector.cc.
References m_beamPart, m_direct, m_eta, m_isCharged, m_pdg, and m_pz.
Referenced by CTPPSHectorProducer::produce().
void CTPPSHector::clearApertureFlags | ( | ) |
Clears ApertureFlags, prepares CTPPSHector for a next event
Definition at line 107 of file CTPPSHector.cc.
References m_isStoppedctpps.
Referenced by CTPPSHectorProducer::produce().
void CTPPSHector::filterCTPPS | ( | TRandom3 * | rootEngine | ) |
propagate the particles through a beamline to CTPPS
Definition at line 197 of file CTPPSHector.cc.
References lengthctpps, geometryCSVtoXML::line, LogDebug, m_b_ctpps_b, m_beamlineCTPPS1, m_beamlineCTPPS2, m_beamPart, m_direct, m_eAtTrPoint, m_f_ctpps_f, m_isCharged, m_isStoppedctpps, m_TxAtTrPoint, m_TyAtTrPoint, m_verbosity, m_xAtTrPoint, m_yAtTrPoint, NULL, and edm::second().
Referenced by CTPPSHectorProducer::produce().
|
inline |
|
inline |
Definition at line 65 of file CTPPSHector.h.
References addPartToHepMC(), ApplyBeamCorrection(), fBeamMomentum, getDirect(), and print().
|
inline |
Definition at line 76 of file CTPPSHector.h.
References theCorrespondenceMap.
Referenced by CTPPSHectorProducer::produce().
int CTPPSHector::getDirect | ( | unsigned int | part_n | ) | const |
Definition at line 267 of file CTPPSHector.cc.
References m_direct.
Referenced by get_BeamMomentum().
void CTPPSHector::LorentzBoost | ( | LorentzVector & | p_out, |
const string & | frame | ||
) |
Definition at line 305 of file CTPPSHector.cc.
References funct::cos(), fCrossingAngle, p4, funct::sin(), and funct::tan().
Referenced by add().
void CTPPSHector::print | ( | void | ) | const |
Prints properties of all particles in a beamline
Definition at line 275 of file CTPPSHector.cc.
References m_beamPart.
Referenced by get_BeamMomentum().
|
inline |
Definition at line 61 of file CTPPSHector.h.
References MillePedeFileConverter_cfg::e, fBeamEnergy, fBeamMomentum, ProtonMassSQ, and mathSSE::sqrt().
|
private |
Definition at line 121 of file CTPPSHector.h.
Referenced by CTPPSHector().
|
private |
Definition at line 122 of file CTPPSHector.h.
Referenced by CTPPSHector().
|
private |
Definition at line 82 of file CTPPSHector.h.
Referenced by add(), and CTPPSHector().
|
private |
Definition at line 95 of file CTPPSHector.h.
Referenced by CTPPSHector(), get_BeamEnergy(), and set_BeamEnergy().
|
private |
Definition at line 94 of file CTPPSHector.h.
Referenced by get_BeamMomentum(), and set_BeamEnergy().
|
private |
Definition at line 92 of file CTPPSHector.h.
Referenced by add(), and CTPPSHector().
|
private |
Definition at line 93 of file CTPPSHector.h.
Referenced by CTPPSHector(), and LorentzBoost().
|
private |
Definition at line 99 of file CTPPSHector.h.
Referenced by add(), and CTPPSHector().
|
private |
Definition at line 96 of file CTPPSHector.h.
Referenced by add(), and CTPPSHector().
|
private |
Definition at line 97 of file CTPPSHector.h.
Referenced by add(), and CTPPSHector().
|
private |
Definition at line 98 of file CTPPSHector.h.
Referenced by add(), and CTPPSHector().
|
private |
Definition at line 80 of file CTPPSHector.h.
Referenced by CTPPSHector(), and filterCTPPS().
|
private |
Definition at line 89 of file CTPPSHector.h.
Referenced by addPartToHepMC(), CTPPSHector(), and filterCTPPS().
|
private |
Definition at line 104 of file CTPPSHector.h.
Referenced by CTPPSHector(), and filterCTPPS().
|
private |
Definition at line 105 of file CTPPSHector.h.
Referenced by CTPPSHector(), and filterCTPPS().
|
private |
Definition at line 107 of file CTPPSHector.h.
Referenced by add(), addPartToHepMC(), clear(), filterCTPPS(), print(), and ~CTPPSHector().
|
private |
Definition at line 125 of file CTPPSHector.h.
Referenced by addPartToHepMC(), and CTPPSHector().
|
private |
Definition at line 108 of file CTPPSHector.h.
Referenced by add(), addPartToHepMC(), clear(), filterCTPPS(), and getDirect().
|
private |
Definition at line 114 of file CTPPSHector.h.
Referenced by addPartToHepMC(), and filterCTPPS().
|
private |
Definition at line 116 of file CTPPSHector.h.
|
private |
Definition at line 88 of file CTPPSHector.h.
Referenced by addPartToHepMC(), CTPPSHector(), and filterCTPPS().
|
private |
Definition at line 119 of file CTPPSHector.h.
Referenced by add(), clear(), and filterCTPPS().
|
private |
Definition at line 109 of file CTPPSHector.h.
Referenced by addPartToHepMC(), clearApertureFlags(), and filterCTPPS().
|
private |
Definition at line 117 of file CTPPSHector.h.
|
private |
Definition at line 118 of file CTPPSHector.h.
|
private |
Definition at line 84 of file CTPPSHector.h.
Referenced by ApplyBeamCorrection(), and CTPPSHector().
|
private |
Definition at line 86 of file CTPPSHector.h.
Referenced by ApplyBeamCorrection(), and CTPPSHector().
|
private |
Definition at line 87 of file CTPPSHector.h.
Referenced by ApplyBeamCorrection(), and CTPPSHector().
|
private |
Definition at line 83 of file CTPPSHector.h.
Referenced by ApplyBeamCorrection(), and CTPPSHector().
|
private |
Definition at line 85 of file CTPPSHector.h.
Referenced by ApplyBeamCorrection(), and CTPPSHector().
|
private |
Definition at line 112 of file CTPPSHector.h.
Referenced by addPartToHepMC(), and filterCTPPS().
|
private |
Definition at line 113 of file CTPPSHector.h.
Referenced by addPartToHepMC(), and filterCTPPS().
|
private |
Definition at line 124 of file CTPPSHector.h.
Referenced by add(), addPartToHepMC(), CTPPSHector(), and filterCTPPS().
|
private |
Definition at line 110 of file CTPPSHector.h.
Referenced by addPartToHepMC(), and filterCTPPS().
|
private |
Definition at line 111 of file CTPPSHector.h.
Referenced by addPartToHepMC(), and filterCTPPS().
|
private |
Definition at line 128 of file CTPPSHector.h.
Referenced by addPartToHepMC().
|
private |
Definition at line 101 of file CTPPSHector.h.
Referenced by add().
|
private |
Definition at line 127 of file CTPPSHector.h.
Referenced by addPartToHepMC(), CTPPSHector(), and getCorrespondenceMap().