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 (const HcalTopology *)
 
 HcalCondObjectContainerBase (HcalCondObjectContainerBase &&)=default
 
 HcalCondObjectContainerBase (HcalCondObjectContainerBase const &o)
 
unsigned int indexFor (DetId) const
 
HcalCondObjectContainerBaseoperator= (HcalCondObjectContainerBase &&)=default
 
HcalCondObjectContainerBaseoperator= (HcalCondObjectContainerBase const &o)
 
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 24 of file HcalQIEData.h.

Constructor & Destructor Documentation

◆ HcalQIEData() [1/2]

HcalQIEData::HcalQIEData ( )
inline

Definition at line 27 of file HcalQIEData.h.

References setupShape().

◆ HcalQIEData() [2/2]

HcalQIEData::HcalQIEData ( const HcalTopology topo)
inline

Definition at line 30 of file HcalQIEData.h.

References setupShape().

Member Function Documentation

◆ addCoder()

bool HcalQIEData::addCoder ( const HcalQIECoder fCoder)
inline

Definition at line 41 of file HcalQIEData.h.

41 { return addValues(fCoder); }

References HcalCondObjectContainer< HcalQIECoder >::addValues().

Referenced by HcalQIEDataCheck::analyze().

◆ getCoder()

const HcalQIECoder* HcalQIEData::getCoder ( DetId  fId) const
inline

get QIE parameters

Definition at line 37 of file HcalQIEData.h.

37 { return getValues(fId); }

References HcalCondObjectContainer< HcalQIECoder >::getValues().

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

◆ getShape()

const HcalQIEShape& HcalQIEData::getShape ( int  qieType) const
inline

get basic shape

Definition at line 35 of file HcalQIEData.h.

35 { return mShape[qieType]; }

References mShape.

Referenced by HcalDbService::getHcalShape().

◆ myname()

std::string HcalQIEData::myname ( ) const
inlineoverridevirtual

Reimplemented from HcalCondObjectContainer< HcalQIECoder >.

Definition at line 45 of file HcalQIEData.h.

45 { return (std::string) "HcalQIEData"; }

References AlCaHLTBitMon_QueryRunRegistry::string.

◆ serialize()

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

◆ setupShape()

void HcalQIEData::setupShape ( )

Definition at line 3 of file HcalQIEData.cc.

3  {
4  //qie8
5  const float binMin[32] = {-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
6  16, 18, 20, 22, 24, 26, 28, 31, 34, 37, 40, 44, 48, 52, 57, 62};
7  mShape[0].setLowEdges(32, binMin);
8 
9  //qie10
10  const float
11  binMin2[64] = {-0.5, 0.5, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5,
12  10.5, 11.5, 12.5, 13.5, 14.5, // 16 bins with width 1x
13  15.5, 17.5, 19.5, 21.5, 23.5, 25.5, 27.5, 29.5, 31.5, 33.5, 35.5,
14  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,
16  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
17  139.5, 147.5, 155.5, 163.5, 171.5, 179.5, 187.5}; // 7 bins with width 8x
18  mShape[1].setLowEdges(64, binMin2);
19 }

References mShape, and HcalQIEShape::setLowEdges().

Referenced by HcalQIEData().

◆ sort()

void HcalQIEData::sort ( )
inline

Definition at line 43 of file HcalQIEData.h.

43 {}

Referenced by HcalQIEDataCheck::analyze().

◆ sorted()

bool HcalQIEData::sorted ( ) const
inline

Definition at line 39 of file HcalQIEData.h.

39 { return true; }

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 52 of file HcalQIEData.h.

◆ cond::serialization::access

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

Definition at line 52 of file HcalQIEData.h.

Member Data Documentation

◆ mShape

HcalQIEShape HcalQIEData::mShape[2]
private

Definition at line 50 of file HcalQIEData.h.

Referenced by getShape(), and setupShape().

HcalCondObjectContainer< HcalQIECoder >::getValues
const HcalQIECoder * getValues(DetId fId, bool throwOnFail=true) const
Definition: HcalCondObjectContainer.h:159
HcalCondObjectContainer< HcalQIECoder >
HcalQIEData::mShape
HcalQIEShape mShape[2]
Definition: HcalQIEData.h:50
HcalQIEShape::setLowEdges
bool setLowEdges(unsigned int nVals, const float *fValue)
Definition: HcalQIEShape.cc:59
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HcalCondObjectContainerBase::topo
const HcalTopology * topo() const
Definition: HcalCondObjectContainer.h:22
HcalQIEData::setupShape
void setupShape()
Definition: HcalQIEData.cc:3
HcalCondObjectContainer< HcalQIECoder >::addValues
bool addValues(const HcalQIECoder &myItem)
Definition: HcalCondObjectContainer.h:234