13 #include <boost/algorithm/string.hpp>
15 #include "KeySymbols.h"
28 const std::string &
label,
29 const std::string &
value)
31 std::stringstream str(value);
34 bool fail = str.fail();
45 const std::string &
label,
46 const std::string &
value)
57 const std::string &
label,
58 const std::string &
value)
62 if (boost::iequals(value,
"true")) {
65 else if (boost::iequals(value,
"false")){
69 fwLog(
fwlog::kError) <<
"Invalid value. Possible values are true/false case insensitive." << std::endl;
80 const std::string &
label,
81 const std::string &
value)
92 const std::string &
label,
93 const std::string &
value)
95 std::vector<edm::InputTag> inputTags;
96 std::stringstream iss(value);
101 while (getline(iss, vitem,
','))
103 fst = vitem.find(
"[");
104 lst = vitem.find(
"]");
106 if ( fst != std::string::npos )
108 if ( lst != std::string::npos )
112 size_t nwords = tokens.size();
121 std::string it_label(
"");
122 std::string it_instance(
"");
123 std::string it_process(
"");
126 it_label = tokens[0];
128 it_instance = tokens[1];
130 it_process = tokens[2];
132 inputTags.push_back(
edm::InputTag(it_label, it_instance, it_process));
147 const std::string &
label,
148 const std::string &
value)
151 size_t nwords = tokens.size();
161 std::string it_label(
"");
162 std::string it_instance(
"");
163 std::string it_process(
"");
166 it_label = tokens[0];
168 it_instance = tokens[1];
170 it_process = tokens[2];
186 const std::string &
label,
187 const std::string &
value)
190 size_t nwords = tokens.size();
200 std::string it_module(
"");
201 std::string it_data(
"");
204 it_module = tokens[0];
220 template <
typename T>
222 const std::string &
label,
223 const std::string &
value)
227 std::stringstream iss(value);
232 while (getline(iss, vitem,
','))
234 fst = vitem.find(
"[");
235 lst = vitem.find(
"]");
237 if ( fst != std::string::npos )
239 if ( lst != std::string::npos )
242 std::stringstream oss(vitem);
246 valueVector.push_back(on);
262 editNumericParameter<int32_t>(*parent.
pset, data.
tracked, data.
label, GetText());
268 editNumericParameter<uint32_t>(*parent.
pset, data.
tracked, data.
label, GetText());
271 editNumericParameter<double>(*parent.
pset, data.
tracked, data.
label, GetText());
274 editNumericParameter<long long>(*parent.
pset, data.
tracked, data.
label, GetText());
277 editNumericParameter<unsigned long long>(*parent.
pset, data.
tracked, data.
label, GetText());
283 editVectorParameter<int32_t>(*parent.
pset, data.
tracked, data.
label, GetText());
286 editVectorParameter<uint32_t>(*parent.
pset, data.
tracked, data.
label, GetText());
289 editVectorParameter<long long>(*parent.
pset, data.
tracked, data.
label, GetText());
292 editVectorParameter<unsigned long long>(*parent.
pset, data.
tracked, data.
label, GetText());
295 editVectorParameter<double>(*parent.
pset, data.
tracked, data.
label, GetText());
298 editVectorParameter<std::string>(*parent.
pset, data.
tracked, data.
label, GetText());
324 UInt_t keysym =
event->fCode;
326 if (keysym == (
UInt_t) gVirtualX->KeysymToKeycode(kKey_Escape))
328 TGFrame *
p =
dynamic_cast<TGFrame*
>(
const_cast<TGWindow*
>(GetParent()));
331 TGMainFrame *mp =
dynamic_cast<TGMainFrame*
>(
p);
335 return mp->HandleKey(event);
337 p =
dynamic_cast<TGFrame*
>(
const_cast<TGWindow*
>(p->GetParent()));
341 return TGTextEntry::HandleKey(event);
virtual bool HandleKey(Event_t *event)
bool editESInputTag(edm::ParameterSet &ps, bool tracked, const std::string &label, const std::string &value)
void editVectorParameter(edm::ParameterSet &ps, bool tracked, const std::string &label, const std::string &value)
void valueVector(const std::map< K, V > &extract, std::vector< V > &output)
void editStringParameter(edm::ParameterSet &ps, bool tracked, const std::string &label, const std::string &value)
bool editVInputTag(edm::ParameterSet &ps, bool tracked, const std::string &label, const std::string &value)
void addParameter(std::string const &name, T const &value)
bool apply(FWPSetTableManager::PSetData &data, FWPSetTableManager::PSetData &parent)
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 but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
void editBoolParameter(edm::ParameterSet &ps, bool tracked, const std::string &label, const std::string &value)
void addUntrackedParameter(std::string const &name, T const &value)
std::vector< std::string > tokenize(std::string const &input, std::string const &separator)
breaks the input string into tokens, delimited by the separator
bool editNumericParameter(edm::ParameterSet &ps, bool tracked, const std::string &label, const std::string &value)
char data[epos_bytes_allocation]
void editFileInPath(edm::ParameterSet &ps, bool tracked, const std::string &label, const std::string &value)
bool editInputTag(edm::ParameterSet &ps, bool tracked, const std::string &label, const std::string &value)