21 std::vector<std::string> matNames;
22 std::vector<int> nocc;
26 for (
unsigned int i = 0;
i < matNames.size();
i++) {
27 if (matName == matNames[
i]) {
33 matNames.push_back(matName);
38 return build(php, matNames, nocc, name1,
name2);
51 std::vector<std::string> matNames;
52 std::vector<int> nocc;
57 for (
unsigned int i = 0;
i < matNames.size();
i++) {
58 if (matName == matNames[
i]) {
64 matNames.push_back(matName);
68 return build(php, matNames, nocc, name1,
name2);
72 const std::vector<std::string>& matNames,
73 const std::vector<int>& nocc,
77 edm::LogVerbatim(
"HcalTBSim") <<
"HcalTB06BeamParametersFromDD:: Names to be tested for Volume = " << name1 <<
": " 86 if (!matNames.empty()) {
89 for (
unsigned int i = 0;
i < matNames.size();
i++) {
99 edm::LogVerbatim(
"HcalTBSim") <<
"HcalTB06BeamParametersFromDD: finds " << matNames.size() <<
" materials for " 101 for (
unsigned k = 0;
k < matNames.size(); ++
k)
103 edm::LogVerbatim(
"HcalTBSim") <<
"HcalTB06BeamParametersFromDD: Material name for ReadOut = " <<
name2 <<
":" 110 std::vector<std::string>
tmp;
115 for (
unsigned int i = 0;
i <
tmp.size();
i++) {
116 if (!strcmp(
tmp[
i].c_str(),
log.name().name().c_str())) {
122 tmp.push_back(
log.name().name());
129 std::vector<std::string>
tmp;
Log< level::Info, true > LogVerbatim
bool build(const DDCompactView *cpv, HcalTB06BeamParameters &php, const std::string &name1, const std::string &name2)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Compact representation of the geometrical detector hierarchy.
std::string_view name() const
const std::string & name() const
Returns the name.
bool next()
set current node to the next node in the filtered tree
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
std::string_view materialName() const
std::vector< std::string > getNames(DDFilteredView &fv)
bool firstChild()
set the current node to the first child
const DDMaterial & material(void) const
Returns a reference object of the material this LogicalPart is made of.
const DDLogicalPart & logicalPart() const
The logical-part of the current node in the filtered-view.
std::vector< std::string > wchambers_
bool firstChild()
set the current node to the first child ...