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 (const DDCompactView &cpv, std::ostream &)
 
bool DDCheck (std::ostream &)
 
bool DDCheckMaterials (std::ostream &, std::vector< std::pair< std::string, std::string > > *=nullptr)
 

Function Documentation

◆ DDCheck() [1/2]

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

Definition at line 166 of file DDCheck.cc.

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 }

References DDCheckAll(), and mps_fire::result.

◆ DDCheck() [2/2]

bool DDCheck ( std::ostream &  )

Definition at line 149 of file DDCheck.cc.

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 }

References DDCheckAll(), and mps_fire::result.

◆ DDCheckMaterials()

bool DDCheckMaterials ( std::ostream &  ,
std::vector< std::pair< std::string, std::string > > *  = nullptr 
)
DDCompactView
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:80
DDExpandedView
Provides an exploded view of the detector (tree-view)
Definition: DDExpandedView.h:41
edm::LogError
Definition: MessageLogger.h:183
DDCheckAll
bool DDCheckAll(const DDCompactView &cpv, std::ostream &os)
Definition: DDCheck.cc:110
mps_fire.result
result
Definition: mps_fire.py:303