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__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.

68  {
70  if (dddGetStringRaw(view, s, value))
71  return value;
72  else
73  return std::string();
74 }

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

Referenced by ListGroups::analyze().

◆ dddGetStringRaw()

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

Definition at line 39 of file ListGroups.cc.

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 }

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

Referenced by dddGetString().

◆ s_filler__LINE__()

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

◆ s_maker__LINE__()

static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< ListGroups > > s_maker__LINE__ ( "ListGroups"  )
static
pfMETsysShiftCorrections_cfi.parameter
parameter
Definition: pfMETsysShiftCorrections_cfi.py:118
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
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
value
Definition: value.py:1
dddGetStringRaw
static bool dddGetStringRaw(const DDFilteredView &view, const std::string &name, std::string &value)
Definition: ListGroups.cc:39
DDValue
Definition: DDValue.h:21
relativeConstraints.value
value
Definition: relativeConstraints.py:53
Exception
Definition: hltDiff.cc:246
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
mps_fire.result
result
Definition: mps_fire.py:311