]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/MUON/src/EventID.hpp
Fixes in order to avoid compilation problems.
[u/mrichter/AliRoot.git] / HLT / MUON / src / EventID.hpp
1 ////////////////////////////////////////////////////////////////////////////////
2 //
3 // Author: Artur Szostak
4 // Email:  artur@alice.phy.uct.ac.za | artursz@iafrica.com
5 //
6 ////////////////////////////////////////////////////////////////////////////////
7
8 #ifndef dHLT_EVENT_ID_HPP
9 #define dHLT_EVENT_ID_HPP
10
11 #include "BasicTypes.hpp"
12 #include "Utils.hpp"
13
14 namespace dHLT
15 {
16
17
18 // Must correct this definition!!!!
19 struct EventID
20 {
21         UInt bunch;
22         UInt timestamp;
23
24
25         EventID(UInt bunch = 0, UInt timestamp = 0)
26         {
27                 this->bunch = bunch;
28                 this->timestamp = timestamp;
29         };
30
31
32         bool operator == (const EventID& rhs)
33         {
34                 return bunch == rhs.bunch and timestamp == rhs.timestamp;
35         };
36
37         bool operator != (const EventID& rhs)
38         {
39                 return not (*this == rhs);
40         };
41 };
42
43
44 } // dHLT
45
46 #endif // dHLT_EVENT_ID_HPP