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" ;
37 for (std::vector<std::string>::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 ;
std::pair< std::vector< SensitiveTkDetector * >, std::vector< SensitiveCaloDetector * > > create(const DDDWorld &w, const DDCompactView &cpv, SensitiveDetectorCatalog &clg, edm::ParameterSet const &p, const SimTrackManager *m, SimActivityRegistry ®) const
type of data representation of DDCompactView
std::vector< std::string > readoutNames(std::string &className)
std::string className(std::string &readoutName)
T get(const Candidate &c)
std::string className(const T &t)