src
DataFormats
CTPPSReco
interface
CTPPSDiamondRecHit.h
Go to the documentation of this file.
1
/****************************************************************************
2
*
3
* This is a part of CTPPS offline software.
4
* Authors:
5
* Laurent Forthomme (laurent.forthomme@cern.ch)
6
* Nicola Minafra (nicola.minafra@cern.ch)
7
*
8
****************************************************************************/
9
10
#ifndef DataFormats_CTPPSReco_CTPPSDiamondRecHit
11
#define DataFormats_CTPPSReco_CTPPSDiamondRecHit
12
13
#include "
DataFormats/CTPPSDigi/interface/HPTDCErrorFlags.h
"
14
#include "
DataFormats/CTPPSReco/interface/CTPPSTimingRecHit.h
"
15
17
class
CTPPSDiamondRecHit
:
public
CTPPSTimingRecHit
{
18
public
:
19
CTPPSDiamondRecHit
() :
CTPPSTimingRecHit
(),
tot_
(0),
tPrecision_
(0),
tsIndex_
(0),
hptdcErr_
(0),
mh_
(
false
) {}
20
CTPPSDiamondRecHit
(
float
x
,
21
float
xWidth
,
22
float
y
,
23
float
yWidth
,
24
float
z
,
25
float
zWidth
,
26
float
t
,
27
float
tot
,
28
float
tPrecision
,
29
int
ootIdx,
30
const
HPTDCErrorFlags
&hptdcErr,
31
const
bool
mh)
32
:
CTPPSTimingRecHit
(
x
,
xWidth
,
y
,
yWidth
,
z
,
zWidth
,
t
),
33
tot_
(
tot
),
34
tPrecision_
(
tPrecision
),
35
tsIndex_
(ootIdx),
36
hptdcErr_
(hptdcErr),
37
mh_
(mh) {}
38
39
static
constexpr
int
TIMESLICE_WITHOUT_LEADING
= -10;
40
41
inline
void
setToT
(
float
tot
) {
tot_
=
tot
; }
42
inline
float
toT
()
const
{
return
tot_
; }
43
44
inline
void
setTPrecision
(
float
tPrecision
) {
tPrecision_
=
tPrecision
; }
45
inline
float
tPrecision
()
const
{
return
tPrecision_
; }
46
47
inline
void
setOOTIndex
(
int
i
) {
tsIndex_
=
i
; }
48
inline
int
ootIndex
()
const
{
return
tsIndex_
; }
49
50
inline
void
setMultipleHits
(
bool
mh) {
mh_
= mh; }
51
inline
bool
multipleHits
()
const
{
return
mh_
; }
52
53
inline
void
setHPTDCErrorFlags
(
const
HPTDCErrorFlags
&
err
) {
hptdcErr_
=
err
; }
54
inline
HPTDCErrorFlags
hptdcErrorFlags
()
const
{
return
hptdcErr_
; }
55
56
private
:
58
float
tot_
;
60
float
tPrecision_
;
62
int
tsIndex_
;
64
HPTDCErrorFlags
hptdcErr_
;
66
bool
mh_
;
67
};
68
69
#endif
CTPPSTimingRecHit
Reconstructed hit in timing detectors.
Definition:
CTPPSTimingRecHit.h:14
mps_fire.i
i
Definition:
mps_fire.py:429
CTPPSDiamondRecHit::tot_
float tot_
Time over threshold.
Definition:
CTPPSDiamondRecHit.h:58
submitPVValidationJobs.t
string t
Definition:
submitPVValidationJobs.py:650
funct::false
false
Definition:
Factorize.h:29
CTPPSDiamondRecHit
Reconstructed hit in diamond detectors.
Definition:
CTPPSDiamondRecHit.h:17
CTPPSDiamondRecHit::tPrecision_
float tPrecision_
Expected timing precision.
Definition:
CTPPSDiamondRecHit.h:60
CTPPSDiamondRecHit::mh_
bool mh_
Multiple hits detected.
Definition:
CTPPSDiamondRecHit.h:66
HPTDCErrorFlags.h
ALPAKA_ACCELERATOR_NAMESPACE::brokenline::constexpr
if constexpr(n > 3)
Definition:
BrokenLine.h:165
HPTDCErrorFlags
Definition:
HPTDCErrorFlags.h:15
CTPPSDiamondRecHit::hptdcErrorFlags
HPTDCErrorFlags hptdcErrorFlags() const
Definition:
CTPPSDiamondRecHit.h:54
CTPPSDiamondRecHit::setToT
void setToT(float tot)
Definition:
CTPPSDiamondRecHit.h:41
submitPVResolutionJobs.err
err
Definition:
submitPVResolutionJobs.py:85
CTPPSTimingRecHit.h
CTPPSTimingRecHit::x
float x() const
Definition:
CTPPSTimingRecHit.h:21
CTPPSDiamondRecHit::tPrecision
float tPrecision() const
Definition:
CTPPSDiamondRecHit.h:45
CTPPSTimingRecHit::xWidth
float xWidth() const
Definition:
CTPPSTimingRecHit.h:30
CTPPSTimingRecHit::yWidth
float yWidth() const
Definition:
CTPPSTimingRecHit.h:33
CTPPSDiamondRecHit::toT
float toT() const
Definition:
CTPPSDiamondRecHit.h:42
CTPPSDiamondRecHit::ootIndex
int ootIndex() const
Definition:
CTPPSDiamondRecHit.h:48
CTPPSDiamondRecHit::setOOTIndex
void setOOTIndex(int i)
Definition:
CTPPSDiamondRecHit.h:47
CTPPSDiamondRecHit::CTPPSDiamondRecHit
CTPPSDiamondRecHit(float x, float xWidth, float y, float yWidth, float z, float zWidth, float t, float tot, float tPrecision, int ootIdx, const HPTDCErrorFlags &hptdcErr, const bool mh)
Definition:
CTPPSDiamondRecHit.h:20
compareTotals.tot
tot
Definition:
compareTotals.py:299
CTPPSTimingRecHit::y
float y() const
Definition:
CTPPSTimingRecHit.h:24
CTPPSDiamondRecHit::TIMESLICE_WITHOUT_LEADING
static constexpr int TIMESLICE_WITHOUT_LEADING
Definition:
CTPPSDiamondRecHit.h:39
CTPPSDiamondRecHit::hptdcErr_
HPTDCErrorFlags hptdcErr_
List of error flags encountered by the HPTDC.
Definition:
CTPPSDiamondRecHit.h:64
CTPPSTimingRecHit::z
float z() const
Definition:
CTPPSTimingRecHit.h:27
CTPPSDiamondRecHit::setHPTDCErrorFlags
void setHPTDCErrorFlags(const HPTDCErrorFlags &err)
Definition:
CTPPSDiamondRecHit.h:53
CTPPSDiamondRecHit::setMultipleHits
void setMultipleHits(bool mh)
Definition:
CTPPSDiamondRecHit.h:50
CTPPSDiamondRecHit::CTPPSDiamondRecHit
CTPPSDiamondRecHit()
Definition:
CTPPSDiamondRecHit.h:19
CTPPSDiamondRecHit::tsIndex_
int tsIndex_
Time slice index.
Definition:
CTPPSDiamondRecHit.h:62
CTPPSTimingRecHit::zWidth
float zWidth() const
Definition:
CTPPSTimingRecHit.h:36
CTPPSDiamondRecHit::setTPrecision
void setTPrecision(float tPrecision)
Definition:
CTPPSDiamondRecHit.h:44
CTPPSDiamondRecHit::multipleHits
bool multipleHits() const
Definition:
CTPPSDiamondRecHit.h:51
Generated for CMSSW Reference Manual by
1.8.14