#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, const edm::ESGetToken< HepPDT::ParticleDataTable, PDTRecord > &, 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 |
const edm::ESGetToken < HepPDT::ParticleDataTable, PDTRecord > | tok_pdt_ |
Hector::Hector | ( | const edm::ParameterSet & | ps, |
const edm::ESGetToken< HepPDT::ParticleDataTable, PDTRecord > & | token, | ||
bool | verbosity, | ||
bool | FP420Transport, | ||
bool | ZDCTransport | ||
) |
Definition at line 17 of file Hector.cc.
References b1, b2, beam1filename, beam2filename, etacut, 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 136 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 167 of file Hector.cc.
References funct::abs(), RecoTauCleanerPlugins::charge, etacut, g, GenParticle::GenParticle, edm::EventSetup::getHandle(), geometryCSVtoXML::line, m_beamPart, m_direct, m_eta, m_isCharged, m_pdg, m_pz, m_verbosity, ResonanceBuilder::mass, pdt, and tok_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 506 of file Hector.cc.
References funct::cos(), relval_parameters_module::energy, GenParticle::GenParticle, lengthd1, geometryCSVtoXML::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, and theta().
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 155 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 149 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 405 of file Hector.cc.
References lengthd1, geometryCSVtoXML::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 230 of file Hector.cc.
References lengthfp420, geometryCSVtoXML::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 322 of file Hector.cc.
References lengthzdc, geometryCSVtoXML::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 77 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 500 of file Hector.cc.
References m_beamPart.
|
private |
|
private |
|
private |
|
private |
Definition at line 88 of file Hector.h.
Referenced by addPartToHepMC(), filterD1(), and Hector().
|
private |
Definition at line 86 of file Hector.h.
Referenced by filterFP420(), and Hector().
|
private |
Definition at line 87 of file Hector.h.
Referenced by filterZDC(), and Hector().
|
private |
Definition at line 109 of file Hector.h.
Referenced by filterD1(), Hector(), and ~Hector().
|
private |
Definition at line 110 of file Hector.h.
Referenced by filterD1(), Hector(), and ~Hector().
|
private |
Definition at line 105 of file Hector.h.
Referenced by filterFP420(), Hector(), and ~Hector().
|
private |
Definition at line 106 of file Hector.h.
Referenced by filterFP420(), Hector(), and ~Hector().
|
private |
Definition at line 107 of file Hector.h.
Referenced by filterZDC(), Hector(), and ~Hector().
|
private |
Definition at line 108 of file Hector.h.
Referenced by filterZDC(), Hector(), and ~Hector().
|
private |
Definition at line 116 of file Hector.h.
Referenced by add(), addPartToHepMC(), clear(), filterD1(), filterFP420(), filterZDC(), print(), and ~Hector().
|
private |
Definition at line 117 of file Hector.h.
Referenced by add(), addPartToHepMC(), clear(), filterD1(), filterFP420(), filterZDC(), and getDirect().
|
private |
Definition at line 125 of file Hector.h.
Referenced by addPartToHepMC(), filterD1(), and filterFP420().
|
private |
|
private |
Definition at line 136 of file Hector.h.
Referenced by addPartToHepMC(), filterZDC(), and Hector().
|
private |
Definition at line 130 of file Hector.h.
Referenced by add(), clear(), filterD1(), filterFP420(), and filterZDC().
|
private |
Definition at line 120 of file Hector.h.
Referenced by addPartToHepMC(), clearApertureFlags(), and filterD1().
|
private |
Definition at line 118 of file Hector.h.
Referenced by addPartToHepMC(), clearApertureFlags(), filterFP420(), and filterZDC().
|
private |
Definition at line 119 of file Hector.h.
Referenced by addPartToHepMC(), clearApertureFlags(), filterD1(), and filterZDC().
|
private |
|
private |
|
private |
Definition at line 98 of file Hector.h.
Referenced by addPartToHepMC(), filterFP420(), and Hector().
|
private |
Definition at line 97 of file Hector.h.
Referenced by addPartToHepMC(), filterFP420(), and Hector().
|
private |
Definition at line 92 of file Hector.h.
Referenced by filterD1(), filterFP420(), filterZDC(), and Hector().
|
private |
Definition at line 94 of file Hector.h.
Referenced by filterD1(), filterFP420(), filterZDC(), and Hector().
|
private |
Definition at line 95 of file Hector.h.
Referenced by filterD1(), filterFP420(), filterZDC(), and Hector().
|
private |
Definition at line 91 of file Hector.h.
Referenced by filterD1(), filterFP420(), filterZDC(), and Hector().
|
private |
Definition at line 93 of file Hector.h.
Referenced by filterD1(), filterFP420(), filterZDC(), and Hector().
|
private |
Definition at line 123 of file Hector.h.
Referenced by addPartToHepMC(), filterD1(), and filterFP420().
|
private |
Definition at line 124 of file Hector.h.
Referenced by addPartToHepMC(), filterD1(), and filterFP420().
|
private |
Definition at line 135 of file Hector.h.
Referenced by add(), addPartToHepMC(), filterD1(), filterFP420(), filterZDC(), and Hector().
|
private |
Definition at line 121 of file Hector.h.
Referenced by addPartToHepMC(), filterD1(), and filterFP420().
|
private |
Definition at line 122 of file Hector.h.
Referenced by addPartToHepMC(), filterD1(), and filterFP420().
|
private |
Definition at line 137 of file Hector.h.
Referenced by addPartToHepMC(), and Hector().
|
private |
|
private |
Definition at line 139 of file Hector.h.
Referenced by addPartToHepMC(), getCorrespondenceMap(), and Hector().
|
private |