Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DEventSourceHDDM Class Reference

#include <DEventSourceHDDM.h>

+ Inheritance diagram for DEventSourceHDDM:

Public Member Functions

 DEventSourceHDDM (const char *source_name)
 
virtual ~DEventSourceHDDM ()
 
virtual const char * className (void)
 
jerror_t GetEvent (JEvent &event)
 
void FreeEvent (JEvent &event)
 
jerror_t GetObjects (JEvent &event, JFactory_base *factory)
 
jerror_t Extract_DMCTrackHit (hddm_s::HDDM *record, JFactory< DMCTrackHit > *factory, string tag)
 
jerror_t GetCDCTruthHits (hddm_s::HDDM *record, vector< DMCTrackHit * > &data)
 
jerror_t GetFDCTruthHits (hddm_s::HDDM *record, vector< DMCTrackHit * > &data)
 
jerror_t GetBCALTruthHits (hddm_s::HDDM *record, vector< DMCTrackHit * > &data)
 
jerror_t GetTOFTruthHits (hddm_s::HDDM *record, vector< DMCTrackHit * > &data)
 
jerror_t GetCherenkovTruthHits (hddm_s::HDDM *record, vector< DMCTrackHit * > &data)
 
jerror_t GetFCALTruthHits (hddm_s::HDDM *record, vector< DMCTrackHit * > &data)
 
jerror_t GetCCALTruthHits (hddm_s::HDDM *record, vector< DMCTrackHit * > &data)
 
jerror_t GetSCTruthHits (hddm_s::HDDM *record, vector< DMCTrackHit * > &data)
 
jerror_t Extract_DRFTime (hddm_s::HDDM *record, JFactory< DRFTime > *factory, JEventLoop *locEventLoop)
 
jerror_t Extract_DBCALTruthShower (hddm_s::HDDM *record, JFactory< DBCALTruthShower > *factory, string tag)
 
jerror_t Extract_DBCALTruthCell (hddm_s::HDDM *record, JFactory< DBCALTruthCell > *factory, string tag)
 
jerror_t Extract_DBCALSiPMHit (hddm_s::HDDM *record, JFactory< DBCALSiPMHit > *factory, string tag)
 
jerror_t Extract_DBCALSiPMSpectrum (hddm_s::HDDM *record, JFactory< DBCALSiPMSpectrum > *factory, string tag)
 
jerror_t Extract_DBCALDigiHit (hddm_s::HDDM *record, JFactory< DBCALDigiHit > *factory, string tag)
 
jerror_t Extract_DBCALIncidentParticle (hddm_s::HDDM *record, JFactory< DBCALIncidentParticle > *factory, string tag)
 
jerror_t Extract_DBCALTDCDigiHit (hddm_s::HDDM *record, JFactory< DBCALTDCDigiHit > *factory, string tag)
 
jerror_t Extract_DMCReaction (hddm_s::HDDM *record, JFactory< DMCReaction > *factory, string tag, JEventLoop *loop)
 
jerror_t Extract_DMCThrown (hddm_s::HDDM *record, JFactory< DMCThrown > *factory, string tag)
 
jerror_t Extract_DCDCHit (JEventLoop *locEventLoop, hddm_s::HDDM *record, JFactory< DCDCHit > *factory, string tag)
 
jerror_t Extract_DFDCHit (hddm_s::HDDM *record, JFactory< DFDCHit > *factory, string tag)
 
jerror_t Extract_DFCALTruthShower (hddm_s::HDDM *record, JFactory< DFCALTruthShower > *factory, string tag)
 
jerror_t Extract_DCCALHit (hddm_s::HDDM *record, JFactory< DCCALHit > *factory, string tag, JEventLoop *eventLoop)
 
jerror_t Extract_DCCALTruthShower (hddm_s::HDDM *record, JFactory< DCCALTruthShower > *factory, string tag)
 
jerror_t Extract_DFCALHit (hddm_s::HDDM *record, JFactory< DFCALHit > *factory, string tag, JEventLoop *eventLoop)
 
jerror_t Extract_DMCTrajectoryPoint (hddm_s::HDDM *record, JFactory< DMCTrajectoryPoint > *factory, string tag)
 
jerror_t Extract_DTOFTruth (hddm_s::HDDM *record, JFactory< DTOFTruth > *factory, string tag)
 
jerror_t Extract_DTOFHit (hddm_s::HDDM *record, JFactory< DTOFHit > *factory, JFactory< DTOFHitMC > *factoryMC, string tag)
 
