Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
}
CTPPSDiamondLocalTrack::ts_index_
int ts_index_
Time slice index.
Definition:
CTPPSDiamondLocalTrack.h:38
CTPPSDiamondLocalTrack::CTPPSDiamondLocalTrack
CTPPSDiamondLocalTrack()
Definition:
CTPPSDiamondLocalTrack.cc:15
submitPVValidationJobs.t
string t
Definition:
submitPVValidationJobs.py:644
CTPPSDiamondRecHit
Reconstructed hit in diamond detectors.
Definition:
CTPPSDiamondRecHit.h:17
tolerance
const double tolerance
Definition:
HGCalGeomParameters.cc:29
CTPPSDiamondLocalTrack::containsHit
bool containsHit(const CTPPSDiamondRecHit &recHit, float tolerance=0.1) const
Definition:
CTPPSDiamondLocalTrack.cc:23
CTPPSTimingLocalTrack
Definition:
CTPPSTimingLocalTrack.h:19
CTPPSTimingLocalTrack::containsHit
bool containsHit(const CTPPSTimingRecHit &recHit, float tolerance=0.1f, CheckDimension check=CheckDimension::all) const
Definition:
CTPPSTimingLocalTrack.cc:28
CTPPSDiamondLocalTrack.h
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:39
CTPPSDiamondRecHit::ootIndex
int ootIndex() const
Definition:
CTPPSDiamondRecHit.h:48
Generated for CMSSW Reference Manual by
1.8.5