ATLAS Offline Software
Loading...
Searching...
No Matches
L1CaloPprChanCalibContainer.h
Go to the documentation of this file.
1// -*- C++ -*-
2
3/*
4 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef TRIGT1CALOCALIBCONDITIONS_L1CALOPPRCHANCALIBCONTAINER_H
8#define TRIGT1CALOCALIBCONDITIONS_L1CALOPPRCHANCALIBCONTAINER_H
9
10#include <map>
11#include <string>
12#include <vector>
14#include "GaudiKernel/DataObject.h"
20
21/***
22* Container of L1CaloPprChanCalib objects. Automatically created using:
23*
24* python/CreateClassesForFolder.py --db frontier://ATLF/();schema=ATLAS_COOLONL_TRIGGER;dbname=CONDBR2 --exclude ModuleId,PprDacScanResultsTimeStamp,PprPedestalRunResultsTimeStamp,PprNoiseRunResultsTimeStamp,PprTimingResultsTimeStamp,PprSatBcidResultsTimeStamp,PprFirFilterResultsTimeStamp,PprLutValuesResultsTimeStamp,DacOffset,DacSlope,FullDelayData,SyncDelayBcid,InBcidNegedge,rateCpEtThresh,rateJepEtThresh /TRIGGER/L1Calo/V2/Calibration/Physics/PprChanCalib
25*/
26class L1CaloPprChanCalibContainer : public DataObject, virtual public AbstractL1CaloPersistentCondition
27{
28private:
30public:
32 L1CaloPprChanCalibContainer(const std::string& folderKey);
34
35 // interface of AbstractL1CaloPersistentCondition
37 virtual void makeTransient(const std::map<std::string, const CondAttrListCollection*>&);
38 virtual DataObject* makePersistent() const;
39 virtual std::vector<std::string> coolInputKeys() const { return {m_coolFolderKey}; }
40 virtual std::string coolOutputKey() const { return m_coolFolderKey; }
41 virtual void clear() { m_pprChanCalibs.clear(); }
42
43 // getters
44 const L1CaloPprChanCalib* pprChanCalib(unsigned int channelId) const;
45 const L1CaloPprChanCalib* pprChanCalib(const L1CaloCoolChannelId& channelId) const {
46 return pprChanCalib(channelId.id());
47 }
48
49 using iterator = std::vector<L1CaloPprChanCalib>::iterator;
50 iterator begin() { return m_pprChanCalibs.begin(); }
51 iterator end() { return m_pprChanCalibs.end(); }
52 using const_iterator = std::vector<L1CaloPprChanCalib>::const_iterator;
53 const_iterator begin() const { return m_pprChanCalibs.begin(); }
54 const_iterator end() const { return m_pprChanCalibs.end(); }
55
56 // setters
58
59private:
60 std::vector<L1CaloPprChanCalib> m_pprChanCalibs;
61 std::string m_coolFolderKey = "/TRIGGER/L1Calo/V2/Calibration/Physics/PprChanCalib";
62};
63
65#endif // TRIGT1CALOCALIBCONDITIONS_L1CALOPPRCHANCALIBCONTAINER_H
Hold mappings of ranges to condition objects.
#define CONDCONT_DEF(...)
Definition CondCont.h:1413
macros to associate a CLID to a type
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
AbstractL1CaloPersistentCondition(const std::string &condType)
This class is a collection of AttributeLists where each one is associated with a channel number.
Encapsulates the ID of one channel of conditions data in COOL, ie the ID of a row in a table.
std::vector< L1CaloPprChanCalib >::const_iterator const_iterator
virtual DataObject * makePersistent() const
const L1CaloPprChanCalib * pprChanCalib(unsigned int channelId) const
std::vector< L1CaloPprChanCalib >::iterator iterator
virtual std::vector< std::string > coolInputKeys() const
virtual std::string coolOutputKey() const
std::vector< L1CaloPprChanCalib > m_pprChanCalibs
const L1CaloPprChanCalib * pprChanCalib(const L1CaloCoolChannelId &channelId) const
void addPprChanCalib(const L1CaloPprChanCalib &pprChanCalib)
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &)
Folder <-> Object mapping for /TRIGGER/L1Calo/V2/Calibration/Physics/PprChanCalib .