ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigT1
TrigT1CaloCalibConditions
TrigT1CaloCalibConditions
L1CaloRampRunPlan.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef TRIGT1CALOCALIBCONDITIONS_L1CALORAMPRUNPLAN_H
6
#define TRIGT1CALOCALIBCONDITIONS_L1CALORAMPRUNPLAN_H
7
8
#include "
TrigT1CaloCalibConditions/AbstractL1CaloPersistentCondition.h
"
9
#include "GaudiKernel/DataObject.h"
10
11
#include <iosfwd>
12
#include <vector>
13
20
21
class
L1CaloRampRunPlan
:
public
AbstractL1CaloPersistentCondition
,
public
DataObject {
22
friend
std::ostream&
operator<<
(std::ostream& output,
const
L1CaloRampRunPlan
& rplan);
23
24
public
:
25
L1CaloRampRunPlan
();
26
L1CaloRampRunPlan
(
int
nEventsPerStep,
const
std::vector<double>& vEnergySteps);
27
28
virtual
~L1CaloRampRunPlan
() {};
29
30
virtual
DataObject*
makePersistent
()
const
;
31
using
AbstractL1CaloPersistentCondition::makeTransient
;
// to unhide the default implementation of makeTransient
32
virtual
void
makeTransient
(
const
AthenaAttributeList
*& attributeList);
33
34
int
eventsPerStep
()
const
{
return
m_nEventsPerStep
; };
35
const
std::vector<double>&
energySteps
()
const
{
return
m_vEnergySteps
; };
36
37
void
nextEvent
();
38
double
currentEnergy
() {
return
*
m_itCurrentStep
; };
39
std::string
status
();
40
bool
endOfRun
() {
return
m_bEndOfRampRun
; };
41
42
private
:
43
enum
eAttrSpecification
{
eEventsPerStep
,
eEnergySteps
};
44
45
bool
m_bEndOfRampRun
;
46
47
int
m_nEventsPerStep
;
48
std::vector<double>
m_vEnergySteps
;
49
50
//int m_iCurrentStep;
51
std::vector<double>::iterator
m_itCurrentStep
;
52
int
m_iCurrentEvent
;
53
54
};
55
56
CLASS_DEF
(
L1CaloRampRunPlan
, 237325569 , 1 )
57
58
#endif
AbstractL1CaloPersistentCondition.h
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition
Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:67
AbstractL1CaloPersistentCondition::makeTransient
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
Definition
AbstractL1CaloPersistentCondition.cxx:16
AbstractL1CaloPersistentCondition::AbstractL1CaloPersistentCondition
AbstractL1CaloPersistentCondition(const std::string &condType)
Definition
AbstractL1CaloPersistentCondition.h:45
AthenaAttributeList
An AttributeList represents a logical row of attributes in a metadata table.
Definition
PersistentDataModel/PersistentDataModel/AthenaAttributeList.h:46
L1CaloRampRunPlan
Transient class defining ramps runplan objects defined by the online framework and retrieved from COO...
Definition
L1CaloRampRunPlan.h:21
L1CaloRampRunPlan::m_iCurrentEvent
int m_iCurrentEvent
Definition
L1CaloRampRunPlan.h:52
L1CaloRampRunPlan::currentEnergy
double currentEnergy()
Definition
L1CaloRampRunPlan.h:38
L1CaloRampRunPlan::eAttrSpecification
eAttrSpecification
Definition
L1CaloRampRunPlan.h:43
L1CaloRampRunPlan::eEventsPerStep
@ eEventsPerStep
Definition
L1CaloRampRunPlan.h:43
L1CaloRampRunPlan::eEnergySteps
@ eEnergySteps
Definition
L1CaloRampRunPlan.h:43
L1CaloRampRunPlan::L1CaloRampRunPlan
L1CaloRampRunPlan()
Definition
L1CaloRampRunPlan.cxx:18
L1CaloRampRunPlan::m_nEventsPerStep
int m_nEventsPerStep
Definition
L1CaloRampRunPlan.h:47
L1CaloRampRunPlan::m_itCurrentStep
std::vector< double >::iterator m_itCurrentStep
Definition
L1CaloRampRunPlan.h:51
L1CaloRampRunPlan::eventsPerStep
int eventsPerStep() const
Definition
L1CaloRampRunPlan.h:34
L1CaloRampRunPlan::m_bEndOfRampRun
bool m_bEndOfRampRun
Definition
L1CaloRampRunPlan.h:45
L1CaloRampRunPlan::makeTransient
virtual void makeTransient(const AthenaAttributeList *&attributeList)
Definition
L1CaloRampRunPlan.cxx:68
L1CaloRampRunPlan::m_vEnergySteps
std::vector< double > m_vEnergySteps
Definition
L1CaloRampRunPlan.h:48
L1CaloRampRunPlan::energySteps
const std::vector< double > & energySteps() const
Definition
L1CaloRampRunPlan.h:35
L1CaloRampRunPlan::nextEvent
void nextEvent()
Definition
L1CaloRampRunPlan.cxx:85
L1CaloRampRunPlan::status
std::string status()
Definition
L1CaloRampRunPlan.cxx:104
L1CaloRampRunPlan::operator<<
friend std::ostream & operator<<(std::ostream &output, const L1CaloRampRunPlan &rplan)
Definition
L1CaloRampRunPlan.cxx:115
L1CaloRampRunPlan::makePersistent
virtual DataObject * makePersistent() const
Definition
L1CaloRampRunPlan.cxx:40
L1CaloRampRunPlan::endOfRun
bool endOfRun()
Definition
L1CaloRampRunPlan.h:40
L1CaloRampRunPlan::~L1CaloRampRunPlan
virtual ~L1CaloRampRunPlan()
Definition
L1CaloRampRunPlan.h:28
Generated on
for ATLAS Offline Software by
1.17.0