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

#include <MyProcessor.h>

+ Inheritance diagram for MyProcessor:

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_tfac_info
 
std::string filename
 
std::ofstream * ofs
 
hddm_s::ostream * fout
 
unsigned long Nevents_written
 
TFile * ROOTfile
 
const DMagneticFieldMapBfield
 
uint64_t eventNo
 
vector< DGraphicSetgraphics
 
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_mainframehdvmf
 
hdv_fulllistframefulllistmf
 
hdv_debugerframedebugermf
 
JEventLoop * loop
 
JEvent last_jevent
 
DRootGeomRootGeom
 
DGeometrygeom
 
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
 

Detailed Description

Definition at line 31 of file hd_dump/MyProcessor.h.

Member Enumeration Documentation

Enumerator
kMarker 
kLine 

Definition at line 72 of file hdview2/MyProcessor.h.

Constructor & Destructor Documentation

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 ( )

Member Function Documentation

jerror_t MyProcessor::brun ( JEventLoop *  loop,
int32_t  runnumber 
)
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 
)
jerror_t MyProcessor::brun ( JEventLoop *  eventLoop,
int32_t  runnumber 
)

Called everytime a new run number is detected.

jerror_t MyProcessor::erun ( void  )
inline

< Called everytime run number changes, provided brun has been called.

Definition at line 27 of file hd_eventfilter/MyProcessor.h.

jerror_t MyProcessor::erun ( void  )
inline

Definition at line 28 of file hd_root/MyProcessor.h.

jerror_t MyProcessor::erun ( void  )
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 
)
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.

jerror_t MyProcessor::fini ( void  )
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::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.

unsigned int MyProcessor::GetNrows ( const string factory,
string  tag 
)

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.

jerror_t MyProcessor::init ( void  )
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.

Member Data Documentation

std::vector<TH2F*> MyProcessor::BCALClusterZphiHistos
private

Definition at line 127 of file hdview2/MyProcessor.h.

TCanvas* MyProcessor::BCALHitCanvas
private

Definition at line 120 of file hdview2/MyProcessor.h.

TH2F* MyProcessor::BCALHitMatrixD
private

Definition at line 122 of file hdview2/MyProcessor.h.

TH2F* MyProcessor::BCALHitMatrixU
private

Definition at line 121 of file hdview2/MyProcessor.h.

TH2F* MyProcessor::BCALParticles
private

Definition at line 123 of file hdview2/MyProcessor.h.

vector<TText*> MyProcessor::BCALPLables
private

Definition at line 124 of file hdview2/MyProcessor.h.

TH2F* MyProcessor::BCALPointPhiTLayer[4]
private

Definition at line 126 of file hdview2/MyProcessor.h.

TH2F* MyProcessor::BCALPointZphiLayer[4]
private

Definition at line 125 of file hdview2/MyProcessor.h.

uint32_t MyProcessor::BCALVERBOSE
private

Definition at line 119 of file hdview2/MyProcessor.h.

const DMagneticFieldMap* MyProcessor::Bfield

Definition at line 69 of file hdview2/MyProcessor.h.

TLegend* MyProcessor::ClusterLegend
private

Definition at line 129 of file hdview2/MyProcessor.h.

hdv_debugerframe* MyProcessor::debugermf
private

Definition at line 110 of file hdview2/MyProcessor.h.

double MyProcessor::DELTA_R_FCAL
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.

hdv_fulllistframe* MyProcessor::fulllistmf
private

Definition at line 109 of file hdview2/MyProcessor.h.

DGeometry* MyProcessor::geom
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().

bool MyProcessor::HDDM_USE_COMPRESSION
private

Definition at line 38 of file hd_eventfilter/MyProcessor.h.

bool MyProcessor::HDDM_USE_INTEGRITY_CHECKS
private

Definition at line 39 of file hd_eventfilter/MyProcessor.h.

hdv_mainframe* MyProcessor::hdvmf
private

Definition at line 108 of file hdview2/MyProcessor.h.

JEvent MyProcessor::last_jevent
private

Definition at line 112 of file hdview2/MyProcessor.h.

TLegend* MyProcessor::LayerLegend
private

Definition at line 128 of file hdview2/MyProcessor.h.

JEventLoop* MyProcessor::loop
private

Definition at line 111 of file hdview2/MyProcessor.h.

string MyProcessor::MATERIAL_MAP_MODEL
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.

map<string, double> MyProcessor::photon_track_matching
private

Definition at line 132 of file hdview2/MyProcessor.h.

double MyProcessor::RMAX_EXTERIOR
private

Definition at line 117 of file hdview2/MyProcessor.h.

double MyProcessor::RMAX_INTERIOR
private

Definition at line 116 of file hdview2/MyProcessor.h.

TFile* MyProcessor::ROOTfile

Definition at line 37 of file hd_root/MyProcessor.h.

DRootGeom* MyProcessor::RootGeom
private

Definition at line 113 of file hdview2/MyProcessor.h.


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