27 for (
int k = 0;
k <
num_; ++
k) {
34 for (
const auto&
token : hgcToken_)
35 hgcons_.emplace_back(es.getHandle(
token));
44 for (
int k = 0;
k < num_; ++
k) {
45 if (iname.find(name1_[
k]) != std::string::npos) {
47 hgc = hgcons_[k].product();
51 auto sd = std::make_unique<HGCSD>(iname, hgc, clg,
p, man);
57 static constexpr
unsigned int nameSize_ = 3;
58 const std::string name0_[nameSize_] = {
"HGCalEESensitive",
"HGCalHESiliconSensitive",
"HGCalHEScintillatorSensitive"};
59 const std::string name1_[nameSize_] = {
"HitsEE",
"HitsHEfront",
"HitsHEback"};
61 std::vector<edm::ESGetToken<HGCalDDDConstants, IdealGeometryRecord>>
hgcToken_;
62 std::vector<edm::ESHandle<HGCalDDDConstants>>
hgcons_;
Log< level::Info, true > LogVerbatim
T getUntrackedParameter(std::string const &, T const &) const
void beginRun(const edm::EventSetup &es) final
const bool isValid(const Frame &aFrame, const FrameQuality &aQuality, const uint16_t aExpectedPos)
HGCSensitiveDetectorBuilder(edm::ParameterSet const &p, edm::ConsumesCollector cc)
std::unique_ptr< SensitiveDetector > make(const std::string &iname, const SensitiveDetectorCatalog &clg, const edm::ParameterSet &p, const SimTrackManager *man, SimActivityRegistry ®) const final
static void enroll(SimActivityRegistry &iReg, T *iObj)
#define DEFINE_SENSITIVEDETECTORBUILDER(type, name)
const std::string name0_[nameSize_]
std::vector< edm::ESGetToken< HGCalDDDConstants, IdealGeometryRecord > > hgcToken_
std::vector< edm::ESHandle< HGCalDDDConstants > > hgcons_
T getParameter(std::string const &) const
HGCSD HGCSensitiveDetector