CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
HcalQIEData Class Reference

#include <HcalQIEData.h>

Inheritance diagram for HcalQIEData:
HcalCondObjectContainer< HcalQIECoder > HcalCondObjectContainerBase

Public Member Functions

bool addCoder (const HcalQIECoder &fCoder)
 
const HcalQIECodergetCoder (DetId fId) const
 get QIE parameters More...
 
const HcalQIEShapegetShape (DetId fId) const
 get basic shape More...
 
const HcalQIEShapegetShape (const HcalQIECoder *coder) const
 
 HcalQIEData ()
 
 HcalQIEData (const HcalTopology *topo)
 
std::string myname () const
 
void setupShape ()
 
void sort ()
 
bool sorted () const
 
- Public Member Functions inherited from HcalCondObjectContainer< HcalQIECoder >
bool addValues (const HcalQIECoder &myItem)
 
const bool exists (DetId fId) const
 
std::vector< DetIdgetAllChannels () const
 
const tAllContWithNames getAllContainers () const
 
const HcalQIECodergetValues (DetId fId, bool throwOnFail=true) const
 
 HcalCondObjectContainer (const HcalTopology *topo)
 
virtual ~HcalCondObjectContainer ()
 
- Public Member Functions inherited from HcalCondObjectContainerBase
int getCreatorPackedIndexVersion () const
 
void setTopo (const HcalTopology *topo) const
 
void setTopo (const HcalTopology *topo)
 
const HcalTopologytopo () const
 

Private Attributes

 COND_SERIALIZABLE
 
HcalQIEShape mShape[2] COND_TRANSIENT
 

Additional Inherited Members

- Public Types inherited from HcalCondObjectContainer< HcalQIECoder >
typedef std::vector< tHcalConttAllContWithNames
 
typedef std::pair< std::string,
std::vector< HcalQIECoder > > 
tHcalCont
 
- Protected Member Functions inherited from HcalCondObjectContainerBase
HcalOtherSubdetector extractOther (const DetId &id) const
 
 HcalCondObjectContainerBase (const HcalTopology *)
 
unsigned int indexFor (DetId) const
 
unsigned int sizeFor (DetId) const
 
std::string textForId (const DetId &id) const
 
- Protected Attributes inherited from HcalCondObjectContainerBase
int packedIndexVersion_ COND_TRANSIENT
 

Detailed Description

Author
Fedor Ratnikov (UMd), with changes by Radek Ofierzynski (preserve backwards compatibility of methods for this release) POOL object to store QIE parameters $Author: ratnikov
Date:
2012/11/02 14:13:11
Revision:
1.13
Author
Fedor Ratnikov (UMd) POOL object to store QIE basic shape $Author: ratnikov
Date:
2012/11/02 14:13:13
Revision:
1.4
Author
Fedor Ratnikov (UMd) POOL object to store calibration mode QIE coder parameters for one channel $Id
Fedor Ratnikov (UMd) POOL object to store QIE coder parameters for one channel $Author: ratnikov
Date:
2010/12/06 20:04:16
Revision:
1.3
Author
Fedor Ratnikov (UMd) POOL object to store pedestal values 4xCapId $Author: ratnikov
Date:
2012/11/03 15:54:18
Revision:
1.7

Definition at line 25 of file HcalQIEData.h.

Constructor & Destructor Documentation

HcalQIEData::HcalQIEData ( )
inline
HcalQIEData::HcalQIEData ( const HcalTopology topo)
inline

Member Function Documentation

bool HcalQIEData::addCoder ( const HcalQIECoder fCoder)
inline

Definition at line 44 of file HcalQIEData.h.

References HcalCondObjectContainer< HcalQIECoder >::addValues().

Referenced by fillDefaults(), and HcalDbOnline::getObject().

44 { return addValues(fCoder); }
bool addValues(const HcalQIECoder &myItem)
const HcalQIECoder* HcalQIEData::getCoder ( DetId  fId) const
inline

get QIE parameters

Definition at line 40 of file HcalQIEData.h.

References HcalCondObjectContainer< HcalQIECoder >::getValues().

Referenced by HcalDbService::getHcalCoder(), and getShape().

40 { return getValues(fId); }
const HcalQIECoder * getValues(DetId fId, bool throwOnFail=true) const
const HcalQIEShape& HcalQIEData::getShape ( DetId  fId) const
inline

get basic shape

Definition at line 37 of file HcalQIEData.h.

References getCoder(), and HcalQIECoder::qieIndex().

Referenced by HcalDbService::getHcalShape().

37 { return mShape[getCoder(fId)->qieIndex()];}
uint32_t qieIndex() const
Definition: HcalQIECoder.h:39
const HcalQIECoder * getCoder(DetId fId) const
get QIE parameters
Definition: HcalQIEData.h:40
const HcalQIEShape& HcalQIEData::getShape ( const HcalQIECoder coder) const
inline

Definition at line 38 of file HcalQIEData.h.

References HcalQIECoder::qieIndex().

38 { return mShape[coder->qieIndex()];}
uint32_t qieIndex() const
Definition: HcalQIECoder.h:39
std::string HcalQIEData::myname ( ) const
inlinevirtual

Reimplemented from HcalCondObjectContainer< HcalQIECoder >.

Definition at line 48 of file HcalQIEData.h.

References AlCaHLTBitMon_QueryRunRegistry::string.

48 {return (std::string)"HcalQIEData";}
void HcalQIEData::setupShape ( )

Definition at line 3 of file HcalQIEData.cc.

Referenced by HcalQIEData().

3  {
4  //qie8
5  const float binMin [32] = {-1, 0, 1, 2, 3, 4, 5, 6, 7, 8,
6  9, 10, 11, 12, 13, 14, 16, 18, 20, 22,
7  24, 26, 28, 31, 34, 37, 40, 44, 48, 52,
8  57, 62};
9  mShape[0].setLowEdges(32,binMin);
10 
11 
12  //qie10
13  const float binMin2 [64] = {-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, // 16*1
14  15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53,//20*2
15  55, 59, 63, 67, 71, 75, 79, 83, 87, 91, 95, 99, 103,107,111, 115,119,123,127,131, 135,//21*4
16  139, 147, 155, 163, 171, 179, 187};// 7*8
17  mShape[1].setLowEdges(64,binMin2);
18 }
void HcalQIEData::sort ( )
inline

Definition at line 46 of file HcalQIEData.h.

Referenced by fillDefaults(), and HcalDbOnline::getObject().

46 {}
bool HcalQIEData::sorted ( ) const
inline

Definition at line 42 of file HcalQIEData.h.

42 { return true; }

Member Data Documentation

HcalQIEData::COND_SERIALIZABLE
private

Definition at line 56 of file HcalQIEData.h.

HcalQIEShape mShape [2] HcalQIEData::COND_TRANSIENT
private

Definition at line 53 of file HcalQIEData.h.