10 #include "MuEzPanitkinMaker.h"
12 #include "StMuDSTMaker/COMMON/StMuEvent.h"
13 #include "StMuDSTMaker/COMMON/StMuDst.h"
14 #include "StMuDSTMaker/COMMON/StMuDstMaker.h"
16 #include "StMuDSTMaker/EZTREE/EztEventHeader.h"
17 #include "StMuDSTMaker/EZTREE/EztTrigBlob.h"
18 #include "StMuDSTMaker/EZTREE/EztEmcRawData.h"
19 #include "StMuDSTMaker/EZTREE/StTriggerDataMother.h"
22 #include "StTriggerData2005.h"
24 #include "EEqaSorter.h"
25 #include "StEEmcUtil/database/StEEmcDb.h"
27 #include "RawPixels.h"
42 SetHistoPixels(
false);
49 MuEzPanitkinMaker::~MuEzPanitkinMaker(){
57 void MuEzPanitkinMaker::saveHisto(TString fname){
58 TString outName=fname+
".hist.root";
59 TFile f( outName,
"recreate");
61 printf(
"%d histos are written to '%s' ...\n",HList->GetEntries(),outName.Data());
69 Int_t MuEzPanitkinMaker::Init(){
76 qaSort->initHisto(HList, 1000, 1000);
77 qaSort->initSpy(HList, 5, 1);
78 qaSort->setPath(
"StRoot/StEEmcPool/muEztPanitkin/",
"/star/u/balewski/0x/defaultPanitkinOut/");
82 rawPixels->setLimits(0,4095);
83 rawPixels->doRawAdc();
88 gMessMgr->Message(
"",
"I") <<
GetName()<<
"::Init() filter trigID="<<trigID<<endm;
89 return StMaker::Init();
94 Int_t MuEzPanitkinMaker::InitRun(
int runNo){
96 if(pixlesOn) rawPixels->initHisto();
106 gMessMgr->Message(
"",
"I") <<
GetName()<<
"::Finish() inputEve="<<nInpEve<<
" trigFilterEve="<<nTrigEve<<endm;
112 void MuEzPanitkinMaker::Clear(
const Option_t*){
126 gMessMgr->Message(
"",
"D") <<
GetName()<<
"::Make() is called "<<endm;
131 gMessMgr->Message(
"",
"E") <<
GetName()<<
"::Make() no EztEventHeader, skip event "<<endm;
return kStOK;
134 if(nInpEve==1) eHead->print();
137 if (! mMuDstMaker->
muDst()->
event()->triggerIdCollection().nominal().isTrigger(trigID))
return kStOK;
155 StMuEvent *muEve = mMuDstMaker -> muDst() -> event();
158 int runId=info.runId();
162 void *blob=eTrig->trgd->GetArray();
165 const unsigned char * dsm0inp= trgAkio5->getDsm0_EEMC();
166 unsigned short int * dsm1inp= trgAkio5->getDsm1_EEMC();
167 unsigned short int * dsm2inp= trgAkio5->getDsm2_EMC();
168 unsigned short int * dsm3inp= trgAkio5->getDsm3();
173 qaSort->sort(eETow,eESmd,eHead->getRunNumber(),
174 trgAkio5->token(),trgAkio5->version(),
175 dsm0inp, dsm1inp, dsm2inp, dsm3inp);
179 rawPixels->sort(eETow);
180 rawPixels->sort(eESmd);
183 if(eeSpyOn) qaSort->spy(eETow, eESmd, eHead->getRunNumber(), eHead->getEventNumber());
static EztEmcRawData * eztESmd()
returns pointer to eztESmd +pre/post
static EztTrigBlob * eztTrig()
returns pointer to eztTrig
static EztEventHeader * eztHeader()
returns pointer to eztHeader
static EztEmcRawData * eztETow()
returns pointer to ETOW
static StMuEvent * event()
returns pointer to current StMuEvent (class holding the event wise information, e.g. event number, run number)
virtual const char * GetName() const
special overload