ATLAS Offline Software
Loading...
Searching...
No Matches
L1CaloPprChanStrategyContainer.h
Go to the documentation of this file.
1// -*- C++ -*-
2#ifndef TRIGT1CALOCALIBCONDITIONS_L1CALOPPRCHANSTRATEGYCONTAINER_H
3/*
4 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5*/
6#define TRIGT1CALOCALIBCONDITIONS_L1CALOPPRCHANSTRATEGYCONTAINER_H
7
8#include <map>
9#include <string>
10#include <vector>
12#include "GaudiKernel/DataObject.h"
16
18
19/***
20* Container of L1CaloPprChanStrategy objects. Automatically created using:
21*
22* ../athena/Trigger/TrigT1/TrigT1CaloCalibConditions/python/CreateClassesForFolder.py --db frontier://ATLF/();schema=ATLAS_COOLONL_TRIGGER;dbname=CONDBR2 /TRIGGER/L1Calo/V2/Configuration/PprChanStrategy
23*/
25{
26private:
28public:
30 L1CaloPprChanStrategyContainer(const std::string& folderKey);
32
33 // interface of AbstractL1CaloPersistentCondition
35 virtual void makeTransient(const std::map<std::string, const CondAttrListCollection*>&);
36 virtual DataObject* makePersistent() const;
37 virtual std::vector<std::string> coolInputKeys() const { return {m_coolFolderKey}; }
38 virtual std::string coolOutputKey() const { return m_coolFolderKey; }
39 virtual void clear() { m_pprChanStrategys.clear(); }
40
41 // getters
42 const L1CaloPprChanStrategy* pprChanStrategy(unsigned int channelId) const;
44 return pprChanStrategy(channelId.id());
45 }
46
47 using const_iterator = std::vector<L1CaloPprChanStrategy>::const_iterator;
48 const_iterator begin() const { return m_pprChanStrategys.begin(); }
49 const_iterator end() const { return m_pprChanStrategys.end(); }
50
51 // setters
53
54 void dump() const;
55
56private:
57 std::vector<L1CaloPprChanStrategy> m_pprChanStrategys;
58 std::string m_coolFolderKey = "/TRIGGER/L1Calo/V2/Configuration/PprChanStrategy";
59};
60
63
64#endif // TRIGT1CALOCALIBCONDITIONS_L1CALOPPRCHANSTRATEGYCONTAINER_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.
virtual std::vector< std::string > coolInputKeys() const
void addPprChanStrategy(const L1CaloPprChanStrategy &pprChanStrategy)
std::vector< L1CaloPprChanStrategy >::const_iterator const_iterator
const L1CaloPprChanStrategy * pprChanStrategy(const L1CaloCoolChannelId &channelId) const
const L1CaloPprChanStrategy * pprChanStrategy(unsigned int channelId) const
std::vector< L1CaloPprChanStrategy > m_pprChanStrategys
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &)
Folder <-> Object mapping for /TRIGGER/L1Calo/V2/Configuration/PprChanStrategy .