CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Protected Attributes | Private Member Functions | Friends
HcalSiPMCharacteristics Class Reference

#include <HcalSiPMCharacteristics.h>

Classes

class  PrecisionItem
 

Public Member Functions

const PrecisionItemfindByType (int type) const
 
int getAuxi1 (int type) const
 get auxiliary words More...
 
float getAuxi2 (int type) const
 
float getCrossTalk (int type) const
 get cross talk More...
 
std::vector< float > getNonLinearities (int type) const
 get nonlinearity constants More...
 
int getPixels (int type) const
 get # of pixels More...
 
int getType (unsigned int k) const
 
unsigned int getTypes () const
 get # of types More...
 
 HcalSiPMCharacteristics ()
 
 HcalSiPMCharacteristics (const HcalSiPMCharacteristicsAddons::Helper &helper)
 
 HcalSiPMCharacteristics (const HcalSiPMCharacteristics &src)
 
 HcalSiPMCharacteristics (HcalSiPMCharacteristics &&other)
 
void initialize ()
 
HcalSiPMCharacteristicsoperator= (const HcalSiPMCharacteristics &rhs)
 
void sortByType ()
 
void swap (HcalSiPMCharacteristics &other)
 
 ~HcalSiPMCharacteristics ()
 

Protected Attributes

std::vector< PrecisionItemmPItems
 
std::vector< const PrecisionItem * > mPItemsByType
 

Private Member Functions

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

Friends

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

Detailed Description

Definition at line 19 of file HcalSiPMCharacteristics.h.

Constructor & Destructor Documentation

HcalSiPMCharacteristics::HcalSiPMCharacteristics ( )
inline

Definition at line 45 of file HcalSiPMCharacteristics.h.

References trackingPlots::other, TrackRefitter_38T_cff::src, and edm::swap().

45 {}
HcalSiPMCharacteristics::HcalSiPMCharacteristics ( const HcalSiPMCharacteristicsAddons::Helper helper)

Definition at line 9 of file HcalSiPMCharacteristics.cc.

References initialize().

9  :
10  mPItems(helper.mPItems.begin(),helper.mPItems.end())
11 {
12  initialize();
13 }
std::set< HcalSiPMCharacteristics::PrecisionItem, LessByType > mPItems
std::vector< PrecisionItem > mPItems
HcalSiPMCharacteristics::~HcalSiPMCharacteristics ( )

Definition at line 15 of file HcalSiPMCharacteristics.cc.

15  {
16 }
HcalSiPMCharacteristics::HcalSiPMCharacteristics ( const HcalSiPMCharacteristics src)

Definition at line 19 of file HcalSiPMCharacteristics.cc.

std::vector< const PrecisionItem * > mPItemsByType
std::vector< PrecisionItem > mPItems
HcalSiPMCharacteristics::HcalSiPMCharacteristics ( HcalSiPMCharacteristics &&  other)

Definition at line 36 of file HcalSiPMCharacteristics.cc.

References trackingPlots::other.

37  other.swap(*this);
38 }
void swap(HcalSiPMCharacteristics &other)

Member Function Documentation

const HcalSiPMCharacteristics::PrecisionItem * HcalSiPMCharacteristics::findByType ( int  type) const

Definition at line 40 of file HcalSiPMCharacteristics.cc.

References mPItemsByType, and edmPickEvents::target.

Referenced by getAuxi1(), getAuxi2(), getCrossTalk(), getNonLinearities(), and getPixels().

40  {
41  PrecisionItem target(type, 0, 0, 0, 0, 0, 0, 0);
42  return HcalObjectAddons::findByT<PrecisionItem,HcalSiPMCharacteristicsAddons::LessByType>(&target,mPItemsByType);
43 }
type
Definition: HCALResponse.h:21
std::vector< const PrecisionItem * > mPItemsByType
int HcalSiPMCharacteristics::getAuxi1 ( int  type) const
float HcalSiPMCharacteristics::getAuxi2 ( int  type) const
float HcalSiPMCharacteristics::getCrossTalk ( int  type) const

get cross talk

Definition at line 88 of file HcalSiPMCharacteristics.cc.

References HcalSiPMCharacteristics::PrecisionItem::crossTalk_, and findByType().

Referenced by HcalDbASCIIIO::createObject< HcalSiPMCharacteristics >(), HBHEPhase1Reconstructor::processData(), and HcalSimParameters::sipmCrossTalk().

88  {
89  const PrecisionItem* item = findByType(type);
90  return (item ? item->crossTalk_ : 0);
91 }
type
Definition: HCALResponse.h:21
const PrecisionItem * findByType(int type) const
std::vector< float > HcalSiPMCharacteristics::getNonLinearities ( int  type) const
int HcalSiPMCharacteristics::getPixels ( int  type) const
int HcalSiPMCharacteristics::getType ( unsigned int  k) const
inline
unsigned int HcalSiPMCharacteristics::getTypes ( ) const
inline

get # of types

Definition at line 61 of file HcalSiPMCharacteristics.h.

Referenced by HcalDbASCIIIO::createObject< HcalSiPMCharacteristics >().

61 {return mPItems.size();}
std::vector< PrecisionItem > mPItems
void HcalSiPMCharacteristics::initialize ( )
HcalSiPMCharacteristics & HcalSiPMCharacteristics::operator= ( const HcalSiPMCharacteristics rhs)

Definition at line 23 of file HcalSiPMCharacteristics.cc.

References swap(), and groupFilesInBlocks::temp.

23  {
25  temp.swap(*this);
26  return *this;
27 }
template<class Archive >
void HcalSiPMCharacteristics::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void HcalSiPMCharacteristics::sortByType ( )

Definition at line 103 of file HcalSiPMCharacteristics.cc.

References mPItems, and mPItemsByType.

Referenced by initialize().

103  {
104  HcalObjectAddons::sortByT<PrecisionItem,HcalSiPMCharacteristicsAddons::LessByType>(mPItems,mPItemsByType);
105 }
std::vector< const PrecisionItem * > mPItemsByType
std::vector< PrecisionItem > mPItems
void HcalSiPMCharacteristics::swap ( HcalSiPMCharacteristics other)

Definition at line 30 of file HcalSiPMCharacteristics.cc.

References mPItems, mPItemsByType, and std::swap().

Referenced by operator=().

30  {
31  std::swap(mPItems, other.mPItems);
33 }
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
std::vector< const PrecisionItem * > mPItemsByType
std::vector< PrecisionItem > mPItems

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 84 of file HcalSiPMCharacteristics.h.

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

Definition at line 84 of file HcalSiPMCharacteristics.h.

Member Data Documentation

std::vector<PrecisionItem> HcalSiPMCharacteristics::mPItems
protected
std::vector<const PrecisionItem*> HcalSiPMCharacteristics::mPItemsByType
protected

Definition at line 82 of file HcalSiPMCharacteristics.h.

Referenced by findByType(), sortByType(), and swap().