jerror_t Extract_DTOFHitMC (hddm_s::HDDM *record, JFactory< DTOFHitMC > *factoryMC, JFactory< DTOFHit > *factory, string tag)
 
jerror_t Extract_DSCHit (hddm_s::HDDM *record, JFactory< DSCHit > *factory, string tag)
 
jerror_t Extract_DSCTruthHit (hddm_s::HDDM *record, JFactory< DSCTruthHit > *factory, string tag)
 
jerror_t Extract_DTrackTimeBased (hddm_s::HDDM *record, JFactory< DTrackTimeBased > *factory, string tag, int32_t runnumber, JEventLoop *locEventLoop)
 
string StringToTMatrixFSym (string &str_vals, TMatrixFSym *mat, int Nrows, int Ncols)
 
jerror_t Extract_DTAGMHit (hddm_s::HDDM *record, JFactory< DTAGMHit > *factory, string tag)
 
jerror_t Extract_DTAGHHit (hddm_s::HDDM *record, JFactory< DTAGHHit > *factory, string tag)
 
jerror_t Extract_DPSHit (hddm_s::HDDM *record, JFactory< DPSHit > *factory, string tag)
 
jerror_t Extract_DPSCHit (hddm_s::HDDM *record, JFactory< DPSCHit > *factory, string tag)
 
jerror_t Extract_DPSTruthHit (hddm_s::HDDM *record, JFactory< DPSTruthHit > *factory, string tag)
 
jerror_t Extract_DPSCTruthHit (hddm_s::HDDM *record, JFactory< DPSCTruthHit > *factory, string tag)
 
jerror_t Extract_DFMWPCTruthHit (hddm_s::HDDM *record, JFactory< DFMWPCTruthHit > *factory, string tag)
 
jerror_t Extract_DFMWPCHit (hddm_s::HDDM *record, JFactory< DFMWPCHit > *factory, string tag)
 
jerror_t Extract_DTPOLHit (hddm_s::HDDM *record, JFactory< DTPOLHit > *factory, string tag)
 
jerror_t Extract_DTPOLTruthHit (hddm_s::HDDM *record, JFactory< DTPOLTruthHit > *factory, string tag)
 
Particle_t IDTrack (float locCharge, float locMass) const
 
jerror_t Extract_DCereHit (hddm_s::HDDM *record, JFactory< DCereHit > *factory, string tag)
 
jerror_t Extract_DDIRCTruthBarHit (hddm_s::HDDM *record, JFactory< DDIRCTruthBarHit > *factory, string tag)
 
jerror_t Extract_DDIRCTruthPmtHit (hddm_s::HDDM *record, JFactory< DDIRCTruthPmtHit > *factory, string tag)
 
jerror_t Extract_DDIRCPmtHit (hddm_s::HDDM *record, JFactory< DDIRCPmtHit > *factory, string tag, JEventLoop *eventLoop)
 

Static Public Member Functions

static const char * static_className (void)
 

Public Attributes

std::ifstream * ifs
 
hddm_s::istream * fin
 
DApplicationdapp
 
const DMagneticFieldMapbfield
 
const DGeometrygeom
 

Private Attributes

bool initialized
 
int dRunNumber
 
map< unsigned int, double > dTargetCenterZMap
 
map< unsigned int, double > dBeamBunchPeriodMap
 
const DBCALGeometrydBCALGeom
 
const DPSGeometrypsGeom
 
JCalibration * jcalib
 
float uscale [192]
 
float vscale [192]
 

Static Private Attributes

static thread_local shared_ptr
< DResourcePool< TMatrixFSym > > 
dResourcePool_TMatrixFSym = std::make_shared<DResourcePool<TMatrixFSym>>(10, 10, 50)
 

Detailed Description

Definition at line 78 of file DEventSourceHDDM.h.

Constructor & Destructor Documentation

DEventSourceHDDM::DEventSourceHDDM ( const char *  source_name)

Constructor for DEventSourceHDDM object

Definition at line 64 of file DEventSourceHDDM.cc.

References bfield, dapp, dRunNumber, fin, geom, ifs, and initialized.

DEventSourceHDDM::~DEventSourceHDDM ( )
virtual

Definition at line 94 of file DEventSourceHDDM.cc.

References fin, and ifs.

Member Function Documentation

virtual const char* DEventSourceHDDM::className ( void  )
inlinevirtual

Definition at line 83 of file DEventSourceHDDM.h.

