CMS 3D CMS Logo

Classes | Functions
ListIds.cc File Reference
#include <string>
#include <vector>
#include <iostream>
#include <algorithm>
#include "FWCore/Framework/interface/one/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 std::string dddGetString (const std::string &s, const DDFilteredView &view)
 
static bool dddGetStringRaw (const DDFilteredView &view, const std::string &name, std::string &value)
 
static std::ostream & operator<< (std::ostream &out, const math::XYZVector &v)
 
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker< edm::ParameterSetDescriptionFiller< ListIds > > s_filler__LINE__ ("ListIds")
 
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< ListIds > > s_maker__LINE__ ("ListIds")
 

Function Documentation

◆ dddGetString()

static std::string dddGetString ( const std::string &  s,
const DDFilteredView view 
)
inlinestatic

Definition at line 56 of file ListIds.cc.

56  {
58  if (dddGetStringRaw(view, s, value))
59  return value;
60  else
61  return std::string();
62 }

References dddGetStringRaw(), alignCSCRings::s, AlCaHLTBitMon_QueryRunRegistry::string, and relativeConstraints::value.

Referenced by ListIds::analyze().

◆ dddGetStringRaw()

static bool dddGetStringRaw ( const DDFilteredView view,
const std::string &  name,
std::string &  value 
)
static

Definition at line 28 of file ListIds.cc.

28  {
30  std::vector<const DDsvalues_type *> result;
31  view.specificsV(result);
32  for (std::vector<const DDsvalues_type *>::iterator it = result.begin(); it != result.end(); ++it) {
33  if (DDfetch(*it, parameter)) {
34  if (parameter.strings().size() == 1) {
35  value = parameter.strings().front();
36  return true;
37  } else {
38  return false;
39  }
40  }
41  }
42  return false;
43 }

References DDfetch(), Skims_PA_cff::name, pfMETsysShiftCorrections_cfi::parameter, mps_fire::result, and DDFilteredView::specificsV().

Referenced by dddGetString().

◆ operator<<()

static std::ostream& operator<< ( std::ostream &  out,
const math::XYZVector v 
)
inlinestatic

Definition at line 64 of file ListIds.cc.

64  {
65  return out << "(" << v.rho() << ", " << v.z() << ", " << v.phi() << ")";
66 }

References MillePedeFileConverter_cfg::out, and findQualityFiles::v.

◆ s_filler__LINE__()

static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< ListIds > > s_filler__LINE__ ( "ListIds"  )
static

◆ s_maker__LINE__()

static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< ListIds > > s_maker__LINE__ ( "ListIds"  )
static
pfMETsysShiftCorrections_cfi.parameter
parameter
Definition: pfMETsysShiftCorrections_cfi.py:118
findQualityFiles.v
v
Definition: findQualityFiles.py:179
alignCSCRings.s
s
Definition: alignCSCRings.py:92
DDfetch
bool DDfetch(const DDsvalues_type *, DDValue &)
helper for retrieving DDValues from DDsvalues_type *.
Definition: DDsvalues.cc:79
DDFilteredView::specificsV
void specificsV(std::vector< const DDsvalues_type * > &result) const
User specific data attached to the current node.
Definition: DDFilteredView.cc:38
value
Definition: value.py:1
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
DDValue
Definition: DDValue.h:22
relativeConstraints.value
value
Definition: relativeConstraints.py:53
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
mps_fire.result
result
Definition: mps_fire.py:311
dddGetStringRaw
static bool dddGetStringRaw(const DDFilteredView &view, const std::string &name, std::string &value)
Definition: ListIds.cc:28