CMS 3D CMS Logo

Functions
DDCheck.h File Reference
#include <iostream>
#include <string>
#include <utility>
#include <vector>
#include "DetectorDescription/Core/interface/DDCompactView.h"
#include "DetectorDescription/Core/interface/DDName.h"

Go to the source code of this file.

Functions

bool DDCheck (std::ostream &)
 
bool DDCheck (const DDCompactView &cpv, std::ostream &)
 
bool DDCheckMaterials (std::ostream &, std::vector< std::pair< std::string, std::string > > *=nullptr)
 

Function Documentation

◆ DDCheck() [1/2]

bool DDCheck ( std::ostream &  )

Definition at line 149 of file DDCheck.cc.

References DDCheckAll(), and mps_fire::result.

149  {
150  bool result = false;
151  os << "DDCore: start comprehensive checking" << std::endl;
152  DDCompactView cpv; // THE one and only (prototype restriction) CompactView
153  DDExpandedView exv(cpv);
154  result |= DDCheckAll(cpv, os);
155 
156  // done
157  os << "DDCore: end of comprehensive checking" << std::endl;
158 
159  if (result) { // at least one error found
160  edm::LogError("DDCheck") << std::endl << "DDD:DDCore:DDCheck: found inconsistency problems!" << std::endl;
161  }
162 
163  return result;
164 }
Log< level::Error, false > LogError
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:81
bool DDCheckAll(const DDCompactView &cpv, std::ostream &os)
Definition: DDCheck.cc:110
Provides an exploded view of the detector (tree-view)

◆ DDCheck() [2/2]

bool DDCheck ( const DDCompactView cpv,
std::ostream &   
)

Definition at line 166 of file DDCheck.cc.

References DDCheckAll(), and mps_fire::result.

166  {
167  bool result = false;
168  os << "DDCore: start comprehensive checking" << std::endl;
169  // DDCompactView cpv; // THE one and only (prototype restriction) CompactView
170  DDExpandedView exv(cpv);
171  result |= DDCheckAll(cpv, os);
172 
173  // done
174  os << "DDCore: end of comprehensive checking" << std::endl;
175 
176  if (result) { // at least one error found
177  edm::LogError("DDCheck") << std::endl << "DDD:DDCore:DDCheck: found inconsistency problems!" << std::endl;
178  }
179 
180  return result;
181 }
Log< level::Error, false > LogError
bool DDCheckAll(const DDCompactView &cpv, std::ostream &os)
Definition: DDCheck.cc:110
Provides an exploded view of the detector (tree-view)

◆ DDCheckMaterials()

bool DDCheckMaterials ( std::ostream &  ,
std::vector< std::pair< std::string, std::string > > *  = nullptr 
)