jerror_t DEventSourceHDDM::Extract_DBCALDigiHit ( hddm_s::HDDM *  record,
JFactory< DBCALDigiHit > *  factory,
string  tag 
)

Copies the data from the given hddm_s structure. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returns OBJECT_NOT_AVAILABLE immediately.

Definition at line 871 of file DEventSourceHDDM.cc.

References DBCALDigiHit::datasource, DBCALDigiHit::end, DBCALGeometry::kDownstream, DBCALGeometry::kUpstream, DBCALDigiHit::layer, DBCALDigiHit::module, DBCALDigiHit::nsamples_integral, DBCALDigiHit::nsamples_pedestal, DBCALDigiHit::pedestal, DBCALDigiHit::pulse_integral, DBCALDigiHit::pulse_peak, DBCALDigiHit::pulse_time, DBCALDigiHit::QF, and DBCALDigiHit::sector.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DBCALIncidentParticle ( hddm_s::HDDM *  record,
JFactory< DBCALIncidentParticle > *  factory,
string  tag 
)

Copies the data from the given hddm_s structure. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returns OBJECT_NOT_AVAILABLE immediately.

Definition at line 917 of file DEventSourceHDDM.cc.

References DBCALIncidentParticle::ptype, DBCALIncidentParticle::px, DBCALIncidentParticle::py, DBCALIncidentParticle::pz, DBCALIncidentParticle::x, DBCALIncidentParticle::y, and DBCALIncidentParticle::z.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DBCALSiPMHit ( hddm_s::HDDM *  record,
JFactory< DBCALSiPMHit > *  factory,
string  tag 
)

Copies the data from the given hddm_s structure. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returns OBJECT_NOT_AVAILABLE immediately.

Definition at line 816 of file DEventSourceHDDM.cc.

References DBCALSiPMHit::cellId, DBCALGeometry::cellId(), dBCALGeom, DBCALSiPMHit::E, DBCALSiPMHit::end, DBCALGeometry::kDownstream, DBCALGeometry::kUpstream, DBCALSiPMHit::layer, DBCALSiPMHit::module, DBCALSiPMHit::sector, and DBCALSiPMHit::t.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DBCALSiPMSpectrum ( hddm_s::HDDM *  record,
JFactory< DBCALSiPMSpectrum > *  factory,
string  tag 
)

Copies the data from the given hddm_s structure. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returns OBJECT_NOT_AVAILABLE immediately.

Definition at line 955 of file DEventSourceHDDM.cc.

References DBCALSiPMSpectrum::end, DHistogram::Fill(), DBCALSiPMSpectrum::incident_id, DBCALGeometry::kDownstream, DBCALGeometry::kUpstream, DBCALSiPMSpectrum::layer, DBCALSiPMSpectrum::module, DBCALSiPMSpectrum::sector, DBCALSiPMSpectrum::spectrum, and sss.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DBCALTDCDigiHit ( hddm_s::HDDM *  record,
JFactory< DBCALTDCDigiHit > *  factory,
string  tag 
)

Copies the data from the given hddm_s structure. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returns OBJECT_NOT_AVAILABLE immediately.

Definition at line 1028 of file DEventSourceHDDM.cc.

References DBCALTDCDigiHit::end, DBCALGeometry::kDownstream, DBCALGeometry::kUpstream, DBCALTDCDigiHit::layer, DBCALTDCDigiHit::module, DBCALTDCDigiHit::sector, and DBCALTDCDigiHit::time.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DBCALTruthCell ( hddm_s::HDDM *  record,
JFactory< DBCALTruthCell > *  factory,
string  tag 
)

Copies the data from the given hddm_s structure. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returns OBJECT_NOT_AVAILABLE immediately.

Definition at line 1520 of file DEventSourceHDDM.cc.

References DBCALTruthCell::E, DBCALTruthCell::layer, DBCALTruthCell::module, DBCALTruthCell::sector, DBCALTruthCell::t, and DBCALTruthCell::zLocal.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DBCALTruthShower ( hddm_s::HDDM *  record,
JFactory< DBCALTruthShower > *  factory,
string  tag 
)

Copies the data from the given hddm_s structure. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returns OBJECT_NOT_AVAILABLE immediately.

Definition at line 1476 of file DEventSourceHDDM.cc.

