#include <Hector.h>
Public Member Functions | |
void | add (const HepMC::GenEvent *ev, const edm::EventSetup &es) |
HepMC::GenEvent * | addPartToHepMC (HepMC::GenEvent *event) |
void | clear () |
void | clearApertureFlags () |
void | filterD1 (TRandom3 *) |
void | filterFP420 (TRandom3 *) |
void | filterZDC (TRandom3 *) |
std::vector< LHCTransportLink > & | getCorrespondenceMap () |
int | getDirect (unsigned int part_n) const |
Hector (const edm::ParameterSet &ps, bool verbosity, bool FP420Transport, bool ZDCTransport) | |
void | print () const |
virtual | ~Hector () |
Private Attributes | |
string | beam1filename |
string | beam2filename |
double | etacut |
double | lengthd1 |
double | lengthfp420 |
double | lengthzdc |
H_BeamLine * | m_beamlineD11 |
H_BeamLine * | m_beamlineD12 |
H_BeamLine * | m_beamlineFP4201 |
H_BeamLine * | m_beamlineFP4202 |
H_BeamLine * | m_beamlineZDC1 |
H_BeamLine * | m_beamlineZDC2 |
std::map< unsigned int, H_BeamParticle * > | m_beamPart |
std::map< unsigned int, int > | m_direct |
std::map< unsigned int, double > | m_eAtTrPoint |
std::map< unsigned int, double > | m_eta |
bool | m_FP420Transport |
std::map< unsigned int, bool > | m_isCharged |
std::map< unsigned int, bool > | m_isStoppedd1 |
std::map< unsigned int, bool > | m_isStoppedfp420 |
std::map< unsigned int, bool > | m_isStoppedzdc |
std::map< unsigned int, int > | m_pdg |
std::map< unsigned int, double > | m_pz |
H_RecRPObject * | m_rp420_b |
H_RecRPObject * | m_rp420_f |
float | m_rpp420_b |
float | m_rpp420_f |
float | m_rppd1 |
float | m_rppzdc |
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 |
bool | m_ZDCTransport |
edm::ESHandle< ParticleDataTable > | pdt |
std::vector< LHCTransportLink > | theCorrespondenceMap |
Hector::Hector | ( | const edm::ParameterSet & | ps, |
bool | verbosity, | ||
bool | FP420Transport, | ||
bool | ZDCTransport | ||
) |
Definition at line 17 of file Hector.cc.
References beam1filename, beam2filename, etacut, objects.autophobj::float, edm::ParameterSet::getParameter(), lengthd1, lengthfp420, lengthzdc, LogDebug, m_beamlineD11, m_beamlineD12, m_beamlineFP4201, m_beamlineFP4202, m_beamlineZDC1, m_beamlineZDC2, m_FP420Transport, m_rpp420_b, m_rpp420_f, m_rppd1, m_rppzdc, m_sig_e, m_sigmaSTX, m_sigmaSTY, m_smearAng, m_smearE, m_verbosity, m_ZDCTransport, and theCorrespondenceMap.
|
virtual |
Definition at line 133 of file Hector.cc.
References m_beamlineD11, m_beamlineD12, m_beamlineFP4201, m_beamlineFP4202, m_beamlineZDC1, m_beamlineZDC2, and m_beamPart.
void Hector::add | ( | const HepMC::GenEvent * | ev, |
const edm::EventSetup & | es | ||
) |
Adds the stable protons from the event ev to a beamline
Definition at line 175 of file Hector.cc.
References funct::abs(), ALCARECOTkAlJpsiMuMu_cff::charge, etacut, g, GenParticle::GenParticle, edm::EventSetup::getData(), mps_splice::line, LogDebug, m_beamPart, m_direct, m_eta, m_isCharged, m_pdg, m_pz, m_verbosity, ResonanceBuilder::mass, and pdt.
Referenced by HectorProducer::produce(), and counter.Counter::register().
HepMC::GenEvent * Hector::addPartToHepMC | ( | HepMC::GenEvent * | event | ) |
Return vector of the particle lines (HepMC::GenParticle::barcode()) in a beamline
Definition at line 515 of file Hector.cc.
References funct::cos(), randomXiThetaGunProducer_cfi::energy, GenParticle::GenParticle, lengthd1, mps_splice::line, LogDebug, m_beamPart, m_direct, m_eAtTrPoint, m_FP420Transport, m_isStoppedd1, m_isStoppedfp420, m_isStoppedzdc, m_rpp420_b, m_rpp420_f, m_TxAtTrPoint, m_TyAtTrPoint, m_verbosity, m_xAtTrPoint, m_yAtTrPoint, m_ZDCTransport, Pi, edm::second(), funct::sin(), mathSSE::sqrt(), theCorrespondenceMap, theta(), and ntuplemaker::time.
Referenced by HectorProducer::produce().
void Hector::clear | ( | void | ) |
Clears BeamParticle, prepares Hector for a next Aperture check or/and a next event
Definition at line 152 of file Hector.cc.
References m_beamPart, m_direct, m_eta, m_isCharged, m_pdg, and m_pz.
Referenced by HectorProducer::produce().
void Hector::clearApertureFlags | ( | ) |
Clears ApertureFlags, prepares Hector for a next event
Definition at line 146 of file Hector.cc.
References m_isStoppedd1, m_isStoppedfp420, and m_isStoppedzdc.
Referenced by HectorProducer::produce().
void Hector::filterD1 | ( | TRandom3 * | rootEngine | ) |
propagate the particles through a beamline to ZDC
Definition at line 414 of file Hector.cc.
References lengthd1, mps_splice::line, LogDebug, m_beamlineD11, m_beamlineD12, m_beamPart, m_direct, m_eAtTrPoint, m_isCharged, m_isStoppedd1, m_isStoppedzdc, m_sig_e, m_sigmaSTX, m_sigmaSTY, m_smearAng, m_smearE, m_TxAtTrPoint, m_TyAtTrPoint, m_verbosity, m_xAtTrPoint, m_yAtTrPoint, and edm::second().
Referenced by HectorProducer::produce().
void Hector::filterFP420 | ( | TRandom3 * | rootEngine | ) |
propagate the particles through a beamline to FP420
Definition at line 237 of file Hector.cc.
References lengthfp420, mps_splice::line, LogDebug, m_beamlineFP4201, m_beamlineFP4202, m_beamPart, m_direct, m_eAtTrPoint, m_isCharged, m_isStoppedfp420, m_rpp420_b, m_rpp420_f, m_sig_e, m_sigmaSTX, m_sigmaSTY, m_smearAng, m_smearE, m_TxAtTrPoint, m_TyAtTrPoint, m_verbosity, m_xAtTrPoint, m_yAtTrPoint, and edm::second().
Referenced by HectorProducer::produce().
void Hector::filterZDC | ( | TRandom3 * | rootEngine | ) |
propagate the particles through a beamline to ZDC
Definition at line 329 of file Hector.cc.
References lengthzdc, mps_splice::line, LogDebug, m_beamlineZDC1, m_beamlineZDC2, m_beamPart, m_direct, m_FP420Transport, m_isCharged, m_isStoppedfp420, m_isStoppedzdc, m_sig_e, m_sigmaSTX, m_sigmaSTY, m_smearAng, m_smearE, m_verbosity, and edm::second().
Referenced by HectorProducer::produce().
|
inline |
Definition at line 73 of file Hector.h.
References theCorrespondenceMap.
Referenced by HectorProducer::produce().
int Hector::getDirect | ( | unsigned int | part_n | ) | const |
void Hector::print | ( | void | ) | const |
Prints properties of all particles in a beamline
Definition at line 509 of file Hector.cc.
References m_beamPart.
|
private |
|
private |
|
private |
|
private |
Definition at line 83 of file Hector.h.
Referenced by addPartToHepMC(), filterD1(), and Hector().
|
private |
Definition at line 81 of file Hector.h.
Referenced by filterFP420(), and Hector().
|
private |
Definition at line 82 of file Hector.h.
Referenced by filterZDC(), and Hector().
|
private |
Definition at line 104 of file Hector.h.
Referenced by filterD1(), Hector(), and ~Hector().
|
private |
Definition at line 105 of file Hector.h.
Referenced by filterD1(), Hector(), and ~Hector().
|
private |
Definition at line 100 of file Hector.h.
Referenced by filterFP420(), Hector(), and ~Hector().
|
private |
Definition at line 101 of file Hector.h.
Referenced by filterFP420(), Hector(), and ~Hector().
|
private |
Definition at line 102 of file Hector.h.
Referenced by filterZDC(), Hector(), and ~Hector().
|
private |
Definition at line 103 of file Hector.h.
Referenced by filterZDC(), Hector(), and ~Hector().
|
private |
Definition at line 111 of file Hector.h.
Referenced by add(), addPartToHepMC(), clear(), filterD1(), filterFP420(), filterZDC(), print(), and ~Hector().
|
private |
Definition at line 112 of file Hector.h.
Referenced by add(), addPartToHepMC(), clear(), filterD1(), filterFP420(), filterZDC(), and getDirect().
|
private |
Definition at line 120 of file Hector.h.
Referenced by addPartToHepMC(), filterD1(), and filterFP420().
|
private |
|
private |
Definition at line 131 of file Hector.h.
Referenced by addPartToHepMC(), filterZDC(), and Hector().
|
private |
Definition at line 125 of file Hector.h.
Referenced by add(), clear(), filterD1(), filterFP420(), and filterZDC().
|
private |
Definition at line 115 of file Hector.h.
Referenced by addPartToHepMC(), clearApertureFlags(), and filterD1().
|
private |
Definition at line 113 of file Hector.h.
Referenced by addPartToHepMC(), clearApertureFlags(), filterFP420(), and filterZDC().
|
private |
Definition at line 114 of file Hector.h.
Referenced by addPartToHepMC(), clearApertureFlags(), filterD1(), and filterZDC().
|
private |
|
private |
|
private |
Definition at line 93 of file Hector.h.
Referenced by addPartToHepMC(), filterFP420(), and Hector().
|
private |
Definition at line 92 of file Hector.h.
Referenced by addPartToHepMC(), filterFP420(), and Hector().
|
private |
Definition at line 87 of file Hector.h.
Referenced by filterD1(), filterFP420(), filterZDC(), and Hector().
|
private |
Definition at line 89 of file Hector.h.
Referenced by filterD1(), filterFP420(), filterZDC(), and Hector().
|
private |
Definition at line 90 of file Hector.h.
Referenced by filterD1(), filterFP420(), filterZDC(), and Hector().
|
private |
Definition at line 86 of file Hector.h.
Referenced by filterD1(), filterFP420(), filterZDC(), and Hector().
|
private |
Definition at line 88 of file Hector.h.
Referenced by filterD1(), filterFP420(), filterZDC(), and Hector().
|
private |
Definition at line 118 of file Hector.h.
Referenced by addPartToHepMC(), filterD1(), and filterFP420().
|
private |
Definition at line 119 of file Hector.h.
Referenced by addPartToHepMC(), filterD1(), and filterFP420().
|
private |
Definition at line 130 of file Hector.h.
Referenced by add(), addPartToHepMC(), filterD1(), filterFP420(), filterZDC(), and Hector().
|
private |
Definition at line 116 of file Hector.h.
Referenced by addPartToHepMC(), filterD1(), and filterFP420().
|
private |
Definition at line 117 of file Hector.h.
Referenced by addPartToHepMC(), filterD1(), and filterFP420().
|
private |
Definition at line 132 of file Hector.h.
Referenced by addPartToHepMC(), and Hector().
|
private |
|
private |
Definition at line 134 of file Hector.h.
Referenced by addPartToHepMC(), getCorrespondenceMap(), and Hector().