CMS 3D CMS Logo

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

Classes

class  IsolationConeDefinitionBase
 
class  PFIsolationSumProducer
 
class  PFIsolationSumProducerForPUPPI
 

Functions

 for (const auto &isodef:isoDefs)
 
 if (!c.getParameter< edm::InputTag >("puppiValueMap").label().empty())
 

Variables

 _isolate_with = consumes<CandView>(c.getParameter<edm::InputTag>("srcForIsolationCone"))
 
 else
 
const std::vector
< edm::ParameterSet > & 
isoDefs = c.getParameterSetVector("isolationConeDefinitions")
 
 usePUPPINoLepton = c.getParameter<bool>("usePUPPINoLepton")
 

Function Documentation

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

Definition at line 72 of file CITKPFIsolationSumProducer.cc.

References visDQMUpload::buf, HLT_FULL_cff::coneSize, Exception, get, eostools::move(), mergeVDriftHistosByStation::name, unpackData-CaloStage2::pname, and AlCaHLTBitMon_QueryRunRegistry::string.

72  : isoDefs) {
73  const std::string& name = isodef.getParameter<std::string>("isolationAlgo");
74  const float coneSize = isodef.getParameter<double>("coneSize");
75  char buf[50];
76  sprintf(buf, "DR%.2f", coneSize);
77  std::string coneName(buf);
78  auto decimal = coneName.find('.');
79  if (decimal != std::string::npos)
80  coneName.erase(decimal, 1);
81  const std::string& isotype = isodef.getParameter<std::string>("isolateAgainst");
82  auto theisolator = CITKIsolationConeDefinitionFactory::get()->create(name, isodef);
83  theisolator->setConsumes(consumesCollector());
84  const auto thetype = _typeMap.find(isotype);
85  if (thetype == _typeMap.end()) {
86  throw cms::Exception("InvalidIsolationType") << "Isolation type: " << isotype << " is not available in the "
87  << "list of allowed isolations!.";
88  }
89  const std::string dash("-");
90  std::string pname = isotype + dash + coneName + dash + theisolator->additionalCode();
91  _product_names[thetype->second].emplace_back(pname);
92  produces<edm::ValueMap<float>>(pname);
93  _isolation_types[thetype->second].emplace_back(std::move(theisolator));
94  }
const std::vector< edm::ParameterSet > & isoDefs
def move
Definition: eostools.py:511
#define get
citk::if ( !c.getParameter< edm::InputTag "puppiValueMap").label().empty()

Definition at line 66 of file CITKPFIsolationSumProducerForPUPPI.cc.

References c.

66  {
67  puppiValueMapToken_ = mayConsume<edm::ValueMap<float>>(
68  c.getParameter<edm::InputTag>("puppiValueMap")); //getting token for puppiValueMap
69  useValueMapForPUPPI = true;
70  } else {
const edm::EventSetup & c

Variable Documentation

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

Definition at line 70 of file CITKPFIsolationSumProducer.cc.

citk::else
Initial value:
{
useValueMapForPUPPI = false

Definition at line 70 of file CITKPFIsolationSumProducerForPUPPI.cc.

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

Definition at line 71 of file CITKPFIsolationSumProducer.cc.

citk::usePUPPINoLepton = c.getParameter<bool>("usePUPPINoLepton")

Definition at line 72 of file CITKPFIsolationSumProducerForPUPPI.cc.