/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FastSimulation/SimplifiedGeometryPropagator/src/SimplifiedGeometry.cc
22 строки
879 B
Cms Build
Clang-Format
16 май 2019, 15:48
16 май 2019, 15:48
12a0cf0
Код
Авторство
О чём код?
#include "FastSimulation/SimplifiedGeometryPropagator/interface/SimplifiedGeometry.h" #include <iostream> #include <TH1F.h> std::ostream& fastsim::operator<<(std::ostream& os, const SimplifiedGeometry& layer) { os << (layer.isForward() ? "ForwardSimplifiedGeometry" : "BarrelSimplifiedGeometry") << " index=" << layer.index_ << (layer.isForward() ? " z=" : " radius=") << layer.geomProperty_; return os; } // note: define destructor and constructor in .cc file, // otherwise one cannot forward declare TH1F in the header file // w/o compilation issues fastsim::SimplifiedGeometry::~SimplifiedGeometry() {} fastsim::SimplifiedGeometry::SimplifiedGeometry(double geomProperty) : geomProperty_(geomProperty), index_(-1), detLayer_(nullptr), nuclearInteractionThicknessFactor_(1.), caloType_(fastsim::SimplifiedGeometry::NONE) {}