/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FastSimulation/CaloGeometryTools/src/CaloPoint.cc
35 строк
1 KB
Mircho Rodozov
Initialize enum field in CaloPoint class
28 авг 2021, 22:55
28 авг 2021, 22:55
fbd882a
Код
Авторство
О чём код?
//FAMOS headers #include "FastSimulation/CaloGeometryTools/interface/CaloPoint.h" std::ostream& operator<<(std::ostream& ost, const CaloPoint& cid) { ost << " DetId "; if (!cid.getDetId().null()) ost << (uint32_t)cid.getDetId()(); else ost << cid.whichDetector(); // ost << " Side " << cid.getSide() << " Point " << (XYZPoint)cid; ost << " Point " << (math::XYZVector)cid; return ost; } // For the ECAL CaloPoint::CaloPoint(const DetId& cell, CaloDirection side, const XYZPoint& position) : XYZPoint(position), cellid_(cell), side_(side) { detector_ = cell.det(); subdetector_ = cell.subdetId(); layer_ = 0; } //hcal CaloPoint::CaloPoint(DetId::Detector det, const XYZPoint& position) : XYZPoint(position), detector_(det) { subdetector_ = 0; layer_ = 0; side_ = CaloDirection::NONE; } //preshower CaloPoint::CaloPoint(DetId::Detector detector, int subdetn, int layer, const XYZPoint& position) : XYZPoint(position), detector_(detector), subdetector_(subdetn), layer_(layer) { cellid_ = DetId(); side_ = CaloDirection::NONE; }