CMS 3D CMS Logo

Classes | Functions
ListGroups.cc File Reference
#include <iomanip>
#include <iostream>
#include <map>
#include <string>
#include <vector>
#include <fmt/printf.h>
#include <TCanvas.h>
#include <TColor.h>
#include <TFrame.h>
#include <TLegend.h>
#include <TLegendEntry.h>
#include <TLine.h>
#include <TProfile2D.h>
#include <TROOT.h>
#include <TStyle.h>
#include <TText.h>
#include "DataFormats/DetId/interface/DetId.h"
#include "DataFormats/Math/interface/Vector3D.h"
#include "DetectorDescription/Core/interface/DDCompactView.h"
#include "DetectorDescription/Core/interface/DDFilteredView.h"
#include "DetectorDescription/Core/interface/DDMaterial.h"
#include "FWCore/Framework/interface/ESTransientHandle.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/one/EDAnalyzer.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/ParameterSet/interface/types.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "Geometry/Records/interface/IdealGeometryRecord.h"
#include "MaterialAccountingGroup.h"
#include "TrackingMaterialPlotter.h"
#include "ListGroupsMaterialDifference.h"
#include "FWCore/PluginManager/interface/ModuleDef.h"
#include "FWCore/Framework/interface/MakerMacros.h"

Go to the source code of this file.

Classes

class  ListGroups
 

Functions

static std::string dddGetString (const std::string &s, DDFilteredView const &view)
 
static bool dddGetStringRaw (const DDFilteredView &view, const std::string &name, std::string &value)
 
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker< edm::ParameterSetDescriptionFiller< ListGroups > > s_filler_0__LINE__ ("ListGroups")
 
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< ListGroups > > s_maker__LINE__ ("ListGroups")
 

Function Documentation

◆ dddGetString()

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

Definition at line 68 of file ListGroups.cc.

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

Referenced by ListGroups::analyze().

68  {
70  if (dddGetStringRaw(view, s, value))
71  return value;
72  else
73  return std::string();
74 }
Definition: value.py:1
static bool dddGetStringRaw(const DDFilteredView &view, const std::string &name, std::string &value)
Definition: ListGroups.cc:39

◆ dddGetStringRaw()

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

Definition at line 39 of file ListGroups.cc.

References DDfetch(), Exception, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, Skims_PA_cff::name, and mps_fire::result.

Referenced by dddGetString().

39  {
40  std::vector<const DDsvalues_type *> result;
41  view.specificsV(result);
42  for (std::vector<const DDsvalues_type *>::iterator it = result.begin(); it != result.end(); ++it) {
44  if (DDfetch(*it, parameter)) {
45  if (parameter.strings().size() == 1) {
46  value = parameter.strings().front();
47  return true;
48  } else {
49  throw cms::Exception("Configuration") << " ERROR: multiple " << name << " tags encountered";
50  return false;
51  }
52  }
53  }
54  return false;
55 }
bool DDfetch(const DDsvalues_type *, DDValue &)
helper for retrieving DDValues from DDsvalues_type *.
Definition: DDsvalues.cc:79
Definition: value.py:1

◆ s_filler_0__LINE__()

static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< ListGroups > > s_filler_0__LINE__ ( "ListGroups"  )
static

◆ s_maker__LINE__()

static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< ListGroups > > s_maker__LINE__ ( "ListGroups"  )
static