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) {};
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 234 of file FWPSetCellEditor.cc.

References 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__(), python.editorTools.UserCodeTool::__call__(), HiCoreTools.RestrictInputToAOD::__call__(), coreTools.RestrictInputToAOD::__call__(), trackTools.MakeAODTrackCandidates::__call__(), jetTools.RunBTagging::__call__(), heavyIonTools.ProductionDefaults::__call__(), python.editorTools.ChangeSource::__call__(), metTools.AddPfMET::__call__(), HiCoreTools.RemoveMCMatching::__call__(), coreTools.RunOnData::__call__(), trackTools.MakePATTrackCandidates::__call__(), trigTools.SwitchOnTrigger::__call__(), coreTools.RemoveMCMatching::__call__(), cmsswVersionTools.RunBTagging35X::__call__(), heavyIonTools.SelectionDefaults::__call__(), HiCoreTools.RemoveAllPATObjectsBut::__call__(), heavyIonTools.DisbaleMonteCarloDeps::__call__(), jetTools.AddJetCollection::__call__(), HiCoreTools.RemoveSpecificPATObjects::__call__(), coreTools.RemoveAllPATObjectsBut::__call__(), trigTools.SwitchOnTriggerStandAlone::__call__(), trackTools.MakeTrackCandidates::__call__(), coreTools.RemoveSpecificPATObjects::__call__(), cmsswVersionTools.AddJetCollection35X::__call__(), tauTools.AddTauCollection::__call__(), HiCoreTools.RemoveCleaning::__call__(), trigTools.SwitchOnTriggerMatching::__call__(), HiCoreTools.AddCleaning::__call__(), coreTools.RemoveCleaning::__call__(), coreTools.AddCleaning::__call__(), jetTools.SwitchJetCollection::__call__(), trigTools.SwitchOnTriggerMatchingStandAlone::__call__(), cmsswVersionTools.SwitchJetCollection35X::__call__(), trigTools.SwitchOnTriggerMatchEmbedding::__call__(), jetTools.AddJetID::__call__(), jetTools.SetTagInfos::__call__(), trigTools.RemoveCleaningFromTriggerMatching::__call__(), jetTools.SwitchJetCorrLevels::__call__(), cmsswVersionTools.PickRelValInputFiles::__call__(), and FWPSetTableManager::applyEditor().

235 {
236  switch (data.type)
237  {
238  case 'I':
239  editNumericParameter<int32_t>(parent.pset, data.tracked, data.label, GetText());
240  break;
241  case 'U':
242  editNumericParameter<uint32_t>(parent.pset, data.tracked, data.label, GetText());
243  break;
244  case 'D':
245  editNumericParameter<double>(parent.pset, data.tracked, data.label, GetText());
246  break;
247  case 'L':
248  editNumericParameter<long long>(parent.pset, data.tracked, data.label, GetText());
249  break;
250  case 'X':
251  editNumericParameter<unsigned long long>(parent.pset, data.tracked, data.label, GetText());
252  break;
253  case 'S':
254  editStringParameter(parent.pset, data.tracked, data.label, GetText());
255  break;
256  case 'i':
257  editVectorParameter<int32_t>(parent.pset, data.tracked, data.label, GetText());
258  break;
259  case 'u':
260  editVectorParameter<uint32_t>(parent.pset, data.tracked, data.label, GetText());
261  break;
262  case 'l':
263  editVectorParameter<long long>(parent.pset, data.tracked, data.label, GetText());
264  break;
265  case 'x':
266  editVectorParameter<unsigned long long>(parent.pset, data.tracked, data.label, GetText());
267  break;
268  case 'd':
269  editVectorParameter<double>(parent.pset, data.tracked, data.label, GetText());
270  break;
271  case 's':
272  editVectorParameter<std::string>(parent.pset, data.tracked, data.label, GetText());
273  break;
274  case 't':
275  editInputTag(parent.pset, data.tracked, data.label, GetText());
276  break;
277  case 'g':
278  editESInputTag(parent.pset, data.tracked, data.label, GetText());
279  break;
280  case 'v':
281  editVInputTag(parent.pset, data.tracked, data.label, GetText());
282  break;
283  case 'F':
284  editFileInPath(parent.pset, data.tracked, data.label, GetText());
285  break;
286  default:
287  fwLog(fwlog::kError) << "unsupported parameter" << std::endl;
288  UnmapWindow();
289  return false;
290  }
291  return true;
292 }
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)
#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 296 of file FWPSetCellEditor.cc.

References L1TEmulatorMonitor_cff::p.

297 {
298  UInt_t keysym = event->fCode;
299 
300  if (keysym == (UInt_t) gVirtualX->KeysymToKeycode(kKey_Escape))
301  {
302  TGFrame *p = dynamic_cast<TGFrame*>(const_cast<TGWindow*>(GetParent()));
303  while (p)
304  {
305  TGMainFrame *mp = dynamic_cast<TGMainFrame*>(p);
306  // printf("editor find parent %p, %s, %p\n", p, p->ClassName(), mp);
307  if (mp)
308  {
309  return mp->HandleKey(event);
310  }
311  p = dynamic_cast<TGFrame*>(const_cast<TGWindow*>(p->GetParent()));
312  }
313  }
314 
315  return TGTextEntry::HandleKey(event);
316 }
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