21 std::pair< std::vector<SensitiveTkDetector*>,
22 std::vector<SensitiveCaloDetector*> >
30 std::pair< std::vector<SensitiveTkDetector *>,
31 std::vector<SensitiveCaloDetector*> > detList;
34 LogDebug(
"SimG4CoreSensitiveDetector") <<
" AttachSD: Initializing" ;
36 const std::vector<std::string>& rouNames = clg.
readoutNames();
37 for (std::vector<std::string>::const_iterator it = rouNames.begin();
38 it != rouNames.end(); it++) {
41 edm::LogInfo(
"SimG4CoreSensitiveDetector") <<
" AttachSD: trying to find something for " << className <<
" " << *it ;
42 std::auto_ptr<SensitiveDetectorMakerBase>
temp(
44 std::auto_ptr<SensitiveTkDetector> tkDet;
45 std::auto_ptr<SensitiveCaloDetector> caloDet;
46 temp->make(*it,cpv,clg,p,m,reg,tkDet,caloDet);
48 detList.first.push_back(tkDet.get());
52 detList.second.push_back(caloDet.get());
57 LogDebug(
"SimG4CoreSensitiveDetector") <<
" AttachSD: created a " << className <<
" with name " << *it ;
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
std::pair< std::vector< SensitiveTkDetector * >, std::vector< SensitiveCaloDetector * > > create(const DDDWorld &w, const DDCompactView &cpv, const SensitiveDetectorCatalog &clg, edm::ParameterSet const &p, const SimTrackManager *m, SimActivityRegistry ®) const
T get(const Candidate &c)
std::string className(const T &t)