CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
FWPSetCellEditor Class Reference

#include <Fireworks/FWInterface/interface/FWPSetCellEditor.h>

Inheritance diagram for FWPSetCellEditor:

Public Member Functions

bool apply (FWPSetTableManager::PSetData &data, FWPSetTableManager::PSetData &parent)
 
 FWPSetCellEditor (const TGWindow *w, const char *txt)
 
virtual bool HandleKey (Event_t *event)
 
virtual ~FWPSetCellEditor ()
 

Detailed Description

Description: [one line class summary]

Usage: <usage>

Definition at line 25 of file FWPSetCellEditor.h.

Constructor & Destructor Documentation

FWPSetCellEditor::FWPSetCellEditor ( const TGWindow *  w,
const char *  txt 
)
inline

Definition at line 28 of file FWPSetCellEditor.h.

28 : TGTextEntry(w, txt) {};
const double w
Definition: UKUtility.cc:23
virtual FWPSetCellEditor::~FWPSetCellEditor ( )
inlinevirtual

Definition at line 29 of file FWPSetCellEditor.h.

29 {};

Member Function Documentation

bool FWPSetCellEditor::apply ( FWPSetTableManager::PSetData data,
FWPSetTableManager::PSetData parent 
)

Definition at line 256 of file FWPSetCellEditor.cc.

References editBoolParameter(), editESInputTag(), editFileInPath(), editInputTag(), editStringParameter(), editVInputTag(), fwLog, fwlog::kError, FWPSetTableManager::PSetData::label, FWPSetTableManager::PSetData::pset, FWPSetTableManager::PSetData::tracked, and FWPSetTableManager::PSetData::type.

Referenced by heavyIonTools.ConfigureHeavyIons::__call__(), editorTools.UserCodeTool::__call__(), HiCoreTools.RestrictInputToAOD::__call__(), coreTools.RunOnData::__call__(), trackTools.MakeAODTrackCandidates::__call__(), runJetUncertainties.RunJetUncertainties::__call__(), metTools.AddMETCollection::__call__(), heavyIonTools.ProductionDefaults::__call__(), editorTools.ChangeSource::__call__(), HiCoreTools.RemoveMCMatching::__call__(), cmsswVersionTools.PickRelValInputFiles::__call__(), coreTools.RemoveMCMatching::__call__(), trackTools.MakePATTrackCandidates::__call__(), trigTools.SwitchOnTrigger::__call__(), heavyIonTools.SelectionDefaults::__call__(), HiCoreTools.RemoveAllPATObjectsBut::__call__(), heavyIonTools.DisbaleMonteCarloDeps::__call__(), HiCoreTools.RemoveSpecificPATObjects::__call__(), trigTools.SwitchOnTriggerStandAlone::__call__(), trackTools.MakeTrackCandidates::__call__(), trigTools.SwitchOnTriggerMatching::__call__(), HiCoreTools.RemoveCleaning::__call__(), HiCoreTools.AddCleaning::__call__(), jetTools.AddJetCollection::__call__(), tauTools.AddTauCollection::__call__(), trigTools.SwitchOnTriggerMatchingStandAlone::__call__(), trigTools.SwitchOnTriggerMatchEmbedding::__call__(), jetTools.SwitchJetCollection::__call__(), jetTools.UpdateJetCollection::__call__(), jetTools.AddJetID::__call__(), jetTools.SetTagInfos::__call__(), and FWPSetTableManager::applyEditor().

257 {
258  switch (data.type)
259  {
260  case 'I':
261  editNumericParameter<int32_t>(*parent.pset, data.tracked, data.label, GetText());
262  break;
263  case 'B':
264  editBoolParameter(*parent.pset, data.tracked, data.label, GetText());
265  break;
266  case 'U':
267  editNumericParameter<uint32_t>(*parent.pset, data.tracked, data.label, GetText());
268  break;
269  case 'D':
270  editNumericParameter<double>(*parent.pset, data.tracked, data.label, GetText());
271  break;
272  case 'L':
273  editNumericParameter<long long>(*parent.pset, data.tracked, data.label, GetText());
274  break;
275  case 'X':
276  editNumericParameter<unsigned long long>(*parent.pset, data.tracked, data.label, GetText());
277  break;
278  case 'S':
279  editStringParameter(*parent.pset, data.tracked, data.label, GetText());
280  break;
281  case 'i':
282  editVectorParameter<int32_t>(*parent.pset, data.tracked, data.label, GetText());
283  break;
284  case 'u':
285  editVectorParameter<uint32_t>(*parent.pset, data.tracked, data.label, GetText());
286  break;
287  case 'l':
288  editVectorParameter<long long>(*parent.pset, data.tracked, data.label, GetText());
289  break;
290  case 'x':
291  editVectorParameter<unsigned long long>(*parent.pset, data.tracked, data.label, GetText());
292  break;
293  case 'd':
294  editVectorParameter<double>(*parent.pset, data.tracked, data.label, GetText());
295  break;
296  case 's':
297  editVectorParameter<std::string>(*parent.pset, data.tracked, data.label, GetText());
298  break;
299  case 't':
300  editInputTag(*parent.pset, data.tracked, data.label, GetText());
301  break;
302  case 'g':
303  editESInputTag(*parent.pset, data.tracked, data.label, GetText());
304  break;
305  case 'v':
306  editVInputTag(*parent.pset, data.tracked, data.label, GetText());
307  break;
308  case 'F':
309  editFileInPath(*parent.pset, data.tracked, data.label, GetText());
310  break;
311  default:
312  fwLog(fwlog::kError) << "unsupported parameter" << std::endl;
313  UnmapWindow();
314  return false;
315  }
316  return true;
317 }
bool editESInputTag(edm::ParameterSet &ps, bool tracked, const std::string &label, const std::string &value)
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 editBoolParameter(edm::ParameterSet &ps, bool tracked, const std::string &label, const std::string &value)
#define fwLog(_level_)
Definition: fwLog.h:50
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)
bool FWPSetCellEditor::HandleKey ( Event_t *  event)
virtual

Definition at line 321 of file FWPSetCellEditor.cc.

References AlCaHLTBitMon_ParallelJobs::p.

322 {
323  UInt_t keysym = event->fCode;
324 
325  if (keysym == (UInt_t) gVirtualX->KeysymToKeycode(kKey_Escape))
326  {
327  TGFrame *p = dynamic_cast<TGFrame*>(const_cast<TGWindow*>(GetParent()));
328  while (p)
329  {
330  TGMainFrame *mp = dynamic_cast<TGMainFrame*>(p);
331  // printf("editor find parent %p, %s, %p\n", p, p->ClassName(), mp);
332  if (mp)
333  {
334  return mp->HandleKey(event);
335  }
336  p = dynamic_cast<TGFrame*>(const_cast<TGWindow*>(p->GetParent()));
337  }
338  }
339 
340  return TGTextEntry::HandleKey(event);
341 }
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