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 HLT_FULL_cff::coneSize, Exception, reco::get(), mergeVDriftHistosByStation::name, unpackData-CaloStage2::pname, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by spr::cGenSimInfo(), InvRingCalib::endOfLoop(), SiStripBadAPVAlgorithmFromClusterOccupancy::extractBadAPVs(), NtupleManager::FillFitParameters(), HcalLutManager_test::getLutSetFromFile_test(), HcalDDDRecConstants::initialize(), InputTagDistributor::inputTag(), HcalGeomParameters::loadGeometry(), HGCalGeomParameters::loadGeometryHexagon(), SiStripFedCablingFakeESSource::make(), SiPixelGenError::postInit(), SiPixelTemplate::postInit(), rxor(), cond::synchronizationTypeFromName(), 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  }
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.