CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
Hector Class Reference

#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< ParticleDataTablepdt
 
std::vector< LHCTransportLinktheCorrespondenceMap
 

Detailed Description

Definition at line 40 of file Hector.h.

Constructor & Destructor Documentation

Hector::Hector ( const edm::ParameterSet ps,
bool  verbosity,
bool  FP420Transport,
bool  ZDCTransport 
)

Definition at line 17 of file Hector.cc.

Hector::~Hector ( )
virtual

Definition at line 121 of file Hector.cc.

Member Function Documentation

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 165 of file Hector.cc.

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 477 of file Hector.cc.

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 142 of file Hector.cc.

Referenced by HectorProducer::produce().

void Hector::clearApertureFlags ( )

Clears ApertureFlags, prepares Hector for a next event

Definition at line 136 of file Hector.cc.

Referenced by HectorProducer::produce().

void Hector::filterD1 ( TRandom3 *  rootEngine)

propagate the particles through a beamline to ZDC

Definition at line 386 of file Hector.cc.

Referenced by HectorProducer::produce().

void Hector::filterFP420 ( TRandom3 *  rootEngine)

propagate the particles through a beamline to FP420

Definition at line 231 of file Hector.cc.

Referenced by HectorProducer::produce().

void Hector::filterZDC ( TRandom3 *  rootEngine)

propagate the particles through a beamline to ZDC

Definition at line 315 of file Hector.cc.

Referenced by HectorProducer::produce().

std::vector<LHCTransportLink>& Hector::getCorrespondenceMap ( )
inline

Definition at line 72 of file Hector.h.

References theCorrespondenceMap.

Referenced by HectorProducer::produce().

72 { return theCorrespondenceMap; }
std::vector< LHCTransportLink > theCorrespondenceMap
Definition: Hector.h:135
int Hector::getDirect ( unsigned int  part_n) const

Definition at line 462 of file Hector.cc.

void Hector::print ( void  ) const

Prints properties of all particles in a beamline

Definition at line 470 of file Hector.cc.

Member Data Documentation

string Hector::beam1filename
private

Definition at line 128 of file Hector.h.

string Hector::beam2filename
private

Definition at line 129 of file Hector.h.

double Hector::etacut
private

Definition at line 86 of file Hector.h.

double Hector::lengthd1
private

Definition at line 84 of file Hector.h.

double Hector::lengthfp420
private

Definition at line 82 of file Hector.h.

double Hector::lengthzdc
private

Definition at line 83 of file Hector.h.

H_BeamLine* Hector::m_beamlineD11
private

Definition at line 105 of file Hector.h.

H_BeamLine* Hector::m_beamlineD12
private

Definition at line 106 of file Hector.h.

H_BeamLine* Hector::m_beamlineFP4201
private

Definition at line 101 of file Hector.h.

H_BeamLine* Hector::m_beamlineFP4202
private

Definition at line 102 of file Hector.h.

H_BeamLine* Hector::m_beamlineZDC1
private

Definition at line 103 of file Hector.h.

H_BeamLine* Hector::m_beamlineZDC2
private

Definition at line 104 of file Hector.h.

std::map<unsigned int, H_BeamParticle*> Hector::m_beamPart
private

Definition at line 112 of file Hector.h.

std::map<unsigned int, int> Hector::m_direct
private

Definition at line 113 of file Hector.h.

std::map<unsigned int, double> Hector::m_eAtTrPoint
private

Definition at line 121 of file Hector.h.

std::map<unsigned int, double> Hector::m_eta
private

Definition at line 123 of file Hector.h.

bool Hector::m_FP420Transport
private

Definition at line 132 of file Hector.h.

std::map<unsigned int, bool> Hector::m_isCharged
private

Definition at line 126 of file Hector.h.

std::map<unsigned int, bool> Hector::m_isStoppedd1
private

Definition at line 116 of file Hector.h.

std::map<unsigned int, bool> Hector::m_isStoppedfp420
private

Definition at line 114 of file Hector.h.

std::map<unsigned int, bool> Hector::m_isStoppedzdc
private

Definition at line 115 of file Hector.h.

std::map<unsigned int, int> Hector::m_pdg
private

Definition at line 124 of file Hector.h.

std::map<unsigned int, double> Hector::m_pz
private

Definition at line 125 of file Hector.h.

H_RecRPObject* Hector::m_rp420_b
private

Definition at line 110 of file Hector.h.

H_RecRPObject* Hector::m_rp420_f
private

Definition at line 109 of file Hector.h.

float Hector::m_rpp420_b
private

Definition at line 94 of file Hector.h.

float Hector::m_rpp420_f
private

Definition at line 93 of file Hector.h.

float Hector::m_rppd1
private

Definition at line 96 of file Hector.h.

float Hector::m_rppzdc
private

Definition at line 95 of file Hector.h.

double Hector::m_sig_e
private

Definition at line 88 of file Hector.h.

double Hector::m_sigmaSTX
private

Definition at line 90 of file Hector.h.

double Hector::m_sigmaSTY
private

Definition at line 91 of file Hector.h.

bool Hector::m_smearAng
private

Definition at line 87 of file Hector.h.

bool Hector::m_smearE
private

Definition at line 89 of file Hector.h.

std::map<unsigned int, double> Hector::m_TxAtTrPoint
private

Definition at line 119 of file Hector.h.

std::map<unsigned int, double> Hector::m_TyAtTrPoint
private

Definition at line 120 of file Hector.h.

bool Hector::m_verbosity
private

Definition at line 131 of file Hector.h.

std::map<unsigned int, double> Hector::m_xAtTrPoint
private

Definition at line 117 of file Hector.h.

std::map<unsigned int, double> Hector::m_yAtTrPoint
private

Definition at line 118 of file Hector.h.

bool Hector::m_ZDCTransport
private

Definition at line 133 of file Hector.h.

edm::ESHandle< ParticleDataTable > Hector::pdt
private

Definition at line 98 of file Hector.h.

std::vector<LHCTransportLink> Hector::theCorrespondenceMap
private

Definition at line 135 of file Hector.h.

Referenced by getCorrespondenceMap().