ATTPCROOT
0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
AtDigitization
AtSimulatedPoint.cxx
Go to the documentation of this file.
1
#include "
AtSimulatedPoint.h
"
2
3
#include <Rtypes.h>
4
5
#include <utility>
6
7
using
XYZVector
=
ROOT::Math::XYZVector
;
8
9
ClassImp
(
AtSimulatedPoint
);
10
11
AtSimulatedPoint::AtSimulatedPoint
() : fMCEventID(-1), fMCPointID(-1), fClusterID(-1) {}
12
13
AtSimulatedPoint::AtSimulatedPoint
(std::size_t mcPointID, Int_t clusterID,
XYZVector
position)
14
: fPosition(std::move(position)), fMCEventID(-1), fMCPointID(mcPointID), fClusterID(clusterID), fCharge(1)
15
{
16
}
17
18
AtSimulatedPoint::AtSimulatedPoint
(std::size_t mcPointID, Int_t clusterID, Int_t charge,
XYZVector
position)
19
: fPosition(std::move(position)), fMCEventID(-1), fMCPointID(mcPointID), fClusterID(clusterID), fCharge(charge)
20
{
21
}
22
23
AtSimulatedPoint
&
AtSimulatedPoint::operator=
(
AtSimulatedPoint
other)
24
{
25
swap
(*
this
, other);
26
return
*
this
;
27
}
28
29
void
AtSimulatedPoint::SetClusterID
(Int_t clusterID)
30
{
31
fClusterID
= clusterID;
32
}
33
void
AtSimulatedPoint::SetMCPointID
(std::size_t
id
)
34
{
35
fMCPointID
= id;
36
}
37
void
AtSimulatedPoint::SetMCEventID
(std::size_t mcid)
38
{
39
fMCEventID
= mcid;
40
}
41
42
Int_t
AtSimulatedPoint::GetClusterID
()
43
{
44
return
fClusterID
;
45
}
46
XYZVector
AtSimulatedPoint::GetPosition
()
47
{
48
return
fPosition
;
49
}
50
std::size_t
AtSimulatedPoint::GetMCPointID
()
51
{
52
return
fMCPointID
;
53
}
54
std::size_t
AtSimulatedPoint::GetMCEventID
()
55
{
56
return
fMCEventID
;
57
}
58
void
AtSimulatedPoint::SetCharge
(Int_t charge)
59
{
60
fCharge
= charge;
61
}
62
Int_t
AtSimulatedPoint::GetCharge
()
63
{
64
return
fCharge
;
65
}
AtSimulatedPoint::operator=
AtSimulatedPoint & operator=(AtSimulatedPoint other)
Definition:
AtSimulatedPoint.cxx:23
XYZVector
ROOT::Math::XYZVector XYZVector
Definition:
AtFindVertex.h:20
AtSimulatedPoint::fMCPointID
std::size_t fMCPointID
< Cluster number
Definition:
AtSimulatedPoint.h:20
AtSimulatedPoint::GetClusterID
Int_t GetClusterID()
Definition:
AtSimulatedPoint.cxx:42
ClassImp
ClassImp(AtSimulatedPoint)
AtSimulatedPoint::GetMCPointID
std::size_t GetMCPointID()
Definition:
AtSimulatedPoint.cxx:50
AtSimulatedPoint::fPosition
ROOT::Math::XYZVector fPosition
Definition:
AtSimulatedPoint.h:25
AtSimulatedPoint.h
XYZVector
ROOT::Math::XYZVector XYZVector
Definition:
AtSimulatedPoint.cxx:7
AtSimulatedPoint
Definition:
AtSimulatedPoint.h:16
AtSimulatedPoint::AtSimulatedPoint
AtSimulatedPoint()
Definition:
AtSimulatedPoint.cxx:11
AtSimulatedPoint::SetMCEventID
void SetMCEventID(std::size_t mcid)
Definition:
AtSimulatedPoint.cxx:37
AtSimulatedPoint::fCharge
Int_t fCharge
Definition:
AtSimulatedPoint.h:23
AtSimulatedPoint::fMCEventID
std::size_t fMCEventID
Definition:
AtSimulatedPoint.h:21
AtSimulatedPoint::SetMCPointID
void SetMCPointID(std::size_t id)
Definition:
AtSimulatedPoint.cxx:33
AtSimulatedPoint::swap
friend void swap(AtSimulatedPoint &first, AtSimulatedPoint &second)
Definition:
AtSimulatedPoint.h:34
AtSimulatedPoint::GetPosition
virtual ROOT::Math::XYZVector GetPosition()
Definition:
AtSimulatedPoint.cxx:46
AtSimulatedPoint::SetCharge
void SetCharge(Int_t charge)
Definition:
AtSimulatedPoint.cxx:58
AtSimulatedPoint::GetMCEventID
std::size_t GetMCEventID()
Definition:
AtSimulatedPoint.cxx:54
AtSimulatedPoint::GetCharge
Int_t GetCharge()
Definition:
AtSimulatedPoint.cxx:62
AtSimulatedPoint::SetClusterID
void SetClusterID(Int_t clusterID)
Definition:
AtSimulatedPoint.cxx:29
AtSimulatedPoint::fClusterID
Int_t fClusterID
Definition:
AtSimulatedPoint.h:22
Generated on Sat Nov 11 2023 15:30:37 for ATTPCROOT by
1.8.18