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
)
writedatasetfile.args
args
Definition:
writedatasetfile.py:18
MessageLogger.h
DECLARE_DDCMS_DETELEMENT
#define DECLARE_DDCMS_DETELEMENT(name, func)
Definition:
DDPlugins.h:30
cms::DDParsingContext
Definition:
DDParsingContext.h:14
cms::DDNamespace
Definition:
DDNamespace.h:16
SensitiveDetector
Definition:
SensitiveDetector.h:25
DDPlugins.h
cms::DDAlgoArguments
Definition:
DDAlgoArguments.h:28
align::Detector
Definition:
StructureType.h:86
std
Definition:
JetResolutionObject.h:76
dd4hep
Definition:
DDPlugins.h:8
algorithm
static long algorithm(Detector &, cms::DDParsingContext &ctxt, xml_h e, SensitiveDetector &)
Definition:
DDTestVectorAlgo.cc:9
cms
Namespace of DDCMS conversion namespace.
Definition:
ProducerAnalyzer.cc:21
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
Generated for CMSSW Reference Manual by
1.8.16