Public Member Functions | Public Attributes | List of all members
Chain.Chain Class Reference

Public Member Functions

def __init__ (self, name)
 
def AddTier (self, tier)
 
def GetTierShortNames (self)
 
def GetTier (self, tier_name)
 
def GetTiers (self, start_tier_name, end_tier_name)
 
def __repr__ (self)
 

Public Attributes

 name
 
 env
 
 time_str
 
 tiers
 

Detailed Description

Definition at line 1 of file Chain.py.

Constructor & Destructor Documentation

def Chain.Chain.__init__ (   self,
  name 
)

Definition at line 5 of file Chain.py.

5  def __init__(self, name):
6  #print "chain: --- Initalise chain"
7  self.name = name
8  self.env = {}
9  self.time_str = "Default"
10  self.tiers = []
11 
time_str
Definition: Chain.py:9
def __init__(self, name)
Definition: Chain.py:5

Member Function Documentation

def Chain.Chain.__repr__ (   self)

Definition at line 28 of file Chain.py.

References Table.name, legacymc_extractor.LegacyMC.name, Chain.Chain.name, nova_fhicl_metadata.NovaFhclExtractor.name, ana::HistDef.name, Controller.Controller.name, PageMaker.PageMaker.name, nova_log_metadata.NovaLogExtractor.name, Component.Component.name, ana::MultiHistDef.name, Plot.name, HistDef.name, CalibrationType.name, nova_h5_metadata.NovaH5.name, CutContainer.name, plotConfusion.HistSet.name, CutDef.name, ana::NuTruthHistDef.name, bp_plot.Plot.name, GENIEWeightLabel.name, generic.views.Pages.SubdirInfo.name, nova_caf_metadata.NovaCAFExtractor.name, nova_text_metadata.NovaText.name, novaddt::sm_cleaner.name, drawEvents.HistSet.name, ColumnDef.name, novaddt::MapSource.name, PlotInfo.name, Weight.name, ana::VarDef.name, VarContainer.name, galleryMaker.FileNBE.name, ana::CutDef.name, FileUp.name, ana::PIDCutDef.name, nova::dbi::DataEpoch.name, ana::WeightDef.name, VarContainer2D.name, PolyDef.name, IntConfig.name, VarContainer3D.name, nova_art_metadata.NovaArt.name, nuebarccinc::SelDef.name, object.name, nuebarccinc::SelDefST.name, generic.models.PlotInfo.CanvasSummary.name, generic.models.PlotInfo.PlotComparisonStatistic.name, EventContainer.name, nuebarccinc::mHistAxisDef.name, nuebarccinc::mHistAxisSTDef.name, gen_flatrecord.TypeName.name, generic.models.Organizational.PlotID.name, ana::GenieMultiverseSpectra::knob_sampling_mode.name, TB_WatchdogFx.Tier.name, WatchdogFx.Tier.name, TB_WatchdogFx.Path.name, WatchdogFx.Path.name, ana::GenieMultiverseParameters::knob_sampling_mode.name, ana::nueccinc::SelDef.name, ana::nueccinc::SelDefST.name, ana::SelDef.name, ana::nueccinc::mHistAxisDef.name, ExtrapDef.name, ana::nueccinc::mHistAxisSTDef.name, ana::predictions.name, ana::mHistAxisDef.name, ana::mHistAxisSTDef.name, generic.models.Organizational.Folder.name, std_candles.PlotConfig.name, Chain.Chain.tiers, TB_WatchdogFx.Path.tiers, and WatchdogFx.Path.tiers.

28  def __repr__(self):
29  _repr = "chain: --- Name: %s\n"%repr(self.name)
30  _repr += "chain: %i tiers\n"%len(self.tiers)
31  for tier in self.tiers:
32  _repr += "chain: %s\n"%tier.short_name
33  # strip trailing newline
34  _repr = _repr[:-1]
35  return _repr
36 
def __repr__(self)
Definition: Chain.py:28
def Chain.Chain.AddTier (   self,
  tier 
)

Definition at line 12 of file Chain.py.