References DBCALTruthShower::E, DBCALTruthShower::itrack, DBCALTruthShower::phi, DBCALTruthShower::primary, DBCALTruthShower::ptype, DBCALTruthShower::px, DBCALTruthShower::py, DBCALTruthShower::pz, DBCALTruthShower::r, DBCALTruthShower::t, DBCALTruthShower::track, and DBCALTruthShower::z.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DCCALHit ( hddm_s::HDDM *  record,
JFactory< DCCALHit > *  factory,
string  tag,
JEventLoop *  eventLoop 
)

Copies the data from the given hddm_s structure. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returs OBJECT_NOT_AVAILABLE immediately.

Definition at line 1740 of file DEventSourceHDDM.cc.

References DCCALHit::column, column, DCCALHit::E, DCCALGeometry::isBlockActive(), DCCALGeometry::positionOnFace(), DCCALHit::row, DCCALHit::t, DCCALHit::x, and DCCALHit::y.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DCCALTruthShower ( hddm_s::HDDM *  record,
JFactory< DCCALTruthShower > *  factory,
string  tag 
)

Copies the data from the given hddm_s structure. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returns OBJECT_NOT_AVAILABLE immediately.

Definition at line 1692 of file DEventSourceHDDM.cc.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DCDCHit ( JEventLoop *  locEventLoop,
hddm_s::HDDM *  record,
JFactory< DCDCHit > *  factory,
string  tag 
)

Copies the data from the given hddm_s structure. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returns OBJECT_NOT_AVAILABLE immediately.

Definition at line 1207 of file DEventSourceHDDM.cc.

References DCDCHit::amp, DCDCHit::d, DCDCHit::itrack, DCDCHit::ptype, DCDCHit::q, DCDCHit::QF, DCDCHit::ring, DCDCHit::straw, and DCDCHit::t.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DCereHit ( hddm_s::HDDM *  record,
JFactory< DCereHit > *  factory,
string  tag 
)

Definition at line 2804 of file DEventSourceHDDM.cc.

References DCereHit::pe, DCereHit::sector, and DCereHit::t.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DDIRCPmtHit ( hddm_s::HDDM *  record,
JFactory< DDIRCPmtHit > *  factory,
string  tag,
JEventLoop *  eventLoop 
)

Copies the data from the given hddm_s structure. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returs OBJECT_NOT_AVAILABLE immediately.

Definition at line 2750 of file DEventSourceHDDM.cc.

References DDIRCPmtHit::ch, and DDIRCPmtHit::t.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DDIRCTruthBarHit ( hddm_s::HDDM *  record,
JFactory< DDIRCTruthBarHit > *  factory,
string  tag 
)

Copies the data from the given hddm_s structure. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returns OBJECT_NOT_AVAILABLE immediately.

Definition at line 2846 of file DEventSourceHDDM.cc.

References DDIRCTruthBarHit::bar, DDIRCTruthBarHit::E, DDIRCTruthBarHit::pdg, DDIRCTruthBarHit::px, DDIRCTruthBarHit::py, DDIRCTruthBarHit::pz, DDIRCTruthBarHit::t, DDIRCTruthBarHit::track, DDIRCTruthBarHit::x, DDIRCTruthBarHit::y, and DDIRCTruthBarHit::z.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DDIRCTruthPmtHit ( hddm_s::HDDM *  record,
JFactory< DDIRCTruthPmtHit > *  factory,
string  tag 
)

Copies the data from the given hddm_s structure. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returns OBJECT_NOT_AVAILABLE immediately.

Definition at line 2887 of file DEventSourceHDDM.cc.

References DDIRCTruthPmtHit::bbrefl, DDIRCTruthPmtHit::ch, DDIRCTruthPmtHit::E, DDIRCTruthPmtHit::key_bar, DDIRCTruthPmtHit::path, DDIRCTruthPmtHit::refl, DDIRCTruthPmtHit::t, DDIRCTruthPmtHit::t_fixed, DDIRCTruthPmtHit::x, DDIRCTruthPmtHit::y, and DDIRCTruthPmtHit::z.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DFCALHit ( hddm_s::HDDM *  record,
JFactory< DFCALHit > *  factory,
string  tag,
JEventLoop *  eventLoop 
)

Copies the data from the given hddm_s structure. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returs OBJECT_NOT_AVAILABLE immediately.

Definition at line 1605 of file DEventSourceHDDM.cc.

References DFCALHit::column, column, DFCALHit::E, DFCALHit::intOverPeak, DFCALGeometry::isBlockActive(), DFCALGeometry::positionOnFace(), DFCALHit::row, DFCALHit::t, DFCALHit::x, and DFCALHit::y.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DFCALTruthShower ( hddm_s::HDDM *  record,
JFactory< DFCALTruthShower > *  factory,
string  tag 
)

