SimDataFormats
TrackerDigiSimLink
interface
PixelSimHitExtraInfo.h
Go to the documentation of this file.
1
#ifndef PixelSimHitExtraInfo_h
2
#define PixelSimHitExtraInfo_h
3
4
#include "
DataFormats/GeometryVector/interface/LocalPoint.h
"
5
#include <vector>
6
#include <cstdint>
7
8
class
PixelSimHitExtraInfo
{
9
public
:
10
PixelSimHitExtraInfo
(
size_t
Hindex,
const
Local3DPoint
& entryP,
const
Local3DPoint
& exitP,
unsigned
int
ch) {
11
index_
= Hindex;
12
theEntryPoint_
= entryP;
13
theExitPoint_
= exitP;
14
chan_
.push_back(ch);
15
};
16
PixelSimHitExtraInfo
() =
default
;
17
~PixelSimHitExtraInfo
() =
default
;
18
size_t
hitIndex
()
const
{
return
index_
; };
19
const
Local3DPoint
&
entryPoint
()
const
{
return
theEntryPoint_
; };
20
const
Local3DPoint
&
exitPoint
()
const
{
return
theExitPoint_
; }
21
const
std::vector<unsigned int>&
channel
()
const
{
return
chan_
; };
22
23
inline
bool
operator<
(
const
PixelSimHitExtraInfo
&
other
)
const
{
return
hitIndex
() <
other
.hitIndex(); }
24
25
void
addDigiInfo
(
unsigned
int
theDigiChannel) {
chan_
.push_back(theDigiChannel); }
26
bool
isInTheList
(
unsigned
int
channelToCheck) {
27
bool
result_in_the_list =
false
;
28
for
(
unsigned
int
icheck = 0; icheck <
chan_
.size(); icheck++) {
29
if
(channelToCheck ==
chan_
[icheck]) {
30
result_in_the_list =
true
;
31
break
;
32
}
33
}
34
return
result_in_the_list;
35
}
36
37
private
:
38
size_t
index_
;
39
Local3DPoint
theEntryPoint_
;
40
Local3DPoint
theExitPoint_
;
41
std::vector<unsigned int>
chan_
;
42
};
43
#endif
PixelSimHitExtraInfo::chan_
std::vector< unsigned int > chan_
Definition:
PixelSimHitExtraInfo.h:41
LocalPoint.h
PixelSimHitExtraInfo::operator<
bool operator<(const PixelSimHitExtraInfo &other) const
Definition:
PixelSimHitExtraInfo.h:23
PixelSimHitExtraInfo::addDigiInfo
void addDigiInfo(unsigned int theDigiChannel)
Definition:
PixelSimHitExtraInfo.h:25
PixelSimHitExtraInfo::~PixelSimHitExtraInfo
~PixelSimHitExtraInfo()=default
PixelSimHitExtraInfo::isInTheList
bool isInTheList(unsigned int channelToCheck)
Definition:
PixelSimHitExtraInfo.h:26
trackingPlots.other
other
Definition:
trackingPlots.py:1464
PixelSimHitExtraInfo::entryPoint
const Local3DPoint & entryPoint() const
Definition:
PixelSimHitExtraInfo.h:19
PixelSimHitExtraInfo::channel
const std::vector< unsigned int > & channel() const
Definition:
PixelSimHitExtraInfo.h:21
PixelSimHitExtraInfo::theEntryPoint_
Local3DPoint theEntryPoint_
Definition:
PixelSimHitExtraInfo.h:39
PixelSimHitExtraInfo::theExitPoint_
Local3DPoint theExitPoint_
Definition:
PixelSimHitExtraInfo.h:40
PixelSimHitExtraInfo::index_
size_t index_
Definition:
PixelSimHitExtraInfo.h:38
PixelSimHitExtraInfo
Definition:
PixelSimHitExtraInfo.h:8
Point3DBase< float, LocalTag >
PixelSimHitExtraInfo::PixelSimHitExtraInfo
PixelSimHitExtraInfo(size_t Hindex, const Local3DPoint &entryP, const Local3DPoint &exitP, unsigned int ch)
Definition:
PixelSimHitExtraInfo.h:10
PixelSimHitExtraInfo::hitIndex
size_t hitIndex() const
Definition:
PixelSimHitExtraInfo.h:18
PixelSimHitExtraInfo::PixelSimHitExtraInfo
PixelSimHitExtraInfo()=default
PixelSimHitExtraInfo::exitPoint
const Local3DPoint & exitPoint() const
Definition:
PixelSimHitExtraInfo.h:20
Generated for CMSSW Reference Manual by
1.8.14