CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
InputTagDistributor Class Reference

#include <InputTagDistributor.h>

Public Member Functions

const edm::InputTaginputTag (std::string s)
 
const edm::InputTaginputTag (std::string s)
 
 InputTagDistributor (const edm::ParameterSet &pset)
 
 InputTagDistributor (const edm::ParameterSet &pset, edm::ConsumesCollector &iC)
 

Private Attributes

std::map< std::string,
edm::InputTag
inputTags_
 

Detailed Description

Definition at line 13 of file InputTagDistributor.h.

Constructor & Destructor Documentation

InputTagDistributor::InputTagDistributor ( const edm::ParameterSet pset)
inline

Definition at line 15 of file InputTagDistributor.h.

References edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterNamesForType(), i, and inputTags_.

15  {
16  std::vector< std::string > inpuTags = pset.getParameterNamesForType<edm::InputTag>();
17  for (std::vector< std::string >::iterator i=inpuTags.begin();i!=inpuTags.end();++i)
19  }
T getParameter(std::string const &) const
int i
Definition: DBlmapReader.cc:9
std::map< std::string, edm::InputTag > inputTags_
std::vector< std::string > getParameterNamesForType(bool trackiness=true) const
Definition: ParameterSet.h:194
InputTagDistributor::InputTagDistributor ( const edm::ParameterSet pset,
edm::ConsumesCollector iC 
)
inline

Definition at line 16 of file InputTagDistributor.h.

References edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterNamesForType(), i, and inputTags_.

16  {
17  std::vector< std::string > inpuTags = pset.getParameterNamesForType<edm::InputTag>();
18  for (std::vector< std::string >::iterator i=inpuTags.begin();i!=inpuTags.end();++i)
20  }
T getParameter(std::string const &) const
int i
Definition: DBlmapReader.cc:9
std::map< std::string, edm::InputTag > inputTags_
std::vector< std::string > getParameterNamesForType(bool trackiness=true) const
Definition: ParameterSet.h:194

Member Function Documentation

const edm::InputTag& InputTagDistributor::inputTag ( std::string  s)
inline

Definition at line 20 of file InputTagDistributor.h.

References citk::for(), and inputTags_.

Referenced by InputTagDistributorService::retrieve().

20  {
21  std::map<std::string, edm::InputTag>::iterator findMe = inputTags_.find(s);
22  if (findMe!=inputTags_.end())
23  return findMe->second;
24  else{
25  std::stringstream known;
26  for (findMe=inputTags_.begin();findMe!=inputTags_.end();++findMe)
27  known<<findMe->first<<" ---> "<<findMe->second<<"\n";
28  edm::LogError("InputTagDistributor")<<" cannot distribute InputTag: "<<s<<"\n knonw mapping is:\n"<<known.str();
29  }
30  return inputTags_[s];
31  }
std::map< std::string, edm::InputTag > inputTags_
for(const auto &isodef:isoDefs)
const edm::InputTag& InputTagDistributor::inputTag ( std::string  s)
inline

Definition at line 21 of file InputTagDistributor.h.

References citk::for(), and inputTags_.

21  {
22  std::map<std::string, edm::InputTag>::iterator findMe = inputTags_.find(s);
23  if (findMe!=inputTags_.end())
24  return findMe->second;
25  else{
26  std::stringstream known;
27  for (findMe=inputTags_.begin();findMe!=inputTags_.end();++findMe)
28  known<<findMe->first<<" ---> "<<findMe->second<<"\n";
29  edm::LogError("InputTagDistributor")<<" cannot distribute InputTag: "<<s<<"\n knonw mapping is:\n"<<known.str();
30  }
31  return inputTags_[s];
32  }
std::map< std::string, edm::InputTag > inputTags_
for(const auto &isodef:isoDefs)

Member Data Documentation

std::map< std::string, edm::InputTag > InputTagDistributor::inputTags_
private

Definition at line 34 of file InputTagDistributor.h.

Referenced by inputTag(), and InputTagDistributor().