Copies the data from the given hddm_s structure. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returns OBJECT_NOT_AVAILABLE immediately.

Definition at line 1557 of file DEventSourceHDDM.cc.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DFDCHit ( hddm_s::HDDM *  record,
JFactory< DFDCHit > *  factory,
string  tag 
)

Copies the data from the given hddm_s structure. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returns OBJECT_NOT_AVAILABLE immediately.

Definition at line 1306 of file DEventSourceHDDM.cc.

References DFDCHit::d, DFDCHit::element, DFDCGeometry::getStripR(), DFDCGeometry::getWireR(), DFDCHit::gLayer, DFDCGeometry::gLayer(), DFDCHit::gPlane, DFDCGeometry::gPlane(), DFDCHit::itrack, DFDCHit::layer, DFDCHit::module, DFDCHit::plane, DFDCHit::ptype, DFDCHit::pulse_height, DFDCHit::q, DFDCHit::r, DFDCHit::t, DFDCHit::type, uscale, and vscale.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DFMWPCHit ( hddm_s::HDDM *  record,
JFactory< DFMWPCHit > *  factory,
string  tag 
)

Copies the data from the given hddm_s record. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returns OBJECT_NOT_AVAILABLE immediately.

Definition at line 2719 of file DEventSourceHDDM.cc.

References DFMWPCHit::dE, DFMWPCHit::layer, DFMWPCHit::t, and DFMWPCHit::wire.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DFMWPCTruthHit ( hddm_s::HDDM *  record,
JFactory< DFMWPCTruthHit > *  factory,
string  tag 
)

Copies the data from the given hddm_s record. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returns OBJECT_NOT_AVAILABLE immediately.

Definition at line 2687 of file DEventSourceHDDM.cc.

References DFMWPCTruthHit::dE, DFMWPCTruthHit::dx, DFMWPCTruthHit::layer, DFMWPCTruthHit::t, and DFMWPCTruthHit::wire.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DMCReaction ( hddm_s::HDDM *  record,
JFactory< DMCReaction > *  factory,
string  tag,
JEventLoop *  loop 
)

Copies the data from the given hddm_s structure. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returns OBJECT_NOT_AVAILABLE immediately.

Definition at line 1064 of file DEventSourceHDDM.cc.

References DMCReaction::beam, DKinematicData::charge(), dTargetCenterZMap, Gamma, IDTrack(), DKinematicData::mass(), DKinematicData::setMomentum(), DKinematicData::setPID(), DKinematicData::setPosition(), DKinematicData::setTime(), DMCReaction::target, Target, DMCReaction::type, and DMCReaction::weight.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DMCThrown ( hddm_s::HDDM *  record,
JFactory< DMCThrown > *  factory,
string  tag 
)

Copies the data from the given hddm_s structure. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returns OBJECT_NOT_AVAILABLE immediately.

Definition at line 1149 of file DEventSourceHDDM.cc.

References DMCThrown::mech, DMCThrown::myid, DMCThrown::parentid, DMCThrown::pdgtype, py, DKinematicData::setMomentum(), DKinematicData::setPID(), DKinematicData::setPosition(), DKinematicData::setTime(), sqrt(), and DMCThrown::type.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DMCTrackHit ( hddm_s::HDDM *  record,
JFactory< DMCTrackHit > *  factory,
string  tag 
)

Copies the data from the given hddm_s structure. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returns OBJECT_NOT_AVAILABLE immediately.

Definition at line 551 of file DEventSourceHDDM.cc.

References GetBCALTruthHits(), GetCDCTruthHits(), GetCherenkovTruthHits(), GetFCALTruthHits(), GetFDCTruthHits(), GetSCTruthHits(), GetTOFTruthHits(), MCTrackHitSort_C(), and DMCTrackHit::phi.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DMCTrajectoryPoint ( hddm_s::HDDM *  record,
JFactory< DMCTrajectoryPoint > *  factory,
string  tag 
)

Copies the data from the given hddm_s structure. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returns OBJECT_NOT_AVAILABLE immediately.

Definition at line 1826 of file DEventSourceHDDM.cc.

