10 #include "StEventTypes.h"
13 #include "StMuDSTMaker/COMMON/StMuTypes.hh"
16 #include "L2algoUtil/L2btowCalAlgo09.h"
17 #include "L2algoUtil/L2etowCalAlgo09.h"
18 #include "L2jetAlgo/L2jetAlgo2009.h"
19 #include "L2pedAlgo/L2pedAlgo09.h"
20 #include "L2gammaAlgo/L2bemcGamma2009.h"
21 #include "L2gammaAlgo/L2eemcGamma2009.h"
22 #include "L2upsilon/L2Upsilon2009.h"
23 #include "L2algoUtil/l2Algorithm.h"
24 #include "StL2_2009EmulatorMaker.h"
32 StL2_2009EmulatorMaker::~StL2_2009EmulatorMaker(){
35 #if 1 // disable for now, fix it one pp 2009 run starts,Jan
39 StL2_2009EmulatorMaker::InitRun(
int runNo){
45 LOG_INFO << Form(
"::setupL2Algos2009(), dbDate=%d ", mYearMonthDay)<<endm;
48 mL2algo.push_back(
new L2btowCalAlgo09(
"btowCal",mL2EmcDb,mL2EmcGeom,mL2EmcDb->logPath,L2RESULTS_2009_OFFSET_BTOW_CAL));
49 mL2algo.push_back(
new L2etowCalAlgo09(
"etowCal",mL2EmcDb,mL2EmcGeom,mL2EmcDb->logPath,L2RESULTS_2009_OFFSET_ETOW_CAL));
50 mL2algo.push_back(
new L2pedAlgo09(
"ped",mL2EmcDb,mL2EmcDb->logPath,L2RESULTS_2009_OFFSET_EMC_PED));
51 mL2algo.push_back(
new L2jetAlgo2009(
"jet",mL2EmcDb,mL2EmcDb->logPath,L2RESULTS_2009_OFFSET_DIJET));
52 mL2algo.push_back(
new L2jetAlgo2009(
"jetHigh",mL2EmcDb,mL2EmcDb->logPath,L2RESULTS_2009_OFFSET_DIJET_HIGH));
53 mL2algo.push_back(
new L2bemcGamma2009(
"bGamma",mL2EmcDb,mL2EmcGeom,mL2EmcDb->logPath,L2RESULTS_2009_OFFSET_BGAMMA));
54 mL2algo.push_back(
new L2eemcGamma2009(
"eGamma",mL2EmcDb,mL2EmcGeom,mL2EmcDb->logPath,L2RESULTS_2009_OFFSET_EGAMMA));
55 mL2algo.push_back(
new L2Upsilon2009(
"upsilon",mL2EmcDb,mL2EmcGeom,mL2EmcDb->logPath,L2RESULTS_2009_OFFSET_UPSILON));
59 LOG_INFO <<
"::InitRun() done, run=" <<runNo<<
" isMC="<<mMCflag<<endm;
65 StL2_2009EmulatorMaker::Init() {
67 LOG_INFO <<Form(
"Init()")<<endm;
69 return StMaker::Init();
74 StL2_2009EmulatorMaker::Clear(
const Option_t*){
99 StL2_2009EmulatorMaker::initHistoA(TString core) {
100 LOG_INFO <<Form(
"initHistoA(),")<<endm;
103 memset(hA,0,
sizeof(hA));
106 hA[1]=
new TH1F(core+
"trgID",
"event counter for Jan",10,1,11);
110 for(i=0;i<mxAH;i++) {
111 if( hA[i]==0)
continue;