CMS 3D CMS Logo

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

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

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

Additional Inherited Members

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

Detailed Description

Definition at line 48 of file HcalPedestalsPyWrapper.cc.

Constructor & Destructor Documentation

cond::HcalPedestalsDataRepr::HcalPedestalsDataRepr ( unsigned int  total,
HcalPedestals::tAllContWithNames const &  allCont 
)
inline

Definition at line 51 of file HcalPedestalsPyWrapper.cc.

52  :ADataRepr(total), allContainers(allCont){}
HcalPedestals::tAllContWithNames allContainers

Member Function Documentation

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

Implements HcalObjRepresent::ADataRepr.

Definition at line 59 of file HcalPedestalsPyWrapper.cc.

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

59  {
60  //ITERATORS AND VALUES:
61  HcalPedestals::tAllContWithNames::const_iterator iter;
62  std::vector<HcalPedestal>::const_iterator contIter;
63  float value = 0.0;
64 
65  //run trough all pair containers
66  for (iter = allContainers.begin(); iter != allContainers.end(); ++iter){
67  //Run trough all values:
68  for (contIter = (*iter).second.begin(); contIter != (*iter).second.end(); ++contIter){
69  hcal_id = HcalDetId((uint32_t)(*contIter).rawId());
70 
71  depth = hcal_id.depth();
72  if (depth<1 || depth>4)
73  continue;
74 
75  ieta=hcal_id.ieta();
76  iphi=hcal_id.iphi();
77 
78  if (hcal_id.subdet() == HcalForward)
79  ieta>0 ? ++ieta : --ieta;
80 
81  //GET VALUE:
82  value = (*contIter).getValue(id);
83  //logstatus = log2(1.*channelBits)+1;
84 
85  //FILLING GOES HERE:
86  graphData[depth-1].Fill(ieta,iphi, value);
87  }
88  }
89  }
HcalSubdetector subdet() const
get the subdetector
Definition: HcalDetId.h:30
int depth() const
get the tower depth
Definition: HcalDetId.h:40
HcalPedestals::tAllContWithNames allContainers
int ieta() const
get the cell ieta
Definition: HcalDetId.h:36
int iphi() const
get the cell iphi
Definition: HcalDetId.h:38

Member Data Documentation

HcalPedestals::tAllContWithNames cond::HcalPedestalsDataRepr::allContainers
protected

Definition at line 57 of file HcalPedestalsPyWrapper.cc.