uLib-0.2
Main Page
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
GeantEvent.h
Go to the documentation of this file.
1
/*//////////////////////////////////////////////////////////////////////////////
2
// CMT Cosmic Muon Tomography project //////////////////////////////////////////
4
5
Copyright (c) 2014, Universita' degli Studi di Padova, INFN sez. di Padova
6
All rights reserved
7
8
Authors: Andrea Rigoni Garola < andrea.rigoni@pd.infn.it >
9
10
------------------------------------------------------------------
11
This library is free software; you can redistribute it and/or
12
modify it under the terms of the GNU Lesser General Public
13
License as published by the Free Software Foundation; either
14
version 3.0 of the License, or (at your option) any later version.
15
16
This library is distributed in the hope that it will be useful,
17
but WITHOUT ANY WARRANTY; without even the implied warranty of
18
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19
Lesser General Public License for more details.
20
21
You should have received a copy of the GNU Lesser General Public
22
License along with this library.
23
25
26
27
28
#ifndef U_GEANTEVENT_H
29
#define U_GEANTEVENT_H
30
31
#include "Core/Types.h"
32
#include "Core/Vector.h"
33
#include "Math/Dense.h"
34
35
#include "ChamberHitEvent.h"
36
37
namespace uLib {
38
39
class GeantEventData {
40
public:
41
uLibGetMacro (EventID, Id_t )
42
uLibGetMacro (Momentum,Scalarf )
43
uLibConstRefMacro (GenPos, Vector3f)
44
uLibConstRefMacro (GenDir, Vector3f)
45
uLibConstRefMacro (ChEvents,Vector<ChamberHitEventData>)
46
47
private:
48
friend class GeantEvent;
49
Id_t m_EventID;
50
Scalarf m_Momentum;
51
Vector3f m_GenPos;
52
Vector3f m_GenDir;
53
Vector<ChamberHitEventData> m_ChEvents;
54
};
55
56
class GeantEvent {
57
public:
58
uLibSetMacro (EventID, Id_t )
59
uLibSetMacro (Momentum,Scalarf )
60
uLibRefMacro (GenPos, Vector3f)
61
uLibRefMacro (GenDir, Vector3f)
62
uLibRefMacro (ChEvents,Vector<ChamberHitEventData>)
63
};
64
65
66
}
67
68
69
#endif // GEANTEVENT_H
Detectors
GeantEvent.h
Generated by
1.8.5