References DMCTrajectoryPoint::dE, DMCTrajectoryPoint::E, DMCTrajectoryPoint::mech, DMCTrajectoryPoint::part, DMCTrajectoryPoint::primary_track, DMCTrajectoryPoint::px, DMCTrajectoryPoint::py, DMCTrajectoryPoint::pz, DMCTrajectoryPoint::radlen, DMCTrajectoryPoint::step, DMCTrajectoryPoint::t, DMCTrajectoryPoint::track, DMCTrajectoryPoint::x, DMCTrajectoryPoint::y, and DMCTrajectoryPoint::z.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DPSCHit ( hddm_s::HDDM *  record,
JFactory< DPSCHit > *  factory,
string  tag 
)

Copies the data from the given hddm_s structure. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returns OBJECT_NOT_AVAILABLE immediately.

Definition at line 2472 of file DEventSourceHDDM.cc.

References DPSCHit::arm, DPSCHit::has_fADC, DPSCHit::has_TDC, DPSCHit::integral, DPSCHit::module, DPSCHit::npe_fadc, DPSCHit::pulse_peak, DPSCHit::t, DPSCHit::time_fadc, and DPSCHit::time_tdc.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DPSCTruthHit ( hddm_s::HDDM *  record,
JFactory< DPSCTruthHit > *  factory,
string  tag 
)

Copies the data from the given hddm_s structure. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returns OBJECT_NOT_AVAILABLE immediately.

Definition at line 2537 of file DEventSourceHDDM.cc.

References DPSCTruthHit::column, DPSCTruthHit::dEdx, DPSCTruthHit::itrack, DPSCTruthHit::primary, DPSCTruthHit::ptype, DPSCTruthHit::t, DPSCTruthHit::track, DPSCTruthHit::x, DPSCTruthHit::y, and DPSCTruthHit::z.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DPSHit ( hddm_s::HDDM *  record,
JFactory< DPSHit > *  factory,
string  tag 
)

Copies the data from the given hddm_s structure. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returns OBJECT_NOT_AVAILABLE immediately.

Definition at line 2372 of file DEventSourceHDDM.cc.

References DPSHit::arm, DPSHit::column, DPSHit::E, DPSGeometry::getEhigh(), DPSGeometry::getElow(), DPSHit::integral, DPSHit::npix_fadc, psGeom, DPSHit::pulse_peak, and DPSHit::t.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DPSTruthHit ( hddm_s::HDDM *  record,
JFactory< DPSTruthHit > *  factory,
string  tag 
)

Copies the data from the given hddm_s structure. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returns OBJECT_NOT_AVAILABLE immediately.

Definition at line 2431 of file DEventSourceHDDM.cc.

References DPSTruthHit::column, DPSTruthHit::dEdx, DPSTruthHit::itrack, DPSTruthHit::primary, DPSTruthHit::ptype, DPSTruthHit::t, DPSTruthHit::track, DPSTruthHit::x, DPSTruthHit::y, and DPSTruthHit::z.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DRFTime ( hddm_s::HDDM *  record,
JFactory< DRFTime > *  factory,
JEventLoop *  locEventLoop 
)

Definition at line 468 of file DEventSourceHDDM.cc.

References dBeamBunchPeriodMap, DRFTime::dTime, and DRFTime::dTimeVariance.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DSCHit ( hddm_s::HDDM *  record,
JFactory< DSCHit > *  factory,
string  tag 
)

Copies the data from the given hddm_s structure. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returns OBJECT_NOT_AVAILABLE immediately.

Definition at line 2048 of file DEventSourceHDDM.cc.

References DSCHit::dE, DSCHit::has_fADC, DSCHit::has_TDC, DSCHit::pulse_height, DSCHit::sector, DSCHit::t, DSCHit::t_fADC, and DSCHit::t_TDC.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DSCTruthHit ( hddm_s::HDDM *  record,
JFactory< DSCTruthHit > *  factory,
string  tag 
)

Copies the data from the given hddm_s structure. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returns OBJECT_NOT_AVAILABLE immediately.

Definition at line 2106 of file DEventSourceHDDM.cc.

References DSCTruthHit::dEdx, DSCTruthHit::itrack, DSCTruthHit::phi, DSCTruthHit::primary, DSCTruthHit::ptype, DSCTruthHit::r, DSCTruthHit::sector, DSCTruthHit::t, DSCTruthHit::track, and DSCTruthHit::z.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DTAGHHit ( hddm_s::HDDM *  record,
JFactory< DTAGHHit > *  factory,
string  tag 
)

Copies the data from the given hddm_s structure. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returns OBJECT_NOT_AVAILABLE immediately.

Definition at line 2310 of file DEventSourceHDDM.cc.

