test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions | Variables
TrackTimeValueMapProducer.cc File Reference
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/global/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DataFormats/Common/interface/ValueMap.h"
#include "DataFormats/Common/interface/View.h"
#include "DataFormats/TrackReco/interface/Track.h"
#include "DataFormats/TrackReco/interface/TrackFwd.h"
#include "DataFormats/GsfTrackReco/interface/GsfTrack.h"
#include "DataFormats/GsfTrackReco/interface/GsfTrackFwd.h"
#include "SimDataFormats/Track/interface/SimTrackContainer.h"
#include "SimDataFormats/Vertex/interface/SimVertexContainer.h"
#include "SimTracker/TrackerHitAssociation/interface/TrackerHitAssociator.h"
#include "SimDataFormats/TrackingAnalysis/interface/TrackingParticle.h"
#include "SimDataFormats/TrackingAnalysis/interface/TrackingVertex.h"
#include "SimDataFormats/TrackingAnalysis/interface/TrackingVertexContainer.h"
#include "SimDataFormats/Associations/interface/TrackToTrackingParticleAssociator.h"
#include <memory>
#include "SimTracker/TrackAssociation/interface/ResolutionModel.h"
#include "CLHEP/Units/SystemOfUnits.h"
#include "FWCore/Utilities/interface/isFinite.h"
#include "CLHEP/Random/RandGauss.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "FWCore/Utilities/interface/RandomNumberGenerator.h"
#include "FWCore/Utilities/interface/transform.h"

Go to the source code of this file.

Classes

class  TrackTimeValueMapProducer
 

Functions

 for (const auto &reso:resos)
 
 if (!rng.isAvailable())
 
static const
edm::ParameterSetDescriptionFillerPluginFactory::PMaker
< edm::ParameterSetDescriptionFiller
< TrackTimeValueMapProducer > > 
s_filler__LINE__ ("TrackTimeValueMapProducer")
 
static const
edm::MakerPluginFactory::PMaker
< edm::WorkerMaker
< TrackTimeValueMapProducer > > 
s_maker__LINE__ ("TrackTimeValueMapProducer")
 

Variables

const std::vector
< edm::ParameterSet > & 
resos = conf.getParameterSetVector("resolutionModels")
 
edm::Service
< edm::RandomNumberGenerator
rng
 

Function Documentation

for ( const auto &reso:resos  )

Definition at line 96 of file TrackTimeValueMapProducer.cc.

References reco::get(), mergeVDriftHistosByStation::name, dtDQMClient_cfg::resolution, TrackTimeValueMapProducer::resolutions_, and AlCaHLTBitMon_QueryRunRegistry::string.

96  : resos ) {
97  const std::string& name = reso.getParameter<std::string>("modelName");
98  ResolutionModel* resomod = ResolutionModelFactory::get()->create(name,reso);
99  resolutions_.emplace_back( resomod );
100 
101  // times and time resolutions for general tracks
102  produces<edm::ValueMap<float> >(generalTracksName+name);
103  produces<edm::ValueMap<float> >(generalTracksName+name+resolution);
104 
105  //for gsf tracks
106  produces<edm::ValueMap<float> >(gsfTracksName+name);
107  produces<edm::ValueMap<float> >(gsfTracksName+name+resolution);
108  }
const std::vector< edm::ParameterSet > & resos
T get(const Candidate &c)
Definition: component.h:55
if ( !rng.  isAvailable())

Definition at line 111 of file TrackTimeValueMapProducer.cc.

References Exception.

111  {
112  throw cms::Exception("Configuration")
113  << "TrackTimeValueMapProducer::TrackTimeValueMapProducer() - RandomNumberGeneratorService is not present in configuration file.\n"
114  << "Add the service in the configuration file or remove the modules that require it.";
115  }
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< TrackTimeValueMapProducer > > s_filler__LINE__ ( "TrackTimeValueMapProducer"  )
static
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< TrackTimeValueMapProducer > > s_maker__LINE__ ( "TrackTimeValueMapProducer"  )
static

Variable Documentation

const std::vector<edm::ParameterSet>& resos = conf.getParameterSetVector("resolutionModels")

Definition at line 110 of file TrackTimeValueMapProducer.cc.

