FastSimulation
SimplifiedGeometryPropagator
src
SimplifiedGeometry.cc
Go to the documentation of this file.
1
#include "
FastSimulation/SimplifiedGeometryPropagator/interface/SimplifiedGeometry.h
"
2
3
#include <iostream>
4
#include <TH1F.h>
5
6
std::ostream&
fastsim::operator<<
(std::ostream& os,
const
SimplifiedGeometry
&
layer
) {
7
os << (
layer
.isForward() ?
"ForwardSimplifiedGeometry"
:
"BarrelSimplifiedGeometry"
) <<
" index="
<<
layer
.index_
8
<< (
layer
.isForward() ?
" z="
:
" radius="
) <<
layer
.geomProperty_;
9
return
os;
10
}
11
12
// note: define destructor and constructor in .cc file,
13
// otherwise one cannot forward declare TH1F in the header file
14
// w/o compilation issues
15
fastsim::SimplifiedGeometry::~SimplifiedGeometry
() {}
16
17
fastsim::SimplifiedGeometry::SimplifiedGeometry
(
double
geomProperty)
18
: geomProperty_(geomProperty),
19
index_(-1),
20
detLayer_(nullptr),
21
nuclearInteractionThicknessFactor_(1.),
22
caloType_(
fastsim
::
SimplifiedGeometry
::
NONE
) {}
fastsim::SimplifiedGeometry
Implementation of a generic detector layer (base class for forward/barrel layers).
Definition:
SimplifiedGeometry.h:35
fastsim::SimplifiedGeometry::~SimplifiedGeometry
virtual ~SimplifiedGeometry()
Default destructor.
Definition:
SimplifiedGeometry.cc:15
fastsim::operator<<
std::ostream & operator<<(std::ostream &os, const fastsim::Geometry &geometry)
Definition:
Geometry.cc:159
phase1PixelTopology::layer
constexpr std::array< uint8_t, layerIndexSize > layer
Definition:
phase1PixelTopology.h:99
SimplifiedGeometry.h
NONE
Definition:
TkAlStyle.cc:47
fastsim::SimplifiedGeometry::SimplifiedGeometry
SimplifiedGeometry(double geomProperty)
Default constructor.
Definition:
SimplifiedGeometry.cc:17
fastsim
Definition:
BarrelSimplifiedGeometry.h:15
Generated for CMSSW Reference Manual by
1.8.16