CMS 3D CMS Logo

CaloMiscalibMapHcal Class Reference

#include <CalibCalorimetry/CaloMiscalibTools/interface/CaloMiscalibMapHcal.h>

Inheritance diagram for CaloMiscalibMapHcal:

CaloMiscalibMap

List of all members.

Public Member Functions

virtual void addCell (const DetId &cell, float scaling_factor)
 CaloMiscalibMapHcal ()
const std::map< uint32_t, float > & get ()
void prefillMap ()
void print ()

Private Attributes

std::map< uint32_t, float > mapHcal_
HcalTopology topology


Detailed Description

Definition at line 19 of file CaloMiscalibMapHcal.h.


Constructor & Destructor Documentation

CaloMiscalibMapHcal::CaloMiscalibMapHcal (  )  [inline]

Definition at line 21 of file CaloMiscalibMapHcal.h.

00021                      { 
00022 }


Member Function Documentation

virtual void CaloMiscalibMapHcal::addCell ( const DetId cell,
float  scaling_factor 
) [inline, virtual]

Implements CaloMiscalibMap.

Definition at line 50 of file CaloMiscalibMapHcal.h.

References mapHcal_, and DetId::rawId().

00051 {
00052   //mapHcal_.setValue(cell.rawId(),scaling_factor);
00053   mapHcal_[cell.rawId()]=scaling_factor;
00054 }

const std::map<uint32_t, float>& CaloMiscalibMapHcal::get ( void   )  [inline]

Definition at line 68 of file CaloMiscalibMapHcal.h.

References mapHcal_.

Referenced by HcalRecHitsMaker::init(), and HcalRecHitRecalib::produce().

00068                                      {
00069 return mapHcal_;
00070 }

void CaloMiscalibMapHcal::prefillMap (  )  [inline]

Definition at line 24 of file CaloMiscalibMapHcal.h.

References eta, mapHcal_, phi, DetId::rawId(), topology, and HcalTopology::valid().

Referenced by HcalRecHitRecalib::HcalRecHitRecalib(), and HcalRecHitsMaker::init().

00024                  {
00025 
00026   for (int det = 1; det < 5; det++) {
00027     for (int eta = -63; eta < 64; eta++) {
00028       for (int phi = 0; phi < 128; phi++) {
00029         for (int depth = 1; depth < 5; depth++) {
00030 
00031           try {
00032             HcalDetId hcaldetid ((HcalSubdetector) det, eta, phi, depth);
00033             if (topology.valid(hcaldetid))
00034             //      mapHcal_.setValue(hcaldetid.rawId(),1.0);
00035             {
00036               mapHcal_[hcaldetid.rawId()]=1.0; 
00037               //              std::cout << "Valid cell found: " << det << " " << eta << " " << phi << " " << depth << std::endl;
00038             }
00039                 
00040           }
00041           catch (...) {
00042           }
00043         }
00044       }
00045     }
00046   }
00047 }

void CaloMiscalibMapHcal::print ( void   )  [inline]

Definition at line 56 of file CaloMiscalibMapHcal.h.

References it, and mapHcal_.

Referenced by HcalRecHitRecalib::HcalRecHitRecalib(), and HcalRecHitsMaker::init().

00057  {
00058  
00059  std::map<uint32_t,float>::const_iterator it;
00060  
00061  //   for(it=mapHcal_.getMap().begin();it!=mapHcal_.getMap().end();it++){
00062  //   }
00063    for(it=mapHcal_.begin();it!=mapHcal_.end();it++){
00064    }
00065  
00066 }


Member Data Documentation

std::map<uint32_t, float> CaloMiscalibMapHcal::mapHcal_ [private]

Definition at line 74 of file CaloMiscalibMapHcal.h.

Referenced by addCell(), get(), prefillMap(), and print().

HcalTopology CaloMiscalibMapHcal::topology [private]

Definition at line 75 of file CaloMiscalibMapHcal.h.

Referenced by prefillMap().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:15:46 2009 for CMSSW by  doxygen 1.5.4