ATLAS Offline Software
Trigger
TrigT1
TrigT1RPClogic
src
RPCsimuDigit.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
TrigT1RPClogic/RPCsimuDigit.h
"
6
#include "
TrigT1RPClogic/RPCsimuData.h
"
7
/*
8
RPCsimuDigit::RPCsimuDigit(int number,unsigned int code,int parameters[3],
9
float vector[4],const RPCGeometry* rpcgeo) :
10
RPCdigit("Simulated RPC digit",number,code,vector,rpcgeo),
11
m_particle_code(parameters[0]),
12
m_process_type(parameters[1]),
13
m_track_number(parameters[2]),
14
m_data(0)
15
{
16
//Insert code for xyz, time and radius decoding
17
//Match the xyz decoding with the simulated xyz position
18
}
19
*/
20
21
RPCsimuDigit::RPCsimuDigit
(
int
number
,
unsigned
int
code
,
int
parameters
[3],
22
float
vector
[4]) :
23
RPCdigit
(
"Simulated RPC digit"
,
number
,
code
,
vector
),
24
m_particle_code(
parameters
[0]),
25
m_process_type(
parameters
[1]),
26
m_track_number(
parameters
[2]),
27
m_data
(0)
28
{
29
//Insert code for xyz, time and radius decoding
30
//Match the xyz decoding with the simulated xyz position
31
}
32
33
RPCsimuDigit::RPCsimuDigit
(
const
RPCsimuDigit
&
digit
) :
RPCdigit
(
digit
)
34
{
35
m_particle_code
=
digit
.particle_code();
36
m_process_type
=
digit
.process_type();
37
m_track_number
=
digit
.track_number();
38
m_data
=
digit
.data();
39
}
40
41
RPCsimuDigit
42
RPCsimuDigit::operator=
(
const
RPCsimuDigit
&
digit
)
43
{
44
static_cast<
RPCdigit
&
>
(*this) =
static_cast<
const
RPCdigit
&
>
(
digit
);
45
m_particle_code
=
digit
.particle_code();
46
m_process_type
=
digit
.process_type();
47
m_track_number
=
digit
.track_number();
48
m_data
=
digit
.data();
49
return
*
this
;
50
}
51
52
const
MuonSimuTrack
*
53
RPCsimuDigit::muon
()
const
54
{
55
const
RPCsimuData::MuonList
& muons =
m_data
->
muon_tracks
();
56
RPCsimuData::MuonList::const_iterator
it
= muons.begin();
57
while
(
it
!= muons.end())
58
{
59
if
((*it).track_number() ==
m_track_number
)
return
&(*it);
60
}
61
return
0;
62
}
63
64
void
65
RPCsimuDigit::set_data
(
const
RPCsimuData
&
data
)
66
{
67
m_data
= &
data
;
68
}
data
char data[hepevt_bytes_allocation_ATLAS]
Definition:
HepEvt.cxx:11
RPCsimuData.h
m_data
std::vector< T > m_data
Definition:
TrackTruthMatchingBaseAlg.cxx:660
skel.it
it
Definition:
skel.GENtoEVGEN.py:396
RPCsimuDigit::m_process_type
int m_process_type
Definition:
RPCsimuDigit.h:20
checkRpcDigits.digit
digit
Definition:
checkRpcDigits.py:186
RPCsimuData::muon_tracks
const MuonList & muon_tracks(void) const
Definition:
RPCsimuData.h:41
RPCsimuDigit.h
RPCsimuDigit::m_track_number
int m_track_number
Definition:
RPCsimuDigit.h:21
RPCsimuData::MuonList
std::list< MuonSimuTrack > MuonList
Definition:
RPCsimuData.h:21
histSizes.code
code
Definition:
histSizes.py:129
vector
Definition:
MultiHisto.h:13
RPCsimuDigit::m_particle_code
int m_particle_code
Definition:
RPCsimuDigit.h:19
RPCsimuDigit::muon
const MuonSimuTrack * muon(void) const
Definition:
RPCsimuDigit.cxx:53
RPCsimuDigit::RPCsimuDigit
RPCsimuDigit(int, unsigned int, int[3], float[4])
Definition:
RPCsimuDigit.cxx:21
python.selection.number
number
Definition:
selection.py:20
RPCdigit
Definition:
RPCdigit.h:16
RPCsimuDigit::data
const RPCsimuData * data(void) const
Definition:
RPCsimuDigit.h:39
physics_parameters.parameters
parameters
Definition:
physics_parameters.py:144
RPCsimuDigit::operator=
RPCsimuDigit operator=(const RPCsimuDigit &)
Definition:
RPCsimuDigit.cxx:42
RPCsimuDigit::m_data
const RPCsimuData * m_data
Definition:
RPCsimuDigit.h:23
RPCsimuData
Definition:
RPCsimuData.h:19
RPCsimuDigit::set_data
void set_data(const RPCsimuData &)
Definition:
RPCsimuDigit.cxx:65
RPCsimuDigit
Definition:
RPCsimuDigit.h:16
MuonSimuTrack
Definition:
MuonSimuTrack.h:56
Generated on Thu Nov 7 2024 21:25:08 for ATLAS Offline Software by
1.8.18