CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
CandIsolatorFromDeposits.cc File Reference
#include "PhysicsTools/IsolationAlgos/plugins/CandIsolatorFromDeposits.h"
#include "FWCore/Framework/interface/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "DataFormats/TrackReco/interface/Track.h"
#include "DataFormats/MuonReco/interface/Muon.h"
#include "DataFormats/RecoCandidate/interface/IsoDepositDirection.h"
#include "DataFormats/RecoCandidate/interface/IsoDeposit.h"
#include "DataFormats/RecoCandidate/interface/IsoDepositFwd.h"
#include "DataFormats/RecoCandidate/interface/IsoDepositVetos.h"
#include "DataFormats/Candidate/interface/CandAssociation.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <string>
#include <boost/regex.hpp>
#include "PhysicsTools/IsolationAlgos/interface/IsoDepositVetoFactory.h"

Go to the source code of this file.

Functions

bool isNumber (const std::string &str)
 
static const
edm::ParameterSetDescriptionFillerPluginFactory::PMaker
< edm::ParameterSetDescriptionFiller
< CandIsolatorFromDeposits > > 
s_filler__LINE__ ("CandIsolatorFromDeposits")
 
static const
edm::MakerPluginFactory::PMaker
< edm::WorkerMaker
< CandIsolatorFromDeposits > > 
s_maker__LINE__ ("CandIsolatorFromDeposits")
 
double toNumber (const std::string &str)
 

Function Documentation

bool isNumber ( const std::string &  str)

Definition at line 30 of file CandIsolatorFromDeposits.cc.

Referenced by CandIsolatorFromDeposits::SingleDeposit::SingleDeposit().

30  {
31  static boost::regex re("^[+-]?(\\d+\\.?|\\d*\\.\\d*)$");
32  return regex_match(str.c_str(), re);
33 }
static const edm::ParameterSetDescriptionFillerPluginFactory::PMaker<edm::ParameterSetDescriptionFiller< CandIsolatorFromDeposits > > s_filler__LINE__ ( "CandIsolatorFromDeposits"  )
static
static const edm::MakerPluginFactory ::PMaker< edm::WorkerMaker< CandIsolatorFromDeposits > > s_maker__LINE__ ( "CandIsolatorFromDeposits"  )
static
double toNumber ( const std::string &  str)

Definition at line 34 of file CandIsolatorFromDeposits.cc.

Referenced by CandIsolatorFromDeposits::SingleDeposit::SingleDeposit().

34  {
35  return atof(str.c_str());
36 }