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);
T getParameter(std::string const &) const
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
static std::string producerTag()
static std::string producerTag()
static std::string producerTag()
edm::ESGetToken< CaloSubdetectorGeometry, CaloTowerGeometryRecord > caloTowerToken_
static std::string producerTag()
auto consumesFrom(ESInputTag const &tag)
edm::ESGetToken< CaloSubdetectorGeometry, HcalGeometryRecord > hcalToken_
CaloGeometryBuilder(const edm::ParameterSet &iConfig)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
static std::string producerTag()
static std::string producerTag()
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
static const int SubdetectorId
std::vector< std::pair< edm::ESGetToken< HGCalGeometry, IdealGeometryRecord >, std::string > > hgcalTokens_
def elem(elemtype, innerHTML='', html_class='', kwargs)
edm::ESGetToken< CaloSubdetectorGeometry, CastorGeometryRecord > castorToken_
static std::string producerTag()
edm::ESGetToken< CaloSubdetectorGeometry, EcalBarrelGeometryRecord > ecalBarrelToken_
static const int SubdetectorId
edm::ESGetToken< CaloSubdetectorGeometry, ZDCGeometryRecord > zdcToken_
static std::string producerTag()
std::unique_ptr< CaloGeometry > ReturnType
edm::ESGetToken< CaloSubdetectorGeometry, EcalPreshowerGeometryRecord > ecalPreshowerToken_
constexpr bool isInitialized() const noexcept
edm::ESGetToken< CaloSubdetectorGeometry, EcalEndcapGeometryRecord > ecalEndcapToken_
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run
ReturnType produceAligned(const CaloGeometryRecord &iRecord)