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

#include <JEventProcessor_dumpcandidates.h>

+ Inheritance diagram for JEventProcessor_dumpcandidates:

Public Member Functions

 JEventProcessor_dumpcandidates ()
 
 ~JEventProcessor_dumpcandidates ()
 
const char * className (void)
 

Private Member Functions

jerror_t init (void)
 Called once at program start. More...
 
jerror_t brun (jana::JEventLoop *eventLoop, int32_t runnumber)
 Called everytime a new run number is detected. More...
 
jerror_t evnt (jana::JEventLoop *eventLoop, uint64_t eventnumber)
 Called every event. More...
 
jerror_t erun (void)
 Called everytime run number changes, provided brun has been called. More...
 
jerror_t fini (void)
 Called after last event of last event source has been processed. More...
 
unsigned long GetCDCWireID (const DCDCWire *w)
 
unsigned long GetFDCWireID (const DFDCWire *w)
 
int GetWireIndex (unsigned long id)
 

Private Attributes

DGeometrydgeom
 
map< unsigned long, int > wireID
 
ofstream * ofs
 
unsigned int MAX_CANDIDATE_FILTER
 
unsigned long events_written
 
unsigned long events_discarded
 
DVector3 beam_origin
 
DVector3 beam_dir
 

Detailed Description

Definition at line 18 of file JEventProcessor_dumpcandidates.h.

Constructor & Destructor Documentation

JEventProcessor_dumpcandidates::JEventProcessor_dumpcandidates ( )

Definition at line 32 of file JEventProcessor_dumpcandidates.cc.

JEventProcessor_dumpcandidates::~JEventProcessor_dumpcandidates ( )

Definition at line 44 of file JEventProcessor_dumpcandidates.cc.

Member Function Documentation

jerror_t JEventProcessor_dumpcandidates::brun ( jana::JEventLoop *  eventLoop,
int32_t  runnumber 
)
private

Called everytime a new run number is detected.

Definition at line 68 of file JEventProcessor_dumpcandidates.cc.

References dapp, fdcwires, DGeometry::GetCDCWires(), DApplication::GetDGeometry(), xstream::base64::index(), and japp.

const char* JEventProcessor_dumpcandidates::className ( void  )
inline

Definition at line 22 of file JEventProcessor_dumpcandidates.h.

jerror_t JEventProcessor_dumpcandidates::erun ( void  )
private

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

Definition at line 203 of file JEventProcessor_dumpcandidates.cc.

jerror_t JEventProcessor_dumpcandidates::fini ( void  )
private

Called after last event of last event source has been processed.

Definition at line 211 of file JEventProcessor_dumpcandidates.cc.

unsigned long JEventProcessor_dumpcandidates::GetCDCWireID ( const DCDCWire w)
inlineprivate

Definition at line 41 of file JEventProcessor_dumpcandidates.h.

References DCDCWire::ring, and DCDCWire::straw.

unsigned long JEventProcessor_dumpcandidates::GetFDCWireID ( const DFDCWire w)
inlineprivate

Definition at line 42 of file JEventProcessor_dumpcandidates.h.

References DFDCWire::layer, and DFDCWire::wire.

int JEventProcessor_dumpcandidates::GetWireIndex ( unsigned long  id)
inlineprivate

Definition at line 43 of file JEventProcessor_dumpcandidates.h.

jerror_t JEventProcessor_dumpcandidates::init ( void  )
private

Called once at program start.

Definition at line 52 of file JEventProcessor_dumpcandidates.cc.

Member Data Documentation

DVector3 JEventProcessor_dumpcandidates::beam_dir
private

Definition at line 39 of file JEventProcessor_dumpcandidates.h.

DVector3 JEventProcessor_dumpcandidates::beam_origin
private

Definition at line 38 of file JEventProcessor_dumpcandidates.h.

DGeometry* JEventProcessor_dumpcandidates::dgeom
private

Definition at line 32 of file JEventProcessor_dumpcandidates.h.

unsigned long JEventProcessor_dumpcandidates::events_discarded
private

Definition at line 37 of file JEventProcessor_dumpcandidates.h.

unsigned long JEventProcessor_dumpcandidates::events_written
private

Definition at line 36 of file JEventProcessor_dumpcandidates.h.

unsigned int JEventProcessor_dumpcandidates::MAX_CANDIDATE_FILTER
private

Definition at line 35 of file JEventProcessor_dumpcandidates.h.

ofstream* JEventProcessor_dumpcandidates::ofs
private

Definition at line 34 of file JEventProcessor_dumpcandidates.h.

map<unsigned long, int> JEventProcessor_dumpcandidates::wireID
private

Definition at line 33 of file JEventProcessor_dumpcandidates.h.


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