CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions | Variables
citk Namespace Reference

Classes

class  IsolationConeDefinitionBase
 
class  PFIsolationSumProducer
 

Functions

 for (const auto &isodef:isoDefs)
 

Variables

 _isolate_with
 
const std::vector
< edm::ParameterSet > & 
isoDefs
 

Function Documentation

citk::for ( const auto &isodef:isoDefs  )

Definition at line 77 of file CITKPFIsolationSumProducer.cc.

References HPSPFTaus_cff::_isolation_types, HLT_25ns14e33_v1_cff::coneSize, edm::hlt::Exception, reco::get(), mergeVDriftHistosByStation::name, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by HOCalibAnalyzer::analyze(), spr::cGenSimInfo(), InvRingCalib::endOfLoop(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), NtupleManager::FillFitParameters(), HcalLutManager_test::getLutSetFromFile_test(), InputTagDistributor::inputTag(), SiStripFedCablingFakeESSource::make(), SiPixelGenError::postInit(), SiPixelTemplate::postInit(), rxor(), TrackingMaterialAnalyser::split(), DQMStore::~DQMStore(), EcalPedOffset::~EcalPedOffset(), and SiPixelGaussianSmearingRecHitConverterAlgorithm::~SiPixelGaussianSmearingRecHitConverterAlgorithm().

77  : isoDefs ) {
78  const std::string& name =
79  isodef.getParameter<std::string>("isolationAlgo");
80  const float coneSize = isodef.getParameter<double>("coneSize");
81  char buf[50];
82  sprintf(buf,"DR%.2f",coneSize);
83  std::string coneName(buf);
84  auto decimal = coneName.find('.');
85  if( decimal != std::string::npos ) coneName.erase(decimal,1);
86  const std::string& isotype =
87  isodef.getParameter<std::string>("isolateAgainst");
88  IsolationConeDefinitionBase* theisolator =
89  CITKIsolationConeDefinitionFactory::get()->create(name,isodef);
90  theisolator->setConsumes(consumesCollector());
91  const auto thetype = _typeMap.find(isotype);
92  if( thetype == _typeMap.end() ) {
93  throw cms::Exception("InvalidIsolationType")
94  << "Isolation type: " << isotype << " is not available in the "
95  << "list of allowed isolations!.";
96  }
97  _isolation_types[thetype->second].emplace_back(theisolator);
98  const std::string dash("-");
99  std::string pname = isotype+dash+coneName+dash+theisolator->additionalCode();
100  _product_names[thetype->second].emplace_back(pname);
101  produces<edm::ValueMap<float> >(pname);
102  }
list _isolation_types
const std::vector< edm::ParameterSet > & isoDefs
T get(const Candidate &c)
Definition: component.h:55

Variable Documentation

citk::_isolate_with
Initial value:
=
consumes<CandView>(c.getParameter<edm::InputTag>("srcForIsolationCone"))

Definition at line 73 of file CITKPFIsolationSumProducer.cc.

const std::vector<edm::ParameterSet>& citk::isoDefs
Initial value:
=
c.getParameterSetVector("isolationConeDefinitions")

Definition at line 75 of file CITKPFIsolationSumProducer.cc.