ATLAS Offline Software
Loading...
Searching...
No Matches
L1CaloPprConditionsContainer.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef TRIGT1CALOCALIBCONDITIONS_L1CALOPPRCONDITIONSCONTAINER_H
6#define TRIGT1CALOCALIBCONDITIONS_L1CALOPPRCONDITIONSCONTAINER_H
7
9
10#include "GaudiKernel/DataObject.h"
11
15#include <map>
16#include <string>
17#include <vector>
18
26
27
29
30private:
36
37public:
39
41 L1CaloPprConditionsContainer(const std::map<L1CaloPprConditionsContainer::eCoolFolders, std::string>& folderKeysMap);
43 virtual DataObject* makePersistent() const;
44
45 // IL1CaloPersistenceCapable interface
46 using AbstractL1CaloPersistentCondition::makeTransient; // to unhide the default implementation of makeTransient
47 virtual void makeTransient(const std::map<std::string, const CondAttrListCollection*>& condAttrListCollectionMap);
48
49 const L1CaloPprConditions* pprConditions(unsigned int channelId) const;
50 const L1CaloPprConditions* pprConditions(const L1CaloCoolChannelId& channelId) const;
51
52 inline unsigned int bcidDecision1() const { return m_bcidDecision1; }
53 inline unsigned int satOverride1() const { return m_satOverride1; }
54 inline unsigned int bcidDecision2() const { return m_bcidDecision2; }
55 inline unsigned int satOverride2() const { return m_satOverride2; }
56 inline unsigned int bcidDecision3() const { return m_bcidDecision3; }
57 inline unsigned int satOverride3() const { return m_satOverride3; }
58 inline unsigned int peakFinderCond() const { return m_peakFinderCond; }
59 inline unsigned int decisionSource() const { return m_decisionSource; }
60
61 virtual std::vector<std::string> coolInputKeys() const;
62 virtual std::string coolOutputKey() const;
63
64 virtual void clear();
65
66 void dump() const;
67
68private:
69 typedef std::vector<L1CaloPprConditions*> L1CaloPprConditionsVec;
70
72
74 std::map<L1CaloPprConditionsContainer::eCoolFolders, std::string> m_mCoolFoldersKeysMap;
75
76 unsigned int m_bcidDecision1;
77 unsigned int m_satOverride1;
78 unsigned int m_bcidDecision2;
79 unsigned int m_satOverride2;
80 unsigned int m_bcidDecision3;
81 unsigned int m_satOverride3;
82 unsigned int m_peakFinderCond;
83 unsigned int m_decisionSource;
84
85 static const unsigned int s_vectorSize = 8192;
86
87};
88
90#endif
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)
Encapsulates the ID of one channel of conditions data in COOL, ie the ID of a row in a table.
Container of L1CaloPprConditions objects, inherit from the abstract base class AbstractL1CaloConditio...
std::map< L1CaloPprConditionsContainer::eCoolFolders, std::string > m_mCoolFoldersKeysMap
const L1CaloPprConditions * pprConditions(unsigned int channelId) const
virtual std::vector< std::string > coolInputKeys() const
virtual DataObject * makePersistent() const
std::string coolFolderKey(L1CaloPprConditionsContainer::eCoolFolders efolder) const
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
std::vector< L1CaloPprConditions * > L1CaloPprConditionsVec
Transient conditions class for objects defined by the online framework and retrieved from COOL.