ATLAS Offline Software
Loading...
Searching...
No Matches
L1CaloDisabledTowersContainer.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_L1CALODISABLEDTOWERSCONTAINER_H
8#define TRIGT1CALOCALIBCONDITIONS_L1CALODISABLEDTOWERSCONTAINER_H
9
10#include <map>
11#include <string>
12#include <vector>
14#include "GaudiKernel/DataObject.h"
18
20
21/***
22* Container of L1CaloDisabledTowers objects. Automatically created using:
23*
24* python/CreateClassesForFolder.py --db frontier://ATLF/();schema=ATLAS_COOLONL_TRIGGER;dbname=CONDBR2 /TRIGGER/L1Calo/V1/Conditions/DisabledTowers
25*/
27{
28private:
30public:
32 L1CaloDisabledTowersContainer(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_disabledTowerss.clear(); }
42
43 // getters
44 const L1CaloDisabledTowers* disabledTowers(unsigned int channelId) const;
46 return disabledTowers(channelId.id());
47 }
48
49 using const_iterator = std::vector<L1CaloDisabledTowers>::const_iterator;
50 const_iterator begin() const { return m_disabledTowerss.begin(); }
51 const_iterator end() const { return m_disabledTowerss.end(); }
52
53 // setters
55
56private:
57 std::vector<L1CaloDisabledTowers> m_disabledTowerss;
58 std::string m_coolFolderKey = "/TRIGGER/L1Calo/V1/Conditions/DisabledTowers";
59};
60
63
64#endif // TRIGT1CALOCALIBCONDITIONS_L1CALODISABLEDTOWERSCONTAINER_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.
const L1CaloDisabledTowers * disabledTowers(unsigned int channelId) const
virtual DataObject * makePersistent() const
virtual std::vector< std::string > coolInputKeys() const
std::vector< L1CaloDisabledTowers > m_disabledTowerss
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &)
std::vector< L1CaloDisabledTowers >::const_iterator const_iterator
const L1CaloDisabledTowers * disabledTowers(const L1CaloCoolChannelId &channelId) const
virtual std::string coolOutputKey() const
void addDisabledTowers(const L1CaloDisabledTowers &disabledTowers)
Folder <-> Object mapping for /TRIGGER/L1Calo/V1/Conditions/DisabledTowers .