CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
TreeCrawler.Package Class Reference
Inheritance diagram for TreeCrawler.Package:

Public Member Functions

def __init__
 
def dump
 
def search
 

Public Attributes

 dependencies
 
 hit
 
 module
 
 name
 
 searched
 
 stack
 

Detailed Description

Definition at line 50 of file TreeCrawler.py.

Constructor & Destructor Documentation

def TreeCrawler.Package.__init__ (   self,
  name,
  top = False 
)

Definition at line 51 of file TreeCrawler.py.

51 
52  def __init__(self,name,top=False):
53  self.name = name
54  self.dependencies = []
55  self.searched = False
56  self.stack = []
57  if top:
58  self.module = None
59  else:
self.module = __import__(name,[],[],"*")

Member Function Documentation

def TreeCrawler.Package.dump (   self,
  level 
)

Definition at line 60 of file TreeCrawler.py.

References TreeCrawler.Package.dependencies, entry.name, genericValidation.GenericValidation.name, cond::persistency::GLOBAL_TAG::NAME.name, TmModule.name, cond::persistency::TAG::NAME.name, cond::persistency::GLOBAL_TAG::VALIDITY.name, cond::persistency::TAG::TIME_TYPE.name, cond::persistency::GLOBAL_TAG::DESCRIPTION.name, cond::persistency::TAG::OBJECT_TYPE.name, cond::persistency::TAG::SYNCHRONIZATION.name, EventMonitor::Entry.name, cond::persistency::GLOBAL_TAG::RELEASE.name, ora::RecordSpecImpl::Item.name, cond::persistency::TAG::END_OF_VALIDITY.name, cond::persistency::GLOBAL_TAG::SNAPSHOT_TIME.name, cond::persistency::TAG::DESCRIPTION.name, cond::persistency::GTEditorData.name, cond::persistency::GLOBAL_TAG::INSERTION_TIME.name, cond::persistency::TAG::LAST_VALIDATED_TIME.name, FWTGeoRecoGeometry::Info.name, alignment.Alignment.name, cond::persistency::TAG::INSERTION_TIME.name, cond::persistency::TAG::MODIFICATION_TIME.name, PixelDCSObject< class >::Item.name, cond::persistency::GTProxyData.name, SingleObjectCondition.name, EgHLTOfflineSummaryClient::SumHistBinData.name, DQMGenericClient::EfficOption.name, XMLRBXPedestalsLoader::_loaderBaseConfig.name, XMLHTRZeroSuppressionLoader::_loaderBaseConfig.name, MyWatcher.name, edm::PathTimingSummary.name, cond::TimeTypeSpecs.name, lumi::TriggerInfo.name, edm::PathSummary.name, cond::persistency::GLOBAL_TAG_MAP::GLOBAL_TAG_NAME.name, PixelEndcapLinkMaker::Item.name, cond::persistency::GLOBAL_TAG_MAP::RECORD.name, FWTableViewManager::TableEntry.name, PixelBarrelLinkMaker::Item.name, cond::persistency::GLOBAL_TAG_MAP::LABEL.name, Mapper::definition< ScannerT >.name, cond::persistency::GLOBAL_TAG_MAP::TAG_NAME.name, ExpressionHisto< T >.name, DQMGenericClient::NormOption.name, TreeCrawler.Package.name, cond::persistency::PAYLOAD::HASH.name, XMLProcessor::_loaderBaseConfig.name, TrajectorySeedProducer::LayerSpec.name, cond::persistency::PAYLOAD::OBJECT_TYPE.name, cond::persistency::PAYLOAD::DATA.name, cond::persistency::PAYLOAD::STREAMER_INFO.name, cond::persistency::PAYLOAD::VERSION.name, DQMGenericClient::CDOption.name, cond::persistency::PAYLOAD::INSERTION_TIME.name, PhysicsTools::Calibration::Variable.name, cond::TagInfo_t.name, h4DSegm.name, EDMtoMEConverter.name, MEtoEDM< T >::MEtoEDMObject.name, cond::persistency::IOV::TAG_NAME.name, cond::persistency::IOV::SINCE.name, cond::persistency::IOV::PAYLOAD_HASH.name, cond::persistency::IOV::INSERTION_TIME.name, MuonGeometrySanityCheckPoint.name, h2DSegm.name, DQMNet::WaitObject.name, SiStripMonitorDigi.name, cond::persistency::TAG_MIGRATION::SOURCE_ACCOUNT.name, cond::persistency::TAG_MIGRATION::SOURCE_TAG.name, cond::persistency::TAG_MIGRATION::TAG_NAME.name, cond::persistency::TAG_MIGRATION::STATUS_CODE.name, cond::persistency::TAG_MIGRATION::INSERTION_TIME.name, conddblib.Tag.name, conddblib.GlobalTag.name, plotscripts.SawTeethFunction.name, hTMaxCell.name, cscdqm::ParHistoDef.name, BeautifulSoup.Tag.name, and BeautifulSoup.SoupStrainer.name.

