File indexing completed on 2025-01-31 09:20:18
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #include "Detector/DeVelo.h"
0018 #include "DD4hep/Printout.h"
0019
0020 using namespace gaudi::detail;
0021
0022
0023 void DeVeloGenericStaticObject::initialize() {
0024 this->DeStaticObject::initialize();
0025 }
0026
0027
0028 void DeVeloGenericStaticObject::print(int indent, int flg) const {
0029 std::string prefix = DE::indent(indent);
0030 DeStaticObject::print(indent, flg&~DePrint::CHILDREN);
0031 if ( flg & DePrint::SPECIFIC ) {
0032 printout(INFO,"DeVeloGen", "%s+ >> %ld child(ren) %ld Sensor(s)",
0033 prefix.c_str(), children.size(), sensors.size());
0034 }
0035 if ( flg&DePrint::CHILDREN ) {
0036 for(size_t i=0, e=children.size(); e==0 && i<sensors.size(); ++i)
0037 sensors[i]->print(indent+1, flg);
0038 for(size_t i=0, e=children.size(); e>0 && i<sensors.size(); ++i) {
0039 printout(INFO,"DeVeloGen", "%s+ >> Sensor[%ld] %s",
0040 prefix.c_str(),i,sensors[i]->detector.path().c_str());
0041 }
0042 for(auto c : children) c->print(indent+1,flg);
0043 }
0044 }
0045
0046
0047 void DeVeloGenericObject::initialize() {
0048 this->DeIOVObject::initialize();
0049 }
0050
0051
0052 void DeVeloGenericObject::print(int indent, int flg) const {
0053 std::string prefix = DE::indent(indent);
0054 DeIOVObject::print(indent, flg&~DePrint::CHILDREN);
0055 if ( flg & DePrint::SPECIFIC ) {
0056 printout(INFO,"DeIOVVeloGen", "%s+ >> %ld child(ren) %ld Sensor(s)",
0057 prefix.c_str(), children.size(), sensors.size());
0058 }
0059 for(size_t i=0, e=children.size(); e==0 && i<sensors.size(); ++i)
0060 sensors[i]->print(indent+1, flg);
0061 for(size_t i=0, e=children.size(); e>0 && i<sensors.size(); ++i) {
0062 printout(INFO,"DeIOVVeloGen", "%s+ >> [%ld] %s",
0063 prefix.c_str(), i, sensors[i]->detector.path().c_str());
0064 }
0065 for(auto c : children) c->print(indent+1,flg);
0066 }