References Table.name, legacymc_extractor.LegacyMC.name, Chain.Chain.name, nova_fhicl_metadata.NovaFhclExtractor.name, Controller.Controller.name, ana::HistDef.name, PageMaker.PageMaker.name, nova_log_metadata.NovaLogExtractor.name, Component.Component.name, Plot.name, ana::MultiHistDef.name, HistDef.name, plotConfusion.HistSet.name, nova_h5_metadata.NovaH5.name, CalibrationType.name, CutContainer.name, CutDef.name, ana::NuTruthHistDef.name, bp_plot.Plot.name, GENIEWeightLabel.name, generic.views.Pages.SubdirInfo.name, nova_caf_metadata.NovaCAFExtractor.name, nova_text_metadata.NovaText.name, novaddt::sm_cleaner.name, drawEvents.HistSet.name, ColumnDef.name, novaddt::MapSource.name, PlotInfo.name, Weight.name, ana::VarDef.name, VarContainer.name, galleryMaker.FileNBE.name, ana::CutDef.name, FileUp.name, nova::dbi::DataEpoch.name, ana::PIDCutDef.name, ana::WeightDef.name, VarContainer2D.name, PolyDef.name, IntConfig.name, VarContainer3D.name, nova_art_metadata.NovaArt.name, nuebarccinc::SelDef.name, object.name, nuebarccinc::SelDefST.name, generic.models.PlotInfo.CanvasSummary.name, EventContainer.name, generic.models.PlotInfo.PlotComparisonStatistic.name, nuebarccinc::mHistAxisDef.name, nuebarccinc::mHistAxisSTDef.name, gen_flatrecord.TypeName.name, generic.models.Organizational.PlotID.name, ana::GenieMultiverseSpectra::knob_sampling_mode.name, TB_WatchdogFx.Tier.name, WatchdogFx.Tier.name, TB_WatchdogFx.Path.name, WatchdogFx.Path.name, ana::GenieMultiverseParameters::knob_sampling_mode.name, ana::nueccinc::SelDef.name, ana::nueccinc::SelDefST.name, ana::SelDef.name, ana::nueccinc::mHistAxisDef.name, ExtrapDef.name, ana::nueccinc::mHistAxisSTDef.name, ana::predictions.name, ana::mHistAxisDef.name, ana::mHistAxisSTDef.name, generic.models.Organizational.Folder.name, std_candles.PlotConfig.name, Chain.Chain.tiers, TB_WatchdogFx.Path.tiers, and WatchdogFx.Path.tiers.

12  def AddTier(self, tier):
13  #assert(type(tier) == Tier.Tier)
14  self.tiers.append(tier)
15  self.tiers[-1].setChainName(self.name)
16 
def AddTier(self, tier)
Definition: Chain.py:12
def Chain.Chain.GetTier (   self,
  tier_name 
)

Definition at line 22 of file Chain.py.

References Chain.Chain.GetTierShortNames(), allTimeWatchdog.index, Chain.Chain.tiers, TB_WatchdogFx.Path.tiers, and WatchdogFx.Path.tiers.

22  def GetTier(self, tier_name):
23  return self.tiers[self.GetTierShortNames().index(tier_name)]
24 
def GetTier(self, tier_name)
Definition: Chain.py:22
def GetTierShortNames(self)
Definition: Chain.py:17
def Chain.Chain.GetTiers (   self,
  start_tier_name,
  end_tier_name 
)

Definition at line 25 of file Chain.py.

References Chain.Chain.GetTierShortNames(), allTimeWatchdog.index, Chain.Chain.tiers, TB_WatchdogFx.Path.tiers, and WatchdogFx.Path.tiers.

25  def GetTiers(self, start_tier_name, end_tier_name):
26  return self.tiers[self.GetTierShortNames().index(start_tier_name):self.GetTierShortNames().index(end_tier_name)+1]
27 
def GetTiers(self, start_tier_name, end_tier_name)
Definition: Chain.py:25
def GetTierShortNames(self)
Definition: Chain.py:17
def Chain.Chain.GetTierShortNames (   self)

Definition at line 17 of file Chain.py.

References Chain.Chain.tiers, TB_WatchdogFx.Path.tiers, and WatchdogFx.Path.tiers.

Referenced by Chain.Chain.GetTier(), and Chain.Chain.GetTiers().

17  def GetTierShortNames(self):
18  short_names = []
19  for tier in self.tiers: short_names.append(tier.short_name)
20  return short_names
21 
def GetTierShortNames(self)
Definition: Chain.py:17

Member Data Documentation

Chain.Chain.env

Definition at line 8 of file Chain.py.

Chain.Chain.time_str

Definition at line 9 of file Chain.py.


The documentation for this class was generated from the following file: