/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
SimDataFormats/SimHitMaker/src/CaloSlaveSD.cc
45 строк
1 KB
Christopher Jones
Removed unnecessary include of MessageLogger.h from header
08 фев 2021, 19:48
08 фев 2021, 19:48
7e048cc
Код
Авторство
О чём код?
/////////////////////////////////////////////////////////////////////////////// // File: CaloSlaveSD.cc // Date: 10.02 // Description: Persistent component of Sensitive Detector class for // calorimeters // Modifications: /////////////////////////////////////////////////////////////////////////////// #include "SimDataFormats/SimHitMaker/interface/CaloSlaveSD.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include <iostream> CaloSlaveSD::CaloSlaveSD(std::string n) : name_(n) { LogDebug("HitBuildInfo") << "CaloSlaveSD Called with name " << n << "\n"; } CaloSlaveSD::~CaloSlaveSD() {} void CaloSlaveSD::Initialize() { LogDebug("HitBuildInfo") << " initialize CaloSlaveSD " << name_ << "\n"; hits_.clear(); } bool CaloSlaveSD::format() { LogDebug("HitBuildInfo") << " CaloSlaveSD " << name_ << "formatting " << hits_.size() << " hits."; return true; } bool CaloSlaveSD::processHits(uint32_t unitID, double eDepEM, double eDepHad, double tSlice, int tkID, uint16_t depth) { PCaloHit aCal = PCaloHit(unitID, eDepEM, eDepHad, tSlice, tkID, depth); LogDebug("HitBuildInfo") << " Sent Hit " << aCal << " to ROU " << name_; hits_.push_back(aCal); return true; } void CaloSlaveSD::Clean() { LogDebug("HitBuildIndo") << "CaloSlaveSD " << name_ << " cleaning the collection"; Collection().swap(hits_); } void CaloSlaveSD::ReserveMemory(unsigned int size) { if (hits_.capacity() < size) hits_.reserve(size); }