CMS 3D CMS Logo

PythonParameterSet.cc
Go to the documentation of this file.
3 
5 : theParameterSet()
6 {
7 }
8 
9 
10 void PythonParameterSet::addVPSet(bool tracked, std::string const& name,
12 {
13  std::vector<PythonParameterSet> v
14  = edm::toVector<PythonParameterSet>(value);
15  std::vector<edm::ParameterSet> v2;
16  v2.reserve(v.size());
17  for(std::vector<PythonParameterSet>::iterator ppsetItr = v.begin(), ppsetItrEnd = v.end();
18  ppsetItr != ppsetItrEnd; ++ppsetItr)
19  {
20  v2.push_back(ppsetItr->theParameterSet);
21  }
22  addParameter(tracked, name, v2);
23 }
24 
25 
27 {
28  std::vector<edm::ParameterSet> const& v =
30 
31  // convert to PythonParameterSets
33  for(std::vector<edm::ParameterSet>::const_iterator psetItr = v.begin(), psetItrEnd = v.end();
34  psetItr != psetItrEnd; ++psetItr)
35  {
36  l.append(PythonParameterSet(*psetItr));
37  }
38 
39  return l;
40 }
41 
42 
44 {
45  addParameter(tracked, name, edm::FileInPath(value));
46 }
edm::ParameterSet theParameterSet
VParameterSet const & getParameterSetVector(std::string const &name) const
boost::python::list getVPSet(bool tracked, std::string const &name)
void addParameter(bool tracked, std::string const &name, T const &value)
Definition: value.py:1
void addNewFileInPath(bool tracked, std::string const &name, std::string const &value)
void addVPSet(bool tracked, std::string const &name, boost::python::list value)
VParameterSet getUntrackedParameterSetVector(std::string const &name, VParameterSet const &defaultValue) const
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run