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

#include <DFCALShower_factory.h>

+ Inheritance diagram for DFCALShower_factory:

Public Member Functions

 DFCALShower_factory ()
 
 ~DFCALShower_factory ()
 
jerror_t LoadCovarianceLookupTables (JEventLoop *eventLoop)
 
jerror_t FillCovarianceMatrix (DFCALShower *shower)
 

Private Member Functions

jerror_t evnt (JEventLoop *eventLoop, uint64_t eventnumber)
 Invoked via JEventProcessor virtual method. More...
 
jerror_t brun (JEventLoop *loop, int32_t runnumber)
 
jerror_t erun (void)
 
void GetCorrectedEnergyAndPosition (const DFCALCluster *cluster, double &Ecorrected, DVector3 &pos_corrected, double &errZ, const DVector3 *aVertex)
 
unsigned int getMaxHit (const vector< const DFCALHit * > &hitVec) const
 
void getUVFromHits (double &sumUSh, double &sumVSh, const vector< const DFCALHit * > &hits, const DVector3 &showerVec, const DVector3 &trackVec) const
 
void getE1925FromHits (double &e1e9Sh, double &e9e25Sh, const vector< const DFCALHit * > &hits, unsigned int maxIndex) const
 
vector< const DTrackWireBased * > filterWireBasedTracks (vector< const DTrackWireBased * > &wbTracks) const
 

Private Attributes

double m_zTarget
 
double m_FCALfront
 
double LOAD_CCDB_CONSTANTS
 
double SHOWER_ENERGY_THRESHOLD
 
double cutoff_energy
 
double linfit_slope
 
double linfit_intercept
 
double expfit_param1
 
double expfit_param2
 
double expfit_param3
 
double timeConst0
 
double timeConst1
 
double timeConst2
 
double timeConst3
 
double timeConst4
 
double FCAL_RADIATION_LENGTH
 
double FCAL_CRITICAL_ENERGY
 
double FCAL_SHOWER_OFFSET
 
double FCAL_C_EFFECTIVE
 
int VERBOSE
 
string COVARIANCEFILENAME
 
TH2F * CovarianceLookupTable [5][5]
 

Detailed Description

Definition at line 24 of file DFCALShower_factory.h.

Constructor & Destructor Documentation

DFCALShower_factory::DFCALShower_factory ( )

< >0 once off info ; >2 event by event ; >3 everything

< Setting the filename will take precidence over the CCDB. Files must end in ij.txt, where i and j are integers corresponding to the element of the matrix

Definition at line 26 of file DFCALShower_factory.cc.

References k_MeV, and VERBOSE.

DFCALShower_factory::~DFCALShower_factory ( )
inline

Definition at line 27 of file DFCALShower_factory.h.

Member Function Documentation

jerror_t DFCALShower_factory::brun ( JEventLoop *  loop,
int32_t  runnumber 
)
private
jerror_t DFCALShower_factory::erun ( void  )
private

Definition at line 165 of file DFCALShower_factory.cc.

jerror_t DFCALShower_factory::FillCovarianceMatrix ( DFCALShower shower)

This function takes a FCALShower object and using the internal variables overwrites any existing covaraince matrix using lookup tables.

Definition at line 392 of file DFCALShower_factory.cc.

References DFCALShower::ExyztCovariance, DFCALShower::getEnergy(), DFCALShower::getPosition(), printf(), sin(), sqrt(), and VERBOSE.

vector< const DTrackWireBased * > DFCALShower_factory::filterWireBasedTracks ( vector< const DTrackWireBased * > &  wbTracks) const
private

Definition at line 648 of file DFCALShower_factory.cc.

void DFCALShower_factory::GetCorrectedEnergyAndPosition ( const DFCALCluster cluster,
double &  Ecorrected,
DVector3 pos_corrected,
double &  errZ,
const DVector3 aVertex 
)
private
void DFCALShower_factory::getE1925FromHits ( double &  e1e9Sh,
double &  e9e25Sh,
const vector< const DFCALHit * > &  hits,
unsigned int  maxIndex 
) const
private

Definition at line 623 of file DFCALShower_factory.cc.

References DFCALHit::E, DFCALHit::x, and DFCALHit::y.

unsigned int DFCALShower_factory::getMaxHit ( const vector< const DFCALHit * > &  hitVec) const
private

Definition at line 564 of file DFCALShower_factory.cc.

void DFCALShower_factory::getUVFromHits ( double &  sumUSh,
double &  sumVSh,
const vector< const DFCALHit * > &  hits,
const DVector3 showerVec,
const DVector3 trackVec 
) const
private

Definition at line 584 of file DFCALShower_factory.cc.

References u.

jerror_t DFCALShower_factory::LoadCovarianceLookupTables ( JEventLoop *  eventLoop)

Definition at line 454 of file DFCALShower_factory.cc.

References filename, japp, printf(), savedir, sprintf(), and VERBOSE.

Member Data Documentation

string DFCALShower_factory::COVARIANCEFILENAME
private

Definition at line 78 of file DFCALShower_factory.h.

TH2F* DFCALShower_factory::CovarianceLookupTable[5][5]
private

Definition at line 79 of file DFCALShower_factory.h.

double DFCALShower_factory::cutoff_energy
private

Definition at line 59 of file DFCALShower_factory.h.

double DFCALShower_factory::expfit_param1
private

Definition at line 62 of file DFCALShower_factory.h.

double DFCALShower_factory::expfit_param2
private

Definition at line 63 of file DFCALShower_factory.h.

double DFCALShower_factory::expfit_param3
private

Definition at line 64 of file DFCALShower_factory.h.

double DFCALShower_factory::FCAL_C_EFFECTIVE
private

Definition at line 75 of file DFCALShower_factory.h.

double DFCALShower_factory::FCAL_CRITICAL_ENERGY
private

Definition at line 73 of file DFCALShower_factory.h.

double DFCALShower_factory::FCAL_RADIATION_LENGTH
private

Definition at line 72 of file DFCALShower_factory.h.

double DFCALShower_factory::FCAL_SHOWER_OFFSET
private

Definition at line 74 of file DFCALShower_factory.h.

double DFCALShower_factory::linfit_intercept
private

Definition at line 61 of file DFCALShower_factory.h.

double DFCALShower_factory::linfit_slope
private

Definition at line 60 of file DFCALShower_factory.h.

double DFCALShower_factory::LOAD_CCDB_CONSTANTS
private

Definition at line 57 of file DFCALShower_factory.h.

double DFCALShower_factory::m_FCALfront
private

Definition at line 55 of file DFCALShower_factory.h.

double DFCALShower_factory::m_zTarget
private

Definition at line 55 of file DFCALShower_factory.h.

double DFCALShower_factory::SHOWER_ENERGY_THRESHOLD
private

Definition at line 58 of file DFCALShower_factory.h.

double DFCALShower_factory::timeConst0
private

Definition at line 66 of file DFCALShower_factory.h.

double DFCALShower_factory::timeConst1
private

Definition at line 67 of file DFCALShower_factory.h.

double DFCALShower_factory::timeConst2
private

Definition at line 68 of file DFCALShower_factory.h.

double DFCALShower_factory::timeConst3
private

Definition at line 69 of file DFCALShower_factory.h.

double DFCALShower_factory::timeConst4
private

Definition at line 70 of file DFCALShower_factory.h.

int DFCALShower_factory::VERBOSE
private

Definition at line 77 of file DFCALShower_factory.h.


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