CMS 3D CMS Logo

SimplifiedGeometry.cc
Go to the documentation of this file.
2 
3 #include <iostream>
4 #include <TH1F.h>
5 
6 std::ostream& fastsim::operator << (std::ostream& os , const SimplifiedGeometry & layer)
7 {
8  os << (layer.isForward() ? "ForwardSimplifiedGeometry" : "BarrelSimplifiedGeometry")
9  << " index=" << layer.index_
10  << (layer.isForward() ? " z=" : " radius=") << layer.geomProperty_;
11  return os;
12 }
13 
14 // note: define destructor and constructor in .cc file,
15 // otherwise one cannot forward declare TH1F in the header file
16 // w/o compilation issues
18 {}
19 
21  : geomProperty_(geomProperty)
22  , index_(-1)
26 {}
27 
Implementation of a generic detector layer (base class for forward/barrel layers).
virtual bool isForward() const =0
Returns false/true depending if the object is a (non-abstract) barrel/forward layer.
#define nullptr
std::ostream & operator<<(std::ostream &os, const fastsim::Geometry &geometry)
Definition: Geometry.cc:166
CaloType caloType_
Hack to interface "old" Calorimetry with "new" Tracker.
double nuclearInteractionThicknessFactor_
Some layers have a different thickness for nuclear interactions.
const DetLayer * detLayer_
Return pointer to the assigned active layer (if any).
int index_
Return index of this layer (layers are numbered according to their position in the detector)...
SimplifiedGeometry(double geomProperty)
Default constructor.
double geomProperty_
Geometric property of the layer: radius (barrel layer) / position z (forward layer) ...
~SimplifiedGeometry()
Default destructor.