|
|
Go to the documentation of this file.
35 template <
typename Record>
37 std::vector<std::string>& list,
42 if (
found != list.end()) {
58 auto caloList = iConfig.
getParameter<std::vector<std::string> >(
"SelectedCalos");
60 throw cms::Exception(
"Configuration") <<
"No calorimeter specified for geometry, aborting";
71 auto hgcBegin = std::partition(caloList.begin(), caloList.end(), [](
std::string const& elem) {
75 for (
auto iter = hgcBegin; iter != caloList.end(); ++iter) {
79 caloList.erase(hgcBegin, caloList.end());
82 if (not caloList.empty()) {
84 ex <<
"Reconstruction geometry requested for a not implemented sub-detectors:";
85 for (
auto const& elem : caloList) {
97 ReturnType pCalo = std::make_unique<CaloGeometry>();
102 edm::LogVerbatim(
"CaloGeometryBuilder") <<
"Building HCAL reconstruction geometry";
111 edm::LogVerbatim(
"CaloGeometryBuilder") <<
"Building ZDC reconstruction geometry";
116 edm::LogVerbatim(
"CaloGeometryBuilder") <<
"Building CASTOR reconstruction geometry";
123 edm::LogVerbatim(
"CaloGeometryBuilder") <<
"Building EcalBarrel reconstruction geometry";
129 edm::LogVerbatim(
"CaloGeometryBuilder") <<
"Building EcalEndcap reconstruction geometry";
135 edm::LogVerbatim(
"CaloGeometryBuilder") <<
"Building EcalPreshower reconstruction geometry";
142 edm::LogVerbatim(
"CaloGeometryBuilder") <<
"Building TOWER reconstruction geometry";
148 edm::LogVerbatim(
"CaloGeometryBuilder") <<
"Building " << hgcTokenLabel.second <<
" reconstruction geometry";
149 auto const& pHG = iRecord.
get(hgcTokenLabel.first);
150 const auto& topo = pHG.topology();
151 pCalo->setSubdetGeometry(topo.detector(), topo.subDetector(), &pHG);
static std::string producerTag()
edm::ESGetToken< CaloSubdetectorGeometry, CaloTowerGeometryRecord > caloTowerToken_
edm::ESGetToken< CaloSubdetectorGeometry, EcalEndcapGeometryRecord > ecalEndcapToken_
edm::ESGetToken< CaloSubdetectorGeometry, EcalPreshowerGeometryRecord > ecalPreshowerToken_
static std::string producerTag()
edm::ESGetToken< CaloSubdetectorGeometry, HcalGeometryRecord > hcalToken_
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
static std::string producerTag()
static const int SubdetectorId
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
static std::string producerTag()
constexpr bool isInitialized() const noexcept
edm::ESGetToken< CaloSubdetectorGeometry, ZDCGeometryRecord > zdcToken_
std::vector< std::pair< edm::ESGetToken< HGCalGeometry, IdealGeometryRecord >, std::string > > hgcalTokens_
static const int SubdetectorId
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
edm::ESGetToken< CaloSubdetectorGeometry, CastorGeometryRecord > castorToken_
static std::string producerTag()
CaloGeometryBuilder(const edm::ParameterSet &iConfig)
static std::string producerTag()
static std::string producerTag()
ReturnType produceAligned(const CaloGeometryRecord &iRecord)
static std::string producerTag()
Log< level::Info, true > LogVerbatim
T getParameter(std::string const &) const
std::unique_ptr< CaloGeometry > ReturnType
edm::ESGetToken< CaloSubdetectorGeometry, EcalBarrelGeometryRecord > ecalBarrelToken_