00001
00002
00003
00004
00005
00006
00007
00009
00010 #include "StEventTypes.h"
00011 #include "StEvent/StEvent.h"
00012
00013
00014 #include "StMuDSTMaker/COMMON/StMuDstMaker.h"
00015 #include "StMuDSTMaker/COMMON/StMuDst.h"
00016 #include "StMuDSTMaker/COMMON/StMuTriggerIdCollection.h"
00017 #include "StMuDSTMaker/COMMON/StMuEvent.h"
00018
00019
00020
00021 #include "StTriggerData2005.h"
00022 #include "StDaqLib/TRG/trgStructures.h"
00023
00024
00025 #include "L2algoUtil/L2EmcDb.h"
00026 #include "L2pedAlgo/L2pedAlgo.h"
00027
00028 #include "StL2_2008EmulatorMaker.h"
00029
00030 ClassImp(StL2_2008EmulatorMaker)
00031
00032 StL2_2008EmulatorMaker::StL2_2008EmulatorMaker(const char *name):StMaker(name) {
00033 mL2pedAlgo=0;
00034 }
00035
00036
00037 StL2_2008EmulatorMaker::~StL2_2008EmulatorMaker(){
00038 }
00039
00040
00041
00042
00043 Int_t
00044 StL2_2008EmulatorMaker::InitRun(int runNo){
00045
00046
00047
00048 initRun1();
00049 LOG_INFO << Form("::setupL2Algos2008(), dbDate=%d ", mYearMonthDay)<<endm;
00050
00051
00052 mL2algoN=1;
00053 mL2algo =new L2VirtualAlgo *[mL2algoN];
00054 memset(mL2algo,0,mL2algoN*sizeof(void*));
00055
00056
00057
00058 mL2algo[0]=mL2pedAlgo=new L2pedAlgo("ped-algo",mL2EmcDb,mL2EmcDb->logPath,10);
00059
00060
00061
00062 initRun2(runNo);
00063
00064 LOG_INFO << "::InitRun() done, run=" <<runNo<<" isMC="<<mMCflag<<endm;
00065 return kStOK;
00066 }
00067
00068
00069 Int_t
00070 StL2_2008EmulatorMaker::Init() {
00071 init();
00072 LOG_INFO <<Form("Init()")<<endm;
00073
00074 return StMaker::Init();
00075 }
00076
00077
00078 void
00079 StL2_2008EmulatorMaker::Clear(const Option_t*){
00080 clear();
00081
00082 }
00083
00084
00085
00086 Int_t
00087 StL2_2008EmulatorMaker::Make(){
00088
00089 make();
00090 return kStOK;
00091 }
00092
00093
00094 Int_t
00095 StL2_2008EmulatorMaker::Finish(){
00096 finish();
00097 return kStOK;
00098 }
00099
00100
00101 #if 0
00102
00103 void
00104 StL2_2008EmulatorMaker::initHistoA(TString core) {
00105 LOG_INFO <<Form("initHistoA(),")<<endm;
00106
00107 assert(mHList);
00108 memset(hA,0,sizeof(hA));
00109
00110 hA[0]=0;
00111 hA[1]=new TH1F(core+"trgID", "event counter for Jan",10,1,11);
00112
00113
00114 int i;
00115 for(i=0;i<mxAH;i++) {
00116 if( hA[i]==0) continue;
00117 mHList->Add( hA[i]);
00118 }
00119 }
00120 #endif