]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/MUON/src/TriggerRecord.hpp
Coding conventions (A.Szostak)
[u/mrichter/AliRoot.git] / HLT / MUON / src / TriggerRecord.hpp
1 ////////////////////////////////////////////////////////////////////////////////
2 //
3 // Author: Artur Szostak
4 // Email:  artur@alice.phy.uct.ac.za | artursz@iafrica.com
5 //
6 ////////////////////////////////////////////////////////////////////////////////
7
8 #ifndef ALIHLTMUONCORETRIGGERRECORD_H
9 #define ALIHLTMUONCORETRIGGERRECORD_H
10
11 #include "BasicTypes.hpp"
12 #include "Point.hpp"
13
14
15 /* The sign of the particle as given by L0.
16  */
17 enum AliHLTMUONCoreParticleSign
18 {
19     kSignMinus   = -1,
20     kUnknownSign = 0,
21     kSignPlus    = 1
22 };
23
24
25 typedef UInt AliHLTMUONCoreTriggerRecordID;
26
27
28 /* Data structure containing information about L0 validated trigger hit.
29  */
30 struct AliHLTMUONCoreTriggerRecord
31 {
32         AliHLTMUONCoreParticleSign fSign;     // The sign of the particle.
33         Float fPt;              // Transverse momentum of the particle.
34         AliHLTMUONCorePoint fStation1impact;  // Impact point of particle on trigger station 1.
35         AliHLTMUONCorePoint fStation2impact;  // Impact point of particle on trigger station 2.
36
37
38         /* Default constructor.
39            Sets the fSign to UnknownSign, fPt to -1 and the impact points are set to zero.
40          */
41         AliHLTMUONCoreTriggerRecord()
42                 : fStation1impact(), fStation2impact()
43         {
44                 fSign = kUnknownSign;
45                 fPt = -1.0;
46         };
47
48         /* Creates a trigger record with the specifed particle sign, pt and impact points.
49            The impactpoint1 corresponds to trigger station 1 and simmilarly impactpoint2
50            corresponds to station 2.
51          */
52         AliHLTMUONCoreTriggerRecord(
53                         const AliHLTMUONCoreParticleSign sign, const Float pt,
54                         const AliHLTMUONCorePoint impactpoint1, const AliHLTMUONCorePoint impactpoint2
55                 )
56         {
57                 fSign = sign;
58                 fPt = pt;
59                 fStation1impact = impactpoint1;
60                 fStation2impact = impactpoint2;
61         };
62 };
63
64
65 #endif // ALIHLTMUONCORETRIGGERRECORD_H