QwAnalysis
QwQuartzBarLight.h
Go to the documentation of this file.
1 #ifndef QWQUARTZBARLIGHT_H
2 #define QWQUARTZBARLIGHT_H
3 
4 // System headers
5 #include <vector>
6 
7 // ROOT headers
8 #include "TObject.h"
9 #include "TString.h"
10 #include "TClonesArray.h"
11 #include "TRefArray.h"
12 #include "TObjArray.h"
13 #include "TVector3.h"
14 
15 // Qweak headers
16 #include "QwTypes.h"
17 #include "QwTreeLine.h"
18 
19 // Forward declarations
20 class QwHit;
21 class QwHitContainer;
22 class QwGEMCluster;
23 class QwTreeLine;
24 class QwPartialTrack;
25 class QwTrack;
26 class QwVertex;
27 
28 
29 /**
30  * \class QwQuartzBarLight
31  * \ingroup QwTracking
32  *
33  * \brief Contains header information of a tracked event
34  *
35  * Objects of this class contain the header information of a tracked event,
36  * such as the run number, event number, the trigger type, etc.
37  */
38 class QwQuartzBarLight: public TObject {
39 
40  private:
41 
42  UInt_t fRunNumber; ///< Run number
43  //
44  ULong_t fEventNumber; ///< Event number
45  ULong_t fEventTime; ///< Event time (unix time? some time in boost?)
46  //
47  UInt_t fEventType; ///< Event type (probably bit pattern)
48  UInt_t fEventTrigger; ///< Event trigger (probably bit pattern)
49  //
50  EQwHelicity fBeamHelicity; ///< Beam helicity (from MPS pattern phase)
51 
52  public:
53 
54  /// Default constructor
56  /// Destructor
57  virtual ~QwQuartzBarLight();
58 
59 
60 #if 0
61  /// Set the run number
62  void SetRunNumber(const UInt_t runnumber) { fRunNumber = runnumber; };
63  /// Get the run number
64  const UInt_t GetRunNumber() const { return fRunNumber; };
65 
66  /// Set the event number
67  void SetEventNumber(const ULong_t eventnumber) { fEventNumber = eventnumber; };
68  /// Get the event number
69  const ULong_t GetEventNumber() const { return fEventNumber; };
70 
71  /// Set the event time
72  void SetEventTime(const ULong_t eventtime) { fEventTime = eventtime; };
73  /// Get the event time
74  const ULong_t GetEventTime() const { return fEventTime; };
75 
76  /// Set the event type
77  void SetEventType(const UInt_t eventtype) { fEventType = eventtype; };
78  /// Get the event type
79  const UInt_t GetEventType() const { return fEventType; };
80 
81  /// Set the event trigger
82  void SetEventTrigger(const UInt_t eventtrigger) { fEventTrigger = eventtrigger; };
83  /// Get the event trigger
84  const UInt_t GetEventTrigger() const { return fEventTrigger; };
85 
86  /// Set the beam helicity
87  void SetBeamHelicity(const EQwHelicity helicity) { fBeamHelicity = helicity; };
88  /// Get the beam helicity
89  const EQwHelicity GetBeamHelicity() const { return fBeamHelicity; };
90 #endif
91 
92  /// \brief Output stream operator
93  friend std::ostream& operator<< (std::ostream& stream, const QwQuartzBarLight& h);
94 
96 };
97 
98 /// Output stream operator
99 inline std::ostream& operator<< (std::ostream& stream, const QwQuartzBarLight& h) {
100  stream << "Run " << h.fRunNumber << ", ";
101  stream << "event " << h.fEventNumber << ":";
102  return stream;
103 }
104 
105 
106 
107 #endif // QWQUARTZBARLIGHT_H
QwQuartzBarLight()
Default constructor.
ClassDef(QwQuartzBarLight, 1)
std::ostream & operator<<(std::ostream &out, const QwColor &color)
Output stream operator which uses the enum-to-escape-code mapping.
Definition: QwColor.h:153
Contains vertex information.
Definition: QwVertex.h:23
UInt_t fEventType
Event type (probably bit pattern)
UInt_t fRunNumber
Run number.
UInt_t fEventTrigger
Event trigger (probably bit pattern)
Contains the complete track as a concatenation of partial tracks.
Definition: QwTrack.h:30
ULong_t fEventTime
Event time (unix time? some time in boost?)
virtual ~QwQuartzBarLight()
Destructor.
Definition of the one-dimensional track stubs.
One-dimensional (u, v, or x) track stubs and associated hits.
Definition: QwTreeLine.h:51
EQwHelicity
Helicity enumerator (don&#39;t use this as a signed int)
Definition: QwTypes.h:210
friend std::ostream & operator<<(std::ostream &stream, const QwQuartzBarLight &h)
Output stream operator.
EQwHelicity fBeamHelicity
Beam helicity (from MPS pattern phase)
Contains header information of a tracked event.
Hit structure uniquely defining each hit.
Definition: QwHit.h:43
Contains the straight part of a track in one region only.
ULong_t fEventNumber
Event number.