9 #include "StEEmcHitMaker.h"
13 #include "StRoot/St_base/StMessMgr.h"
15 #include "StRoot/StEEmcPool/./StEEmcTreeMaker/StEEmcTreeMaker.h"
16 #include "StRoot/StEEmcPool/./StEEmcTreeMaker/StEEmcEnergyMaker.h"
23 mInputMakerName( inputMkrName ),
24 mDoClusterSMDStrips(0),
28 for( Int_t i = 0; i < NUM_TOW_LAYERS; ++i )
42 if( !mConstructedOK ){
43 LOG_FATAL <<
"StEEmcHitMaker had an error during construction phase. Init() returning kStFatal." << endm;
47 TObject *inputMaker = GetMaker( mInputMakerName.data() );
49 LOG_FATAL <<
"::Init() could not get pointer to a maker with name '" << mInputMakerName <<
"'" << endm;
53 if( !ierr && !inputMaker->InheritsFrom(
"StEEmcTreeMaker_t" ) && !inputMaker->InheritsFrom(
"StEEmcEnergyMaker_t" ) ){
54 LOG_FATAL <<
"Input maker '" << mInputMakerName <<
"' does not inherit from "
55 <<
"StEEmcTreeMaker_t nor StEEmcEnergyMaker_t" << endm;
66 TObject *inputMaker = GetMaker( mInputMakerName.data() );
68 LOG_FATAL <<
"::Init() could not get pointer to a maker with name '" << mInputMakerName <<
"'" << endm;
74 if( inputMaker->InheritsFrom(
"StEEmcTreeMaker_t" ) ){
76 mEEmcEnergy = treeMkr->getEEmcEnergy();
77 }
else if ( inputMaker->InheritsFrom(
"StEEmcEnergyMaker_t" ) ){
79 mEEmcEnergy = energyMkr->getEEmcEnergyPtr();
81 LOG_FATAL <<
"Input maker '" << mInputMakerName <<
"' does not inherit from "
82 <<
"StEEmcTreeMaker_t nor StEEmcEnergyMaker_t" << endm;
87 LOG_ERROR <<
"Error getting EEmcEnergy_t pointer from '" << mInputMakerName <<
"'" << endm;
103 if( layer < NUM_TOW_LAYERS )
109 Int_t StEEmcHitMaker_t::getNumSMDClusters(){
StESMDClustersVec_t mESMDClusterVec
Int_t Make()
Make (loads data, for children classes to use)
StEEmcHitMaker_t(const Char_t *myName, const Char_t *inputMkrName)
Construtor.
virtual void clearData()
no copy constructor nor equals operator needed, since includes no dynamically allocated memory; ...
virtual ~StEEmcHitMaker_t()
Deconstructor.
void Clear(Option_t *opts="")
Clear for next event.
static const Int_t kEEmcNumPhiBins
Include the header.
Bool_t mDoClusterTower[NUM_TOW_LAYERS]
boolean flags
Bool_t getIfClusteredTower(TowerLayer_t layer) const
accessors