Referenced by BaseEvtVtxGenerator::BaseEvtVtxGenerator(), edm::BaseFlatGunProducer::BaseFlatGunProducer(), edm::BaseRandomtXiGunProducer::BaseRandomtXiGunProducer(), FFTJetVertexAdder::beginJob(), edm::EventProcessor::beginLumi(), cms::Phase2TrackerDigitizer::beginLuminosityBlock(), EcalDigiProducer::beginLuminosityBlock(), ExternalLHEProducer::beginRunProduce(), ElectronEnergyCalibrator::calibrate(), CastorDigiProducer::CastorDigiProducer(), CSCDigiProducer::CSCDigiProducer(), edm::DataMixingSiStripMCDigiWorker::DataMixingSiStripMCDigiWorker(), DigiSimLinkProducer::DigiSimLinkProducer(), DTDigitizer::DTDigitizer(), EcalBarrelClusterFastTimer::EcalBarrelClusterFastTimer(), EcalTBMCInfoProducer::EcalTBMCInfoProducer(), ESElectronicsSim::encode(), GaussianZBeamSpotFilter::filter(), edm::RandomFilter::filter(), cms::SiPixelDigitizer::finalizeEvent(), edm::FlatBaseThetaGunProducer::FlatBaseThetaGunProducer(), PhotonEnergyCalibratorRun2::gauss(), ElectronEnergyCalibratorRun2::gauss(), GaussianZBeamSpotFilter::GaussianZBeamSpotFilter(), GEMDigiProducer::GEMDigiProducer(), LaserBeamsBarrel::GeneratePrimaries(), LaserBeamsTEC2::GeneratePrimaries(), LaserBeamsTEC1::GeneratePrimaries(), HectorProducer::HectorProducer(), CosmicMuonGenerator::initialize(), L1DummyProducer::L1DummyProducer(), L1EmulBias::L1EmulBias(), ME0DigiPreRecoProducer::ME0DigiPreRecoProducer(), ME0ReDigiProducer::ME0ReDigiProducer(), edm::PileUp::PileUp(), edm::EventProcessor::processEvent(), edm::FlatRandomMultiParticlePGunProducer::produce(), edm::FlatRandomEThetaGunProducer::produce(), edm::FlatRandomPtThetaGunProducer::produce(), edm::GaussRandomPThetaGunProducer::produce(), edm::FileRandomKEThetaGunProducer::produce(), edm::RandomtXiGunProducer::produce(), edm::FlatRandomOneOverPtGunProducer::produce(), CSCDigiProducer::produce(), edm::FlatRandomEGunProducer::produce(), edm::FlatRandomPtGunProducer::produce(), edm::MultiParticleInConeGunProducer::produce(), edm::ExpoRandomPtGunProducer::produce(), edm::ExpoRandomPGunProducer::produce(), ME0DigiPreRecoProducer::produce(), RPCDigiProducer::produce(), EcalTBMCInfoProducer::produce(), GEMDigiProducer::produce(), RPCandIRPCDigiProducer::produce(), QjetsAdder::produce(), HectorProducer::produce(), BaseEvtVtxGenerator::produce(), ME0ReDigiProducer::produce(), DigiSimLinkProducer::produce(), SubsystemNeutronWriter::produce(), EcalBarrelClusterFastTimer::produce(), L1EmulBias::produce(), TrackTimeValueMapProducer::produce(), L1DummyProducer::produce(), DTDigitizer::produce(), FFTJetVertexAdder::produce(), BetaBoostEvtVtxGenerator::produce(), cms::HTTTopJetProducer::produce(), edm::DataMixingSiPixelMCDigiWorker::putSiPixel(), edm::DataMixingSiStripMCDigiWorker::putSiStrip(), HGCDigiProducer::randomEngine(), FTLDigiProducer::randomEngine(), HcalDigiProducer::randomEngine(), HcalTBDigiProducer::randomEngine(), CastorDigiProducer::randomEngine(), SiStripDigitizer::randomEngine(), cms::SiPixelDigitizer::randomEngine(), EcalDigiProducer::randomEngine(), edm::PileUp::randomEngine(), EcalMixingModuleValidation::randomEngine(), RandomEngineAndDistribution::RandomEngineAndDistribution(), edm::RandomEngineSentry< T >::RandomEngineSentry(), edm::RandomFilter::RandomFilter(), RPCandIRPCDigiProducer::RPCandIRPCDigiProducer(), RPCDigiProducer::RPCDigiProducer(), AlignableModifier::setSeed(), cms::SiPixelDigitizer::SiPixelDigitizer(), SiStripDigitizer::SiStripDigitizer(), and SubsystemNeutronWriter::SubsystemNeutronWriter().