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 "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 std::ostream & operator<< (std::ostream &out, const math::XYZVector &v)
 
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 71 of file ListGroups.cc.

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

Referenced by ListGroups::analyze().

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

Definition at line 41 of file ListGroups.cc.

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

Referenced by dddGetString().

41  {
42  std::vector<const DDsvalues_type *> result;
43  view.specificsV(result);
44  for (std::vector<const DDsvalues_type *>::iterator it = result.begin(); it != result.end(); ++it) {
46  if (DDfetch(*it, parameter)) {
47  if (parameter.strings().size() == 1) {
48  value = parameter.strings().front();
49  return true;
50  } else {
51  throw cms::Exception("Configuration")<< " ERROR: multiple " << name << " tags encountered";
52  return false;
53  }
54  }
55  }
56  return false;
57 }
bool DDfetch(const DDsvalues_type *, DDValue &)
helper for retrieving DDValues from DDsvalues_type *.
Definition: DDsvalues.cc:80
Definition: value.py:1
void specificsV(std::vector< const DDsvalues_type * > &result) const
User specific data attached to the current node.
static std::ostream& operator<< ( std::ostream &  out,
const math::XYZVector v 
)
inlinestatic

Definition at line 80 of file ListGroups.cc.

References alignBH_cfg::fixed.

80  {
81  out << std::fixed << std::setprecision(3);
82  return out << "(" << v.rho() << ", " << v.z() << ", " << v.phi() << ")";
83 }
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