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)
 

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:195
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:195

Member Function Documentation

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

Definition at line 20 of file InputTagDistributor.h.

References 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_
const edm::InputTag& InputTagDistributor::inputTag ( std::string  s)
inline

Definition at line 20 of file InputTagDistributor.h.

References inputTags_.

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_

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().