#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/ParameterSet/interface/ParameterSet.h"
#include "FWCore/ParameterSet/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 45 of file ListIds.cc.
References dddGetStringRaw(), and value.
00045 { 00046 std::string value; 00047 if (dddGetStringRaw(view, s, value)) 00048 return double(::atof(value.c_str())); 00049 else 00050 return NAN; 00051 }
static std::string dddGetString | ( | const std::string & | s, | |
const DDFilteredView & | view | |||
) | [inline, static] |
Definition at line 54 of file ListIds.cc.
References dddGetStringRaw(), and value.
00054 { 00055 std::string value; 00056 if (dddGetStringRaw(view, s, value)) 00057 return value; 00058 else 00059 return std::string(); 00060 }
static bool dddGetStringRaw | ( | const DDFilteredView & | view, | |
const std::string & | name, | |||
std::string & | value | |||
) | [static] |
Definition at line 27 of file ListIds.cc.
References DDfetch(), it, parseConfig::parameter, HLT_VtxMuL3::result, DDFilteredView::specificsV(), and DDValue::strings().
00027 { 00028 DDValue parameter(name); 00029 std::vector<const DDsvalues_type *> result; 00030 view.specificsV(result); 00031 for (std::vector<const DDsvalues_type *>::iterator it = result.begin(); it != result.end(); ++it) { 00032 if (DDfetch(*it,parameter)) { 00033 if (parameter.strings().size() == 1) { 00034 value = parameter.strings().front(); 00035 return true; 00036 } else { 00037 return false; 00038 } 00039 } 00040 } 00041 return false; 00042 }
DEFINE_FWK_MODULE | ( | ListIds | ) |
static std::ostream& operator<< | ( | std::ostream & | out, | |
const math::XYZVector & | v | |||
) | [inline, static] |