13 std::pair< std::vector<SensitiveTkDetector*>,
14 std::vector<SensitiveCaloDetector*> >
22 std::pair< std::vector<SensitiveTkDetector *>,std::vector<SensitiveCaloDetector*> > detList;
23 const std::vector<std::string>& rouNames = clg.
readoutNames();
24 edm::LogInfo(
"SimG4CoreSensitiveDetector") <<
" AttachSD: Initializing " 25 << rouNames.size() <<
" SDs";
26 std::unique_ptr<SensitiveDetectorMakerBase>
temp;
27 for (
auto & rname : rouNames) {
30 std::auto_ptr<SensitiveTkDetector> tkDet;
31 std::auto_ptr<SensitiveCaloDetector> caloDet;
32 temp.get()->make(rname,cpv,clg,p,man,reg,tkDet,caloDet);
34 <<
" AttachSD: created a " << className <<
" with name " << rname
35 <<
" TkDet <" << tkDet.get() <<
"> caloDet<" << caloDet.get() <<
">" 36 <<
" temp= <" << temp.get() <<
">";
38 detList.first.push_back(tkDet.get());
42 detList.second.push_back(caloDet.get());
std::pair< std::vector< SensitiveTkDetector * >, std::vector< SensitiveCaloDetector * > > create(const DDDWorld &, const DDCompactView &, const SensitiveDetectorCatalog &, edm::ParameterSet const &, const SimTrackManager *, SimActivityRegistry ®) const
type of data representation of DDCompactView
std::string className(const std::string &readoutName) const
const std::vector< std::string > & readoutNames(const std::string &className) const
T get(const Candidate &c)
std::string className(const T &t)