Hall-D Software
alpha
|
#include <MyProcessor.h>
Classes | |
class | DGraphicSet |
struct | factory_info_t |
Called after last event of last event source has been processed. More... | |
Public Types | |
enum | poly_type { kMarker =0, kLine =1 } |
Public Member Functions | |
jerror_t | init (void) |
jerror_t | brun (JEventLoop *eventLoop, int32_t runnumber) |
Called once at program start. More... | |
jerror_t | evnt (JEventLoop *eventLoop, uint64_t eventnumber) |
Called every event. More... | |
jerror_t | erun (void) |
jerror_t | fini (void) |
Called everytime run number changes, provided brun has been called. More... | |
void | PrintAssociatedObjects (JEventLoop *eventLoop, const factory_info_t *fac_info) |
jerror_t | init (void) |
Called once at program start. More... | |
jerror_t | brun (JEventLoop *loop, int32_t runnumber) |
jerror_t | evnt (JEventLoop *loop, uint64_t eventnumber) |
Called every event. More... | |
jerror_t | erun (void) |
jerror_t | fini (void) |
Called after last event of last event source has been processed. More... | |
MyProcessor () | |
~MyProcessor () | |
jerror_t | init (void) |
Called once at program start. More... | |
jerror_t | brun (JEventLoop *eventLoop, int32_t runnumber) |
Called everytime a new run number is detected. More... | |
jerror_t | evnt (JEventLoop *eventLoop, uint64_t eventnumber) |
Called every event. More... | |
jerror_t | erun (void) |
jerror_t | fini (void) |
Called everytime run number changes, provided brun has been called. More... | |
MyProcessor () | |
~MyProcessor () | |
jerror_t | init (void) |
Called once at program start. More... | |
jerror_t | brun (JEventLoop *eventLoop, int32_t runnumber) |
Called everytime a new run number is detected. More... | |
jerror_t | evnt (JEventLoop *eventLoop, uint64_t eventnumber) |
Called every event. More... | |
void | FillGraphics (void) |
void | UpdateTrackLabels (void) |
void | UpdateBcalDisp (void) |
void | GetFactoryNames (vector< string > &facnames) |
void | GetFactories (vector< JFactory_base * > &factories) |
unsigned int | GetNrows (const string &factory, string tag) |
void | GetDReferenceTrajectory (string dataname, string tag, unsigned int index, DReferenceTrajectory *&rt, vector< const DCDCTrackHit * > &cdchits) |
void | GetAllWireHits (vector< pair< const DCoordinateSystem *, double > > &allhits) |
void | FormatHistogram (TH2 *, int) |
Public Attributes | |
vector< factory_info_t > | fac_info |
std::string | filename |
std::ofstream * | ofs |
hddm_s::ostream * | fout |
unsigned long | Nevents_written |
TFile * | ROOTfile |
const DMagneticFieldMap * | Bfield |
uint64_t | eventNo |
vector< DGraphicSet > | graphics |
vector< TObject * > | graphics_xyA |
vector< TObject * > | graphics_xyB |
vector< TObject * > | graphics_xz |
vector< TObject * > | graphics_yz |
vector< TObject * > | graphics_tof_hits |
Private Member Functions | |
void | AddKinematicDataTrack (const DKinematicData *kd, int color, double size) |
void | GetIntersectionWithCalorimeter (const DKinematicData *kd, DVector3 &pos, DetectorSystem_t &who) |
Private Attributes | |
bool | HDDM_USE_COMPRESSION |
bool | HDDM_USE_INTEGRITY_CHECKS |
hdv_mainframe * | hdvmf |
hdv_fulllistframe * | fulllistmf |
hdv_debugerframe * | debugermf |
JEventLoop * | loop |
JEvent | last_jevent |
DRootGeom * | RootGeom |
DGeometry * | geom |
string | MATERIAL_MAP_MODEL |
double | RMAX_INTERIOR |
double | RMAX_EXTERIOR |
uint32_t | BCALVERBOSE |
TCanvas * | BCALHitCanvas |
TH2F * | BCALHitMatrixU |
TH2F * | BCALHitMatrixD |
TH2F * | BCALParticles |
vector< TText * > | BCALPLables |
TH2F * | BCALPointZphiLayer [4] |
TH2F * | BCALPointPhiTLayer [4] |
std::vector< TH2F * > | BCALClusterZphiHistos |
TLegend * | LayerLegend |
TLegend * | ClusterLegend |
map< string, double > | photon_track_matching |
double | DELTA_R_FCAL |
Definition at line 31 of file hd_dump/MyProcessor.h.
Enumerator | |
---|---|
kMarker | |
kLine |
Definition at line 72 of file hdview2/MyProcessor.h.
MyProcessor::MyProcessor | ( | ) |
Definition at line 39 of file hd_root/MyProcessor.cc.
References ROOTfile.
MyProcessor::~MyProcessor | ( | ) |
Definition at line 47 of file hd_root/MyProcessor.cc.
References ROOTfile.
MyProcessor::MyProcessor | ( | ) |
MyProcessor::~MyProcessor | ( | ) |
|
private |
Definition at line 2102 of file hdview2/MyProcessor.cc.
References _DBG_, DKinematicData::charge(), DKinematicData::mass(), DKinematicData::momentum(), DReferenceTrajectory::Nswim_steps, DCoordinateSystem::origin, MyProcessor::DGraphicSet::points, DKinematicData::position(), DReferenceTrajectory::Rsqmax_exterior, DReferenceTrajectory::Rsqmax_interior, DReferenceTrajectory::SetDGeometry(), DReferenceTrajectory::SetDRootGeom(), DReferenceTrajectory::SetMass(), DReferenceTrajectory::Swim(), and DReferenceTrajectory::swim_steps.
|
inline |
< Called everytime a new run number is detected.
Definition at line 23 of file hd_eventfilter/MyProcessor.h.
jerror_t MyProcessor::brun | ( | JEventLoop * | eventLoop, |
int32_t | runnumber | ||
) |
Called everytime a new run number is detected.
jerror_t MyProcessor::brun | ( | JEventLoop * | eventLoop, |
int32_t | runnumber | ||
) |
Called once at program start.
Called everytime a new run number is detected.
Definition at line 48 of file hd_dump/MyProcessor.cc.
References ansi_bold, ansi_normal, ansi_red, MyProcessor::factory_info_t::dataClassName, f, MyProcessor::factory_info_t::fac, PRINT_ALL, PRINT_CORE, PRINT_SUMMARY_ALL, SKIP_BORING_EVENTS, MyProcessor::factory_info_t::tag, toprint, and tosummarize.
jerror_t MyProcessor::brun | ( | JEventLoop * | eventLoop, |
int32_t | runnumber | ||
) |
Called everytime a new run number is detected.
|
inline |
< Called everytime run number changes, provided brun has been called.
Definition at line 27 of file hd_eventfilter/MyProcessor.h.
|
inline |
Definition at line 28 of file hd_root/MyProcessor.h.
|
inline |
Definition at line 37 of file hd_dump/MyProcessor.h.
jerror_t MyProcessor::evnt | ( | JEventLoop * | loop, |
uint64_t | eventnumber | ||
) |
Called every event.
jerror_t MyProcessor::evnt | ( | JEventLoop * | eventLoop, |
uint64_t | eventnumber | ||
) |
Called every event.
jerror_t MyProcessor::evnt | ( | JEventLoop * | eventLoop, |
uint64_t | eventnumber | ||
) |
Called every event.
Definition at line 132 of file hd_dump/MyProcessor.cc.
References ansi_up, c, japp, LIST_ASSOCIATED_OBJECTS, PAUSE_BETWEEN_EVENTS, PRINT_STATUS_BITS, PRINT_SUMMARY_HEADER, SKIP_BORING_EVENTS, SPARSIFY_SUMMARY, toprint, and tosummarize.
jerror_t MyProcessor::evnt | ( | JEventLoop * | eventLoop, |
uint64_t | eventnumber | ||
) |
Called every event.
void MyProcessor::FillGraphics | ( | void | ) |
Create "graphics" objects for this event given the current GUI settings.
This method will create DGraphicSet objects that represent tracks, hits, and showers for the event. It creates objects for both hits and reconstructed entities. The "graphics" objects created here are really just collections of 3D space points with flags indicating whether they should be drawn as markers or lines and with what color and size. The actual graphics objects are created for the various views of the detector in hdv_mainframe.
Definition at line 226 of file hdview2/MyProcessor.cc.
References _DBG_, AntiProton, DTOFHit::bar, DKinematicData::charge(), MyProcessor::DGraphicSet::color, DCCALHit::column, DFCALHit::column, DNeutralShower::dDetectorSystem, DNeutralShower::dEnergy, DNeutralShower::dSpacetimeVertex, DCCALHit::E, DFCALHit::E, DBCALHit::E, DBCALPoint::E(), DBCALCluster::E(), e, Electron, DFDCHit::element, DTOFHit::end, DBCALHit::end, DKinematicData::energy(), f, FCAL_Zmin, fdcwires, Gamma, hdv_mainframe::GetBCALPolyLine(), hdv_mainframe::GetCCALPolyLine(), hdv_mainframe::GetCheckButton(), GetColor(), hdv_mainframe::GetDebugerFrame(), hdv_mainframe::GetFactoryTag(), hdv_mainframe::GetFCALPolyLine(), hdv_mainframe::GetTOFPolyLine(), DFDCHit::gLayer, DTOFHit::has_fADC, DTOFHit::has_TDC, hdvmf, DBCALGeometry::kUpstream, DCoordinateSystem::L, DBCALHit::layer, layer, DBCALPoint::layer(), MyProcessor::DGraphicSet::marker_style, max, MaxTimeTracks, MaxWireTracks, DBCALHit::module, DBCALPoint::module(), Neutron, DCoordinateSystem::origin, DMCTrajectoryPoint::part, DMCTrackHit::phi, DBCALPoint::phi(), DBCALCluster::phi(), Pi0, PiMinus, PiPlus, DTOFHit::plane, MyProcessor::DGraphicSet::points, DTOFPoint::pos, DFCALGeometry::positionOnFace(), Positron, printf(), Proton, DBCALIncidentParticle::ptype, DBCALIncidentParticle::px, DBCALIncidentParticle::py, DBCALIncidentParticle::pz, DMCTrackHit::r, DBCALCluster::rho(), DCCALHit::row, DFCALHit::row, DBCALHit::sector, DBCALPoint::sector(), hdv_debugerframe::SetNTrCand(), hdv_debugerframe::SetNTrTimeBased(), hdv_debugerframe::SetNTrWireBased(), sin(), size, sprintf(), sqrt(), DCDCWire::stereo, SYS_BCAL, SYS_CDC, SYS_FCAL, SYS_FDC, SYS_TOF, DMCTrackHit::system, DTOFHit::t, DFDCHit::t, DBCALPoint::t(), DBCALCluster::t(), DBCALCluster::theta(), DMCTrajectoryPoint::track, DFDCHit::type, DCoordinateSystem::udir, DMCTrajectoryPoint::x, DFCALHit::x, DBCALIncidentParticle::x, x, DMCTrajectoryPoint::y, DFCALHit::y, DBCALIncidentParticle::y, y, DMCTrajectoryPoint::z, DMCTrackHit::z, and DBCALPoint::z().
Referenced by hdv_mainframe::DoMyRedraw().
jerror_t MyProcessor::fini | ( | void | ) |
Called everytime run number changes, provided brun has been called.
Called after last event of last event source has been processed.
jerror_t MyProcessor::fini | ( | void | ) |
Called after last event of last event source has been processed.
|
inline |
Called everytime run number changes, provided brun has been called.
Definition at line 38 of file hd_dump/MyProcessor.h.
void MyProcessor::FormatHistogram | ( | TH2 * | histo, |
int | color = 1 |
||
) |
Definition at line 2387 of file hdview2/MyProcessor.cc.
References size.
void MyProcessor::GetAllWireHits | ( | vector< pair< const DCoordinateSystem *, double > > & | allhits | ) |
Argument is vector of pairs that contain a pointer to the DCoordinateSystem representing a wire and a double that represents the drift distance. To get info on the specific wire, one needs to attempt a dynamic_cast to both a DCDCWire and a DFDCWire and access the parameters of whichever one succeeds.
Definition at line 2348 of file hdview2/MyProcessor.cc.
Referenced by trk_mainframe::DrawHits().
void MyProcessor::GetDReferenceTrajectory | ( | string | dataname, |
string | tag, | ||
unsigned int | index, | ||
DReferenceTrajectory *& | rt, | ||
vector< const DCDCTrackHit * > & | cdchits | ||
) |
Definition at line 2245 of file hdview2/MyProcessor.cc.
References _DBG_, _DBG__, DKinematicData::charge(), xstream::base64::index(), DKinematicData::momentum(), DKinematicData::position(), DReferenceTrajectory::Rsqmax_exterior, DReferenceTrajectory::Rsqmax_interior, DReferenceTrajectory::SetDGeometry(), DReferenceTrajectory::SetDRootGeom(), DReferenceTrajectory::SetMass(), and DReferenceTrajectory::Swim().
Referenced by trk_mainframe::DrawHits().
void MyProcessor::GetFactories | ( | vector< JFactory_base * > & | factories | ) |
Definition at line 2205 of file hdview2/MyProcessor.cc.
Referenced by trk_mainframe::FillFactoryTagComboBox().
void MyProcessor::GetFactoryNames | ( | vector< string > & | facnames | ) |
Definition at line 2193 of file hdview2/MyProcessor.cc.
|
private |
Definition at line 2138 of file hdview2/MyProcessor.cc.
References _DBG_, BCAL_Rmin, BCAL_Zlen, BCAL_Zmin, DKinematicData::charge(), FCAL_Rmax, FCAL_Rmin, FCAL_Zmin, DReferenceTrajectory::GetIntersectionWithPlane(), DReferenceTrajectory::GetIntersectionWithRadius(), DKinematicData::mass(), DKinematicData::momentum(), DKinematicData::position(), DReferenceTrajectory::Rsqmax_exterior, DReferenceTrajectory::Rsqmax_interior, DReferenceTrajectory::SetDGeometry(), DReferenceTrajectory::SetDRootGeom(), DReferenceTrajectory::SetMass(), DReferenceTrajectory::Swim(), SYS_BCAL, SYS_FCAL, and SYS_NULL.
Definition at line 2216 of file hdview2/MyProcessor.cc.
Referenced by trk_mainframe::FillTrackNumberComboBox().
jerror_t MyProcessor::init | ( | void | ) |
Called once at program start.
jerror_t MyProcessor::init | ( | void | ) |
Called once at program start.
|
inline |
Definition at line 34 of file hd_dump/MyProcessor.h.
Referenced by main().
jerror_t MyProcessor::init | ( | void | ) |
Called once at program start.
void MyProcessor::PrintAssociatedObjects | ( | JEventLoop * | eventLoop, |
const factory_info_t * | fac_info | ||
) |
Definition at line 226 of file hd_dump/MyProcessor.cc.
References MyProcessor::factory_info_t::fac, and string.
void MyProcessor::UpdateBcalDisp | ( | void | ) |
Definition at line 1748 of file hdview2/MyProcessor.cc.
References DBCALHit::E, DBCALHit::end, hdv_mainframe::GetBcalDispFrame(), hdvmf, DBCALGeometry::kUpstream, DBCALHit::layer, layer, DBCALHit::module, DBCALIncidentParticle::ptype, DBCALIncidentParticle::px, DBCALIncidentParticle::py, DBCALIncidentParticle::pz, DBCALHit::sector, size, sprintf(), DBCALIncidentParticle::x, and DBCALIncidentParticle::y.
Referenced by hdv_mainframe::DoUpdateBcalDisp().
void MyProcessor::UpdateTrackLabels | ( | void | ) |
Definition at line 1908 of file hdview2/MyProcessor.cc.
References DTrackWireBased::candidateid, DTrackTimeBased::candidateid, DKinematicData::charge(), DTrackWireBased::chisq, DTrackCandidate::chisq, DTrackTimeBased::chisq, e, DTrackTimeBased::FOM, DChargedTrackHypothesis::Get_TrackTimeBased(), hdv_mainframe::GetReconFactory(), hdv_mainframe::GetReconstructedLabels(), hdv_mainframe::GetThrownLabels(), hdvmf, DKinematicData::mass(), DKinematicData::momentum(), DTrackWireBased::Ndof, DTrackCandidate::Ndof, DTrackTimeBased::Ndof, ParticleType(), DKinematicData::position(), and DMCThrown::type.
Referenced by hdv_mainframe::DoUpdateTrackLabels().
|
private |
Definition at line 127 of file hdview2/MyProcessor.h.
|
private |
Definition at line 120 of file hdview2/MyProcessor.h.
|
private |
Definition at line 122 of file hdview2/MyProcessor.h.
|
private |
Definition at line 121 of file hdview2/MyProcessor.h.
|
private |
Definition at line 123 of file hdview2/MyProcessor.h.
|
private |
Definition at line 124 of file hdview2/MyProcessor.h.
|
private |
Definition at line 126 of file hdview2/MyProcessor.h.
|
private |
Definition at line 125 of file hdview2/MyProcessor.h.
|
private |
Definition at line 119 of file hdview2/MyProcessor.h.
const DMagneticFieldMap* MyProcessor::Bfield |
Definition at line 69 of file hdview2/MyProcessor.h.
|
private |
Definition at line 129 of file hdview2/MyProcessor.h.
|
private |
Definition at line 110 of file hdview2/MyProcessor.h.
|
private |
Definition at line 133 of file hdview2/MyProcessor.h.
uint64_t MyProcessor::eventNo |
Definition at line 70 of file hdview2/MyProcessor.h.
vector< factory_info_t > MyProcessor::fac_info |
Definition at line 45 of file hd_dump/MyProcessor.h.
std::string MyProcessor::filename |
Definition at line 32 of file hd_eventfilter/MyProcessor.h.
hddm_s::ostream* MyProcessor::fout |
Definition at line 34 of file hd_eventfilter/MyProcessor.h.
|
private |
Definition at line 109 of file hdview2/MyProcessor.h.
|
private |
Definition at line 114 of file hdview2/MyProcessor.h.
vector<DGraphicSet> MyProcessor::graphics |
Definition at line 86 of file hdview2/MyProcessor.h.
Referenced by hdv_mainframe::DoMyRedraw().
vector<TObject*> MyProcessor::graphics_tof_hits |
Definition at line 96 of file hdview2/MyProcessor.h.
Referenced by hdv_mainframe::DoMyRedraw().
vector<TObject*> MyProcessor::graphics_xyA |
Definition at line 92 of file hdview2/MyProcessor.h.
Referenced by hdv_mainframe::DoMyRedraw().
vector<TObject*> MyProcessor::graphics_xyB |
Definition at line 93 of file hdview2/MyProcessor.h.
Referenced by hdv_mainframe::DoMyRedraw().
vector<TObject*> MyProcessor::graphics_xz |
Definition at line 94 of file hdview2/MyProcessor.h.
Referenced by hdv_mainframe::DoMyRedraw().
vector<TObject*> MyProcessor::graphics_yz |
Definition at line 95 of file hdview2/MyProcessor.h.
Referenced by hdv_mainframe::DoMyRedraw().
|
private |
Definition at line 38 of file hd_eventfilter/MyProcessor.h.
|
private |
Definition at line 39 of file hd_eventfilter/MyProcessor.h.
|
private |
Definition at line 108 of file hdview2/MyProcessor.h.
|
private |
Definition at line 112 of file hdview2/MyProcessor.h.
|
private |
Definition at line 128 of file hdview2/MyProcessor.h.
|
private |
Definition at line 111 of file hdview2/MyProcessor.h.
|
private |
Definition at line 115 of file hdview2/MyProcessor.h.
unsigned long MyProcessor::Nevents_written |
Definition at line 35 of file hd_eventfilter/MyProcessor.h.
std::ofstream* MyProcessor::ofs |
Definition at line 33 of file hd_eventfilter/MyProcessor.h.
|
private |
Definition at line 132 of file hdview2/MyProcessor.h.
|
private |
Definition at line 117 of file hdview2/MyProcessor.h.
|
private |
Definition at line 116 of file hdview2/MyProcessor.h.
TFile* MyProcessor::ROOTfile |
Definition at line 37 of file hd_root/MyProcessor.h.
|
private |
Definition at line 113 of file hdview2/MyProcessor.h.