#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 | |
std::string | beam1filename |
std::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, nano_mu_digi_cff::float, edm::ParameterSet::getParameter(), lengthd1, lengthfp420, lengthzdc, 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 118 of file Hector.cc.
References ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, 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 149 of file Hector.cc.
References funct::abs(), ALCARECOTkAlJpsiMuMu_cff::charge, etacut, g, GenParticle::GenParticle, edm::EventSetup::getHandle(), mps_splice::line, m_beamPart, m_direct, m_eta, m_isCharged, m_pdg, m_pz, m_verbosity, EgHLTOffHistBins_cfi::mass, pdt, multPhiCorr_741_25nsDY_cfi::px, multPhiCorr_741_25nsDY_cfi::py, and tok_pdt_.
Referenced by 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 477 of file Hector.cc.
References funct::cos(), hcalRecHitTable_cff::energy, GenParticle::GenParticle, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, lengthd1, mps_splice::line, 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 hcalRecHitTable_cff::time.
void Hector::clear | ( | void | ) |
Clears BeamParticle, prepares Hector for a next Aperture check or/and a next event
Definition at line 137 of file Hector.cc.
References ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, m_beamPart, m_direct, m_eta, m_isCharged, m_pdg, and m_pz.
void Hector::clearApertureFlags | ( | ) |
Clears ApertureFlags, prepares Hector for a next event
Definition at line 131 of file Hector.cc.
References m_isStoppedd1, m_isStoppedfp420, and m_isStoppedzdc.
void Hector::filterD1 | ( | TRandom3 * | rootEngine | ) |
propagate the particles through a beamline to ZDC
Definition at line 378 of file Hector.cc.
References ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, lengthd1, mps_splice::line, 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().
void Hector::filterFP420 | ( | TRandom3 * | rootEngine | ) |
propagate the particles through a beamline to FP420
Definition at line 211 of file Hector.cc.
References ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, lengthfp420, mps_splice::line, 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().
void Hector::filterZDC | ( | TRandom3 * | rootEngine | ) |
propagate the particles through a beamline to ZDC
Definition at line 302 of file Hector.cc.
References ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, lengthzdc, mps_splice::line, 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().
|
inline |
Definition at line 66 of file Hector.h.
References theCorrespondenceMap.
int Hector::getDirect | ( | unsigned int | part_n | ) | const |
Definition at line 463 of file Hector.cc.
References ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and m_direct.
void Hector::print | ( | void | ) | const |
Prints properties of all particles in a beamline
Definition at line 471 of file Hector.cc.
References ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, and m_beamPart.
|
private |
|
private |
|
private |
|
private |
Definition at line 74 of file Hector.h.
Referenced by addPartToHepMC(), filterD1(), and Hector().
|
private |
Definition at line 72 of file Hector.h.
Referenced by filterFP420(), and Hector().
|
private |
Definition at line 73 of file Hector.h.
Referenced by filterZDC(), and Hector().
|
private |
Definition at line 95 of file Hector.h.
Referenced by filterD1(), Hector(), and ~Hector().
|
private |
Definition at line 96 of file Hector.h.
Referenced by filterD1(), Hector(), and ~Hector().
|
private |
Definition at line 91 of file Hector.h.
Referenced by filterFP420(), Hector(), and ~Hector().
|
private |
Definition at line 92 of file Hector.h.
Referenced by filterFP420(), Hector(), and ~Hector().
|
private |
Definition at line 93 of file Hector.h.
Referenced by filterZDC(), Hector(), and ~Hector().
|
private |
Definition at line 94 of file Hector.h.
Referenced by filterZDC(), Hector(), and ~Hector().
|
private |
Definition at line 102 of file Hector.h.
Referenced by add(), addPartToHepMC(), clear(), filterD1(), filterFP420(), filterZDC(), print(), and ~Hector().
|
private |
Definition at line 103 of file Hector.h.
Referenced by add(), addPartToHepMC(), clear(), filterD1(), filterFP420(), filterZDC(), and getDirect().
|
private |
Definition at line 111 of file Hector.h.
Referenced by addPartToHepMC(), filterD1(), and filterFP420().
|
private |
|
private |
Definition at line 122 of file Hector.h.
Referenced by addPartToHepMC(), filterZDC(), and Hector().
|
private |
Definition at line 116 of file Hector.h.
Referenced by add(), clear(), filterD1(), filterFP420(), and filterZDC().
|
private |
Definition at line 106 of file Hector.h.
Referenced by addPartToHepMC(), clearApertureFlags(), and filterD1().
|
private |
Definition at line 104 of file Hector.h.
Referenced by addPartToHepMC(), clearApertureFlags(), filterFP420(), and filterZDC().
|
private |
Definition at line 105 of file Hector.h.
Referenced by addPartToHepMC(), clearApertureFlags(), filterD1(), and filterZDC().
|
private |
|
private |
|
private |
Definition at line 84 of file Hector.h.
Referenced by addPartToHepMC(), filterFP420(), and Hector().
|
private |
Definition at line 83 of file Hector.h.
Referenced by addPartToHepMC(), filterFP420(), and Hector().
|
private |
Definition at line 78 of file Hector.h.
Referenced by filterD1(), filterFP420(), filterZDC(), and Hector().
|
private |
Definition at line 80 of file Hector.h.
Referenced by filterD1(), filterFP420(), filterZDC(), and Hector().
|
private |
Definition at line 81 of file Hector.h.
Referenced by filterD1(), filterFP420(), filterZDC(), and Hector().
|
private |
Definition at line 77 of file Hector.h.
Referenced by filterD1(), filterFP420(), filterZDC(), and Hector().
|
private |
Definition at line 79 of file Hector.h.
Referenced by filterD1(), filterFP420(), filterZDC(), and Hector().
|
private |
Definition at line 109 of file Hector.h.
Referenced by addPartToHepMC(), filterD1(), and filterFP420().
|
private |
Definition at line 110 of file Hector.h.
Referenced by addPartToHepMC(), filterD1(), and filterFP420().
|
private |
Definition at line 121 of file Hector.h.
Referenced by add(), addPartToHepMC(), filterD1(), filterFP420(), filterZDC(), and Hector().
|
private |
Definition at line 107 of file Hector.h.
Referenced by addPartToHepMC(), filterD1(), and filterFP420().
|
private |
Definition at line 108 of file Hector.h.
Referenced by addPartToHepMC(), filterD1(), and filterFP420().
|
private |
Definition at line 123 of file Hector.h.
Referenced by addPartToHepMC(), and Hector().
|
private |
|
private |
Definition at line 125 of file Hector.h.
Referenced by addPartToHepMC(), getCorrespondenceMap(), and Hector().
|
private |