7 #include "StPeCLumiEntry.h"
8 #include "StEventUtilities/StuRefMult.hh"
13 StPeCLumiEntry::Clear();
16 void StPeCLumiEntry::Clear(
const Option_t* t) {
42 StPeCLumiEntry::~StPeCLumiEntry() {
45 Int_t StPeCLumiEntry::fill (
StMuDst *muDst) {
46 StPeCLumiEntry::Clear();
49 eventNr = MuEvent->eventNumber();
50 runNr = MuEvent->runNumber();
51 uTime = (int ) MuEvent->runInfo().productionTime();
54 triggerWord = MuEvent->l0Trigger().triggerWord();
55 triggerActionWord = MuEvent->l0Trigger().triggerActionWord();
63 zdc = & MuEvent->zdcTriggerDetector();
64 ctb = & MuEvent->ctbTriggerDetector();
68 zdcWest = zdc->adcSum(west) ;
69 zdcEast = zdc->adcSum(east) ;
70 zdcSum = zdc->adcSum() ;
72 zdcWestUA = zdc->adc(0) ;
73 zdcEastUA = zdc->adc(4) ;
74 zdcSumUA = zdcEastUA+zdcWestUA;
84 for(UInt_t i=0; i < ctb->numberOfTrays(); i++){
85 for(UInt_t j=0; j < ctb->numberOfSlats(); j++){
86 ctbSum += ctb->mips(i,j,0);
87 ctbSumMips += int(ctb->mips(i,j,0)/5);
93 nGlobal = muDst->numberOfGlobalTracks ();
94 nPrimary = muDst->numberOfPrimaryTracks();
103 cout <<
"utime " << uTime<< endl;
105 cout <<
"tw " << triggerWord<< endl;
106 cout <<
"taw " << triggerActionWord<< endl;
107 cout <<
"Primaries: " << nPrimary << endl;
108 cout <<
"Globals : " << nGlobal << endl;
109 cout <<
"Uncorr hminus:" << nhminus << endl;
110 cout <<
"StPeCEvent : primary vertex " << xVtx <<
" "
111 << yVtx <<
" " << zVtx << endl;
112 cout <<
"LumiMaker: ZDC W:" <<zdcWest <<
" E: "<< zdcEast <<
" Sum " << zdcSum << endl;
118 Int_t StPeCLumiEntry::fill (
StEvent *event) {
120 StPeCLumiEntry::Clear();
124 eventNr =
event->id() ;
126 runNr =
event->runId();
127 uTime =
event->time();
129 triggerMask=
event->triggerMask() ;
130 triggerWord=
event->l0Trigger()->triggerWord() ;
131 triggerActionWord=
event->l0Trigger()->triggerActionWord();
134 nhminus = uncorrectedNumberOfNegativePrimaries(*event);
147 zdcWest = zdc->adcSum(west) ;
148 zdcEast = zdc->adcSum(east) ;
149 zdcSum = zdc->adcSum() ;
151 zdcWestUA = zdc->adc(0) ;
152 zdcEastUA = zdc->adc(4) ;
153 zdcSumUA = zdcEastUA+zdcWestUA;
163 for(UInt_t i=0; i < ctb->numberOfTrays(); i++){
164 for(UInt_t j=0; j < ctb->numberOfSlats(); j++){
165 ctbSum += ctb->mips(i,j,0);
166 ctbSumMips += int(ctb->mips(i,j,0)/5);
173 StSPtrVecTrackNode& exnode =
event->trackNodes();
174 for( UInt_t in=0; in<exnode.size(); in++ ) {
175 nGlobal += exnode[in]->entries(global);
176 nPrimary += exnode[in]->entries(primary);
182 xVtx = vtx->position().x();
183 yVtx = vtx->position().y();
184 zVtx = vtx->position().z();
189 cout <<
"utime " <<
event->time() << endl;
190 cout <<
"trigger mask" <<
event->triggerMask() << endl;
191 cout <<
"tw " <<
event->l0Trigger()->triggerWord() << endl;
192 cout <<
"taw " <<
event->l0Trigger()->triggerActionWord() << endl;
193 cout <<
"Primaries: " << nPrimary << endl;
194 cout <<
"Globals : " << nGlobal << endl;
195 cout <<
"Uncorr hminus:" << nhminus << endl;
196 cout <<
"StPeCEvent : primary vertex " << xVtx <<
" "
197 << yVtx <<
" " << zVtx << endl;
198 cout <<
"LumiMaker: ZDC W:" <<zdcWest <<
" E: "<< zdcEast <<
" Sum " << zdcSum << endl;
StThreeVectorF primaryVertexPosition(int vtx_id=-1) const
The StMuDst is supposed to be structured in 'physical events'. Therefore there is only 1 primary vert...
unsigned short refMultNeg(int vtx_id=-1)
Reference multiplicity of negative particles as defined in StEventUtilities/StuRefMult.hh for vertex vtx_id (-1 is default index from StMuDst)
static StMuEvent * event()
returns pointer to current StMuEvent (class holding the event wise information, e.g. event number, run number)