StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMuL3EventSummary.h
1 /***************************************************************************
2  *
3  * $Id: StMuL3EventSummary.h,v 1.1 2002/03/08 17:04:18 laue Exp $
4  * Authors: Frank Laue, BNL, laue@bnl.gov
5  *
6  **************************************************************************/
7 #ifndef StMuL3EventSummary_h
8 #define StMuL3EventSummary_h
9 
10 #include "TObject.h"
11 
12 //* bit masks, must go in powers of 2 */
13 #define __VERTEX__ 1
14 #define __UNBIASED__ 2
15 
16 #include "StarClassLibrary/StThreeVectorF.hh"
17 
18 class TClonesArray;
19 class StL3AlgorithmInfo;
20 class StL3EventSummary;
21 class StMuL3AlgorithmInfo;
22 class StEvent;
23 
24 class StMuL3EventSummary : public TObject{
25  public:
28 
29  void clear();
30  int numberOfProcessedEvents() const;
31  int numberOfReconstructedEvents() const;
32  unsigned int numberOfTracks() const;
33  unsigned int numberOfAlgorithms() const;
34  int unbiasedTriggerPreScale() const;
35  bool unbiasedTrigger() const;
36  bool zVertexTrigger() const;
37  unsigned int l0TriggerWord() const;
38  StThreeVectorF primaryVertex() const;
39  protected:
40  friend class StMuEvent;
41  void fill(const StEvent*);
42 
43  int mNumberOfProcessedEvents;
44  int mNumberReconstructedEvents;
45  int mNumberOfTracks;
46  int mNumberOfAlgorithms;
47  unsigned char mFlags; //* bit mask 1=mZVertexTrigger; bit mask mUnbiasedTrigger; **/
48  unsigned int mL0TriggerWord;
49  int mUnbiasedPreScale;
50  StThreeVectorF mPrimaryVertex;
51 
52  ClassDef(StMuL3EventSummary,1)
53 };
54 
55 
56 inline int StMuL3EventSummary::numberOfProcessedEvents() const { return mNumberOfProcessedEvents; }
57 inline int StMuL3EventSummary::numberOfReconstructedEvents() const { return mNumberReconstructedEvents; }
58 inline unsigned int StMuL3EventSummary::numberOfTracks() const { return mNumberOfTracks; }
59 inline unsigned int StMuL3EventSummary::numberOfAlgorithms() const { return mNumberOfAlgorithms; }
60 inline bool StMuL3EventSummary::zVertexTrigger() const { return (__VERTEX__ & mFlags); }
61 inline bool StMuL3EventSummary::unbiasedTrigger() const { return (__UNBIASED__ & mFlags); }
62 inline unsigned int StMuL3EventSummary::l0TriggerWord() const { return mL0TriggerWord; }
63 inline int StMuL3EventSummary::unbiasedTriggerPreScale() const { return mUnbiasedPreScale; }
64 inline StThreeVectorF StMuL3EventSummary::primaryVertex() const { return mPrimaryVertex; }
65 
66 #endif
67 
68 /***************************************************************************
69  *
70  * $Log: StMuL3EventSummary.h,v $
71  * Revision 1.1 2002/03/08 17:04:18 laue
72  * initial revision
73  *
74  *
75  **************************************************************************/
void fill(const StEvent *)
Definition: StMuEvent.cxx:79