CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
OccupancyPlots.cc File Reference
#include <memory>
#include <vector>
#include <map>
#include <limits>
#include "TProfile.h"
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/Run.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "FWCore/Utilities/interface/transform.h"
#include "DPGAnalysis/SiStripTools/interface/RunHistogramManager.h"
#include "CommonTools/UtilAlgos/interface/DetIdSelector.h"
#include "CalibTracker/SiPixelESProducers/interface/SiPixelDetInfoFileReader.h"
#include "FWCore/ParameterSet/interface/FileInPath.h"
#include "CalibFormats/SiStripObjects/interface/SiStripQuality.h"
#include "CondFormats/SiPixelObjects/interface/SiPixelQuality.h"
#include "CondFormats/DataRecord/interface/SiPixelQualityRcd.h"
#include "CalibTracker/Records/interface/SiStripQualityRcd.h"
#include "Geometry/CommonDetUnit/interface/GeomDet.h"
#include "Geometry/CommonDetUnit/interface/GlobalTrackingGeometry.h"
#include "Geometry/Records/interface/GlobalTrackingGeometryRecord.h"
#include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h"
#include "Geometry/TrackerGeometryBuilder/interface/StripGeomDetUnit.h"
#include "Geometry/Records/interface/TrackerDigiGeometryRecord.h"
#include "DataFormats/GeometryVector/interface/GlobalPoint.h"
#include "DataFormats/GeometryVector/interface/GlobalVector.h"
#include "DataFormats/GeometryVector/interface/LocalPoint.h"

Go to the source code of this file.

Classes

class  OccupancyPlots
 

Functions

 m_fp (iConfig.getUntrackedParameter< edm::FileInPath >("file", edm::FileInPath("CalibTracker/SiPixelESProducers/data/PixelSkimmedGeometry.txt")))
 
 m_occupancyMapTokens (edm::vector_transform(iConfig.getParameter< std::vector< edm::InputTag > >("occupancyMaps"), [this](edm::InputTag const &tag){return consumes< std::map< unsigned int, int > >(tag);}))
 
 m_pixelQualityToken (esConsumes< edm::Transition::EndRun >())
 
 m_rhm (consumesCollector())
 
 m_stripQualityToken (esConsumes< edm::Transition::EndRun >())
 
 m_tkGeomToken (esConsumes< edm::Transition::EndRun >())
 
 m_wantedsubdets ()
 
static const
edm::ParameterSetDescriptionFillerPluginFactory::PMaker
< edm::ParameterSetDescriptionFiller
< OccupancyPlots > > 
s_filler__LINE__ ("OccupancyPlots")
 
static const
edm::MakerPluginFactory::PMaker
< edm::WorkerMaker
< OccupancyPlots > > 
s_maker__LINE__ ("OccupancyPlots")
 

Function Documentation

m_fp ( iConfig.getUntrackedParameter< edm::FileInPath "file", edm::FileInPath("CalibTracker/SiPixelESProducers/data/PixelSkimmedGeometry.txt"))
m_occupancyMapTokens ( edm::  vector_transformiConfig.getParameter< std::vector< edm::InputTag > >("occupancyMaps"),[this](edm::InputTag const &tag){return consumes< std::map< unsigned int, int > >(tag);})
m_pixelQualityToken ( esConsumes< edm::Transition::EndRun ())
m_rhm ( consumesCollector()  )
m_stripQualityToken ( esConsumes< edm::Transition::EndRun ())
m_tkGeomToken ( esConsumes< edm::Transition::EndRun ())
m_wantedsubdets ( )

Definition at line 135 of file OccupancyPlots.cc.

References iConfig, and m_rhm().

135  {
136  //now do what ever initialization is needed
137 
138  m_avemultiplicity = m_rhm.makeTProfile("avemult", "Average Multiplicty", 6000, 0.5, 6000.5);
139  m_aveoccupancy = m_rhm.makeTProfile("aveoccu", "Average Occupancy", 6000, 0.5, 6000.5);
140 
141  m_nchannels_ideal = m_rhm.makeTH1F("nchannels_ideal", "Number of channels (ideal)", 6000, 0.5, 6000.5);
142  m_nchannels_real = m_rhm.makeTH1F("nchannels_real", "Number of channels (real)", 6000, 0.5, 6000.5);
143 
144  m_averadius = m_rhm.makeTProfile("averadius", "Average Module Radius", 6000, 0.5, 6000.5);
145  m_avez = m_rhm.makeTProfile("avez", "Average Module z coordinate", 6000, 0.5, 6000.5);
146  m_avex = m_rhm.makeTProfile("avex", "Average Module x coordinate", 6000, 0.5, 6000.5);
147  m_avey = m_rhm.makeTProfile("avey", "Average Module y coordinate", 6000, 0.5, 6000.5);
148 
149  m_zavedr = m_rhm.makeTProfile("zavedr", "Average z unit vector dr", 6000, 0.5, 6000.5);
150  m_zavedz = m_rhm.makeTProfile("zavedz", "Average z unit vector dz", 6000, 0.5, 6000.5);
151  m_zavedrphi = m_rhm.makeTProfile("zavedrphi", "Average z unit vector drphi", 6000, 0.5, 6000.5);
152  m_xavedr = m_rhm.makeTProfile("xavedr", "Average x unit vector dr", 6000, 0.5, 6000.5);
153  m_xavedz = m_rhm.makeTProfile("xavedz", "Average x unit vctor dz", 6000, 0.5, 6000.5);
154  m_xavedrphi = m_rhm.makeTProfile("xavedrphi", "Average Module x unit vector drphi", 6000, 0.5, 6000.5);
155  m_yavedr = m_rhm.makeTProfile("yavedr", "Average y unit vector dr", 6000, 0.5, 6000.5);
156  m_yavedz = m_rhm.makeTProfile("yavedz", "Average y unit vector dz", 6000, 0.5, 6000.5);
157  m_yavedrphi = m_rhm.makeTProfile("yavedrphi", "Average y unit vector drphi", 6000, 0.5, 6000.5);
158 
159  std::vector<edm::ParameterSet> wantedsubdets_ps =
160  iConfig.getParameter<std::vector<edm::ParameterSet> >("wantedSubDets");
161 
162  for (std::vector<edm::ParameterSet>::const_iterator wsdps = wantedsubdets_ps.begin(); wsdps != wantedsubdets_ps.end();
163  ++wsdps) {
164  unsigned int detsel = wsdps->getParameter<unsigned int>("detSelection");
165  std::vector<std::string> selstr = wsdps->getUntrackedParameter<std::vector<std::string> >("selection");
166  m_wantedsubdets[detsel] = DetIdSelector(selstr);
167  }
168 }
m_rhm(consumesCollector())
m_wantedsubdets()
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< OccupancyPlots > > s_filler__LINE__ ( "OccupancyPlots"  )
static
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< OccupancyPlots > > s_maker__LINE__ ( "OccupancyPlots"  )
static