CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
cond::HcalQIEDataDataRepr Class Reference
Inheritance diagram for cond::HcalQIEDataDataRepr:
HcalObjRepresent::ADataRepr

Public Member Functions

 HcalQIEDataDataRepr (unsigned int total, HcalQIEData::tAllContWithNames const &allCont)
 
- Public Member Functions inherited from HcalObjRepresent::ADataRepr
 ADataRepr (unsigned int d)
 
void fillOneGain (std::vector< TH2F > &graphData, std::string units="")
 

Public Attributes

unsigned int fCapId
 
unsigned int fRange
 
bool slopeOrOffset
 
- Public Attributes inherited from HcalObjRepresent::ADataRepr
std::stringstream filename
 
unsigned int id
 
unsigned int nr
 
std::stringstream plotname
 
std::stringstream rootname
 

Protected Member Functions

void doFillIn (std::vector< TH2F > &graphData) override
 

Protected Attributes

HcalQIEData::tAllContWithNames allContainers
 
- Protected Attributes inherited from HcalObjRepresent::ADataRepr
int depth
 
HcalDetId hcal_id
 
int ieta
 
int iphi
 
unsigned int m_total
 

Detailed Description

Definition at line 48 of file HcalQIEDataPyWrapper.cc.

Constructor & Destructor Documentation

cond::HcalQIEDataDataRepr::HcalQIEDataDataRepr ( unsigned int  total,
HcalQIEData::tAllContWithNames const &  allCont 
)
inline

Member Function Documentation

void cond::HcalQIEDataDataRepr::doFillIn ( std::vector< TH2F > &  graphData)
inlineoverrideprotectedvirtual

Implements HcalObjRepresent::ADataRepr.

Definition at line 64 of file HcalQIEDataPyWrapper.cc.

References HLT_25ns14e33_v1_cff::depth, HcalForward, getDQMSummary::iter, and relativeConstraints::value.

64  {
65  //ITERATORS AND VALUES:
66  HcalQIEData::tAllContWithNames::const_iterator iter;
67  std::vector<HcalQIECoder>::const_iterator contIter;
68  float value = 0.0;
69 
70  //run trough all pair containers
71  for (iter = allContainers.begin(); iter != allContainers.end(); ++iter){
72  //Run trough all values:
73  for (contIter = (*iter).second.begin(); contIter != (*iter).second.end(); ++contIter){
74  hcal_id = HcalDetId((uint32_t)(*contIter).rawId());
75 
76  depth = hcal_id.depth();
77  if (depth<1 || depth>4)
78  continue;
79 
80  ieta=hcal_id.ieta();
81  iphi=hcal_id.iphi();
82 
83  if (hcal_id.subdet() == HcalForward)
84  ieta>0 ? ++ieta : --ieta;
85 
86  //GET VALUE:
87  //unsigned fCapId, unsigned fRange;
88  if (slopeOrOffset){
89  value = (*contIter).slope(fCapId, fRange);
90  } else {
91  value = (*contIter).offset(fCapId, fRange);
92  }
93  //logstatus = log2(1.*channelBits)+1;
94 
95  //FILLING GOES HERE:
96  graphData[depth-1].Fill(ieta,iphi, value);
97  }
98  }
99  }
HcalSubdetector subdet() const
get the subdetector
Definition: HcalDetId.h:30
int depth() const
get the tower depth
Definition: HcalDetId.h:40
int ieta() const
get the cell ieta
Definition: HcalDetId.h:36
int iphi() const
get the cell iphi
Definition: HcalDetId.h:38
HcalQIEData::tAllContWithNames allContainers

Member Data Documentation

HcalQIEData::tAllContWithNames cond::HcalQIEDataDataRepr::allContainers
protected

Definition at line 51 of file HcalQIEDataPyWrapper.cc.

unsigned int cond::HcalQIEDataDataRepr::fCapId

Definition at line 53 of file HcalQIEDataPyWrapper.cc.

Referenced by cond::PayLoadInspector< DataT >::plot().

unsigned int cond::HcalQIEDataDataRepr::fRange

Definition at line 54 of file HcalQIEDataPyWrapper.cc.

Referenced by cond::PayLoadInspector< DataT >::plot().

bool cond::HcalQIEDataDataRepr::slopeOrOffset

Definition at line 55 of file HcalQIEDataPyWrapper.cc.

Referenced by cond::PayLoadInspector< DataT >::plot().