test
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 Member Functions | Private Attributes | Friends
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 HcalTopologytopo () const
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

HcalQIEShape mShape [2]
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

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 (HcalCondObjectContainerBase const &o)
 
 HcalCondObjectContainerBase (HcalCondObjectContainerBase &&)=default
 
 HcalCondObjectContainerBase (const HcalTopology *)
 
unsigned int indexFor (DetId) const
 
HcalCondObjectContainerBaseoperator= (HcalCondObjectContainerBase const &o)
 
HcalCondObjectContainerBaseoperator= (HcalCondObjectContainerBase &&)=default
 
unsigned int sizeFor (DetId) const
 
std::string textForId (const DetId &id) const
 
- Protected Attributes inherited from HcalCondObjectContainerBase
int packedIndexVersion_
 

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(), mShape, 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
HcalQIEShape mShape[2]
Definition: HcalQIEData.h:53
const HcalQIEShape& HcalQIEData::getShape ( const HcalQIECoder coder) const
inline

Definition at line 38 of file HcalQIEData.h.

References mShape, and HcalQIECoder::qieIndex().

38 { return mShape[coder->qieIndex()];}
uint32_t qieIndex() const
Definition: HcalQIECoder.h:39
HcalQIEShape mShape[2]
Definition: HcalQIEData.h:53
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";}
template<class Archive >
void HcalQIEData::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void HcalQIEData::setupShape ( )

Definition at line 3 of file HcalQIEData.cc.

References mShape, and HcalQIEShape::setLowEdges().

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 }
HcalQIEShape mShape[2]
Definition: HcalQIEData.h:53
bool setLowEdges(unsigned int nVals, const float *fValue)
Definition: HcalQIEShape.cc:56
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; }

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 56 of file HcalQIEData.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 56 of file HcalQIEData.h.

Member Data Documentation

HcalQIEShape HcalQIEData::mShape[2]
private

Definition at line 53 of file HcalQIEData.h.

Referenced by getShape(), and setupShape().