Main Page
Namespaces
Classes
Package Documentation
DetectorDescription
DDCMS
plugins
dd4hep
DDTestVectorAlgo.cc
Go to the documentation of this file.
1
#include "DD4hep/DetFactoryHelper.h"
2
#include "
DetectorDescription/DDCMS/interface/DDPlugins.h
"
3
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
4
5
using namespace
std
;
6
using namespace
dd4hep
;
7
using namespace
cms
;
8
9
static
long
algorithm
(
Detector
&,
cms::DDParsingContext
& ctxt, xml_h
e
,
SensitiveDetector
&) {
10
cms::DDNamespace
ns(ctxt, e,
true
);
11
DDAlgoArguments
args
(ctxt, e);
12
vector<string> materials = args.
vecStr
(
"MaterialNames"
);
13
14
return
1;
15
}
16
17
// first argument is the type from the xml file
18
DECLARE_DDCMS_DETELEMENT
(DDCMS_test_DDTestVectorAlgo,
algorithm
)
MessageLogger.h
align::Detector
Definition:
StructureType.h:86
cms::DDParsingContext
Definition:
DDParsingContext.h:14
algorithm
static long algorithm(Detector &, cms::DDParsingContext &ctxt, xml_h e, SensitiveDetector &)
Definition:
DDTestVectorAlgo.cc:9
std
Definition:
JetResolutionObject.h:76
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
cms::DDAlgoArguments
Definition:
DDAlgoArguments.h:28
cms
Namespace of DDCMS conversion namespace.
Definition:
ProducerAnalyzer.cc:21
dd4hep
Definition:
DDPlugins.h:8
SensitiveDetector
Definition:
SensitiveDetector.h:25
cms::DDNamespace
Definition:
DDNamespace.h:16
writedatasetfile.args
args
Definition:
writedatasetfile.py:18
cms::DDAlgoArguments::vecStr
std::vector< std::string > vecStr(const std::string &nam) const
Shortcut to access vector<string> arguments.
Definition:
DDAlgoArguments.cc:348
DDPlugins.h
DECLARE_DDCMS_DETELEMENT
#define DECLARE_DDCMS_DETELEMENT(name, func)
Definition:
DDPlugins.h:30
Generated for CMSSW Reference Manual by
1.8.11