CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
edm::MainParameterSet Struct Reference

#include <ParameterSetConverter.h>

Public Member Functions

 MainParameterSet (ParameterSetID const &oldID, std::string const &psetString)
 
 ~MainParameterSet ()
 

Public Attributes

StringVector endPaths_
 
ParameterSetID oldID_
 
ParameterSet parameterSet_
 
StringVector paths_
 
std::set< std::string > triggerPaths_
 

Detailed Description

Definition at line 19 of file ParameterSetConverter.h.

Constructor & Destructor Documentation

edm::MainParameterSet::MainParameterSet ( ParameterSetID const &  oldID,
std::string const &  psetString 
)

Definition at line 30 of file ParameterSetConverter.cc.

References MillePedeFileConverter_cfg::e, endPaths_, edm::ParameterSet::existsAs(), edm::ParameterSet::getParameter(), mps_fire::i, parameterSet_, paths_, edm::search_all(), and triggerPaths_.

31  : oldID_(oldID),
32  parameterSet_(psetString),
34  endPaths_(),
35  triggerPaths_() {
36  if (parameterSet_.existsAs<StringVector>("@end_paths")) {
38  }
39  for (StringVector::const_iterator i = paths_.begin(), e = paths_.end(); i != e; ++i) {
40  if (!search_all(endPaths_, *i)) {
41  triggerPaths_.insert(*i);
42  }
43  }
44  }
T getParameter(std::string const &) const
bool existsAs(std::string const &parameterName, bool trackiness=true) const
checks if a parameter exists as a given type
Definition: ParameterSet.h:161
std::vector< std::string > StringVector
bool search_all(ForwardSequence const &s, Datum const &d)
Definition: Algorithms.h:36
std::set< std::string > triggerPaths_
edm::MainParameterSet::~MainParameterSet ( )

Definition at line 46 of file ParameterSetConverter.cc.

46 {}

Member Data Documentation

StringVector edm::MainParameterSet::endPaths_

Definition at line 25 of file ParameterSetConverter.h.

Referenced by MainParameterSet().

ParameterSetID edm::MainParameterSet::oldID_

Definition at line 22 of file ParameterSetConverter.h.

ParameterSet edm::MainParameterSet::parameterSet_

Definition at line 23 of file ParameterSetConverter.h.

Referenced by MainParameterSet().

StringVector edm::MainParameterSet::paths_
std::set<std::string> edm::MainParameterSet::triggerPaths_

Definition at line 26 of file ParameterSetConverter.h.

Referenced by MainParameterSet().