CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
Mixins.PrintOptions Class Reference
Inheritance diagram for Mixins.PrintOptions:

Public Member Functions

def __init__
 
def indent (self)
 
def indentation (self)
 
def unindent (self)
 

Public Attributes

 deltaIndent_
 
 indent_
 
 isCfg
 
 targetDirectory
 
 useSubdirectories
 

Detailed Description

Definition at line 11 of file Mixins.py.

Constructor & Destructor Documentation

◆ __init__()

def Mixins.PrintOptions.__init__ (   self,
  indent 
)

Definition at line 12 of file Mixins.py.

12  def __init__(self, indent:int = 0, deltaIndent:int = 4, process:bool = True, targetDirectory: Union[str, None] = None, useSubdirectories:bool = False):
13  self.indent_= indent
14  self.deltaIndent_ = deltaIndent
15  self.isCfg = process
16  self.targetDirectory = targetDirectory
17  self.useSubdirectories = useSubdirectories
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ indent()

def Mixins.PrintOptions.indent (   self)

◆ indentation()

def Mixins.PrintOptions.indentation (   self,
  str 
)

Definition at line 18 of file Mixins.py.

References Mixins.PrintOptions.indent_, and MisalignmentScenarioBuilder.indent_.

18  def indentation(self) -> str:
19  return ' '*self.indent_

◆ unindent()

def Mixins.PrintOptions.unindent (   self)

Definition at line 22 of file Mixins.py.

References Mixins.PrintOptions.deltaIndent_, Mixins.PrintOptions.indent_, and MisalignmentScenarioBuilder.indent_.

22  def unindent(self):
23  self.indent_ -= self.deltaIndent_
24 

Member Data Documentation

◆ deltaIndent_

Mixins.PrintOptions.deltaIndent_

Definition at line 14 of file Mixins.py.

Referenced by Mixins.PrintOptions.indent(), and Mixins.PrintOptions.unindent().

◆ indent_

Mixins.PrintOptions.indent_

◆ isCfg

Mixins.PrintOptions.isCfg

Definition at line 15 of file Mixins.py.

◆ targetDirectory

Mixins.PrintOptions.targetDirectory

Definition at line 16 of file Mixins.py.

◆ useSubdirectories

Mixins.PrintOptions.useSubdirectories

Definition at line 17 of file Mixins.py.