Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:11:22

0001 #include "FastSimulation/SimplifiedGeometryPropagator/interface/SimplifiedGeometry.h"
0002 
0003 #include <iostream>
0004 #include <TH1F.h>
0005 
0006 std::ostream& fastsim::operator<<(std::ostream& os, const SimplifiedGeometry& layer) {
0007   os << (layer.isForward() ? "ForwardSimplifiedGeometry" : "BarrelSimplifiedGeometry") << " index=" << layer.index_
0008      << (layer.isForward() ? " z=" : " radius=") << layer.geomProperty_;
0009   return os;
0010 }
0011 
0012 // note: define destructor and constructor in .cc file,
0013 //       otherwise one cannot forward declare TH1F in the header file
0014 //       w/o compilation issues
0015 fastsim::SimplifiedGeometry::~SimplifiedGeometry() {}
0016 
0017 fastsim::SimplifiedGeometry::SimplifiedGeometry(double geomProperty)
0018     : geomProperty_(geomProperty),
0019       index_(-1),
0020       detLayer_(nullptr),
0021       nuclearInteractionThicknessFactor_(1.),
0022       caloType_(fastsim::SimplifiedGeometry::NONE) {}