FastSimulation
Tracking
interface
TrajectorySeedHitCandidate.h
Go to the documentation of this file.
1
#ifndef FastSimulation_Tracking_TrajectorySeedHitCandidate_H_
2
3
#define FastSimulation_Tracking_TrajectorySeedHitCandidate_H_
4
5
#include "
Geometry/CommonDetUnit/interface/GeomDet.h
"
6
#include "
DataFormats/DetId/interface/DetId.h
"
7
#include "
DataFormats/SiStripDetId/interface/StripSubdetector.h
"
8
#include "
DataFormats/TrackingRecHit/interface/TrackingRecHitFwd.h
"
9
#include "
DataFormats/TrackerRecHit2D/interface/FastTrackerRecHit.h
"
10
#include "
DataFormats/TrackerRecHit2D/interface/FastProjectedTrackerRecHit.h
"
11
#include "
DataFormats/TrackerRecHit2D/interface/FastMatchedTrackerRecHit.h
"
12
#include "
DataFormats/TrackerRecHit2D/interface/FastSingleTrackerRecHit.h
"
13
#include "
DataFormats/GeometryVector/interface/GlobalPoint.h
"
14
#include "
DataFormats/GeometryVector/interface/LocalPoint.h
"
15
#include "
Geometry/CommonDetUnit/interface/GeomDetType.h
"
16
17
#include "
FastSimulation/Tracking/interface/TrackingLayer.h
"
18
19
#include <vector>
20
21
class
TrackerTopology
;
22
23
class
TrajectorySeedHitCandidate
{
24
public
:
26
TrajectorySeedHitCandidate
()
27
:
theHit
(nullptr),
28
seedingLayer
()
29
30
{}
31
33
TrajectorySeedHitCandidate
(
const
FastTrackerRecHit
*
hit
,
const
TrackerTopology
* tTopo);
34
36
inline
const
FastTrackerRecHit
*
hit
()
const
{
return
theHit
; }
37
38
inline
const
TrackingLayer
&
getTrackingLayer
()
const
{
return
seedingLayer
; }
39
41
inline
unsigned
int
subDetId
()
const
{
return
seedingLayer
.
getSubDetNumber
(); }
42
44
inline
unsigned
int
layerNumber
()
const
{
return
seedingLayer
.
getLayerNumber
(); }
45
47
inline
LocalPoint
localPosition
()
const
{
return
hit
()->
localPosition
(); }
49
// bool isOnRequestedDet(const std::vector<unsigned int>& whichDet) const;
50
52
inline
bool
isOnTheSameLayer
(
const
TrajectorySeedHitCandidate
&
other
)
const
{
53
return
seedingLayer
==
other
.seedingLayer;
54
}
55
56
private
:
57
const
FastTrackerRecHit
*
theHit
;
58
TrackingLayer
seedingLayer
;
59
};
60
61
#endif
TrackerTopology
Definition:
TrackerTopology.h:16
GeomDetType.h
FastProjectedTrackerRecHit.h
FastTrackerRecHit
Definition:
FastTrackerRecHit.h:40
TrackingRecHitFwd.h
TrajectorySeedHitCandidate
Definition:
TrajectorySeedHitCandidate.h:23
TrajectorySeedHitCandidate::hit
const FastTrackerRecHit * hit() const
The Hit itself.
Definition:
TrajectorySeedHitCandidate.h:36
TrajectorySeedHitCandidate::TrajectorySeedHitCandidate
TrajectorySeedHitCandidate()
Default Constructor.
Definition:
TrajectorySeedHitCandidate.h:26
TrajectorySeedHitCandidate::subDetId
unsigned int subDetId() const
The subdet Id.
Definition:
TrajectorySeedHitCandidate.h:41
trackingPlots.other
other
Definition:
trackingPlots.py:1465
Point3DBase< float, LocalTag >
TrackingLayer::getSubDetNumber
unsigned int getSubDetNumber() const
Definition:
TrackingLayer.h:55
TrackingLayer.h
TrajectorySeedHitCandidate::isOnTheSameLayer
bool isOnTheSameLayer(const TrajectorySeedHitCandidate &other) const
Check if the hit is on one of the requested detector.
Definition:
TrajectorySeedHitCandidate.h:52
TrajectorySeedHitCandidate::localPosition
LocalPoint localPosition() const
The local position.
Definition:
TrajectorySeedHitCandidate.h:47
FastSingleTrackerRecHit.h
BaseTrackerRecHit::localPosition
LocalPoint localPosition() const final
Definition:
BaseTrackerRecHit.h:54
TrajectorySeedHitCandidate::seedingLayer
TrackingLayer seedingLayer
Definition:
TrajectorySeedHitCandidate.h:58
GeomDet.h
TrackingLayer
Definition:
TrackingLayer.h:9
DetId.h
LocalPoint.h
TrajectorySeedHitCandidate::layerNumber
unsigned int layerNumber() const
The Layer Number.
Definition:
TrajectorySeedHitCandidate.h:44
TrajectorySeedHitCandidate::theHit
const FastTrackerRecHit * theHit
Definition:
TrajectorySeedHitCandidate.h:57
TrackingLayer::getLayerNumber
unsigned int getLayerNumber() const
Definition:
TrackingLayer.h:59
FastMatchedTrackerRecHit.h
FastTrackerRecHit.h
TrajectorySeedHitCandidate::getTrackingLayer
const TrackingLayer & getTrackingLayer() const
Definition:
TrajectorySeedHitCandidate.h:38
GlobalPoint.h
StripSubdetector.h
hit
Definition:
SiStripHitEffFromCalibTree.cc:88
Generated for CMSSW Reference Manual by
1.8.16