ATLAS Offline Software
Loading...
Searching...
No Matches
L1CaloPprChanCalibV1Container.h
Go to the documentation of this file.
1// -*- C++ -*-
2
3/*
4 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef TRIGT1CALOCALIBCONDITIONS_L1CALOPPRCHANCALIBV1CONTAINER_H
8#define TRIGT1CALOCALIBCONDITIONS_L1CALOPPRCHANCALIBV1CONTAINER_H
9
10#include <map>
11#include <string>
12#include <vector>
14#include "GaudiKernel/DataObject.h"
17
20
21/***
22* Container of L1CaloPprChanCalibV1 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/V1/Calibration/Physics/PprChanCalib --objectName L1CaloPprChanCalibV1 --containerName L1CaloPprChanCalibV1Container
25*/
27{
28private:
30public:
32 L1CaloPprChanCalibV1Container(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();
42
43 // getters
44 const L1CaloPprChanCalibV1* pprChanCalibV1(unsigned int channelId) const;
46 return pprChanCalibV1(channelId.id());
47 }
48
49 using const_iterator = std::vector<L1CaloPprChanCalibV1>::const_iterator;
52
53 // setters
54 void addPprChanCalibV1(const L1CaloPprChanCalibV1& pprChanCalib);
55
56private:
57 std::vector<L1CaloPprChanCalibV1> m_pprChanCalibs;
58 std::string m_coolFolderKey = "/TRIGGER/L1Calo/V1/Calibration/Physics/PprChanCalib";
59};
60
62
63#endif // TRIGT1CALOCALIBCONDITIONS_L1CALOPPRCHANCALIBV1CONTAINER_H
macros to associate a CLID to a type
#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)
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.
virtual std::vector< std::string > coolInputKeys() const
const_iterator end() const
std::vector< L1CaloPprChanCalibV1 >::const_iterator const_iterator
virtual DataObject * makePersistent() const
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &)
void addPprChanCalibV1(const L1CaloPprChanCalibV1 &pprChanCalib)
std::vector< L1CaloPprChanCalibV1 > m_pprChanCalibs
const_iterator begin() const
const L1CaloPprChanCalibV1 * pprChanCalibV1(unsigned int channelId) const
virtual std::string coolOutputKey() const
const L1CaloPprChanCalibV1 * pprChanCalibV1(const L1CaloCoolChannelId &channelId) const
Folder <-> Object mapping for /TRIGGER/L1Calo/V1/Calibration/Physics/PprChanCalib .