DataFormats
CTPPSReco
src
CTPPSDiamondLocalTrack.cc
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
* Mateusz Szpyrka (mateusz.szpyrka@cern.ch)
8
*
9
****************************************************************************/
10
11
#include "
DataFormats/CTPPSReco/interface/CTPPSDiamondLocalTrack.h
"
12
13
//--- constructors
14
15
CTPPSDiamondLocalTrack::CTPPSDiamondLocalTrack
() : ts_index_(0), mh_(0) {}
16
17
CTPPSDiamondLocalTrack::CTPPSDiamondLocalTrack
(
18
const
math::XYZPoint
& pos0,
const
math::XYZPoint
& pos0_sigma,
float
t
,
float
t_sigma,
int
oot_idx,
int
mult_hits)
19
:
CTPPSTimingLocalTrack
(pos0, pos0_sigma,
t
, t_sigma), ts_index_(oot_idx), mh_(mult_hits) {}
20
21
//--- interface member functions
22
23
bool
CTPPSDiamondLocalTrack::containsHit
(
const
CTPPSDiamondRecHit
&
recHit
,
float
tolerance
)
const
{
24
if
(!
CTPPSTimingLocalTrack::containsHit
(
recHit
,
tolerance
))
25
return
false
;
26
27
return
(
recHit
.ootIndex() ==
ts_index_
||
28
recHit
.ootIndex() ==
ts_index_
+
CTPPSDiamondRecHit::TIMESLICE_WITHOUT_LEADING
);
29
}
CTPPSTimingLocalTrack::containsHit
bool containsHit(const CTPPSTimingRecHit &recHit, float tolerance=0.1f, CheckDimension check=CheckDimension::all) const
Definition:
CTPPSTimingLocalTrack.cc:27
CTPPSDiamondRecHit
Reconstructed hit in diamond detectors.
Definition:
CTPPSDiamondRecHit.h:16
CTPPSTimingLocalTrack
Definition:
CTPPSTimingLocalTrack.h:18
rpcPointValidation_cfi.recHit
recHit
Definition:
rpcPointValidation_cfi.py:7
CTPPSDiamondLocalTrack::ts_index_
int ts_index_
Time slice index.
Definition:
CTPPSDiamondLocalTrack.h:45
CTPPSDiamondLocalTrack::CTPPSDiamondLocalTrack
CTPPSDiamondLocalTrack()
Definition:
CTPPSDiamondLocalTrack.cc:14
math::XYZPoint
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition:
Point3D.h:12
CTPPSDiamondRecHit::TIMESLICE_WITHOUT_LEADING
static constexpr int TIMESLICE_WITHOUT_LEADING
Definition:
CTPPSDiamondRecHit.h:44
CTPPSDiamondLocalTrack.h
tolerance
const double tolerance
Definition:
HGCalGeomParameters.cc:29
CTPPSDiamondLocalTrack::containsHit
bool containsHit(const CTPPSDiamondRecHit &recHit, float tolerance=0.1) const
Definition:
CTPPSDiamondLocalTrack.cc:22
submitPVValidationJobs.t
string t
Definition:
submitPVValidationJobs.py:644
Generated for CMSSW Reference Manual by
1.8.16