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 DeVeloStaticObject::print(int indent, int flg) const {
0024 std::string prefix = DE::indent(indent);
0025 this->DeStaticObject::print(indent,flg);
0026 printout(INFO, "DeVeloStatic",
0027 "%s+ Sides: %ld Modules:%ld Supports: %ld Sensors: %ld Cut:%g",
0028 prefix.c_str(), sides.size(), modules.size(), supports.size(),
0029 sensors[DeVeloFlags::ALL].size(), sensitiveVolumeCut);
0030 printout(INFO, "DeVeloStatic",
0031 "%s+ Sensors: R:%ld (L:%ld R:%ld) Phi:%ld (L:%ld R:%ld) rPhi:%ld (L:%ld R:%ld) PU:%ld (L:%ld R:%ld)",
0032 prefix.c_str(),
0033 sensors[DeVeloFlags::ALL].size(),
0034 rSensors[DeVeloFlags::ALL].size(),
0035 rSensors[DeVeloFlags::LEFT].size(),
0036 rSensors[DeVeloFlags::RIGHT].size(),
0037 phiSensors[DeVeloFlags::ALL].size(),
0038 phiSensors[DeVeloFlags::LEFT].size(),
0039 phiSensors[DeVeloFlags::RIGHT].size(),
0040 rphiSensors[DeVeloFlags::ALL].size(),
0041 rphiSensors[DeVeloFlags::LEFT].size(),
0042 rphiSensors[DeVeloFlags::RIGHT].size(),
0043 puSensors[DeVeloFlags::ALL].size(),
0044 puSensors[DeVeloFlags::LEFT].size(),
0045 puSensors[DeVeloFlags::RIGHT].size()
0046 );
0047 if ( flg&DePrint::CHILDREN ) {
0048 std::for_each(sides.begin(), sides.end(),
0049 [indent,flg](const DeVeloGenericStatic& s) { if (s.isValid()) s.print(indent+1,flg); });
0050 }
0051 }
0052
0053
0054 void DeVeloStaticObject::initialize() {
0055 this->DeStaticObject::initialize();
0056 sensitiveVolumeCut = param<double>("sensitiveVolumeCut");
0057 }
0058
0059
0060 void DeVeloObject::print(int indent, int flg) const {
0061 std::string prefix = DE::indent(indent);
0062 this->DeIOVObject::print(indent,flg&~DePrint::CHILDREN);
0063 printout(INFO, "DeVelo",
0064 "%s+ Sides: %ld Modules:%ld Supports: %ld Sensors: %ld",
0065 prefix.c_str(), sides.size(), modules.size(), supports.size(),
0066 sensors[DeVeloFlags::ALL].size());
0067 printout(INFO, "DeVelo",
0068 "%s+ Sensors: R:%ld (L:%ld R:%ld) Phi:%ld (L:%ld R:%ld) rPhi:%ld (L:%ld R:%ld) PU:%ld (L:%ld R:%ld)",
0069 prefix.c_str(),
0070 sensors[DeVeloFlags::ALL].size(),
0071 rSensors[DeVeloFlags::ALL].size(),
0072 rSensors[DeVeloFlags::LEFT].size(),
0073 rSensors[DeVeloFlags::RIGHT].size(),
0074 phiSensors[DeVeloFlags::ALL].size(),
0075 phiSensors[DeVeloFlags::LEFT].size(),
0076 phiSensors[DeVeloFlags::RIGHT].size(),
0077 rphiSensors[DeVeloFlags::ALL].size(),
0078 rphiSensors[DeVeloFlags::LEFT].size(),
0079 rphiSensors[DeVeloFlags::RIGHT].size(),
0080 puSensors[DeVeloFlags::ALL].size(),
0081 puSensors[DeVeloFlags::LEFT].size(),
0082 puSensors[DeVeloFlags::RIGHT].size()
0083 );
0084 std::for_each(sides.begin(), sides.end(),
0085 [indent,flg](const DeVeloGeneric& s) { if (s.isValid()) s.print(indent+1,flg); });
0086 }
0087
0088
0089 void DeVeloObject::initialize() {
0090 this->DeIOVObject::initialize();
0091 vp_static = de_static;
0092 }