ATLAS Offline Software
L1CaloRampRunPlan.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 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 <iostream>
12 #include <vector>
13 
21 class L1CaloRampRunPlan : public AbstractL1CaloPersistentCondition, public DataObject {
22  friend std::ostream& operator<<(std::ostream& output, const L1CaloRampRunPlan& rplan);
23 
24 public:
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:
44 
46 
48  std::vector<double> m_vEnergySteps;
49 
50  //int m_iCurrentStep;
53 
54 };
55 
56 CLASS_DEF(L1CaloRampRunPlan , 237325569 , 1 )
57 
58 #endif
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
L1CaloRampRunPlan::makePersistent
virtual DataObject * makePersistent() const
Definition: L1CaloRampRunPlan.cxx:40
L1CaloRampRunPlan::operator<<
friend std::ostream & operator<<(std::ostream &output, const L1CaloRampRunPlan &rplan)
Definition: L1CaloRampRunPlan.cxx:121
L1CaloRampRunPlan::eEnergySteps
@ eEnergySteps
Definition: L1CaloRampRunPlan.h:43
L1CaloRampRunPlan
Transient class defining ramps runplan objects defined by the online framework and retrieved from COO...
Definition: L1CaloRampRunPlan.h:21
L1CaloRampRunPlan::eventsPerStep
int eventsPerStep() const
Definition: L1CaloRampRunPlan.h:34
L1CaloRampRunPlan::status
std::string status()
Definition: L1CaloRampRunPlan.cxx:108
L1CaloRampRunPlan::~L1CaloRampRunPlan
virtual ~L1CaloRampRunPlan()
Definition: L1CaloRampRunPlan.h:28
L1CaloRampRunPlan::m_iCurrentEvent
int m_iCurrentEvent
Definition: L1CaloRampRunPlan.h:52
L1CaloRampRunPlan::makeTransient
virtual void makeTransient(const AthenaAttributeList *&attributeList)
Definition: L1CaloRampRunPlan.cxx:68
L1CaloRampRunPlan::m_bEndOfRampRun
bool m_bEndOfRampRun
Definition: L1CaloRampRunPlan.h:45
AbstractL1CaloPersistentCondition.h
L1CaloRampRunPlan::L1CaloRampRunPlan
L1CaloRampRunPlan()
Definition: L1CaloRampRunPlan.cxx:18
L1CaloRampRunPlan::endOfRun
bool endOfRun()
Definition: L1CaloRampRunPlan.h:40
L1CaloRampRunPlan::nextEvent
void nextEvent()
Definition: L1CaloRampRunPlan.cxx:85
L1CaloRampRunPlan::m_nEventsPerStep
int m_nEventsPerStep
Definition: L1CaloRampRunPlan.h:47
AthenaAttributeList
An AttributeList represents a logical row of attributes in a metadata table. The name and type of eac...
Definition: PersistentDataModel/PersistentDataModel/AthenaAttributeList.h:45
L1CaloRampRunPlan::eAttrSpecification
eAttrSpecification
Definition: L1CaloRampRunPlan.h:43
L1CaloRampRunPlan::energySteps
const std::vector< double > & energySteps() const
Definition: L1CaloRampRunPlan.h:35
merge.output
output
Definition: merge.py:17
L1CaloRampRunPlan::m_itCurrentStep
std::vector< double >::iterator m_itCurrentStep
Definition: L1CaloRampRunPlan.h:51
AbstractL1CaloPersistentCondition::makeTransient
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
Definition: AbstractL1CaloPersistentCondition.cxx:16
L1CaloRampRunPlan::m_vEnergySteps
std::vector< double > m_vEnergySteps
Definition: L1CaloRampRunPlan.h:48
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:64
L1CaloRampRunPlan::currentEnergy
double currentEnergy()
Definition: L1CaloRampRunPlan.h:38
L1CaloRampRunPlan::eEventsPerStep
@ eEventsPerStep
Definition: L1CaloRampRunPlan.h:43
AbstractL1CaloPersistentCondition
AbstractL1CaloConditionContainer abstract base class for L1Calo persistent conditions container objec...
Definition: AbstractL1CaloPersistentCondition.h:22