20 #include "TClonesArray.h"
22 #include "StEvent/StEvent.h"
23 #include "StEvent/StL3Trigger.h"
24 #include "StEvent/StL3EventSummary.h"
25 #include "StEvent/StL3AlgorithmInfo.h"
26 #include "StEvent/StPrimaryVertex.h"
28 #include "StMuEvent.h"
29 #include "StMuL3EventSummary.h"
30 #include "StMuException.hh"
31 #include "StMuDebug.h"
36 mNumberOfTracks(0), mNumberOfAlgorithms(0), mFlags(0), mL0TriggerWord(0), mUnbiasedPreScale(0) {
43 void StMuL3EventSummary::fill(
const StEvent* ev) {
46 if ( !(ev->l3Trigger() && ev->l3Trigger()->l3EventSummary()) )
return;
48 mNumberOfProcessedEvents = l3->numberOfProcessedEvents();
49 mNumberReconstructedEvents = l3->numberOfReconstructedEvents();
50 mNumberOfTracks = l3->numberOfTracks();
51 mNumberOfAlgorithms = l3->numberOfAlgorithms();
52 mFlags |= ( l3->zVertexTrigger()*__VERTEX__ );
53 mFlags |= ( l3->unbiasedTrigger()*__UNBIASED__ );
54 mL0TriggerWord = l3->l0TriggerWord();
55 mUnbiasedPreScale = l3->unbiasedTriggerPreScale();
56 if (ev->l3Trigger()->primaryVertex())
57 mPrimaryVertex = ev->l3Trigger()->primaryVertex()->position();
60 StMuL3EventSummary::~StMuL3EventSummary(){
64 void StMuL3EventSummary::clear(){
66 mNumberOfProcessedEvents = 0;
67 mNumberReconstructedEvents = 0;
69 mNumberOfAlgorithms = 0;
72 mUnbiasedPreScale = 0;