ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
python.RunLister.RunParams Class Reference
Collaboration diagram for python.RunLister.RunParams:

Public Member Functions

def __init__ (self, run, start, runtype, daqconfig, detmask, filetag, rec, datasource)
 
def addEORInfo (self, stop, totaltime, cleanstop, maxlb)
 
def updateEORInfo (self, daqconfig)
 
def addSFOStat (self, partname, recevents, storedevents)
 
def addEventCounters (self, partname, l1events, l2events, efevents, storedevents)
 
def patchEndTime (self, stop)
 
def setErr (self, bit, msg="")
 
def addMsg (self, msg)
 
def decodeErr (self)
 

Public Attributes

 run
 
 start
 
 runtype
 
 daqconfig
 
 detmask
 
 filetag
 
 rec
 
 datasource
 
 stop
 
 totaltime
 
 cleanstop
 
 maxlb
 
 partname
 
 recevents
 
 storedevents
 
 l1events
 
 l2events
 
 efevents
 
 errcode
 
 errlist
 

Detailed Description

class to hold information from the Params folders

Definition at line 65 of file RunLister.py.

Constructor & Destructor Documentation

◆ __init__()

def python.RunLister.RunParams.__init__ (   self,
  run,
  start,
  runtype,
  daqconfig,
  detmask,
  filetag,
  rec,
  datasource 
)

Definition at line 67 of file RunLister.py.

67  def __init__(self,run,start,runtype,daqconfig,detmask,filetag,rec,datasource):
68  self.run=run
69  self.start=start
70  self.runtype=str(runtype)
71  self.daqconfig=str(daqconfig)
72  self.detmask=int(detmask)
73  self.filetag=str(filetag)
74  # in M4, the logic on the recording flag is wrong!
75  self.rec=bool(not rec)
76  self.datasource=str(datasource)
77  # informaton to be filled in from EOR_Params
78  self.stop=None
79  self.totaltime=None
80  self.cleanstop=None
81  # information to be filled in from LB_Params
82  self.maxlb=None
83  # information to be filled in from FinalSFOStat
84  self.partname=None
85  self.recevents=None
86  self.storedevents=None
87  # information to be filled in from EventCounters
88  # partname and storedevents can come from EventCounters or FinalSFOStat
89  self.l1events=None
90  self.l2events=None
91  self.efevents=None
92  self.errcode=0
93  self.errlist=[]
94 

Member Function Documentation

◆ addEORInfo()

def python.RunLister.RunParams.addEORInfo (   self,
  stop,
  totaltime,
  cleanstop,
  maxlb 
)

Definition at line 95 of file RunLister.py.

95  def addEORInfo(self,stop,totaltime,cleanstop,maxlb):
96  self.stop=stop
97  self.totaltime=totaltime
98  self.cleanstop=cleanstop
99  if maxlb is not None:
100  self.maxlb=maxlb
101 

◆ addEventCounters()

def python.RunLister.RunParams.addEventCounters (   self,
  partname,
  l1events,
  l2events,
  efevents,
  storedevents 
)

Definition at line 115 of file RunLister.py.

115  def addEventCounters(self,partname,l1events,l2events,efevents,storedevents):
116  self.partname=partname
117  self.l1events=l1events
118  self.l2events=l2events
119  self.efevents=efevents
120  if (self.storedevents is None or self.storedevents==0):
121  self.storedevents=int(storedevents)
122 

◆ addMsg()

def python.RunLister.RunParams.addMsg (   self,
  msg 
)

Definition at line 134 of file RunLister.py.

134  def addMsg(self,msg):
135  self.errlist+=[msg]
136 

◆ addSFOStat()

def python.RunLister.RunParams.addSFOStat (   self,
  partname,
  recevents,
  storedevents 
)

Definition at line 110 of file RunLister.py.

110  def addSFOStat(self,partname,recevents,storedevents):
111  self.partname=partname
112  self.recevents=int(recevents)
113  self.storedevents=int(storedevents)
114 

◆ decodeErr()

def python.RunLister.RunParams.decodeErr (   self)

Definition at line 137 of file RunLister.py.

