14 #include "StMuEzTree.h"
16 #include "StEvent/StEvent.h"
17 #include "StEvent/StRunInfo.h"
18 #include "StEvent/StEmcCollection.h"
20 #include "StEvent/StTriggerData.h"
23 #include "StEvent/StTriggerDetectorCollection.h"
24 #include "StEvent/StCtbTriggerDetector.h"
25 #include "StEvent/StEmcTriggerDetector.h"
26 #include "StEvent/StL0Trigger.h"
28 #include "EztEventHeader.h"
29 #include "EztEmcRawData.h"
30 #include "EztTrigBlob.h"
31 #include "EztFpdBlob.h"
39 StMuEzTree::~StMuEzTree() {}
46 header->setRunNumber(ev->runId());
47 header->setEventNumber(ev->id());
48 unsigned short token=ev->l0Trigger()->triggerToken();
49 header->setToken(token);
50 header->setTimeStamp(ev->time());
51 header->setComment(
"Ezt-branch from StEvent");
52 header->setProcessingTime(time(0));
74 char *rawData= trigData->getTriggerStructure();
75 int rawSize=trigData->getRawSize();
77 trigBlob->trgd->Set(rawSize, rawData);
78 trigBlob->setVersion((UChar_t)trigData->version());
89 return copy(inp,0,mxETowCrate);
95 return copy(inp,mxETowCrate,inp->getNBlocks());
104 for (
int i = ib1; i <ib2; i++,j++) {
105 if(i>=inp->getNBlocks())
break;
106 if(inp->sizeData(i) <= 0)
continue;
107 raw->createBank(j,inp->sizeHeader(i),inp->sizeData(i));
108 raw->setHeader(j,inp->header(i));
109 raw->setData(j,inp->data(i));
121 unsigned short int dummData[5]={1,3,5,7,9};
122 unsigned short int *rawData= dummData;
124 fpdBlob->smd->Set(rawSize, (
short*)rawData);