Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
TrackingTools
TransientTrackingRecHit
src
TransientTrackingRecHit.cc
Go to the documentation of this file.
1
#include "
TrackingTools/TransientTrackingRecHit/interface/TransientTrackingRecHit.h
"
2
3
#include "
Geometry/CommonDetUnit/interface/GeomDetUnit.h
"
4
5
6
#ifdef COUNT_HITS
7
#include<cstdio>
8
namespace
{
9
10
struct
Stat {
11
~Stat() {
12
printf(
"TTRH: %d/%d/%d/%d\n"
,tot[0],tot[1],tot[2],tot[3]);
13
}
14
int
tot[4]={0};
15
};
16
Stat stat;
17
}
18
19
void
countTTRH
(
TrackingRecHit::Type
type
) {
20
++stat.tot[
type
];
21
}
22
#endif
23
24
25
const
GeomDetUnit
*
TransientTrackingRecHit::detUnit
()
const
26
{
27
return
dynamic_cast<
const
GeomDetUnit
*
>
(
det
());
28
}
29
30
31
32
33
TransientTrackingRecHit::ConstRecHitContainer
TransientTrackingRecHit::transientHits
()
const
34
{
35
// no components by default
36
return
ConstRecHitContainer
();
37
}
38
39
TransientTrackingRecHit::RecHitPointer
40
TransientTrackingRecHit::clone
(
const
TrajectoryStateOnSurface
&)
const
{
41
return
RecHitPointer
(const_cast<TransientTrackingRecHit*>(
this
));
42
}
TransientTrackingRecHit::RecHitPointer
ReferenceCountingPointer< TransientTrackingRecHit > RecHitPointer
Definition:
TransientTrackingRecHit.h:25
type
type
Definition:
HCALResponse.h:21
TransientTrackingRecHit::clone
virtual TransientTrackingRecHit * clone() const =0
TrajectoryStateOnSurface
Definition:
TrajectoryStateOnSurface.h:15
TransientTrackingRecHit::det
virtual const GeomDet * det() const =0
The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds.
ReferenceCountingPointer
Definition:
ReferenceCounted.h:73
TransientTrackingRecHit.h
GeomDetUnit.h
TransientTrackingRecHit::ConstRecHitContainer
std::vector< ConstRecHitPointer > ConstRecHitContainer
Definition:
TransientTrackingRecHit.h:28
countTTRH
void countTTRH(TrackingRecHit::Type)
Definition:
TransientTrackingRecHit.h:17
GeomDetUnit
Definition:
GeomDetUnit.h:13
TransientTrackingRecHit::detUnit
virtual const GeomDetUnit * detUnit() const
Definition:
TransientTrackingRecHit.cc:25
TrackingRecHit::Type
Type
Definition:
TrackingRecHit.h:25
TransientTrackingRecHit::transientHits
virtual ConstRecHitContainer transientHits() const
Composite interface: returns the component hits, if any.
Definition:
TransientTrackingRecHit.cc:33
Generated for CMSSW Reference Manual by
1.8.5