1 #include "StGammaMaker.h"
10 StGammaMaker::StGammaMaker(
const char *name, detectorSwitch detector, analysisType analysis):
14 LOG_DEBUG <<
"StGammaMaker()" << endm;
20 if(detector == kBemc) mUseEemc =
false;
21 if(detector == kEemc) mUseBemc =
false;
36 mMuDstMaker =
dynamic_cast<StMuDstMaker*
>(GetMakerInheritsFrom(
"StMuDstMaker"));
39 mEemcAnalysis =
dynamic_cast<StEEmcA2EMaker*
>(GetMakerInheritsFrom(
"StEEmcA2EMaker"));
40 assert(mEemcAnalysis);
55 mScheduleMaker->rearrange();
60 if(mUseBemc) mRawMaker->useBemc();
61 if(mUseEemc) mRawMaker->useEemc();
66 mEemcClusterMaker =
new StMyClusterMaker(
"mEemcClusterMaker", mEemcAnalysis, mMuDstMaker);
67 mEemcClusterMaker->setEtaCut(1);
68 mEemcClusterMaker->setPhiCut(1);
72 if(mUseBemc) mCandidateMaker->useBemc();
73 if(mUseEemc) mCandidateMaker->useEemc();
81 Int_t StGammaMaker::Init()
84 if(mSimu) LOG_INFO <<
"Preparing to run over simulation..." << endm;
85 if(!mSimu) LOG_INFO <<
"Preparing to run over data..." << endm;
87 if(mUseBemc) LOG_INFO <<
"Including the BEMC" << endm;
88 if(mUseEemc) LOG_INFO <<
"Including the EEMC" << endm;
90 return StMaker::Init();
94 void StGammaMaker::setSeedEnergyThreshold(
double threshold)
96 if(mUseBemc) mBemcClusterMaker->setSeedThreshold(threshold);
100 void StGammaMaker::setClusterEnergyThreshold(
double threshold)
102 if(mUseBemc) mBemcClusterMaker->setClusterThreshold(threshold);
105 void StGammaMaker::addTimestamp(
int date,
int time,
double weight)
110 mScheduleMaker->addTimestamp(date, time, weight);
114 LOG_WARN <<
"addTimestamp() - StGammaMaker not prepared for simulation, ignoring timestamp request!" << endm;
EEmc ADC –> energy maker.
void setSeedEnergy(Float_t e, Int_t layer=0)
Sets the minimum seed energy for each tower layer.