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

#include <DEventProcessor_photoneff_hists.h>

+ Inheritance diagram for DEventProcessor_photoneff_hists:

Public Member Functions

 DEventProcessor_photoneff_hists ()
 
 ~DEventProcessor_photoneff_hists ()
 

Public Attributes

TTree * phtneff
 
photon phtn
 
photonphtn_ptr
 

Private Member Functions

jerror_t init (void)
 Invoked via DEventProcessor virtual method. More...
 
jerror_t brun (JEventLoop *loop, int32_t runnumber)
 
jerror_t evnt (JEventLoop *loop, uint64_t eventnumber)
 Invoked via DEventProcessor virtual method. More...
 
jerror_t erun (void)
 Invoked via DEventProcessor virtual method. More...
 
jerror_t fini (void)
 Invoked via DEventProcessor virtual method. More...
 
bool isReconstructable (const DMCThrown *mcthrown, JEventLoop *loop)
 

Private Attributes

pthread_mutex_t mutex
 
int DEBUG
 

Detailed Description

Definition at line 32 of file DEventProcessor_photoneff_hists.h.

Constructor & Destructor Documentation

DEventProcessor_photoneff_hists::DEventProcessor_photoneff_hists ( )

Definition at line 40 of file DEventProcessor_photoneff_hists.cc.

DEventProcessor_photoneff_hists::~DEventProcessor_photoneff_hists ( )

Definition at line 52 of file DEventProcessor_photoneff_hists.cc.

Member Function Documentation

jerror_t DEventProcessor_photoneff_hists::brun ( JEventLoop *  loop,
int32_t  runnumber 
)
private

Definition at line 88 of file DEventProcessor_photoneff_hists.cc.

jerror_t DEventProcessor_photoneff_hists::erun ( void  )
private

Invoked via DEventProcessor virtual method.

Definition at line 97 of file DEventProcessor_photoneff_hists.cc.

jerror_t DEventProcessor_photoneff_hists::evnt ( JEventLoop *  loop,
uint64_t  eventnumber 
)
private

Invoked via DEventProcessor virtual method.

Definition at line 113 of file DEventProcessor_photoneff_hists.cc.

References japp, and DKinematicData::momentum().

jerror_t DEventProcessor_photoneff_hists::fini ( void  )
private

Invoked via DEventProcessor virtual method.

Definition at line 105 of file DEventProcessor_photoneff_hists.cc.

jerror_t DEventProcessor_photoneff_hists::init ( void  )
private

Invoked via DEventProcessor virtual method.

Definition at line 60 of file DEventProcessor_photoneff_hists.cc.

References DEBUG, and dir.

bool DEventProcessor_photoneff_hists::isReconstructable ( const DMCThrown mcthrown,
JEventLoop *  loop 
)
private

For photon reconstruction, we just check if the total energy in ether the BCAL or FCAL is greater than 50% of the thrown value to determine if it is reconstructible.

This is not entirely accurate since a photon could convert upstream and spray that much energy into a calorimeter and the photon would then not be reconstructible.

On the other hand, if you are really looking for detection efficiency, then you'll want that to be included in the calculation so maybe this is a good thing ....?

Definition at line 198 of file DEventProcessor_photoneff_hists.cc.

References DKinematicData::energy().

Member Data Documentation

int DEventProcessor_photoneff_hists::DEBUG
private

Definition at line 54 of file DEventProcessor_photoneff_hists.h.

pthread_mutex_t DEventProcessor_photoneff_hists::mutex
private

Definition at line 52 of file DEventProcessor_photoneff_hists.h.

photon DEventProcessor_photoneff_hists::phtn

Definition at line 39 of file DEventProcessor_photoneff_hists.h.

photon* DEventProcessor_photoneff_hists::phtn_ptr

Definition at line 40 of file DEventProcessor_photoneff_hists.h.

TTree* DEventProcessor_photoneff_hists::phtneff

Definition at line 38 of file DEventProcessor_photoneff_hists.h.


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