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

#include <DEventProcessor_bcalfcaltof_res_tree.h>

+ Inheritance diagram for DEventProcessor_bcalfcaltof_res_tree:

Public Member Functions

 DEventProcessor_bcalfcaltof_res_tree ()
 
 ~DEventProcessor_bcalfcaltof_res_tree ()
 
const char * className (void)
 
void Convert_Coordinates_BCALToLab (float locBCALR, float locBCALPhi, float locBCALZ, DVector3 &locLabVertex)
 
void Convert_Coordinates_LabToBCAL (const DVector3 &locLabVertex, float &locBCALR, float &locBCALPhi, float &locBCALZ)
 
double Calc_MostProbableTOFdE (const DVector3 &locMomentum, double mass)
 
void Calc_MostProbableTOFdEdx (double p, double mass, double dx, double &dE, double &dEdx)
 
float Calc_BCALPathLengthCorrection (float locEnergy)
 
float Calc_BCALPathLengthCorrectionZPostE (float locZ)
 
float Calc_FCALPathLengthCorrection (float locEnergy)
 

Private Member Functions

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

Private Attributes

const DRootGeomdRootGeom
 
bool dBCALStudyFlag
 
bool dFCALStudyFlag
 
bool dTOFStudyFlag
 
bool locSCStudyFlag
 
DTrackFitterdTrackFitter
 
double dRhoZoverA
 
double dKRhoZoverA
 
double dLnI
 
BCALMCComparisondBCALMCComparison
 
FCALMCComparisondFCALMCComparison
 
TOFMCComparisondTOFMCComparison
 
TTree * dPluginTree_BCALMCComparison
 
TTree * dPluginTree_FCALMCComparison
 
TTree * dPluginTree_TOFMCComparison
 

Detailed Description

Definition at line 35 of file DEventProcessor_bcalfcaltof_res_tree.h.

Constructor & Destructor Documentation

DEventProcessor_bcalfcaltof_res_tree::DEventProcessor_bcalfcaltof_res_tree ( )
inline

Definition at line 37 of file DEventProcessor_bcalfcaltof_res_tree.h.

DEventProcessor_bcalfcaltof_res_tree::~DEventProcessor_bcalfcaltof_res_tree ( )
inline

Definition at line 38 of file DEventProcessor_bcalfcaltof_res_tree.h.

Member Function Documentation

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

Called everytime a new run number is detected.

Definition at line 51 of file DEventProcessor_bcalfcaltof_res_tree.cc.

References _DBG_, dKRhoZoverA, dLnI, dRhoZoverA, dRootGeom, dTrackFitter, DRootGeom::FindMat(), and DApplication::GetRootGeom().

float DEventProcessor_bcalfcaltof_res_tree::Calc_BCALPathLengthCorrection ( float  locEnergy)

Definition at line 451 of file DEventProcessor_bcalfcaltof_res_tree.cc.

Referenced by evnt().

float DEventProcessor_bcalfcaltof_res_tree::Calc_BCALPathLengthCorrectionZPostE ( float  locZ)

Definition at line 462 of file DEventProcessor_bcalfcaltof_res_tree.cc.

Referenced by evnt().

float DEventProcessor_bcalfcaltof_res_tree::Calc_FCALPathLengthCorrection ( float  locEnergy)

Definition at line 475 of file DEventProcessor_bcalfcaltof_res_tree.cc.

Referenced by evnt().

double DEventProcessor_bcalfcaltof_res_tree::Calc_MostProbableTOFdE ( const DVector3 locMomentum,
double  mass 
)

Definition at line 397 of file DEventProcessor_bcalfcaltof_res_tree.cc.

References Calc_MostProbableTOFdEdx().

Referenced by evnt().

void DEventProcessor_bcalfcaltof_res_tree::Calc_MostProbableTOFdEdx ( double  p,
double  mass,
double  dx,
double &  dE,
double &  dEdx 
)

Definition at line 407 of file DEventProcessor_bcalfcaltof_res_tree.cc.

References dKRhoZoverA, dLnI, and e.

Referenced by Calc_MostProbableTOFdE().