60 
61  def dump(self,level):
62  indent = " " * level
63  print indent, "+", Color.info, self.name, Color.none
64  # sort dependencies alphabetically
65  self.dependencies.sort(key = lambda x: x.name)
66  for package in self.dependencies:
package.dump(level+1)
def TreeCrawler.Package.search (   self,
  pattern,
  result 
)
recursive search for pattern in source files

Definition at line 67 of file TreeCrawler.py.

References PixelToFEDAssociate::DetectorRocId.module, CastorRecHitMonitor.module, CastorHIMonitor.module, ShallowClustersProducer::moduleVars.module, edm::ELextendedID.module, ErrorSummaryMapKey.module, edm::ErrorSummaryEntry.module, CastorChannelQualityMonitor::@273.module, CastorChannelQualityMonitor.module, TreeCrawler.Package.module, edm::EDConsumerBase::Labels.module, FWPSetTableManager::PSetData.module, TkOffTreeVariables.module, TreeCrawler.packageNameFromFilename(), and TreeCrawler.Package.searched.

67 
68  def search(self,pattern,result):
69  """ recursive search for pattern in source files"""
70  # first start searching in the package itself / do this only once
71  if self.module:
72  for number, line in enumerate(inspect.getsource(self.module).splitlines()):
73  if pattern in line:
74  filename = packageNameFromFilename(inspect.getsourcefile(self.module))
75  if not self.searched:
76  # save the hit, so we can add later stacks to it
77  self.hit = SearchHit()
78  self.hit.number = number
79  self.hit.filename = filename
80  self.hit.line = line
81  self.hit.stacks = list()
82  result.append(self.hit)
83  self.hit.stacks.append(copy.copy(_stack))
84  # then go on with dependencies
85  _stack.append(self.name)
86  for package in self.dependencies:
87  package.search(pattern,result)
88  _stack.pop()
89  self.searched = True
90 
def packageNameFromFilename
Definition: TreeCrawler.py:29
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 list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run

Member Data Documentation

TreeCrawler.Package.dependencies

Definition at line 53 of file TreeCrawler.py.

Referenced by TreeCrawler.Package.dump().

TreeCrawler.Package.hit

Definition at line 76 of file TreeCrawler.py.

TreeCrawler.Package.module

Definition at line 57 of file TreeCrawler.py.

Referenced by TreeCrawler.Package.search().

TreeCrawler.Package.name

Definition at line 52 of file TreeCrawler.py.

Referenced by dirstructure.Directory.__create_pie_image(), dqm_interfaces.DirID.__eq__(), dirstructure.Directory.__get_full_path(), dirstructure.Comparison.__get_img_name(), dataset.Dataset.__getDataType(), dataset.Dataset.__getFileInfoList(), cuy.divideElement.__init__(), cuy.plotElement.__init__(), cuy.additionElement.__init__(), cuy.superimposeElement.__init__(), cuy.graphElement.__init__(), dirstructure.Comparison.__make_image(), dirstructure.Directory.__repr__(), dqm_interfaces.DirID.__repr__(), dirstructure.Comparison.__repr__(), dirstructure.Directory.calcStats(), python.rootplot.utilities.Hist.divide(), python.rootplot.utilities.Hist.divide_wilson(), TreeCrawler.Package.dump(), utils.StatisticalTest.get_status(), dirstructure.Directory.print_report(), python.rootplot.utilities.Hist.TGraph(), python.rootplot.utilities.Hist.TH1F(), and Vispa.Views.PropertyView.Property.valueChanged().

TreeCrawler.Package.searched

Definition at line 54 of file TreeCrawler.py.

Referenced by TreeCrawler.Package.search().

TreeCrawler.Package.stack

Definition at line 55 of file TreeCrawler.py.