CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
InputTagDistributor Class Reference

#include <InputTagDistributor.h>

Public Member Functions

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

Private Attributes

std::map< std::string, edm::InputTaginputTags_
 

Detailed Description

Definition at line 14 of file InputTagDistributor.h.

Constructor & Destructor Documentation

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(), mps_fire::i, and inputTags_.

Referenced by InputTagDistributorService::init().

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
std::vector< std::string > getParameterNamesForType(bool trackiness=true) const
Definition: ParameterSet.h:169
std::map< std::string, edm::InputTag > inputTags_

Member Function Documentation

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

Definition at line 21 of file InputTagDistributor.h.

References inputTags_, and alignCSCRings::s.

Referenced by InputTagDistributorService::retrieve().

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_

Member Data Documentation

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

Definition at line 35 of file InputTagDistributor.h.

Referenced by inputTag(), and InputTagDistributor().