CMS 3D CMS Logo

Classes | Functions
ListGroups.cc File Reference
#include <string>
#include <vector>
#include <map>
#include <iostream>
#include <iomanip>
#include "boost/format.hpp"
#include "FWCore/Framework/interface/one/EDAnalyzer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.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/Records/interface/IdealGeometryRecord.h"
#include <TROOT.h>
#include <TProfile2D.h>
#include <TColor.h>
#include <TStyle.h>
#include <TCanvas.h>
#include <TFrame.h>
#include <TText.h>
#include <TLegend.h>
#include <TLegendEntry.h>
#include <TLine.h>
#include "MaterialAccountingGroup.h"
#include "TrackingMaterialPlotter.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

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

Definition at line 69 of file ListGroups.cc.

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

Referenced by ListGroups::analyze().

69  {
71  if (dddGetStringRaw(view, s, value))
72  return value;
73  else
74  return std::string();
75 }
static bool dddGetStringRaw(const DDFilteredView &view, const std::string &name, std::string &value)
Definition: ListGroups.cc:40
static bool dddGetStringRaw ( const DDFilteredView view,
const std::string &  name,
std::string &  value 
)
static

Definition at line 40 of file ListGroups.cc.

References DDfetch(), Exception, ValidateTausOnQCD_cff::parameter, mps_fire::result, DDFilteredView::specificsV(), and DDValue::strings().

Referenced by dddGetString().

40  {
41  std::vector<const DDsvalues_type *> result;
42  view.specificsV(result);
43  for (std::vector<const DDsvalues_type *>::iterator it = result.begin(); it != result.end(); ++it) {
45  if (DDfetch(*it, parameter)) {
46  if (parameter.strings().size() == 1) {
47  value = parameter.strings().front();
48  return true;
49  } else {
50  throw cms::Exception("Configuration") << " ERROR: multiple " << name << " tags encountered";
51  return false;
52  }
53  }
54  }
55  return false;
56 }
bool DDfetch(const DDsvalues_type *, DDValue &)
helper for retrieving DDValues from DDsvalues_type *.
Definition: DDsvalues.cc:81
Definition: value.py:1
void specificsV(std::vector< const DDsvalues_type * > &result) const
User specific data attached to the current node.
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< ListGroups > > s_filler__LINE__ ( "ListGroups"  )
static
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< ListGroups > > s_maker__LINE__ ( "ListGroups"  )
static