ATLAS Offline Software
Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
L1CaloPprConditionsContainer Class Reference

Container of L1CaloPprConditions objects, inherit from the abstract base class AbstractL1CaloConditionContainer. More...

#include <L1CaloPprConditionsContainer.h>

Inheritance diagram for L1CaloPprConditionsContainer:
Collaboration diagram for L1CaloPprConditionsContainer:

Public Types

enum  eCoolFolders { ePprChanDefaults, ePprChanCalib }
 

Public Member Functions

 L1CaloPprConditionsContainer ()
 
 L1CaloPprConditionsContainer (const std::map< L1CaloPprConditionsContainer::eCoolFolders, std::string > &folderKeysMap)
 
virtual ~L1CaloPprConditionsContainer ()
 
virtual DataObject * makePersistent () const
 
virtual void makeTransient (const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
 
const L1CaloPprConditionspprConditions (unsigned int channelId) const
 
const L1CaloPprConditionspprConditions (const L1CaloCoolChannelId &channelId) const
 
unsigned int bcidDecision1 () const
 
unsigned int satOverride1 () const
 
unsigned int bcidDecision2 () const
 
unsigned int satOverride2 () const
 
unsigned int bcidDecision3 () const
 
unsigned int satOverride3 () const
 
unsigned int peakFinderCond () const
 
unsigned int decisionSource () const
 
virtual std::vector< std::string > coolInputKeys () const
 
virtual std::string coolOutputKey () const
 
virtual void clear ()
 
void dump () const
 
virtual void makeTransient (const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
 
virtual void makeTransient (const std::map< std::string, const AthenaAttributeList * > &condAttributeList)
 
virtual void makeTransient (const std::map< std::string, const AthenaAttributeList * > &condAttributeList)
 
std::string specificationName (int specId) const
 
std::string specificationType (int specId) const
 
void addSpecification (int specId, const std::string &specName, const std::string &specType)
 
coral::AttributeListSpecification * createAttributeListSpecification () const
 
virtual std::string conditionType () const
 

Private Types

enum  eAttrSpecification {
  eExtBcidThreshold, eSatBcidThreshLow, eSatBcidThreshHigh, eSatBcidLevel,
  eBcidEnergyRangeLow, eBcidEnergyRangeHigh, eFirStartBit, eBcidDecision1,
  eSatOverride1, eBcidDecision2, eSatOverride2, eBcidDecision3,
  eSatOverride3, ePeakFinderCond, eDecisionSource, eFirCoeff1,
  eFirCoeff2, eFirCoeff3, eFirCoeff4, eFirCoeff5,
  eLutStrategy, eLutOffset, eLutSlope, eLutNoiseCut,
  ePedValue, ePedMean
}
 
typedef std::vector< L1CaloPprConditions * > L1CaloPprConditionsVec
 
typedef std::map< int, std::string > AttrSpecificationMap
 

Private Member Functions

std::string coolFolderKey (L1CaloPprConditionsContainer::eCoolFolders efolder) const
 

Private Attributes

L1CaloPprConditionsVec m_mPprConditionsVec
 
std::map< L1CaloPprConditionsContainer::eCoolFolders, std::string > m_mCoolFoldersKeysMap
 
unsigned int m_bcidDecision1
 
unsigned int m_satOverride1
 
unsigned int m_bcidDecision2
 
unsigned int m_satOverride2
 
unsigned int m_bcidDecision3
 
unsigned int m_satOverride3
 
unsigned int m_peakFinderCond
 
unsigned int m_decisionSource
 
AttrSpecificationMap m_attrSpecificationNameMap
 
AttrSpecificationMap m_attrSpecificationTypeMap
 
std::string m_strConditionType
 

Static Private Attributes

static const unsigned int s_vectorSize = 8192
 

Detailed Description

Container of L1CaloPprConditions objects, inherit from the abstract base class AbstractL1CaloConditionContainer.

Implement the IL1CaloPersistenceCapable interface.

Author
Peter Faulkner

Definition at line 28 of file L1CaloPprConditionsContainer.h.

Member Typedef Documentation

◆ AttrSpecificationMap

typedef std::map<int, std::string> AbstractL1CaloPersistentCondition::AttrSpecificationMap
privateinherited

Definition at line 50 of file AbstractL1CaloPersistentCondition.h.

◆ L1CaloPprConditionsVec

Definition at line 69 of file L1CaloPprConditionsContainer.h.

Member Enumeration Documentation

◆ eAttrSpecification

Enumerator
eExtBcidThreshold 
eSatBcidThreshLow 
eSatBcidThreshHigh 
eSatBcidLevel 
eBcidEnergyRangeLow 
eBcidEnergyRangeHigh 
eFirStartBit 
eBcidDecision1 
eSatOverride1 
eBcidDecision2 
eSatOverride2 
eBcidDecision3 
eSatOverride3 
ePeakFinderCond 
eDecisionSource 
eFirCoeff1 
eFirCoeff2 
eFirCoeff3 
eFirCoeff4 
eFirCoeff5 
eLutStrategy 
eLutOffset 
eLutSlope 
eLutNoiseCut 
ePedValue 
ePedMean 

Definition at line 31 of file L1CaloPprConditionsContainer.h.

◆ eCoolFolders

Enumerator
ePprChanDefaults 
ePprChanCalib 

Definition at line 38 of file L1CaloPprConditionsContainer.h.

Constructor & Destructor Documentation

◆ L1CaloPprConditionsContainer() [1/2]

L1CaloPprConditionsContainer::L1CaloPprConditionsContainer ( )

Definition at line 19 of file L1CaloPprConditionsContainer.cxx.

19  :AbstractL1CaloPersistentCondition("CondAttrListCollection"),
20  m_bcidDecision1(0),
21  m_satOverride1(0),
22  m_bcidDecision2(0),
23  m_satOverride2(0),
24  m_bcidDecision3(0),
25  m_satOverride3(0),
28 {
29  // Define DB rows names and types in order to construct the AttributeListSpecification object
30  this->addSpecification(eExtBcidThreshold, std::string("ExtBcidThreshold"), std::string("UInt16"));
31  this->addSpecification(eSatBcidThreshLow, std::string("SatBcidThreshLow"), std::string("UInt16"));
32  this->addSpecification(eSatBcidThreshHigh, std::string("SatBcidThreshHigh"), std::string("UInt16"));
33  this->addSpecification(eSatBcidLevel, std::string("SatBcidLevel"), std::string("UInt16"));
34  this->addSpecification(eBcidEnergyRangeLow, std::string("BcidEnergyRangeLow"), std::string("UInt16"));
35  this->addSpecification(eBcidEnergyRangeHigh, std::string("BcidEnergyRangeHigh"), std::string("UInt16"));
36  this->addSpecification(eFirStartBit, std::string("FirStartBit"), std::string("UInt16"));
37  this->addSpecification(eBcidDecision1, std::string("CR12_BcidDecision1"), std::string("UInt32"));
38  this->addSpecification(eSatOverride1, std::string("CR12_SatOverride1"), std::string("UInt32"));
39  this->addSpecification(eBcidDecision2, std::string("CR13_BcidDecision2"), std::string("UInt32"));
40  this->addSpecification(eSatOverride2, std::string("CR13_SatOverride2"), std::string("UInt32"));
41  this->addSpecification(eBcidDecision3, std::string("CR14_BcidDecision3"), std::string("UInt32"));
42  this->addSpecification(eSatOverride3, std::string("CR14_SatOverride3"), std::string("UInt32"));
43  this->addSpecification(ePeakFinderCond, std::string("CR15_PeakFinderCond"), std::string("UInt32"));
44  this->addSpecification(eDecisionSource, std::string("CR15_DecisionSource"), std::string("UInt32"));
45 
46  this->addSpecification(eFirCoeff1, std::string("FirCoeff1"), std::string("short"));
47  this->addSpecification(eFirCoeff2, std::string("FirCoeff2"), std::string("short"));
48  this->addSpecification(eFirCoeff3, std::string("FirCoeff3"), std::string("short"));
49  this->addSpecification(eFirCoeff4, std::string("FirCoeff4"), std::string("short"));
50  this->addSpecification(eFirCoeff5, std::string("FirCoeff5"), std::string("short"));
51 
52  this->addSpecification(eLutStrategy, std::string("LutStrategy"), std::string("UInt16"));
53  this->addSpecification(eLutOffset, std::string("LutOffset"), std::string("UInt16"));
54  this->addSpecification(eLutSlope, std::string("LutSlope"), std::string("UInt16"));
55  this->addSpecification(eLutNoiseCut, std::string("LutNoiseCut"), std::string("UInt16"));
56  this->addSpecification(ePedValue, std::string("PedValue"), std::string("UInt32"));
57  this->addSpecification(ePedMean, std::string("PedMean"), std::string("Double"));
58 
59  m_mCoolFoldersKeysMap[L1CaloPprConditionsContainer::ePprChanCalib] = std::string("/TRIGGER/L1Calo/V1/Calibration/Physics/PprChanCalib");
60  m_mCoolFoldersKeysMap[L1CaloPprConditionsContainer::ePprChanDefaults] = std::string("/TRIGGER/L1Calo/V1/Configuration/PprChanDefaults");
61 
63  this->clear();
64 }

◆ L1CaloPprConditionsContainer() [2/2]

L1CaloPprConditionsContainer::L1CaloPprConditionsContainer ( const std::map< L1CaloPprConditionsContainer::eCoolFolders, std::string > &  folderKeysMap)

Definition at line 66 of file L1CaloPprConditionsContainer.cxx.

66  :AbstractL1CaloPersistentCondition("CondAttrListCollection"),
67  m_mCoolFoldersKeysMap(folderKeysMap),
68  m_bcidDecision1(0),
69  m_satOverride1(0),
70  m_bcidDecision2(0),
71  m_satOverride2(0),
72  m_bcidDecision3(0),
73  m_satOverride3(0),
76 {
77  // Define DB rows names and types in order to construct the AttributeListSpecification object
78  this->addSpecification(eExtBcidThreshold, std::string("ExtBcidThreshold"), std::string("UInt16"));
79  this->addSpecification(eSatBcidThreshLow, std::string("SatBcidThreshLow"), std::string("UInt16"));
80  this->addSpecification(eSatBcidThreshHigh, std::string("SatBcidThreshHigh"), std::string("UInt16"));
81  this->addSpecification(eSatBcidLevel, std::string("SatBcidLevel"), std::string("UInt16"));
82  this->addSpecification(eBcidEnergyRangeLow, std::string("BcidEnergyRangeLow"), std::string("UInt16"));
83  this->addSpecification(eBcidEnergyRangeHigh, std::string("BcidEnergyRangeHigh"), std::string("UInt16"));
84  this->addSpecification(eFirStartBit, std::string("FirStartBit"), std::string("UInt16"));
85  this->addSpecification(eBcidDecision1, std::string("CR12_BcidDecision1"), std::string("UInt32"));
86  this->addSpecification(eSatOverride1, std::string("CR12_SatOverride1"), std::string("UInt32"));
87  this->addSpecification(eBcidDecision2, std::string("CR13_BcidDecision2"), std::string("UInt32"));
88  this->addSpecification(eSatOverride2, std::string("CR13_SatOverride2"), std::string("UInt32"));
89  this->addSpecification(eBcidDecision3, std::string("CR14_BcidDecision3"), std::string("UInt32"));
90  this->addSpecification(eSatOverride3, std::string("CR14_SatOverride3"), std::string("UInt32"));
91  this->addSpecification(ePeakFinderCond, std::string("CR15_PeakFinderCond"), std::string("UInt32"));
92  this->addSpecification(eDecisionSource, std::string("CR15_DecisionSource"), std::string("UInt32"));
93 
94  this->addSpecification(eFirCoeff1, std::string("FirCoeff1"), std::string("short"));
95  this->addSpecification(eFirCoeff2, std::string("FirCoeff2"), std::string("short"));
96  this->addSpecification(eFirCoeff3, std::string("FirCoeff3"), std::string("short"));
97  this->addSpecification(eFirCoeff4, std::string("FirCoeff4"), std::string("short"));
98  this->addSpecification(eFirCoeff5, std::string("FirCoeff5"), std::string("short"));
99 
100  this->addSpecification(eLutStrategy, std::string("LutStrategy"), std::string("UInt16"));
101  this->addSpecification(eLutOffset, std::string("LutOffset"), std::string("UInt16"));
102  this->addSpecification(eLutSlope, std::string("LutSlope"), std::string("UInt16"));
103  this->addSpecification(eLutNoiseCut, std::string("LutNoiseCut"), std::string("UInt16"));
104  this->addSpecification(ePedValue, std::string("PedValue"), std::string("UInt32"));
105  this->addSpecification(ePedMean, std::string("PedMean"), std::string("Double"));
106 
108  this->clear();
109 }

◆ ~L1CaloPprConditionsContainer()

L1CaloPprConditionsContainer::~L1CaloPprConditionsContainer ( )
virtual

Definition at line 111 of file L1CaloPprConditionsContainer.cxx.

112 {
113  this->clear();
114 }

Member Function Documentation

◆ addSpecification()

void AbstractL1CaloPersistentCondition::addSpecification ( int  specId,
const std::string &  specName,
const std::string &  specType 
)
inherited

Definition at line 26 of file AbstractL1CaloPersistentCondition.cxx.

26  {
27  m_attrSpecificationNameMap[specId] = specName;
28  m_attrSpecificationTypeMap[specId] = specType;
29 }

◆ bcidDecision1()

unsigned int L1CaloPprConditionsContainer::bcidDecision1 ( ) const
inline

Definition at line 52 of file L1CaloPprConditionsContainer.h.

52 { return m_bcidDecision1; }

◆ bcidDecision2()

unsigned int L1CaloPprConditionsContainer::bcidDecision2 ( ) const
inline

Definition at line 54 of file L1CaloPprConditionsContainer.h.

54 { return m_bcidDecision2; }

◆ bcidDecision3()

unsigned int L1CaloPprConditionsContainer::bcidDecision3 ( ) const
inline

Definition at line 56 of file L1CaloPprConditionsContainer.h.

56 { return m_bcidDecision3; }

◆ clear()

void L1CaloPprConditionsContainer::clear ( )
virtual

Reimplemented from AbstractL1CaloPersistentCondition.

Definition at line 247 of file L1CaloPprConditionsContainer.cxx.

247  {
248  L1CaloPprConditionsVec::const_iterator pos = m_mPprConditionsVec.begin();
249  L1CaloPprConditionsVec::const_iterator posE = m_mPprConditionsVec.end();
250  for(; pos != posE; ++pos) if (*pos) delete *pos;
251  L1CaloPprConditions* p = 0;
253 }

◆ conditionType()

virtual std::string AbstractL1CaloPersistentCondition::conditionType ( ) const
inlinevirtualinherited

Implements IL1CaloPersistenceCapable.

Definition at line 37 of file AbstractL1CaloPersistentCondition.h.

37 { return m_strConditionType; };

◆ coolFolderKey()

std::string L1CaloPprConditionsContainer::coolFolderKey ( L1CaloPprConditionsContainer::eCoolFolders  efolder) const
private

Definition at line 116 of file L1CaloPprConditionsContainer.cxx.

116  {
117 
118  std::map<L1CaloPprConditionsContainer::eCoolFolders, std::string>::const_iterator it = m_mCoolFoldersKeysMap.find(efolder);
119  if(it!=m_mCoolFoldersKeysMap.end()) {
120  return it->second;
121  } else {
122  return std::string("");
123  }
124 }

◆ coolInputKeys()

std::vector< std::string > L1CaloPprConditionsContainer::coolInputKeys ( ) const
virtual

Reimplemented from AbstractL1CaloPersistentCondition.

Definition at line 126 of file L1CaloPprConditionsContainer.cxx.

126  {
127  std::vector<std::string> v;
130  return v;
131 }

◆ coolOutputKey()

std::string L1CaloPprConditionsContainer::coolOutputKey ( ) const
virtual

Reimplemented from AbstractL1CaloPersistentCondition.

Definition at line 133 of file L1CaloPprConditionsContainer.cxx.

133  {
135 }

◆ createAttributeListSpecification()

coral::AttributeListSpecification * AbstractL1CaloPersistentCondition::createAttributeListSpecification ( ) const
inherited

Definition at line 31 of file AbstractL1CaloPersistentCondition.cxx.

31  {
32 
33  coral::AttributeListSpecification* attrSpecification = new coral::AttributeListSpecification();
34 
35  AttrSpecificationMap::const_iterator it_name = m_attrSpecificationNameMap.begin();
36  AttrSpecificationMap::const_iterator it_type = m_attrSpecificationTypeMap.begin();
37 
38  for(;it_name!=m_attrSpecificationNameMap.end();++it_name,++it_type) {
39  attrSpecification->extend(it_name->second, it_type->second);
40  }
41  return attrSpecification;
42 }

◆ decisionSource()

unsigned int L1CaloPprConditionsContainer::decisionSource ( ) const
inline

Definition at line 59 of file L1CaloPprConditionsContainer.h.

59 { return m_decisionSource; }

◆ dump()

void L1CaloPprConditionsContainer::dump ( ) const

Definition at line 231 of file L1CaloPprConditionsContainer.cxx.

231  {
232  std::cout << "bcidDecision1: " << m_bcidDecision1 << ", "
233  << "satOverride1: " << m_satOverride1 << ", "
234  << "bcidDecision2: " << m_bcidDecision2 << ", "
235  << "satOverride2: " << m_satOverride2 << ", "
236  << "bcidDecision3: " << m_bcidDecision3 << ", "
237  << "satOverride3: " << m_satOverride3 << ", "
238  << "peakFinderCond: " << m_peakFinderCond << ", "
239  << "decisionSource: " << m_decisionSource << std::endl;
240  L1CaloPprConditionsVec::const_iterator it = m_mPprConditionsVec.begin();
241  L1CaloPprConditionsVec::const_iterator itE = m_mPprConditionsVec.end();
242  for (int index = 0; it != itE; ++it, ++index) {
243  if (*it) std::cout << "index " << index << " * item: " << *it << std::endl;
244  }
245 }

◆ makePersistent()

DataObject * L1CaloPprConditionsContainer::makePersistent ( ) const
virtual

Reimplemented from AbstractL1CaloPersistentCondition.

Definition at line 137 of file L1CaloPprConditionsContainer.cxx.

137  {
138  // this container is not supposed to be saved to COOL
139  return 0;
140 }

◆ makeTransient() [1/4]

void AbstractL1CaloPersistentCondition::makeTransient ( const std::map< std::string, const AthenaAttributeList * > &  condAttributeList)
virtualinherited

Implements IL1CaloPersistenceCapable.

Definition at line 21 of file AbstractL1CaloPersistentCondition.cxx.

21  {
22  std::cout << "ERROR - The makeTransient(const map<std::string, const AthenaAttributeList*>) method you are calling is not implemented by the current class !" << std::endl;
23  return;
24 }

◆ makeTransient() [2/4]

void AbstractL1CaloPersistentCondition::makeTransient

Definition at line 30 of file AbstractL1CaloPersistentCondition.cxx.

21  {
22  std::cout << "ERROR - The makeTransient(const map<std::string, const AthenaAttributeList*>) method you are calling is not implemented by the current class !" << std::endl;
23  return;
24 }

◆ makeTransient() [3/4]

void AbstractL1CaloPersistentCondition::makeTransient

Definition at line 29 of file AbstractL1CaloPersistentCondition.cxx.

16  {
17  std::cout << "ERROR - The makeTransient(const map<std::string, const CondAttrListCollection*>) method you are calling is not implemented by the current class !" << std::endl;
18  return;
19 }

◆ makeTransient() [4/4]

void L1CaloPprConditionsContainer::makeTransient ( const std::map< std::string, const CondAttrListCollection * > &  condAttrListCollectionMap)
virtual

Reimplemented from AbstractL1CaloPersistentCondition.

Definition at line 142 of file L1CaloPprConditionsContainer.cxx.

142  {
143 
144  this->clear();
145 
146  std::string chanCalibFolderKey(this->coolFolderKey(L1CaloPprConditionsContainer::ePprChanCalib));
147  std::map<std::string, const CondAttrListCollection*>::const_iterator it_pprChanCalibAttrListCollection = condAttrListCollectionMap.find(chanCalibFolderKey);
148  if(it_pprChanCalibAttrListCollection==condAttrListCollectionMap.end()) {
149  std::cout<<"L1CaloPprConditionsContainer : Could not find requested CondAttrListCollection "<< chanCalibFolderKey << std::endl;
150  return;
151  }
152 
153  const CondAttrListCollection* chanCalibAttrListCollection = it_pprChanCalibAttrListCollection->second;
154 
155  std::string chanDefaultsFolderKey(this->coolFolderKey(L1CaloPprConditionsContainer::ePprChanDefaults));
156  std::map<std::string, const CondAttrListCollection*>::const_iterator it_pprChanDefaultsAttrListCollection = condAttrListCollectionMap.find(chanDefaultsFolderKey);
157  if(it_pprChanDefaultsAttrListCollection==condAttrListCollectionMap.end()) {
158  std::cout<<"L1CaloPprConditionsContainer : Could not find requested CondAttrListCollection "<< chanDefaultsFolderKey << std::endl;
159  return;
160  }
161 
162  const CondAttrListCollection* chanDefaultsAttrListCollection = it_pprChanDefaultsAttrListCollection->second;
163 
164  // There should be only one channel (channel#1) in the Default folder
165  // we just retrieve that one, waiting for a better method to retrieve that information.
166  const int defaultChannel = 1;
167  const coral::AttributeList& chanDefaultAttrList(chanDefaultsAttrListCollection->attributeList(defaultChannel));
168 
169  m_bcidDecision1 = chanDefaultAttrList[ this->specificationName(eBcidDecision1) ].data<unsigned int>();
170  m_satOverride1 = chanDefaultAttrList[ this->specificationName(eSatOverride1) ].data<unsigned int>();
171  m_bcidDecision2 = chanDefaultAttrList[ this->specificationName(eBcidDecision2) ].data<unsigned int>();
172  m_satOverride2 = chanDefaultAttrList[ this->specificationName(eSatOverride2) ].data<unsigned int>();
173  m_bcidDecision3 = chanDefaultAttrList[ this->specificationName(eBcidDecision3) ].data<unsigned int>();
174  m_satOverride3 = chanDefaultAttrList[ this->specificationName(eSatOverride3) ].data<unsigned int>();
175  m_peakFinderCond = chanDefaultAttrList[ this->specificationName(ePeakFinderCond) ].data<unsigned int>();
176  m_decisionSource = chanDefaultAttrList[ this->specificationName(eDecisionSource) ].data<unsigned int>();
177 
178  //loop over CondAttrListCollection
179  CondAttrListCollection::const_iterator it_AttrListColl = chanCalibAttrListCollection->begin();
180  for(;it_AttrListColl!=chanCalibAttrListCollection->end();++it_AttrListColl) {
181 
182  CondAttrListCollection::ChanNum chanNum(it_AttrListColl->first);
183  const coral::AttributeList& chanCalibAttrList(it_AttrListColl->second);
184 
185  unsigned short extBcidThreshold = chanCalibAttrList[ this->specificationName(eExtBcidThreshold) ].data<unsigned short>();
186  unsigned short satBcidThreshLow = chanCalibAttrList[ this->specificationName(eSatBcidThreshLow) ].data<unsigned short>();
187  unsigned short satBcidThreshHigh = chanCalibAttrList[ this->specificationName(eSatBcidThreshHigh) ].data<unsigned short>();
188  unsigned short satBcidLevel = chanCalibAttrList[ this->specificationName(eSatBcidLevel) ].data<unsigned short>();
189 
190  unsigned short bcidEnergyRangeLow = chanCalibAttrList[ this->specificationName(eBcidEnergyRangeLow) ].data<unsigned short>();
191  unsigned short bcidEnergyRangeHigh = chanCalibAttrList[ this->specificationName(eBcidEnergyRangeHigh) ].data<unsigned short>();
192 
193  unsigned short firStartBit = chanCalibAttrList[ this->specificationName(eFirStartBit) ].data<unsigned short>();
194 
195  short int firCoeff1 = chanCalibAttrList[ this->specificationName(eFirCoeff1) ].data<short>();
196  short int firCoeff2 = chanCalibAttrList[ this->specificationName(eFirCoeff2) ].data<short>();
197  short int firCoeff3 = chanCalibAttrList[ this->specificationName(eFirCoeff3) ].data<short>();
198  short int firCoeff4 = chanCalibAttrList[ this->specificationName(eFirCoeff4) ].data<short>();
199  short int firCoeff5 = chanCalibAttrList[ this->specificationName(eFirCoeff5) ].data<short>();
200 
201  unsigned short lutStrategy = chanCalibAttrList[ this->specificationName(eLutStrategy) ].data<unsigned short>();
202  unsigned short lutOffset = chanCalibAttrList[ this->specificationName(eLutOffset) ].data<unsigned short>();
203  unsigned short lutSlope = chanCalibAttrList[ this->specificationName(eLutSlope) ].data<unsigned short>();
204  unsigned short lutNoiseCut = chanCalibAttrList[ this->specificationName(eLutNoiseCut) ].data<unsigned short>();
205  unsigned int pedValue = chanCalibAttrList[ this->specificationName(ePedValue) ].data<unsigned int>();
206  float pedMean = (float) chanCalibAttrList[ this->specificationName(ePedMean) ].data<double>();
207 
209  unsigned int index = (coolId.crate()<<10)+(coolId.module()<<6)+(coolId.subModule()<<2)+coolId.channel();
210  if (index < s_vectorSize) {
211  L1CaloPprConditions* l1Calocond = new L1CaloPprConditions(extBcidThreshold, satBcidThreshLow, satBcidThreshHigh,
212  satBcidLevel, bcidEnergyRangeLow, bcidEnergyRangeHigh,
213  firStartBit, firCoeff1, firCoeff2, firCoeff3, firCoeff4, firCoeff5,
214  lutStrategy, lutOffset, lutSlope, lutNoiseCut, pedValue, pedMean);
215  m_mPprConditionsVec[index] = l1Calocond;
216  }
217  }
218 }

◆ peakFinderCond()

unsigned int L1CaloPprConditionsContainer::peakFinderCond ( ) const
inline

Definition at line 58 of file L1CaloPprConditionsContainer.h.

58 { return m_peakFinderCond; }

◆ pprConditions() [1/2]

const L1CaloPprConditions * L1CaloPprConditionsContainer::pprConditions ( const L1CaloCoolChannelId channelId) const

Definition at line 225 of file L1CaloPprConditionsContainer.cxx.

225  {
226  unsigned int index = (channelId.crate()<<10)+(channelId.module()<<6)+(channelId.subModule()<<2)+channelId.channel();
228  else return 0;
229 }

◆ pprConditions() [2/2]

const L1CaloPprConditions * L1CaloPprConditionsContainer::pprConditions ( unsigned int  channelId) const

Definition at line 220 of file L1CaloPprConditionsContainer.cxx.

220  {
222  return pprConditions(coolId);
223 }

◆ satOverride1()

unsigned int L1CaloPprConditionsContainer::satOverride1 ( ) const
inline

Definition at line 53 of file L1CaloPprConditionsContainer.h.

53 { return m_satOverride1; }

◆ satOverride2()

unsigned int L1CaloPprConditionsContainer::satOverride2 ( ) const
inline

Definition at line 55 of file L1CaloPprConditionsContainer.h.

55 { return m_satOverride2; }

◆ satOverride3()

unsigned int L1CaloPprConditionsContainer::satOverride3 ( ) const
inline

Definition at line 57 of file L1CaloPprConditionsContainer.h.

57 { return m_satOverride3; }

◆ specificationName()

std::string AbstractL1CaloPersistentCondition::specificationName ( int  specId) const
inherited

Definition at line 44 of file AbstractL1CaloPersistentCondition.cxx.

44  {
45  return m_attrSpecificationNameMap.find(specId)->second;
46 }

◆ specificationType()

std::string AbstractL1CaloPersistentCondition::specificationType ( int  specId) const
inherited

Definition at line 48 of file AbstractL1CaloPersistentCondition.cxx.

48  {
49  return m_attrSpecificationTypeMap.find(specId)->second;
50 }

Member Data Documentation

◆ m_attrSpecificationNameMap

AttrSpecificationMap AbstractL1CaloPersistentCondition::m_attrSpecificationNameMap
privateinherited

Definition at line 51 of file AbstractL1CaloPersistentCondition.h.

◆ m_attrSpecificationTypeMap

AttrSpecificationMap AbstractL1CaloPersistentCondition::m_attrSpecificationTypeMap
privateinherited

Definition at line 52 of file AbstractL1CaloPersistentCondition.h.

◆ m_bcidDecision1

unsigned int L1CaloPprConditionsContainer::m_bcidDecision1
private

Definition at line 76 of file L1CaloPprConditionsContainer.h.

◆ m_bcidDecision2

unsigned int L1CaloPprConditionsContainer::m_bcidDecision2
private

Definition at line 78 of file L1CaloPprConditionsContainer.h.

◆ m_bcidDecision3

unsigned int L1CaloPprConditionsContainer::m_bcidDecision3
private

Definition at line 80 of file L1CaloPprConditionsContainer.h.

◆ m_decisionSource

unsigned int L1CaloPprConditionsContainer::m_decisionSource
private

Definition at line 83 of file L1CaloPprConditionsContainer.h.

◆ m_mCoolFoldersKeysMap

std::map<L1CaloPprConditionsContainer::eCoolFolders, std::string> L1CaloPprConditionsContainer::m_mCoolFoldersKeysMap
private

Definition at line 74 of file L1CaloPprConditionsContainer.h.

◆ m_mPprConditionsVec

L1CaloPprConditionsVec L1CaloPprConditionsContainer::m_mPprConditionsVec
private

Definition at line 73 of file L1CaloPprConditionsContainer.h.

◆ m_peakFinderCond

unsigned int L1CaloPprConditionsContainer::m_peakFinderCond
private

Definition at line 82 of file L1CaloPprConditionsContainer.h.

◆ m_satOverride1

unsigned int L1CaloPprConditionsContainer::m_satOverride1
private

Definition at line 77 of file L1CaloPprConditionsContainer.h.

◆ m_satOverride2

unsigned int L1CaloPprConditionsContainer::m_satOverride2
private

Definition at line 79 of file L1CaloPprConditionsContainer.h.

◆ m_satOverride3

unsigned int L1CaloPprConditionsContainer::m_satOverride3
private

Definition at line 81 of file L1CaloPprConditionsContainer.h.

◆ m_strConditionType

std::string AbstractL1CaloPersistentCondition::m_strConditionType
privateinherited

Definition at line 53 of file AbstractL1CaloPersistentCondition.h.

◆ s_vectorSize

const unsigned int L1CaloPprConditionsContainer::s_vectorSize = 8192
staticprivate

Definition at line 85 of file L1CaloPprConditionsContainer.h.


The documentation for this class was generated from the following files:
L1CaloPprConditionsContainer::m_satOverride1
unsigned int m_satOverride1
Definition: L1CaloPprConditionsContainer.h:77
L1CaloPprConditionsContainer::eLutSlope
@ eLutSlope
Definition: L1CaloPprConditionsContainer.h:35
L1CaloPprConditionsContainer::m_satOverride2
unsigned int m_satOverride2
Definition: L1CaloPprConditionsContainer.h:79
L1CaloPprConditionsContainer::eLutStrategy
@ eLutStrategy
Definition: L1CaloPprConditionsContainer.h:35
L1CaloPprConditionsContainer::eBcidEnergyRangeHigh
@ eBcidEnergyRangeHigh
Definition: L1CaloPprConditionsContainer.h:32
CondAttrListCollection::end
const_iterator end() const
Definition: CondAttrListCollection.h:315
L1CaloPprConditionsContainer::s_vectorSize
static const unsigned int s_vectorSize
Definition: L1CaloPprConditionsContainer.h:85
L1CaloPprConditionsContainer::eFirCoeff1
@ eFirCoeff1
Definition: L1CaloPprConditionsContainer.h:34
AbstractL1CaloPersistentCondition::m_attrSpecificationTypeMap
AttrSpecificationMap m_attrSpecificationTypeMap
Definition: AbstractL1CaloPersistentCondition.h:52
L1CaloPprConditionsContainer::coolFolderKey
std::string coolFolderKey(L1CaloPprConditionsContainer::eCoolFolders efolder) const
Definition: L1CaloPprConditionsContainer.cxx:116
L1CaloPprConditionsContainer::ePedValue
@ ePedValue
Definition: L1CaloPprConditionsContainer.h:35
L1CaloPprConditionsContainer::ePeakFinderCond
@ ePeakFinderCond
Definition: L1CaloPprConditionsContainer.h:34
L1CaloPprConditionsContainer::m_bcidDecision3
unsigned int m_bcidDecision3
Definition: L1CaloPprConditionsContainer.h:80
L1CaloPprConditionsContainer::eSatBcidLevel
@ eSatBcidLevel
Definition: L1CaloPprConditionsContainer.h:31
L1CaloPprConditionsContainer::pprConditions
const L1CaloPprConditions * pprConditions(unsigned int channelId) const
Definition: L1CaloPprConditionsContainer.cxx:220
index
Definition: index.py:1
skel.it
it
Definition: skel.GENtoEVGEN.py:396
L1CaloPprConditionsContainer::eLutOffset
@ eLutOffset
Definition: L1CaloPprConditionsContainer.h:35
AbstractL1CaloPersistentCondition::addSpecification
void addSpecification(int specId, const std::string &specName, const std::string &specType)
Definition: AbstractL1CaloPersistentCondition.cxx:26
CondAttrListCollection::begin
const_iterator begin() const
Access to Chan/AttributeList pairs via iterators.
Definition: CondAttrListCollection.h:309
L1CaloPprConditionsContainer::eDecisionSource
@ eDecisionSource
Definition: L1CaloPprConditionsContainer.h:34
python.PyKernel.AttributeList
AttributeList
Definition: PyKernel.py:36
L1CaloPprConditionsContainer::m_mCoolFoldersKeysMap
std::map< L1CaloPprConditionsContainer::eCoolFolders, std::string > m_mCoolFoldersKeysMap
Definition: L1CaloPprConditionsContainer.h:74
L1CaloPprConditionsContainer::ePedMean
@ ePedMean
Definition: L1CaloPprConditionsContainer.h:35
CondAttrListCollection
This class is a collection of AttributeLists where each one is associated with a channel number....
Definition: CondAttrListCollection.h:52
L1CaloPprConditionsContainer::eFirCoeff2
@ eFirCoeff2
Definition: L1CaloPprConditionsContainer.h:34
TruthTest.itE
itE
Definition: TruthTest.py:25
L1CaloPprConditionsContainer::eBcidDecision1
@ eBcidDecision1
Definition: L1CaloPprConditionsContainer.h:33
L1CaloPprConditionsContainer::eSatOverride2
@ eSatOverride2
Definition: L1CaloPprConditionsContainer.h:33
L1CaloPprConditionsContainer::eBcidDecision3
@ eBcidDecision3
Definition: L1CaloPprConditionsContainer.h:33
L1CaloPprConditionsContainer::eSatBcidThreshHigh
@ eSatBcidThreshHigh
Definition: L1CaloPprConditionsContainer.h:31
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
checkCoolLatestUpdate.chanNum
chanNum
Definition: checkCoolLatestUpdate.py:27
L1CaloPprConditionsContainer::clear
virtual void clear()
Definition: L1CaloPprConditionsContainer.cxx:247
L1CaloPprConditionsContainer::eFirCoeff3
@ eFirCoeff3
Definition: L1CaloPprConditionsContainer.h:34
L1CaloPprConditionsContainer::eBcidDecision2
@ eBcidDecision2
Definition: L1CaloPprConditionsContainer.h:33
AbstractL1CaloPersistentCondition::AbstractL1CaloPersistentCondition
AbstractL1CaloPersistentCondition(const std::string &condType)
Definition: AbstractL1CaloPersistentCondition.h:45
L1CaloPprConditionsContainer::m_mPprConditionsVec
L1CaloPprConditionsVec m_mPprConditionsVec
Definition: L1CaloPprConditionsContainer.h:73
AbstractL1CaloPersistentCondition::m_attrSpecificationNameMap
AttrSpecificationMap m_attrSpecificationNameMap
Definition: AbstractL1CaloPersistentCondition.h:51
CondAttrListCollection::attributeList
const AttributeList & attributeList(ChanNum chanNum) const
attribute list for a given channel number
Definition: CondAttrListCollection.h:401
CaloCondBlobAlgs_fillNoiseFromASCII.channelId
channelId
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:122
L1CaloPprConditions
Transient conditions class for objects defined by the online framework and retrieved from COOL.
Definition: L1CaloPprConditions.h:23
CondAttrListCollection::ChanNum
unsigned int ChanNum
Definition: CondAttrListCollection.h:55
L1CaloPprConditionsContainer::eSatBcidThreshLow
@ eSatBcidThreshLow
Definition: L1CaloPprConditionsContainer.h:31
L1CaloPprConditionsContainer::eLutNoiseCut
@ eLutNoiseCut
Definition: L1CaloPprConditionsContainer.h:35
L1CaloPprConditionsContainer::m_peakFinderCond
unsigned int m_peakFinderCond
Definition: L1CaloPprConditionsContainer.h:82
L1CaloPprConditionsContainer::m_bcidDecision2
unsigned int m_bcidDecision2
Definition: L1CaloPprConditionsContainer.h:78
AbstractL1CaloPersistentCondition::specificationName
std::string specificationName(int specId) const
Definition: AbstractL1CaloPersistentCondition.cxx:44
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
python.PyAthena.v
v
Definition: PyAthena.py:154
L1CaloCoolChannelId
Definition: L1CaloCoolChannelId.h:10
DeMoScan.index
string index
Definition: DeMoScan.py:364
L1CaloPprConditionsContainer::eSatOverride3
@ eSatOverride3
Definition: L1CaloPprConditionsContainer.h:33
CondAttrListCollection::const_iterator
ChanAttrListMap::const_iterator const_iterator
Definition: CondAttrListCollection.h:63
L1CaloPprConditionsContainer::eFirCoeff4
@ eFirCoeff4
Definition: L1CaloPprConditionsContainer.h:34
L1CaloPprConditionsContainer::eSatOverride1
@ eSatOverride1
Definition: L1CaloPprConditionsContainer.h:33
L1CaloPprConditionsContainer::ePprChanCalib
@ ePprChanCalib
Definition: L1CaloPprConditionsContainer.h:38
L1CaloPprConditionsContainer::m_decisionSource
unsigned int m_decisionSource
Definition: L1CaloPprConditionsContainer.h:83
L1CaloPprConditionsContainer::eFirStartBit
@ eFirStartBit
Definition: L1CaloPprConditionsContainer.h:32
L1CaloPprConditionsContainer::eBcidEnergyRangeLow
@ eBcidEnergyRangeLow
Definition: L1CaloPprConditionsContainer.h:31
AbstractL1CaloPersistentCondition::m_strConditionType
std::string m_strConditionType
Definition: AbstractL1CaloPersistentCondition.h:53
L1CaloPprConditionsContainer::eExtBcidThreshold
@ eExtBcidThreshold
Definition: L1CaloPprConditionsContainer.h:31
L1CaloPprConditionsContainer::m_satOverride3
unsigned int m_satOverride3
Definition: L1CaloPprConditionsContainer.h:81
readCCLHist.float
float
Definition: readCCLHist.py:83
L1CaloPprConditionsContainer::m_bcidDecision1
unsigned int m_bcidDecision1
Definition: L1CaloPprConditionsContainer.h:76
L1CaloPprConditionsContainer::eFirCoeff5
@ eFirCoeff5
Definition: L1CaloPprConditionsContainer.h:34
L1CaloPprConditionsContainer::ePprChanDefaults
@ ePprChanDefaults
Definition: L1CaloPprConditionsContainer.h:38