|
|
Go to the documentation of this file.
35 template <
typename Record>
37 std::vector<std::string>&
list,
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)
T getParameter(std::string const &) const
static std::string producerTag()
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
std::unique_ptr< CaloGeometry > ReturnType
edm::ESGetToken< CaloSubdetectorGeometry, EcalBarrelGeometryRecord > ecalBarrelToken_