const char* DEventProcessor_bcalfcaltof_res_tree::className ( void  )
inline

Definition at line 39 of file DEventProcessor_bcalfcaltof_res_tree.h.

void DEventProcessor_bcalfcaltof_res_tree::Convert_Coordinates_BCALToLab ( float  locBCALR,
float  locBCALPhi,
float  locBCALZ,
DVector3 locLabVertex 
)

Definition at line 385 of file DEventProcessor_bcalfcaltof_res_tree.cc.

References sin().

void DEventProcessor_bcalfcaltof_res_tree::Convert_Coordinates_LabToBCAL ( const DVector3 locLabVertex,
float &  locBCALR,
float &  locBCALPhi,
float &  locBCALZ 
)

Definition at line 390 of file DEventProcessor_bcalfcaltof_res_tree.cc.

jerror_t DEventProcessor_bcalfcaltof_res_tree::erun ( void  )
private

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

Definition at line 370 of file DEventProcessor_bcalfcaltof_res_tree.cc.

jerror_t DEventProcessor_bcalfcaltof_res_tree::evnt ( JEventLoop *  eventLoop,
uint64_t  eventnumber 
)
private

Called every event.

Definition at line 88 of file DEventProcessor_bcalfcaltof_res_tree.cc.

References Calc_BCALPathLengthCorrection(), Calc_BCALPathLengthCorrectionZPostE(), Calc_FCALPathLengthCorrection(), Calc_MostProbableTOFdE(), dBCALMCComparison, dBCALStudyFlag, TOFMCComparison::dDeltadE, BCALMCComparison::dDeltaE, FCALMCComparison::dDeltaE, BCALMCComparison::dDeltaPhi, BCALMCComparison::dDeltaR, BCALMCComparison::dDeltaT, FCALMCComparison::dDeltaT, TOFMCComparison::dDeltaT, FCALMCComparison::dDeltaX, TOFMCComparison::dDeltaX, FCALMCComparison::dDeltaY, TOFMCComparison::dDeltaY, BCALMCComparison::dDeltaZ, FCALMCComparison::dDeltaZ, TOFMCComparison::dDeltaZ, DTOFPoint::dE, dFCALMCComparison, dFCALStudyFlag, TOFMCComparison::dHorizontalPlaneFlag, BCALMCComparison::dPathLengthCorrection, FCALMCComparison::dPathLengthCorrection, dPluginTree_BCALMCComparison, dPluginTree_FCALMCComparison, dPluginTree_TOFMCComparison, BCALMCComparison::dShowerUncertaintyE, FCALMCComparison::dShowerUncertaintyE, BCALMCComparison::dShowerUncertaintyT, FCALMCComparison::dShowerUncertaintyT, FCALMCComparison::dShowerUncertaintyX, BCALMCComparison::dShowerUncertaintyX, FCALMCComparison::dShowerUncertaintyY, BCALMCComparison::dShowerUncertaintyY, BCALMCComparison::dShowerUncertaintyZ, FCALMCComparison::dShowerUncertaintyZ, dTOFMCComparison, dTOFStudyFlag, TOFMCComparison::dTrueBetaGamma, TOFMCComparison::dTruedE, BCALMCComparison::dTrueE, FCALMCComparison::dTrueE, BCALMCComparison::dTruePhi, BCALMCComparison::dTrueR, BCALMCComparison::dTrueT, TOFMCComparison::dTrueT, FCALMCComparison::dTrueT, TOFMCComparison::dTrueX, FCALMCComparison::dTrueX, TOFMCComparison::dTrueY, FCALMCComparison::dTrueY, BCALMCComparison::dTrueZ, TOFMCComparison::dTrueZ, FCALMCComparison::dTrueZ, TOFMCComparison::dVerticalPlaneFlag, DBCALShower::E, DTOFTruth::E, e, DBCALShower::EErr(), DKinematicData::energy(), Gamma, DFCALShower::getEnergy(), DFCALShower::getPosition(), DFCALShower::getPositionError(), DFCALShower::getTime(), japp, DKinematicData::momentum(), ParticleMass(), DTOFPoint::pos, DKinematicData::position(), DTOFTruth::ptype, DTOFTruth::px, DTOFTruth::py, DTOFTruth::pz, sin(), sqrt(), DTOFTruth::t, DBCALShower::t, DTOFPoint::t, DBCALShower::tErr(), DMCThrown::type, DBCALShower::x, DTOFTruth::x, DBCALShower::xErr(), DTOFTruth::y, DBCALShower::y, DBCALShower::yErr(), DTOFTruth::z, DBCALShower::z, and DBCALShower::zErr().

