ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
RatesAnalysisOnlineProcessing.RateEntry Class Reference
Collaboration diagram for RatesAnalysisOnlineProcessing.RateEntry:

Public Member Functions

def __init__ (self, name, group, prescale)
 
def appendRate (self, rate, unprescaledRate)
 
def appendKeys (self, prescaleKeys)
 
def getAvgRate (self)
 
def getAvgUnprescaledRate (self)
 
def getCsvEntry (self)
 
def getUnprescaledCsvEntry (self)
 

Public Attributes

 name
 
 group
 
 rateSum
 
 unprescaledRateSum
 
 prescale
 
 counter
 

Detailed Description

Definition at line 18 of file RatesAnalysisOnlineProcessing.py.

Constructor & Destructor Documentation

◆ __init__()

def RatesAnalysisOnlineProcessing.RateEntry.__init__ (   self,
  name,
  group,
  prescale 
)

Definition at line 20 of file RatesAnalysisOnlineProcessing.py.

20  def __init__(self, name, group, prescale):
21  self.name = name
22  self.group = group
23  self.rateSum = 0
24  self.unprescaledRateSum = 0
25  self.prescale = prescale
26  self.counter = 0
27 

Member Function Documentation

◆ appendKeys()

def RatesAnalysisOnlineProcessing.RateEntry.appendKeys (   self,
  prescaleKeys 
)

Definition at line 35 of file RatesAnalysisOnlineProcessing.py.

35  def appendKeys(self, prescaleKeys):
36  self.prescale += "," + prescaleKeys
37 

◆ appendRate()

def RatesAnalysisOnlineProcessing.RateEntry.appendRate (   self,
  rate,
  unprescaledRate 
)

Definition at line 29 of file RatesAnalysisOnlineProcessing.py.

29  def appendRate(self, rate, unprescaledRate):
30  self.rateSum += rate
31  self.unprescaledRateSum += unprescaledRate
32  self.counter += 1
33 

◆ getAvgRate()

def RatesAnalysisOnlineProcessing.RateEntry.getAvgRate (   self)

Definition at line 38 of file RatesAnalysisOnlineProcessing.py.

38  def getAvgRate(self):
39  return self.rateSum/self.counter if self.counter > 0 else 0
40 

◆ getAvgUnprescaledRate()

def RatesAnalysisOnlineProcessing.RateEntry.getAvgUnprescaledRate (   self)

Definition at line 41 of file RatesAnalysisOnlineProcessing.py.

41  def getAvgUnprescaledRate(self):
42  return self.unprescaledRateSum/self.counter if self.counter > 0 else 0
43 

◆ getCsvEntry()

def RatesAnalysisOnlineProcessing.RateEntry.getCsvEntry (   self)

Definition at line 44 of file RatesAnalysisOnlineProcessing.py.

44  def getCsvEntry(self):
45  #['Name','Group','Rate [Hz]','Rate Err [Hz]', 'Prescale']
46  return [self.name, self.group, round(self.getAvgRate(), 3), 0, self.prescale]
47 

◆ getUnprescaledCsvEntry()

def RatesAnalysisOnlineProcessing.RateEntry.getUnprescaledCsvEntry (   self)

Definition at line 48 of file RatesAnalysisOnlineProcessing.py.

48  def getUnprescaledCsvEntry(self):
49  return [self.name, self.group, round(self.getAvgUnprescaledRate(), 3), 0, self.prescale]
50 
51 

Member Data Documentation

◆ counter

RatesAnalysisOnlineProcessing.RateEntry.counter

Definition at line 26 of file RatesAnalysisOnlineProcessing.py.

◆ group

RatesAnalysisOnlineProcessing.RateEntry.group

Definition at line 22 of file RatesAnalysisOnlineProcessing.py.

◆ name

RatesAnalysisOnlineProcessing.RateEntry.name

Definition at line 21 of file RatesAnalysisOnlineProcessing.py.

◆ prescale

RatesAnalysisOnlineProcessing.RateEntry.prescale

Definition at line 25 of file RatesAnalysisOnlineProcessing.py.

◆ rateSum

RatesAnalysisOnlineProcessing.RateEntry.rateSum

Definition at line 23 of file RatesAnalysisOnlineProcessing.py.

◆ unprescaledRateSum

RatesAnalysisOnlineProcessing.RateEntry.unprescaledRateSum

Definition at line 24 of file RatesAnalysisOnlineProcessing.py.


The documentation for this class was generated from the following file:
MuonGM::round
float round(const float toRound, const unsigned int decimals)
Definition: Mdt.cxx:27
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18