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
config.Analyzer Class Reference
Inheritance diagram for config.Analyzer:
config.CFG

Public Member Functions

def __init__
 
def __setattr__
 
def build_name
 
- Public Member Functions inherited from config.CFG
def __init__
 
def __str__
 

Public Attributes

 class_object
 
 instance_label
 
 name
 
 verbose
 

Detailed Description

Base analyzer configuration, see constructor

Definition at line 49 of file config.py.

Constructor & Destructor Documentation

def config.Analyzer.__init__ (   self,
  class_object,
  instance_label = '1',
  verbose = False,
  kwargs 
)
One could for example define the analyzer configuration for a
di-muon framework.Analyzer.Analyzer in the following way:

ZMuMuAna = cfg.Analyzer(
"ZMuMuAnalyzer",
pt1 = 20,
pt2 = 20,
iso1 = 0.1,
iso2 = 0.1,
eta1 = 2,
eta2 = 2,
m_min = 0,
m_max = 200
)

Any kinds of keyword arguments can be added.
The name must be present, and must be well chosen, as it will be used
by the Looper to find the module containing the Analyzer class.
This module should be in your PYTHONPATH. If not, modify your python path
accordingly in your script.

Definition at line 52 of file config.py.

52 
53  verbose=False, **kwargs):
54  '''
55  One could for example define the analyzer configuration for a
56  di-muon framework.Analyzer.Analyzer in the following way:
57 
58  ZMuMuAna = cfg.Analyzer(
59  "ZMuMuAnalyzer",
60  pt1 = 20,
61  pt2 = 20,
62  iso1 = 0.1,
63  iso2 = 0.1,
64  eta1 = 2,
65  eta2 = 2,
66  m_min = 0,
67  m_max = 200
68  )
69 
70  Any kinds of keyword arguments can be added.
71  The name must be present, and must be well chosen, as it will be used
72  by the Looper to find the module containing the Analyzer class.
73  This module should be in your PYTHONPATH. If not, modify your python path
74  accordingly in your script.
75  '''
76 
77  self.class_object = class_object
78  self.instance_label = instance_label
79  self.verbose = verbose
80  super(Analyzer, self).__init__(**kwargs)
def __init__
Definition: config.py:52

Member Function Documentation

def config.Analyzer.__setattr__ (   self,
  name,
  value 
)
You may decide to copy an existing analyzer and change
its instance_label. In that case, one must stay consistent.

Definition at line 81 of file config.py.

81 
82  def __setattr__(self, name, value):
83  '''You may decide to copy an existing analyzer and change
84  its instance_label. In that case, one must stay consistent.'''
85  self.__dict__[name] = value
86  if name == 'instance_label':
87  self.name = self.build_name()
def __setattr__
Definition: config.py:81
def build_name
Definition: config.py:88
def config.Analyzer.build_name (   self)

Definition at line 88 of file config.py.

References analyzer.Analyzer.instance_label, config.Analyzer.instance_label, and join().

88 
89  def build_name(self):
90  class_name = '.'.join([self.class_object.__module__,
91  self.class_object.__name__])
92  name = '_'.join([class_name, self.instance_label])
93  return name
def build_name
Definition: config.py:88
static std::string join(char **cmd)
Definition: RemoteFile.cc:18

Member Data Documentation

config.Analyzer.class_object

Definition at line 76 of file config.py.

config.Analyzer.instance_label

Definition at line 77 of file config.py.

Referenced by config.Analyzer.build_name(), and config.Service.build_name().

config.Analyzer.name

Definition at line 86 of file config.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__(), config.CFG.__str__(), counter.Counter.__str__(), average.Average.__str__(), dirstructure.Directory.calcStats(), python.rootplot.utilities.Hist.divide(), python.rootplot.utilities.Hist.divide_wilson(), utils.StatisticalTest.get_status(), dataset.CMSDataset.getPrimaryDatasetEntries(), dataset.PrivateDataset.getPrimaryDatasetEntries(), VIDSelectorBase.VIDSelectorBase.initialize(), dirstructure.Directory.print_report(), dataset.BaseDataset.printInfo(), dataset.Dataset.printInfo(), python.rootplot.utilities.Hist.TGraph(), python.rootplot.utilities.Hist.TH1F(), Vispa.Views.PropertyView.Property.valueChanged(), counter.Counter.write(), and average.Average.write().

config.Analyzer.verbose

Definition at line 78 of file config.py.

Referenced by python.diff_provenance.difference.list_diff(), python.diffProv.difference.list_diff(), python.diff_provenance.difference.module_diff(), python.diffProv.difference.module_diff(), python.diff_provenance.difference.onefilemodules(), and python.diffProv.difference.onefilemodules().