test
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::HcalZSThresholdsDataRepr Class Reference
Inheritance diagram for cond::HcalZSThresholdsDataRepr:
HcalObjRepresent::ADataRepr

Public Member Functions

 HcalZSThresholdsDataRepr (unsigned int total, HcalZSThresholds::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

HcalZSThresholds::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 42 of file HcalZSThresholdsPyWrapper.cc.

Constructor & Destructor Documentation

cond::HcalZSThresholdsDataRepr::HcalZSThresholdsDataRepr ( unsigned int  total,
HcalZSThresholds::tAllContWithNames const &  allCont 
)
inline

Definition at line 45 of file HcalZSThresholdsPyWrapper.cc.

46  :ADataRepr(total), allContainers(allCont){}
HcalZSThresholds::tAllContWithNames allContainers

Member Function Documentation

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

Implements HcalObjRepresent::ADataRepr.

Definition at line 53 of file HcalZSThresholdsPyWrapper.cc.

References HcalDetId::depth(), HcalForward, getDQMSummary::iter, and relativeConstraints::value.

53  {
54  //ITERATORS AND VALUES:
55  HcalZSThresholds::tAllContWithNames::const_iterator iter;
56  std::vector<HcalZSThreshold>::const_iterator contIter;
57  int value = 0;
58 
59  //run trough all pair containers
60  for (iter = allContainers.begin(); iter != allContainers.end(); ++iter){
61  //Run trough all values:
62  for (contIter = (*iter).second.begin(); contIter != (*iter).second.end(); ++contIter){
63  hcal_id = HcalDetId((uint32_t)(*contIter).rawId());
64 
65  depth = hcal_id.depth();
66  if (depth<1 || depth>4)
67  continue;
68 
69  ieta=hcal_id.ieta();
70  iphi=hcal_id.iphi();
71 
72  if (hcal_id.subdet() == HcalForward)
73  ieta>0 ? ++ieta : --ieta;
74 
75  //GET VALUE:
76  value = (*contIter).getValue();
77  //logstatus = log2(1.*channelBits)+1;
78 
79  //FILLING GOES HERE:
80  graphData[depth-1].Fill(ieta,iphi, value);
81  }
82  }
83  }
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
HcalZSThresholds::tAllContWithNames allContainers

Member Data Documentation

HcalZSThresholds::tAllContWithNames cond::HcalZSThresholdsDataRepr::allContainers
protected

Definition at line 51 of file HcalZSThresholdsPyWrapper.cc.