jerror_t DEventProcessor_bcalfcaltof_res_tree::fini ( void  )
private

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

Definition at line 380 of file DEventProcessor_bcalfcaltof_res_tree.cc.

jerror_t DEventProcessor_bcalfcaltof_res_tree::init ( void  )
private

Member Data Documentation

BCALMCComparison* DEventProcessor_bcalfcaltof_res_tree::dBCALMCComparison
private

Definition at line 68 of file DEventProcessor_bcalfcaltof_res_tree.h.

Referenced by evnt(), and init().

bool DEventProcessor_bcalfcaltof_res_tree::dBCALStudyFlag
private

Definition at line 58 of file DEventProcessor_bcalfcaltof_res_tree.h.

Referenced by evnt(), and init().

FCALMCComparison* DEventProcessor_bcalfcaltof_res_tree::dFCALMCComparison
private

Definition at line 69 of file DEventProcessor_bcalfcaltof_res_tree.h.

Referenced by evnt(), and init().

bool DEventProcessor_bcalfcaltof_res_tree::dFCALStudyFlag
private

Definition at line 59 of file DEventProcessor_bcalfcaltof_res_tree.h.

Referenced by evnt(), and init().

double DEventProcessor_bcalfcaltof_res_tree::dKRhoZoverA
private

Definition at line 65 of file DEventProcessor_bcalfcaltof_res_tree.h.

Referenced by brun(), and Calc_MostProbableTOFdEdx().

double DEventProcessor_bcalfcaltof_res_tree::dLnI
private

Definition at line 66 of file DEventProcessor_bcalfcaltof_res_tree.h.

Referenced by brun(), and Calc_MostProbableTOFdEdx().

TTree* DEventProcessor_bcalfcaltof_res_tree::dPluginTree_BCALMCComparison
private

Definition at line 72 of file DEventProcessor_bcalfcaltof_res_tree.h.

Referenced by evnt(), and init().

TTree* DEventProcessor_bcalfcaltof_res_tree::dPluginTree_FCALMCComparison
private

Definition at line 73 of file DEventProcessor_bcalfcaltof_res_tree.h.

Referenced by evnt(), and init().

TTree* DEventProcessor_bcalfcaltof_res_tree::dPluginTree_TOFMCComparison
private

Definition at line 74 of file DEventProcessor_bcalfcaltof_res_tree.h.

Referenced by evnt(), and init().

double DEventProcessor_bcalfcaltof_res_tree::dRhoZoverA
private

Definition at line 64 of file DEventProcessor_bcalfcaltof_res_tree.h.

Referenced by brun().

const DRootGeom* DEventProcessor_bcalfcaltof_res_tree::dRootGeom
private

Definition at line 57 of file DEventProcessor_bcalfcaltof_res_tree.h.

Referenced by brun().

TOFMCComparison* DEventProcessor_bcalfcaltof_res_tree::dTOFMCComparison
private

Definition at line 70 of file DEventProcessor_bcalfcaltof_res_tree.h.

Referenced by evnt(), and init().

bool DEventProcessor_bcalfcaltof_res_tree::dTOFStudyFlag
private

Definition at line 60 of file DEventProcessor_bcalfcaltof_res_tree.h.

Referenced by evnt(), and init().

DTrackFitter* DEventProcessor_bcalfcaltof_res_tree::dTrackFitter
private

Definition at line 62 of file DEventProcessor_bcalfcaltof_res_tree.h.

Referenced by brun().

bool DEventProcessor_bcalfcaltof_res_tree::locSCStudyFlag
private

Definition at line 61 of file DEventProcessor_bcalfcaltof_res_tree.h.


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