#include <CaloMiscalibMapEcal.h>
Public Member Functions | |
virtual void | addCell (const DetId &cell, float scaling_factor) |
CaloMiscalibMapEcal () | |
const EcalIntercalibConstants & | get () |
void | prefillMap () |
void | print () |
Private Attributes | |
const CaloSubdetectorGeometry * | geometry |
EcalIntercalibConstants | map_ |
Definition at line 19 of file CaloMiscalibMapEcal.h.
CaloMiscalibMapEcal::CaloMiscalibMapEcal | ( | ) | [inline] |
Definition at line 21 of file CaloMiscalibMapEcal.h.
{ }
virtual void CaloMiscalibMapEcal::addCell | ( | const DetId & | cell, |
float | scaling_factor | ||
) | [inline, virtual] |
Implements CaloMiscalibMap.
Definition at line 61 of file CaloMiscalibMapEcal.h.
References map_, DetId::rawId(), and EcalCondObjectContainer< T >::setValue().
const EcalIntercalibConstants& CaloMiscalibMapEcal::get | ( | void | ) | [inline] |
Definition at line 112 of file CaloMiscalibMapEcal.h.
References map_.
Referenced by InvRingCalib::duringLoop(), ZeeCalibration::duringLoop(), CaloMiscalibToolsMC::produce(), and CaloMiscalibTools::produce().
{ return map_; }
void CaloMiscalibMapEcal::prefillMap | ( | ) | [inline] |
Definition at line 24 of file CaloMiscalibMapEcal.h.
References EEDetId::IX_MAX, EEDetId::IX_MIN, EEDetId::IY_MAX, EEDetId::IY_MIN, map_, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, EBDetId::MIN_IPHI, DetId::rawId(), and EcalCondObjectContainer< T >::setValue().
Referenced by CaloMiscalibTools::CaloMiscalibTools(), CaloMiscalibToolsMC::CaloMiscalibToolsMC(), InvRingCalib::duringLoop(), ZeeCalibration::duringLoop(), CaloMiscalibToolsMC::produce(), and CaloMiscalibTools::produce().
{ for(int iEta=-EBDetId::MAX_IETA; iEta<=EBDetId::MAX_IETA ;++iEta) { if(iEta==0) continue; for(int iPhi=EBDetId::MIN_IPHI; iPhi<=EBDetId::MAX_IPHI; ++iPhi) { try { EBDetId ebdetid(iEta,iPhi); map_.setValue(ebdetid.rawId(),1.0); } catch (...) { } } } for(int iX=EEDetId::IX_MIN; iX<=EEDetId::IX_MAX ;++iX) { for(int iY=EEDetId::IY_MIN; iY<=EEDetId::IY_MAX; ++iY) { try { EEDetId eedetidpos(iX,iY,1); map_.setValue(eedetidpos.rawId(),1.0); EEDetId eedetidneg(iX,iY,-1); map_.setValue(eedetidneg.rawId(),1.0); } catch (...) { } } } }
void CaloMiscalibMapEcal::print | ( | void | ) | [inline] |
Definition at line 66 of file CaloMiscalibMapEcal.h.
References gather_cfg::cout, EcalCondObjectContainer< T >::find(), EEDetId::IX_MAX, EEDetId::IX_MIN, EEDetId::IY_MAX, EEDetId::IY_MIN, map_, EBDetId::MAX_IETA, EBDetId::MAX_IPHI, EBDetId::MIN_IPHI, DetId::rawId(), EEDetId::validDetId(), and EBDetId::validDetId().
Referenced by CaloMiscalibToolsMC::produce(), and CaloMiscalibTools::produce().
{ int icount=0; for(int iEta=-EBDetId::MAX_IETA; iEta<=EBDetId::MAX_IETA ;++iEta) { if(iEta==0) continue; for(int iPhi=EBDetId::MIN_IPHI; iPhi<=EBDetId::MAX_IPHI; ++iPhi) { if (EBDetId::validDetId(iEta,iPhi)) { EBDetId ebdetid(iEta,iPhi); EcalIntercalibConstantMap::const_iterator icalit= map_.find(ebdetid.rawId()); EcalIntercalibConstant icalconst; icalconst = (*icalit); icount++; if(icount%230==0){ std::cout<< "here is value for chan eta/phi "<<iEta<<"/"<<iPhi<<"="<<icalconst<<std::endl;} } } } for(int iX=EEDetId::IX_MIN; iX<=EEDetId::IX_MAX ;++iX) { for(int iY=EEDetId::IY_MIN; iY<=EEDetId::IY_MAX; ++iY) { if (EEDetId::validDetId(iX,iY,1)) { EEDetId eedetidpos(iX,iY,1); EcalIntercalibConstantMap::const_iterator icalit= map_.find(eedetidpos.rawId()); EcalIntercalibConstant icalconst; icalconst = (*icalit); EEDetId eedetidneg(iX,iY,-1); EcalIntercalibConstantMap::const_iterator icalit2= map_.find(eedetidneg.rawId()); EcalIntercalibConstant icalconst2; icalconst2 = (*icalit2); icount++; if(icount%230==0){ std::cout<< "here is value for chan x/y "<<iX<<"/"<<iY<<" pos side is ="<<icalconst<< " and neg side is= "<< icalconst2<<std::endl;} } } } }
const CaloSubdetectorGeometry* CaloMiscalibMapEcal::geometry [private] |
Definition at line 119 of file CaloMiscalibMapEcal.h.
Definition at line 118 of file CaloMiscalibMapEcal.h.
Referenced by addCell(), get(), prefillMap(), and print().