137  def decodeErr(self):
138  "Decode the errors for the run into a string representation"
139  # Error bits are as follows
140  # 0 NoEOR no EOR record found
141  # 1 BadEOR EOR and SOR inconsistent (NYI)
142  # 2 NoLB_Params No LB_Params record found for SOR
143  # 3 BadLB_Params Bad LB_Params record found for SOR (NYI)
144  # 4 PatchEOR EOR information patched from trigger information
145 
146  errtxt=['NoEOR','BadEOR','NoLBParams','BadLBParams',
147  'PatchEOR']
148  errstr='Run %i errcode %i : ' % (self.run,self.errcode)
149  for i in range(0,len(errtxt)):
150  if (self.errcode & (1 << i)): errstr+=errtxt[i]+' '
151  return errstr
152 
153 
154 

◆ patchEndTime()

def python.RunLister.RunParams.patchEndTime (   self,
  stop 
)

Definition at line 123 of file RunLister.py.

123  def patchEndTime(self,stop):
124  "Patch end of run time from Trigger info when missing EOR record"
125  self.stop=stop
126  self.totaltime=int((stop-self.start)/1.E9)
127  self.setErr(4)
128 

◆ setErr()

def python.RunLister.RunParams.setErr (   self,
  bit,
  msg = "" 
)

Definition at line 129 of file RunLister.py.

129  def setErr(self,bit,msg=""):
130  "Set errorcode for bit x"
131  self.errcode=self.errcode | (1 << bit)
132  if (msg!=""): self.errlist+=[msg]
133 

◆ updateEORInfo()

def python.RunLister.RunParams.updateEORInfo (   self,
  daqconfig 
)

Definition at line 102 of file RunLister.py.

102  def updateEORInfo(self,daqconfig):
103  if (self.daqconfig=="unknown"):
104  self.daqconfig=daqconfig
105  else:
106  if (self.daqconfig!=daqconfig):
107  if (self.loglevel>1):
108  self.addMsg("EOR updates DAQConfig")
109 

Member Data Documentation

◆ cleanstop

python.RunLister.RunParams.cleanstop

Definition at line 80 of file RunLister.py.

◆ daqconfig

python.RunLister.RunParams.daqconfig

Definition at line 71 of file RunLister.py.

◆ datasource

python.RunLister.RunParams.datasource

Definition at line 76 of file RunLister.py.

◆ detmask

python.RunLister.RunParams.detmask

Definition at line 72 of file RunLister.py.

◆ efevents

python.RunLister.RunParams.efevents

Definition at line 91 of file RunLister.py.

◆ errcode

python.RunLister.RunParams.errcode

Definition at line 92 of file RunLister.py.

◆ errlist

python.RunLister.RunParams.errlist

Definition at line 93 of file RunLister.py.

◆ filetag

python.RunLister.RunParams.filetag

Definition at line 73 of file RunLister.py.

◆ l1events

python.RunLister.RunParams.l1events

Definition at line 89 of file RunLister.py.

◆ l2events

python.RunLister.RunParams.l2events

Definition at line 90 of file RunLister.py.

◆ maxlb

python.RunLister.RunParams.maxlb

Definition at line 82 of file RunLister.py.

◆ partname

python.RunLister.RunParams.partname

Definition at line 84 of file RunLister.py.

◆ rec

python.RunLister.RunParams.rec

Definition at line 75 of file RunLister.py.

◆ recevents

python.RunLister.RunParams.recevents

Definition at line 85 of file RunLister.py.

◆ run

python.RunLister.RunParams.run

Definition at line 68 of file RunLister.py.

◆ runtype

python.RunLister.RunParams.runtype

Definition at line 70 of file RunLister.py.

◆ start

python.RunLister.RunParams.start

Definition at line 69 of file RunLister.py.

◆ stop

python.RunLister.RunParams.stop

Definition at line 78 of file RunLister.py.

◆ storedevents

python.RunLister.RunParams.storedevents

Definition at line 86 of file RunLister.py.

◆ totaltime

python.RunLister.RunParams.totaltime

Definition at line 79 of file RunLister.py.


The documentation for this class was generated from the following file:
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
str
Definition: BTagTrackIpAccessor.cxx:11
xAOD::bool
setBGCode setTAP setLVL2ErrorBits bool
Definition: TrigDecision_v1.cxx:60