CMS 3D CMS Logo

Public Member Functions | Protected Member Functions | Protected Attributes

cond::HcalZSThresholdsDataRepr Class Reference

Inheritance diagram for cond::HcalZSThresholdsDataRepr:
HcalObjRepresent::ADataRepr

List of all members.

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

HcalZSThresholds::tAllContWithNames allContainers

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.

                        :ADataRepr(total), allContainers(allCont){}

Member Function Documentation

void cond::HcalZSThresholdsDataRepr::doFillIn ( std::vector< TH2F > &  graphData) [inline, protected, virtual]

Implements HcalObjRepresent::ADataRepr.

Definition at line 53 of file HcalZSThresholdsPyWrapper.cc.

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

                                                         {
                        //ITERATORS AND VALUES:
                        HcalZSThresholds::tAllContWithNames::const_iterator iter;
                        std::vector<HcalZSThreshold>::const_iterator contIter;
                        int value = 0;

                        //run trough all pair containers
                        for (iter = allContainers.begin(); iter != allContainers.end(); ++iter){
                                //Run trough all values:
                                for (contIter = (*iter).second.begin(); contIter != (*iter).second.end(); ++contIter){
                                        hcal_id = HcalDetId((uint32_t)(*contIter).rawId());

                                        depth = hcal_id.depth();
                                        if (depth<1 || depth>4) 
                                                continue;

                                        ieta=hcal_id.ieta();
                                        iphi=hcal_id.iphi();

                                        if (hcal_id.subdet() == HcalForward)
                                                ieta>0 ? ++ieta : --ieta;

                                        //GET VALUE:
                                        value = (*contIter).getValue();
                                        //logstatus = log2(1.*channelBits)+1;

                                        //FILLING GOES HERE:
                                        graphData[depth-1].Fill(ieta,iphi, value);      
                                }
                        }
                }

Member Data Documentation

Definition at line 51 of file HcalZSThresholdsPyWrapper.cc.