47 theLVs.insert(mmslv::value_type(
string, logv));
49 G4cout <<
"CCalSensitiveDetectors : Register " << logv->
GetName()
50 <<
" in category " <<
string <<
G4endl;
57 mmslv::const_iterator mmscite;
58 std::pair<mmslv::iterator, mmslv::iterator> mmsdi;
59 mmsdi = theLVs.equal_range(
string);
60 std::vector<G4LogicalVolume*> lvs;
61 for (mmscite = mmsdi.first; mmscite != mmsdi.second; mmscite++ ) {
62 lvs.push_back(const_cast<G4LogicalVolume*>((*mmscite).second));
65 if (exist)
G4cout <<
"CCalSensitiveDetector : " << lvs.size()
66 <<
" detectors for " <<
string <<
G4endl;
76 mmslv::const_iterator mmscite;
77 std::pair<mmslv::iterator, mmslv::iterator> mmsdi;
78 mmsdi = theLVs.equal_range(
string);
79 for (mmscite = mmsdi.first; mmscite != mmsdi.second; mmscite++ ) {
G4double G4ParticleHPJENDLHEData::G4double result
std::vector< G4LogicalVolume * > getVolumes(const G4String &name, bool exists=0)
static CCalSensitiveDetectors * getInstance()
void logv(const uint32_t size, G4double const *__restrict__ iarray, G4double *__restrict__ oarray)
void registerVolume(const G4String &name, G4LogicalVolume *)
G4GLOB_DLL std::ostream G4cout
const G4String & GetName() const
void SetSensitiveDetector(G4VSensitiveDetector *pSDetector)
bool setSensitive(const G4String &string, G4VSensitiveDetector *sens)