|
|
Go to the documentation of this file.
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;
std::vector< std::string > wchambers_
const DDLogicalPart & logicalPart() const
The logical-part of the current node in the filtered-view.
const DDMaterial & material(void) const
Returns a reference object of the material this LogicalPart is made of.
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
bool build(const DDCompactView *cpv, HcalTB06BeamParameters &php, const std::string &name1, const std::string &name2)
std::string_view name() const
bool firstChild()
set the current node to the first child ...
bool next()
set current node to the next node in the filtered tree
Compact representation of the geometrical detector hierarchy.
bool firstChild()
set the current node to the first child
std::vector< std::string > getNames(DDFilteredView &fv)
A DDLogicalPart aggregates information concerning material, solid and sensitveness ....
const std::string & name() const
Returns the name.
Log< level::Info, true > LogVerbatim
std::string_view materialName() const