References DTAGHHit::bg, DTAGHHit::counter_id, DTAGHHit::E, DTAGHHit::has_fADC, DTAGHHit::has_TDC, DTAGHHit::npe_fadc, DTAGHHit::t, and DTAGHHit::time_fadc.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DTAGMHit ( hddm_s::HDDM *  record,
JFactory< DTAGMHit > *  factory,
string  tag 
)

Copies the data from the given hddm_s structure. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returns OBJECT_NOT_AVAILABLE immediately.

Definition at line 2247 of file DEventSourceHDDM.cc.

References DTAGMHit::bg, DTAGMHit::column, DTAGMHit::E, DTAGMHit::has_fADC, DTAGMHit::has_TDC, DTAGMHit::npix_fadc, DTAGMHit::row, DTAGMHit::t, and DTAGMHit::time_fadc.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DTOFHit ( hddm_s::HDDM *  record,
JFactory< DTOFHit > *  factory,
JFactory< DTOFHitMC > *  factoryMC,
string  tag 
)

Copies the data from the given hddm_s structure. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returns OBJECT_NOT_AVAILABLE immediately.

Definition at line 1915 of file DEventSourceHDDM.cc.

References DTOFHit::Amp, DTOFHit::bar, DTOFHitMC::bar, DTOFHit::dE, DTOFHitMC::dist, DTOFHitMC::E, DTOFHit::end, DTOFHitMC::end, DTOFHit::has_fADC, DTOFHit::has_TDC, DTOFHitMC::itrack, DTOFHit::plane, DTOFHitMC::plane, DTOFHitMC::ptype, DTOFHitMC::px, DTOFHitMC::py, DTOFHitMC::pz, DTOFHit::t, DTOFHit::t_fADC, DTOFHit::t_TDC, DTOFHitMC::x, DTOFHitMC::y, and DTOFHitMC::z.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DTOFHitMC ( hddm_s::HDDM *  record,
JFactory< DTOFHitMC > *  factoryMC,
JFactory< DTOFHit > *  factory,
string  tag 
)
jerror_t DEventSourceHDDM::Extract_DTOFTruth ( hddm_s::HDDM *  record,
JFactory< DTOFTruth > *  factory,
string  tag 
)

Copies the data from the given hddm_s structure. This is called from JEventSourceHDDM::GetObjects. If factory is NULL, this returns OBJECT_NOT_AVAILABLE immediately.

Definition at line 1872 of file DEventSourceHDDM.cc.

References DTOFTruth::E, DTOFTruth::itrack, DTOFTruth::primary, DTOFTruth::ptype, DTOFTruth::px, DTOFTruth::py, DTOFTruth::pz, DTOFTruth::t, DTOFTruth::track, DTOFTruth::x, DTOFTruth::y, and DTOFTruth::z.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DTPOLHit ( hddm_s::HDDM *  record,
JFactory< DTPOLHit > *  factory,
string  tag 
)

Definition at line 2578 of file DEventSourceHDDM.cc.

References DTPOLHit::dE, DTPOLHit::ring, DTPOLHit::sector, and DTPOLHit::t.

Referenced by GetObjects().

jerror_t DEventSourceHDDM::Extract_DTPOLTruthHit ( hddm_s::HDDM *  record,
JFactory< DTPOLTruthHit > *  factory,
string  tag 
)
jerror_t DEventSourceHDDM::Extract_DTrackTimeBased ( hddm_s::HDDM *  record,
JFactory< DTrackTimeBased > *  factory,
string  tag,
int32_t  runnumber,
JEventLoop *  locEventLoop 
)

Definition at line 2147 of file DEventSourceHDDM.cc.

References dResourcePool_TMatrixFSym, IDTrack(), and StringToTMatrixFSym().

void DEventSourceHDDM::FreeEvent ( JEvent &  event)

Definition at line 156 of file DEventSourceHDDM.cc.

jerror_t DEventSourceHDDM::GetBCALTruthHits ( hddm_s::HDDM *  record,
vector< DMCTrackHit * > &  data 
)
jerror_t DEventSourceHDDM::GetCCALTruthHits ( hddm_s::HDDM *  record,
vector< DMCTrackHit * > &  data 
)
jerror_t DEventSourceHDDM::GetCDCTruthHits ( hddm_s::HDDM *  record,
vector< DMCTrackHit * > &  data 
)
jerror_t DEventSourceHDDM::GetCherenkovTruthHits ( hddm_s::HDDM *  record,
vector< DMCTrackHit * > &  data 
)
jerror_t DEventSourceHDDM::GetEvent ( JEvent &  event)

