30 std::vector<const DDsvalues_type *>
result;
32 for (std::vector<const DDsvalues_type *>::iterator it = result.begin(); it != result.end(); ++it) {
34 if (parameter.
strings().size() == 1) {
35 value = parameter.
strings().front();
49 return double(::atof(value.c_str()));
65 return out <<
"(" << v.rho() <<
", " << v.z() <<
", " << v.phi() <<
")";
88 std::cout <<
"______________________________ DDD ______________________________" << std::endl;
101 throw cms::Exception(
"Configuration") <<
"The first child of the DDFilteredView is not what is expected \n"
105 std::cout << std::fixed << std::setprecision(3);
113 for (
unsigned int h = 2;
h < history.size(); ++
h) {
114 std::cout <<
'/' << history[
h].logicalPart().name().name() <<
'[' << history[
h].copyno() <<
']';
119 std::cout <<
"\t" << position << std::endl;
124 std::cout <<
"______________________________ std::vector<GeomDet*> from TrackerGeometry::dets() ______________________________" << std::endl;
128 std::cout << std::fixed << std::setprecision(3);
129 auto const & dets = hGeo->dets();
130 for (
unsigned int i = 0;
i < dets.size(); ++
i) {
144 std::cout <<
"\t[" << parts[0]->geographicalId().rawId();
145 for (
unsigned int j = 1;
j < parts.size(); ++
j)
146 std::cout <<
'\t' << parts[
j]->geographicalId().rawId();
void analyze(const edm::Event &, const edm::EventSetup &) override
const DDLogicalPart & logicalPart() const
The logical-part of the current node in the filtered-view.
static bool dddGetStringRaw(const DDFilteredView &view, const std::string &name, std::string &value)
void addFilter(const DDFilter &, log_op op=AND)
#define DEFINE_FWK_MODULE(type)
virtual SubDetector subDetector() const =0
Which subdetector.
std::ostream & operator<<(std::ostream &out, const ALILine &li)
const DDGeoHistory & geoHistory() const
The list of ancestors up to the root-node of the current node.
bool DDfetch(const DDsvalues_type *, DDValue &)
helper for retrieving DDValues from DDsvalues_type *.
static int position[TOTALCHAMBERS][3]
uint32_t rawId() const
get the raw id
const Surface::PositionType & position() const
The position (origin of the R.F.)
bool next()
set current node to the next node in the filtered tree
static double dddGetDouble(const std::string &s, const DDFilteredView &view)
DetId geographicalId() const
The label of this GeomDet.
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
static std::string dddGetString(const std::string &s, const DDFilteredView &view)
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
virtual std::vector< const GeomDet * > components() const =0
Returns direct components, if any.
const std::vector< std::string > & strings() const
a reference to the std::string-valued values stored in the given instance of DDValue ...
std::vector< DDExpandedNode > DDGeoHistory
Geometrical 'path' of the current node up to the root-node.
XYZVectorD XYZVector
spatial vector with cartesian internal representation
bool firstChild()
set the current node to the first child ...
void setCriteria(const DDValue &nameVal, comp_op, log_op l=AND, bool asString=true, bool merged=true)
void specificsV(std::vector< const DDsvalues_type * > &result) const
User specific data attached to the current node.
ListIds(const edm::ParameterSet &)
const DDTranslation & translation() const
The absolute translation of the current node.
Detector det() const
get the detector field from this detid
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
const DDMaterial & material(void) const
Returns a reference object of the material this LogicalPart is made of.
GeometricDet::GeometricEnumType type(std::string const &) const
The DDGenericFilter is a runtime-parametrized Filter looking on DDSpecifcs.