CMS 3D CMS Logo

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 (int qieType) const
 get basic shape More...
 
 HcalQIEData ()
 
 HcalQIEData (const HcalTopology *topo)
 
std::string myname () const override
 
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 43 of file HcalQIEData.h.

References HcalCondObjectContainer< HcalQIECoder >::addValues().

Referenced by HcalQIEDataCheck::analyze(), and HcalDbASCIIIO::dumpObject().

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

get QIE parameters

Definition at line 39 of file HcalQIEData.h.

References HcalCondObjectContainer< HcalQIECoder >::getValues().

Referenced by HcalQIEDataCheck::analyze(), HcalDbASCIIIO::dumpObject(), and HcalDbService::getHcalCoder().

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

get basic shape

Definition at line 37 of file HcalQIEData.h.

References mShape.

Referenced by HcalDbService::getHcalShape().

37 { return mShape[qieType];}
HcalQIEShape mShape[2]
Definition: HcalQIEData.h:52
std::string HcalQIEData::myname ( ) const
inlineoverridevirtual
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] = {-0.5, 0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5, 10.5, 11.5, 12.5, 13.5, 14.5, // 16 bins with width 1x
14  15.5, 17.5, 19.5, 21.5, 23.5, 25.5, 27.5, 29.5, 31.5, 33.5, 35.5, 37.5, 39.5, 41.5, 43.5, 45.5, 47.5, 49.5, 51.5, 53.5, // 20 bins with width 2x
15  55.5, 59.5, 63.5, 67.5, 71.5, 75.5, 79.5, 83.5, 87.5, 91.5, 95.5, 99.5, 103.5, 107.5, 111.5, 115.5, 119.5, 123.5, 127.5, 131.5, 135.5, // 21 bins with width 4x
16  139.5, 147.5, 155.5, 163.5, 171.5, 179.5, 187.5}; // 7 bins with width 8x
17  mShape[1].setLowEdges(64,binMin2);
18 }
HcalQIEShape mShape[2]
Definition: HcalQIEData.h:52
bool setLowEdges(unsigned int nVals, const float *fValue)
Definition: HcalQIEShape.cc:57
void HcalQIEData::sort ( )
inline

Definition at line 45 of file HcalQIEData.h.

Referenced by HcalQIEDataCheck::analyze(), and HcalDbASCIIIO::dumpObject().

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

Definition at line 41 of file HcalQIEData.h.

41 { return true; }

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 55 of file HcalQIEData.h.

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

Definition at line 55 of file HcalQIEData.h.

Member Data Documentation

HcalQIEShape HcalQIEData::mShape[2]
private

Definition at line 52 of file HcalQIEData.h.

Referenced by getShape(), and setupShape().