ATLAS Offline Software
Loading...
Searching...
No Matches
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
9#include "GaudiKernel/DataObject.h"
10
11#include <iosfwd>
12#include <vector>
13
20
21class L1CaloRampRunPlan : public AbstractL1CaloPersistentCondition, public DataObject {
22 friend std::ostream& operator<<(std::ostream& output, const L1CaloRampRunPlan& rplan);
23
24public:
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
42private:
44
46
48 std::vector<double> m_vEnergySteps;
49
50 //int m_iCurrentStep;
51 std::vector<double>::iterator m_itCurrentStep;
53
54};
55
56CLASS_DEF(L1CaloRampRunPlan , 237325569 , 1 )
57
58#endif
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
AbstractL1CaloPersistentCondition(const std::string &condType)
An AttributeList represents a logical row of attributes in a metadata table.
Transient class defining ramps runplan objects defined by the online framework and retrieved from COO...
std::vector< double >::iterator m_itCurrentStep
int eventsPerStep() const
virtual void makeTransient(const AthenaAttributeList *&attributeList)
std::vector< double > m_vEnergySteps
const std::vector< double > & energySteps() const
friend std::ostream & operator<<(std::ostream &output, const L1CaloRampRunPlan &rplan)
virtual DataObject * makePersistent() const