Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-26 09:17:31

0001 //==============================================================================
0002 //  AIDA Detector description implementation for LHCb
0003 //------------------------------------------------------------------------------
0004 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
0005 // All rights reserved.
0006 //
0007 // For the licensing terms see $DD4hepINSTALL/LICENSE.
0008 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
0009 //
0010 //  \author   Markus Frank
0011 //  \date     2018-03-08
0012 //  \version  1.0
0013 //
0014 //==============================================================================
0015 
0016 // Framework include files
0017 #include "Detector/DeVP.h"
0018 #include "DD4hep/Printout.h"
0019 
0020 using namespace gaudi::detail;
0021 
0022 /// Initialization of sub-classes
0023 void DeVPGenericStaticObject::initialize()    {
0024   this->DeStaticObject::initialize();
0025 }
0026 
0027 /// Printout method to stdout
0028 void DeVPGenericStaticObject::print(int indent, int flg)  const   {
0029   std::string prefix = DE::indent(indent);
0030   DeStaticObject::print(indent, flg);
0031   if ( flg & DePrint::SPECIFIC )  {
0032     printout(INFO,"DeVPGenStatic", "%s+ >> %ld Sensor(s)", prefix.c_str(), sensors.size());
0033   }
0034   for(size_t i=0; i<sensors.size(); ++i)   {
0035     if ( sensors[i].isValid() )  {
0036       printout(INFO,"DeVeloGenStatic", "%s+   >> [%ld] %s",
0037                prefix.c_str(), i, sensors[i]->detector.path().c_str());
0038     }
0039   }
0040 }
0041 
0042 /// Initialization of sub-classes
0043 void DeVPGenericObject::initialize()    {
0044   this->DeIOVObject::initialize();
0045 }
0046 
0047 /// Printout method to stdout
0048 void DeVPGenericObject::print(int indent, int flg)  const   {
0049   std::string prefix = DE::indent(indent);
0050   DeIOVObject::print(indent, flg);
0051   if ( flg & DePrint::SPECIFIC )  {
0052     printout(INFO,"DeVPGen", "%s+ >> %ld Sensor(s)", prefix.c_str(), sensors.size());
0053   }
0054   for(size_t i=0; i<sensors.size(); ++i)   {
0055     if ( sensors[i].isValid() )  {
0056       printout(INFO,"DeVeloGenStatic", "%s+   >> [%ld] %s",
0057                prefix.c_str(), i, sensors[i]->detector.path().c_str());
0058     }
0059   }
0060 }