CMS 3D CMS Logo

DDLString.cc
Go to the documentation of this file.
5 
6 #include <map>
7 #include <utility>
8 
9 class DDCompactView;
10 class DDLElementRegistry;
11 
13 
15 
17  if (parent() == "ConstantsSection" || parent() == "DDDefinition") {
18  std::unique_ptr<std::string> ts = std::make_unique<std::string>(getAttributeSet().find("value")->second);
19  DDName ddn = getDDName(nmspace);
20  DDString(ddn, std::move(ts));
21  clear();
22  }
23 }
DDXMLElement::parent
const std::string & parent(void) const
access to parent element name
Definition: DDXMLElement.cc:201
DDXMLElement::clear
virtual void clear(void)
clear this element's contents.
Definition: DDXMLElement.cc:40
DDName
DDName is used to identify DDD entities uniquely.
Definition: DDName.h:15
DDString.h
edm::second
U second(std::pair< T, U > const &p)
Definition: ParameterSet.cc:215
DDLElementRegistry
The main class for processing parsed elements.
Definition: DDLElementRegistry.h:23
DDLString::DDLString
DDLString(DDLElementRegistry *myreg)
Definition: DDLString.cc:12
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
DDLString::preProcessElement
void preProcessElement(const std::string &name, const std::string &nmspace, DDCompactView &cpv) override
Called by loadAttributes AFTER attributes are loaded.
Definition: DDLString.cc:14
DDXMLElement::getAttributeSet
virtual const DDXMLAttribute & getAttributeSet(size_t aIndex=0) const
Get a "row" of attributes, i.e. one attribute set.
Definition: DDXMLElement.cc:54
DDCompactView
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:80
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DDLString.h
DDXMLElement
This is a base class for processing XML elements in the DDD.
Definition: DDXMLElement.h:48
DDXMLElement::getDDName
const virtual DDName getDDName(const std::string &defaultNS, const std::string &attname=std::string("name"), size_t aIndex=0)
Definition: DDXMLElement.cc:56
eostools.move
def move(src, dest)
Definition: eostools.py:511
DDXMLElement.h
DDName.h
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
DDString
a named constant corresponding to the DDL-XML tag <Constant> and <ConstantsVector>
Definition: DDString.h:16
DDLString::processElement
void processElement(const std::string &name, const std::string &nmspace, DDCompactView &cpv) override
Processing the element.
Definition: DDLString.cc:16