#include <string>
#include <vector>
#include <iostream>
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/ESTransientHandle.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "FWCore/ParameterSet/interface/types.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DataFormats/DetId/interface/DetId.h"
#include "DataFormats/Math/interface/Vector3D.h"
#include "DetectorDescription/Core/interface/DDFilteredView.h"
#include "DetectorDescription/Core/interface/DDCompactView.h"
#include "DetectorDescription/Core/interface/DDMaterial.h"
#include "Geometry/CommonDetUnit/interface/GeomDet.h"
#include "Geometry/Records/interface/TrackerDigiGeometryRecord.h"
#include "Geometry/Records/interface/IdealGeometryRecord.h"
#include "Geometry/TrackerNumberingBuilder/interface/CmsTrackerStringToEnum.h"
#include "Geometry/TrackerNumberingBuilder/interface/GeometricDet.h"
#include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h"
#include "FWCore/PluginManager/interface/ModuleDef.h"
#include "FWCore/Framework/interface/MakerMacros.h"
Go to the source code of this file.
Classes | |
class | ListIds |
Functions | |
static double | dddGetDouble (const std::string &s, const DDFilteredView &view) |
static std::string | dddGetString (const std::string &s, const DDFilteredView &view) |
static bool | dddGetStringRaw (const DDFilteredView &view, const std::string &name, std::string &value) |
DEFINE_FWK_MODULE (ListIds) | |
static std::ostream & | operator<< (std::ostream &out, const math::XYZVector &v) |
static double dddGetDouble | ( | const std::string & | s, |
const DDFilteredView & | view | ||
) | [inline, static] |
Definition at line 46 of file ListIds.cc.
References dddGetStringRaw(), and relativeConstraints::value.
{ std::string value; if (dddGetStringRaw(view, s, value)) return double(::atof(value.c_str())); else return NAN; }
static std::string dddGetString | ( | const std::string & | s, |
const DDFilteredView & | view | ||
) | [inline, static] |
Definition at line 55 of file ListIds.cc.
References dddGetStringRaw(), and relativeConstraints::value.
Referenced by ListIds::analyze().
{ std::string value; if (dddGetStringRaw(view, s, value)) return value; else return std::string(); }
static bool dddGetStringRaw | ( | const DDFilteredView & | view, |
const std::string & | name, | ||
std::string & | value | ||
) | [static] |
Definition at line 28 of file ListIds.cc.
References DDfetch(), query::result, DDFilteredView::specificsV(), and DDValue::strings().
Referenced by dddGetDouble(), and dddGetString().
{ DDValue parameter(name); std::vector<const DDsvalues_type *> result; view.specificsV(result); for (std::vector<const DDsvalues_type *>::iterator it = result.begin(); it != result.end(); ++it) { if (DDfetch(*it,parameter)) { if (parameter.strings().size() == 1) { value = parameter.strings().front(); return true; } else { return false; } } } return false; }
DEFINE_FWK_MODULE | ( | ListIds | ) |
static std::ostream& operator<< | ( | std::ostream & | out, |
const math::XYZVector & | v | ||
) | [inline, static] |