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)
69 const std::string &
label,
70 const std::string &
value)
72 std::vector<edm::InputTag> inputTags;
73 std::stringstream iss(value);
78 while (getline(iss, vitem,
','))
80 fst = vitem.find(
"[");
81 lst = vitem.find(
"]");
83 if ( fst != std::string::npos )
85 if ( lst != std::string::npos )
89 size_t nwords = tokens.size();
98 std::string it_label(
"");
99 std::string it_instance(
"");
100 std::string it_process(
"");
103 it_label = tokens[0];
105 it_instance = tokens[1];
107 it_process = tokens[2];
109 inputTags.push_back(
edm::InputTag(it_label, it_instance, it_process));
124 const std::string &
label,
125 const std::string &
value)
128 size_t nwords = tokens.size();
138 std::string it_label(
"");
139 std::string it_instance(
"");
140 std::string it_process(
"");
143 it_label = tokens[0];
145 it_instance = tokens[1];
147 it_process = tokens[2];
163 const std::string &
label,
164 const std::string &
value)
167 size_t nwords = tokens.size();
177 std::string it_module(
"");
178 std::string it_data(
"");
181 it_module = tokens[0];
197 template <
typename T>
199 const std::string &
label,
200 const std::string &
value)
204 std::stringstream iss(value);
209 while (getline(iss, vitem,
','))
211 fst = vitem.find(
"[");
212 lst = vitem.find(
"]");
214 if ( fst != std::string::npos )
216 if ( lst != std::string::npos )
219 std::stringstream oss(vitem);
223 valueVector.push_back(on);
239 editNumericParameter<int32_t>(parent.
pset, data.
tracked, data.
label, GetText());
242 editNumericParameter<uint32_t>(parent.
pset, data.
tracked, data.
label, GetText());
245 editNumericParameter<double>(parent.
pset, data.
tracked, data.
label, GetText());
248 editNumericParameter<long long>(parent.
pset, data.
tracked, data.
label, GetText());
251 editNumericParameter<unsigned long long>(parent.
pset, data.
tracked, data.
label, GetText());
257 editVectorParameter<int32_t>(parent.
pset, data.
tracked, data.
label, GetText());
260 editVectorParameter<uint32_t>(parent.
pset, data.
tracked, data.
label, GetText());
263 editVectorParameter<long long>(parent.
pset, data.
tracked, data.
label, GetText());
266 editVectorParameter<unsigned long long>(parent.
pset, data.
tracked, data.
label, GetText());
269 editVectorParameter<double>(parent.
pset, data.
tracked, data.
label, GetText());
272 editVectorParameter<std::string>(parent.
pset, data.
tracked, data.
label, GetText());
298 UInt_t keysym =
event->fCode;
300 if (keysym == (
UInt_t) gVirtualX->KeysymToKeycode(kKey_Escape))
302 TGFrame *
p =
dynamic_cast<TGFrame*
>(
const_cast<TGWindow*
>(GetParent()));
305 TGMainFrame *mp =
dynamic_cast<TGMainFrame*
>(
p);
309 return mp->HandleKey(event);
311 p =
dynamic_cast<TGFrame*
>(
const_cast<TGWindow*
>(p->GetParent()));
315 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 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)
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)