Implementation of JEventSource virtual function

Definition at line 105 of file DEventSourceHDDM.cc.

References fin, ifs, kSTATUS_FROM_FILE, kSTATUS_HDDM, and kSTATUS_PHYSICS_EVENT.

jerror_t DEventSourceHDDM::GetFCALTruthHits ( hddm_s::HDDM *  record,
vector< DMCTrackHit * > &  data 
)
jerror_t DEventSourceHDDM::GetFDCTruthHits ( hddm_s::HDDM *  record,
vector< DMCTrackHit * > &  data 
)
jerror_t DEventSourceHDDM::GetSCTruthHits ( hddm_s::HDDM *  record,
vector< DMCTrackHit * > &  data 
)
jerror_t DEventSourceHDDM::GetTOFTruthHits ( hddm_s::HDDM *  record,
vector< DMCTrackHit * > &  data 
)
Particle_t DEventSourceHDDM::IDTrack ( float  locCharge,
float  locMass 
) const
static const char* DEventSourceHDDM::static_className ( void  )
inlinestatic

Definition at line 84 of file DEventSourceHDDM.h.

string DEventSourceHDDM::StringToTMatrixFSym ( string str_vals,
TMatrixFSym *  mat,
int  Nrows,
int  Ncols 
)

This is the inverse of the DMatrixDSymToString method in the danahddm plugin.

Definition at line 2225 of file DEventSourceHDDM.cc.

Referenced by Extract_DTrackTimeBased().

Member Data Documentation

const DMagneticFieldMap* DEventSourceHDDM::bfield

Definition at line 158 of file DEventSourceHDDM.h.

Referenced by DEventSourceHDDM().

DApplication* DEventSourceHDDM::dapp

Definition at line 157 of file DEventSourceHDDM.h.

Referenced by DEventSourceHDDM(), and GetObjects().

const DBCALGeometry* DEventSourceHDDM::dBCALGeom
private

Definition at line 169 of file DEventSourceHDDM.h.

Referenced by Extract_DBCALSiPMHit(), and GetObjects().

map<unsigned int, double> DEventSourceHDDM::dBeamBunchPeriodMap
private

Definition at line 167 of file DEventSourceHDDM.h.

Referenced by Extract_DRFTime(), and GetObjects().

thread_local std::shared_ptr< DResourcePool< TMatrixFSym > > DEventSourceHDDM::dResourcePool_TMatrixFSym = std::make_shared<DResourcePool<TMatrixFSym>>(10, 10, 50)
staticprivate

Definition at line 164 of file DEventSourceHDDM.h.

Referenced by Extract_DTrackTimeBased().

int DEventSourceHDDM::dRunNumber
private

Definition at line 163 of file DEventSourceHDDM.h.

Referenced by DEventSourceHDDM(), and GetObjects().

map<unsigned int, double> DEventSourceHDDM::dTargetCenterZMap
private

Definition at line 166 of file DEventSourceHDDM.h.

Referenced by Extract_DMCReaction(), and GetObjects().

hddm_s::istream* DEventSourceHDDM::fin

Definition at line 156 of file DEventSourceHDDM.h.

Referenced by DEventSourceHDDM(), GetEvent(), and ~DEventSourceHDDM().

const DGeometry* DEventSourceHDDM::geom

Definition at line 159 of file DEventSourceHDDM.h.

Referenced by DEventSourceHDDM().

std::ifstream* DEventSourceHDDM::ifs

Definition at line 155 of file DEventSourceHDDM.h.

Referenced by DEventSourceHDDM(), GetEvent(), and ~DEventSourceHDDM().

bool DEventSourceHDDM::initialized
private

Definition at line 162 of file DEventSourceHDDM.h.

Referenced by DEventSourceHDDM(), and GetObjects().

JCalibration* DEventSourceHDDM::jcalib
private

Definition at line 174 of file DEventSourceHDDM.h.

Referenced by GetObjects().

const DPSGeometry* DEventSourceHDDM::psGeom
private

Definition at line 171 of file DEventSourceHDDM.h.

Referenced by Extract_DPSHit(), and GetObjects().

float DEventSourceHDDM::uscale[192]
private

Definition at line 175 of file DEventSourceHDDM.h.

Referenced by Extract_DFDCHit(), and GetObjects().

float DEventSourceHDDM::vscale[192]
private

Definition at line 175 of file DEventSourceHDDM.h.

Referenced by Extract_DFDCHit(), and GetObjects().


The documentation for this class was generated from the following files: