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

Public Member Functions

 HcalLutMetadataDataRepr (unsigned int total, HcalLutMetadata::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

HcalLutMetadata::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 HcalLutMetadataPyWrapper.cc.

Constructor & Destructor Documentation

cond::HcalLutMetadataDataRepr::HcalLutMetadataDataRepr ( unsigned int  total,
HcalLutMetadata::tAllContWithNames const &  allCont 
)
inline

Definition at line 51 of file HcalLutMetadataPyWrapper.cc.

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

Member Function Documentation

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

Implements HcalObjRepresent::ADataRepr.

Definition at line 59 of file HcalLutMetadataPyWrapper.cc.

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

59  {
60  //ITERATORS AND VALUES:
61  HcalLutMetadata::tAllContWithNames::const_iterator iter;
62  std::vector<HcalLutMetadatum>::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  switch(id){
83  case 0:
84  value = (*contIter).getRCalib();
85  break;
86  case 1:
87  value = (*contIter).getLutGranularity();
88  break;
89  case 2:
90  value = (*contIter).getOutputLutThreshold();
91  break;
92  default:
93  throw("Trying to access not existing value!");
94 
95  }
96  //value = (*contIter).getValue(id);
97  //logstatus = log2(1.*channelBits)+1;
98 
99  //FILLING GOES HERE:
100  graphData[depth-1].Fill(ieta,iphi, value);
101  }
102  }
103  }
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
HcalLutMetadata::tAllContWithNames allContainers

Member Data Documentation

HcalLutMetadata::tAllContWithNames cond::HcalLutMetadataDataRepr::allContainers
protected

Definition at line 57 of file HcalLutMetadataPyWrapper.cc.