33 msg(MSG::INFO) <<
"initialize()" <<
endmsg;
38 if (
sc.isFailure() || !sctManager) {
39 msg(MSG::WARNING) <<
"Could not find the SCT_DetectorManager" <<
endmsg;
41 msg(MSG::DEBUG) <<
"SCT_DetectorManager found" <<
endmsg;
45 sc=
detStore()->retrieve(pixelManager,
"Pixel");
46 if (
sc.isFailure() || !pixelManager) {
47 msg(MSG::WARNING) <<
"Could not find the PixelDetectorManager" <<
endmsg;
49 msg(MSG::DEBUG) <<
"PixelDetectorManager found" <<
endmsg;
54 if (
sc.isFailure() || !trtManager) {
55 msg(MSG::WARNING) <<
"Could not find the TRT_DetectorManager" <<
endmsg;
57 msg(MSG::DEBUG) <<
"TRT_DetectorManager found" <<
endmsg;
61 msg(MSG::DEBUG) <<
"Updating caches during initialize" <<
endmsg;
64 return StatusCode::SUCCESS;
72 msg(MSG::DEBUG) <<
"Updating caches during first execute" <<
endmsg;
77 return StatusCode::SUCCESS;
83 return StatusCode::SUCCESS;
89 msg(MSG::DEBUG) <<
"Updating ..." <<
endmsg;
90 IChronoStatSvc* chrono = chronoSvc();
93 msg(MSG::DEBUG) <<
"manager ..." << manager <<
endmsg;
95 std::string chronoTag = manager->getName() + name();
97 chrono->chronoStart( chronoTag );
98 msg(MSG::DEBUG) <<
"Updating " << manager->getName() <<
" caches ..." <<
endmsg;
100 msg(MSG::DEBUG) <<
"... done " <<
endmsg;
101 chrono->chronoStop(chronoTag);
102 float memUsed =
getMem() - memStart;
103 float uTime = chrono->chronoDelta(chronoTag, IChronoStatSvc::USER)/1000.;
104 msg(MSG::DEBUG) <<
"Memory used by UpdatedCaches for " << manager->getName() <<
" = " << memUsed/1024.0 <<
" MB" <<
endmsg;
105 msg(MSG::DEBUG) <<
"Time used by UpdatedCaches for " << manager->getName() <<
" = " << uTime <<
" ms" <<
endmsg;
114 std::ostringstream is;
116 std::string spid=is.str();
117 std::string temp=
"cat /proc/"+spid+
"/status | grep VmSize > mem.txt";
118 system(temp.c_str());
119 std::ifstream in(
"mem.txt");
120 std::string text,mem,text1;
121 in>>text>>mem>>text1;
122 system(
"rm -f mem.txt");
123 float memsize=atof(mem.c_str());
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
const ServiceHandle< StoreGateSvc > & detStore() const
Virtual base class for all ID detector managers.
Dedicated detector manager extending the functionality of the SiDetectorManager with dedicated pixel ...
Dedicated detector manager extending the functionality of the SiDetectorManager with dedicated SCT in...
The Detector Manager for all TRT Detector elements, it acts as the interface to the detector elements...
std::vector< const InDetDD::InDetDetectorManager * > m_detManagers
InDetUpdateCaches(const std::string &name, ISvcLocator *pSvcLocator)