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 26 of file FWPSetCellEditor.h.

Constructor & Destructor Documentation

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

Definition at line 29 of file FWPSetCellEditor.h.

29 : TGTextEntry(w, txt) {};
T w() const
virtual FWPSetCellEditor::~FWPSetCellEditor ( )
inlinevirtual

Definition at line 30 of file FWPSetCellEditor.h.

30 {};

Member Function Documentation

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

Definition at line 257 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 electronTools.AddElectronUserIsolation::__call__(), photonTools.AddPhotonUserIsolation::__call__(), heavyIonTools.ConfigureHeavyIons::__call__(), metTools.AddTcMET::__call__(), muonTools.AddMuonUserIsolation::__call__(), HiCoreTools.RestrictInputToAOD::__call__(), editorTools.UserCodeTool::__call__(), coreTools.RestrictInputToAOD::__call__(), trackTools.MakeAODTrackCandidates::__call__(), cmsswVersionTools.Run52xOn51xTrigger::__call__(), heavyIonTools.ProductionDefaults::__call__(), editorTools.ChangeSource::__call__(), metTools.AddPfMET::__call__(), HiCoreTools.RemoveMCMatching::__call__(), coreTools.RunOnData::__call__(), trackTools.MakePATTrackCandidates::__call__(), trigTools.SwitchOnTrigger::__call__(), cmsswVersionTools.PickRelValInputFiles::__call__(), coreTools.RemoveMCMatching::__call__(), heavyIonTools.SelectionDefaults::__call__(), HiCoreTools.RemoveAllPATObjectsBut::__call__(), heavyIonTools.DisbaleMonteCarloDeps::__call__(), jetTools.RunBTagging::__call__(), HiCoreTools.RemoveSpecificPATObjects::__call__(), trigTools.SwitchOnTriggerStandAlone::__call__(), coreTools.RemoveAllPATObjectsBut::__call__(), trackTools.MakeTrackCandidates::__call__(), coreTools.RemoveSpecificPATObjects::__call__(), HiCoreTools.RemoveCleaning::__call__(), trigTools.SwitchOnTriggerMatching::__call__(), HiCoreTools.AddCleaning::__call__(), coreTools.RemoveCleaning::__call__(), tauTools.AddTauCollection::__call__(), trigTools.SwitchOnTriggerMatchingStandAlone::__call__(), coreTools.AddCleaning::__call__(), jetTools.AddJetCollection::__call__(), trigTools.SwitchOnTriggerMatchEmbedding::__call__(), trigTools.RemoveCleaningFromTriggerMatching::__call__(), jetTools.SwitchJetCollection::__call__(), jetTools.AddJetID::__call__(), jetTools.SetTagInfos::__call__(), jetTools.SwitchJetCorrLevels::__call__(), metUncertaintyTools.RunMEtUncertainties::__call__(), and FWPSetTableManager::applyEditor().

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

References AlCaHLTBitMon_ParallelJobs::p.

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