#include <HcalNoiseRBXArray.h>
Public Member Functions | |
std::vector< HcalNoiseHPD > ::iterator | endHPD (void) |
std::vector< HcalNoiseHPD > ::const_iterator | endHPD (void) const |
HcalNoiseRBXArray::iterator | endRBX (void) |
HcalNoiseRBXArray::const_iterator | endRBX (void) const |
void | findHPD (const CaloTower &, std::vector< std::vector< HcalNoiseHPD >::iterator > &) |
std::vector< HcalNoiseHPD > ::const_iterator | findHPD (int hpdindex) const |
std::vector< HcalNoiseHPD > ::const_iterator | findHPD (const HBHEDataFrame &) const |
std::vector< HcalNoiseHPD > ::iterator | findHPD (const HBHERecHit &) |
std::vector< HcalNoiseHPD > ::const_iterator | findHPD (const HBHERecHit &) const |
std::vector< HcalNoiseHPD > ::iterator | findHPD (const HcalDetId &) |
std::vector< HcalNoiseHPD > ::const_iterator | findHPD (const HcalDetId &) const |
void | findHPD (const CaloTower &, std::vector< std::vector< HcalNoiseHPD >::const_iterator > &) const |
std::vector< HcalNoiseHPD > ::iterator | findHPD (int hpdindex) |
std::vector< HcalNoiseHPD > ::iterator | findHPD (const HBHEDataFrame &) |
HcalNoiseRBXArray::const_iterator | findRBX (const HBHEDataFrame &) const |
HcalNoiseRBXArray::iterator | findRBX (const HBHERecHit &) |
HcalNoiseRBXArray::const_iterator | findRBX (int rbxindex) const |
void | findRBX (const CaloTower &, std::vector< HcalNoiseRBXArray::const_iterator > &) const |
void | findRBX (const CaloTower &, std::vector< HcalNoiseRBXArray::iterator > &) |
HcalNoiseRBXArray::const_iterator | findRBX (const HBHERecHit &) const |
HcalNoiseRBXArray::const_iterator | findRBX (const HcalDetId &) const |
HcalNoiseRBXArray::iterator | findRBX (const HcalDetId &) |
HcalNoiseRBXArray::iterator | findRBX (int rbxindex) |
HcalNoiseRBXArray::iterator | findRBX (const HBHEDataFrame &) |
HcalNoiseRBXArray () | |
virtual | ~HcalNoiseRBXArray () |
Definition at line 27 of file HcalNoiseRBXArray.h.
HcalNoiseRBXArray::HcalNoiseRBXArray | ( | ) |
Definition at line 16 of file HcalNoiseRBXArray.cc.
References asciidump::at, reco::HcalNoiseRBX::hpds_, i, reco::HcalNoiseRBX::idnumber_, HcalHPDRBXMap::indicesHPDfromRBX(), j, HcalHPDRBXMap::NUM_HPDS_PER_RBX, and findQualityFiles::size.
{ for(unsigned int i=0; i<size(); i++) { HcalNoiseRBX& rbx=at(i); // set the rbxnumber here rbx.idnumber_=i; // set the hpdnumber here boost::array<int, HcalHPDRBXMap::NUM_HPDS_PER_RBX> hpdindices; HcalHPDRBXMap::indicesHPDfromRBX(i, hpdindices); for(int j=0; j<HcalHPDRBXMap::NUM_HPDS_PER_RBX; j++) { rbx.hpds_[j].idnumber_=hpdindices[j]; } } }
HcalNoiseRBXArray::~HcalNoiseRBXArray | ( | ) | [virtual] |
Definition at line 33 of file HcalNoiseRBXArray.cc.
{ }
std::vector< HcalNoiseHPD >::iterator HcalNoiseRBXArray::endHPD | ( | void | ) |
Definition at line 45 of file HcalNoiseRBXArray.cc.
References asciidump::at.
Referenced by findHPD().
{ // the choice of which rbx to use is arbitrary, // as long as we're consistent return at(0).hpds_.end(); }
std::vector< HcalNoiseHPD >::const_iterator HcalNoiseRBXArray::endHPD | ( | void | ) | const |
Definition at line 37 of file HcalNoiseRBXArray.cc.
References asciidump::at.
{ // the choice of which rbx to use is arbitrary, // as long as we're consistent return at(0).hpds_.end(); }
HcalNoiseRBXArray::const_iterator reco::HcalNoiseRBXArray::endRBX | ( | void | ) | const [inline] |
HcalNoiseRBXArray::iterator reco::HcalNoiseRBXArray::endRBX | ( | void | ) | [inline] |
Definition at line 42 of file HcalNoiseRBXArray.h.
References end.
Referenced by findRBX().
{ return end(); }
void HcalNoiseRBXArray::findHPD | ( | const CaloTower & | tower, |
std::vector< std::vector< HcalNoiseHPD >::iterator > & | vec | ||
) |
Definition at line 183 of file HcalNoiseRBXArray.cc.
References findHPD(), CaloTower::ieta(), HcalHPDRBXMap::indexHPDfromEtaPhi(), CaloTower::iphi(), and HcalHPDRBXMap::isValid().
{ // clear the vector vec.clear(); // check if the tower corresponds to a valid HPD/RBX if(!HcalHPDRBXMap::isValid(tower.ieta(), tower.iphi())) return; // find the HPD indices std::vector<int> hpdindices; HcalHPDRBXMap::indexHPDfromEtaPhi(tower.ieta(), tower.iphi(), hpdindices); for(std::vector<int>::const_iterator it=hpdindices.begin(); it!=hpdindices.end(); ++it) vec.push_back(findHPD(*it)); return; }
std::vector< HcalNoiseHPD >::iterator HcalNoiseRBXArray::findHPD | ( | const HBHERecHit & | h | ) |
Definition at line 150 of file HcalNoiseRBXArray.cc.
References findHPD(), and HBHERecHit::id().
std::vector< HcalNoiseHPD >::iterator HcalNoiseRBXArray::findHPD | ( | const HcalDetId & | id | ) |
Definition at line 106 of file HcalNoiseRBXArray.cc.
References endHPD(), findHPD(), HcalHPDRBXMap::indexHPD(), and HcalHPDRBXMap::isValid().
{ if(!HcalHPDRBXMap::isValid(id)) return endHPD(); return findHPD(HcalHPDRBXMap::indexHPD(id)); }
std::vector< HcalNoiseHPD >::const_iterator HcalNoiseRBXArray::findHPD | ( | const HBHERecHit & | h | ) | const |
Definition at line 154 of file HcalNoiseRBXArray.cc.
References findHPD(), and HBHERecHit::id().
std::vector< HcalNoiseHPD >::iterator HcalNoiseRBXArray::findHPD | ( | int | hpdindex | ) |
Definition at line 52 of file HcalNoiseRBXArray.cc.
References asciidump::at, endHPD(), Exception, reco::HcalNoiseRBX::hpds_, HcalHPDRBXMap::indexRBXfromHPD(), HcalHPDRBXMap::isValidHPD(), and edm::errors::LogicError.
Referenced by reco::HcalNoiseInfoProducer::fillcalotwrs(), reco::HcalNoiseInfoProducer::filldigis(), reco::HcalNoiseInfoProducer::fillrechits(), and findHPD().
{ // if the hpdindex is invalid if(!HcalHPDRBXMap::isValidHPD(hpdindex)) return endHPD(); int rbxindex=HcalHPDRBXMap::indexRBXfromHPD(hpdindex); // find the HPD in the RBX HcalNoiseRBX& rbx=at(rbxindex); for(std::vector<HcalNoiseHPD>::iterator it=rbx.hpds_.begin(); it!=rbx.hpds_.end(); ++it) { if(it->idnumber_==hpdindex) return it; } // if we're here, this is a bug throw edm::Exception(edm::errors::LogicError) << "Could not find hpdindex " << hpdindex << " in HcalNoiseRBXArray::findHPDfromDetID(). This is a bug.\n"; return endHPD(); }
std::vector< HcalNoiseHPD >::const_iterator HcalNoiseRBXArray::findHPD | ( | const HcalDetId & | id | ) | const |
Definition at line 113 of file HcalNoiseRBXArray.cc.
References endHPD(), findHPD(), HcalHPDRBXMap::indexHPD(), and HcalHPDRBXMap::isValid().
{ if(!HcalHPDRBXMap::isValid(id)) return endHPD(); return findHPD(HcalHPDRBXMap::indexHPD(id)); }
void HcalNoiseRBXArray::findHPD | ( | const CaloTower & | tower, |
std::vector< std::vector< HcalNoiseHPD >::const_iterator > & | vec | ||
) | const |
Definition at line 166 of file HcalNoiseRBXArray.cc.
References findHPD(), CaloTower::ieta(), HcalHPDRBXMap::indexHPDfromEtaPhi(), CaloTower::iphi(), and HcalHPDRBXMap::isValid().
{ // clear the vector vec.clear(); // check if the tower corresponds to a valid HPD/RBX if(!HcalHPDRBXMap::isValid(tower.ieta(), tower.iphi())) return; // find the HPD indices std::vector<int> hpdindices; HcalHPDRBXMap::indexHPDfromEtaPhi(tower.ieta(), tower.iphi(), hpdindices); for(std::vector<int>::const_iterator it=hpdindices.begin(); it!=hpdindices.end(); ++it) vec.push_back(findHPD(*it)); return; }
std::vector< HcalNoiseHPD >::const_iterator HcalNoiseRBXArray::findHPD | ( | int | hpdindex | ) | const |
Definition at line 72 of file HcalNoiseRBXArray.cc.
References asciidump::at, endHPD(), Exception, reco::HcalNoiseRBX::hpds_, HcalHPDRBXMap::indexRBXfromHPD(), HcalHPDRBXMap::isValidHPD(), and edm::errors::LogicError.
{ // if the hpdindex is invalid if(!HcalHPDRBXMap::isValidHPD(hpdindex)) return endHPD(); int rbxindex=HcalHPDRBXMap::indexRBXfromHPD(hpdindex); // find the HPD in the RBX const HcalNoiseRBX& rbx=at(rbxindex); for(std::vector<HcalNoiseHPD>::const_iterator it=rbx.hpds_.begin(); it!=rbx.hpds_.end(); ++it) { if(it->idnumber_==hpdindex) return it; } // if we're here, this is a bug throw edm::Exception(edm::errors::LogicError) << "Could not find hpdindex " << hpdindex << " in HcalNoiseRBXArray::findHPDfromDetID(). This is a bug.\n"; return endHPD(); }
std::vector< HcalNoiseHPD >::iterator HcalNoiseRBXArray::findHPD | ( | const HBHEDataFrame & | f | ) |
Definition at line 134 of file HcalNoiseRBXArray.cc.
References findHPD(), and HBHEDataFrame::id().
std::vector< HcalNoiseHPD >::const_iterator HcalNoiseRBXArray::findHPD | ( | const HBHEDataFrame & | f | ) | const |
Definition at line 138 of file HcalNoiseRBXArray.cc.
References findHPD(), and HBHEDataFrame::id().
HcalNoiseRBXArray::const_iterator HcalNoiseRBXArray::findRBX | ( | int | rbxindex | ) | const |
Definition at line 99 of file HcalNoiseRBXArray.cc.
References begin, endRBX(), and HcalHPDRBXMap::isValidRBX().
{ if(!HcalHPDRBXMap::isValidRBX(rbxindex)) return endRBX(); return begin()+rbxindex; }
void HcalNoiseRBXArray::findRBX | ( | const CaloTower & | tower, |
std::vector< HcalNoiseRBXArray::iterator > & | vec | ||
) |
Definition at line 200 of file HcalNoiseRBXArray.cc.
References findRBX(), CaloTower::ieta(), HcalHPDRBXMap::indexRBXfromEtaPhi(), CaloTower::iphi(), and HcalHPDRBXMap::isValid().
{ // clear the vector vec.clear(); // check if the tower corresponds to a valid HPD/RBX if(!HcalHPDRBXMap::isValid(tower.ieta(), tower.iphi())) return; // find the RBX indices std::vector<int> rbxindices; HcalHPDRBXMap::indexRBXfromEtaPhi(tower.ieta(), tower.iphi(), rbxindices); for(std::vector<int>::const_iterator it=rbxindices.begin(); it!=rbxindices.end(); ++it) vec.push_back(findRBX(*it)); return; }
HcalNoiseRBXArray::const_iterator HcalNoiseRBXArray::findRBX | ( | const HBHERecHit & | h | ) | const |
Definition at line 162 of file HcalNoiseRBXArray.cc.
References findRBX(), and HBHERecHit::id().
void HcalNoiseRBXArray::findRBX | ( | const CaloTower & | tower, |
std::vector< HcalNoiseRBXArray::const_iterator > & | vec | ||
) | const |
Definition at line 217 of file HcalNoiseRBXArray.cc.
References findRBX(), CaloTower::ieta(), HcalHPDRBXMap::indexRBXfromEtaPhi(), CaloTower::iphi(), and HcalHPDRBXMap::isValid().
{ // clear the vector vec.clear(); // check if the tower corresponds to a valid HPD/RBX if(!HcalHPDRBXMap::isValid(tower.ieta(), tower.iphi())) return; // find the RBX indices std::vector<int> rbxindices; HcalHPDRBXMap::indexRBXfromEtaPhi(tower.ieta(), tower.iphi(), rbxindices); for(std::vector<int>::const_iterator it=rbxindices.begin(); it!=rbxindices.end(); ++it) vec.push_back(findRBX(*it)); return; }
HcalNoiseRBXArray::iterator HcalNoiseRBXArray::findRBX | ( | const HcalDetId & | id | ) |
Definition at line 120 of file HcalNoiseRBXArray.cc.
References endRBX(), findRBX(), HcalHPDRBXMap::indexRBX(), and HcalHPDRBXMap::isValid().
{ if(!HcalHPDRBXMap::isValid(id)) return endRBX(); return findRBX(HcalHPDRBXMap::indexRBX(id)); }
HcalNoiseRBXArray::iterator HcalNoiseRBXArray::findRBX | ( | int | rbxindex | ) |
Definition at line 92 of file HcalNoiseRBXArray.cc.
References begin, endRBX(), and HcalHPDRBXMap::isValidRBX().
Referenced by reco::HcalNoiseInfoProducer::filldigis(), and findRBX().
{ if(!HcalHPDRBXMap::isValidRBX(rbxindex)) return endRBX(); return begin()+rbxindex; }
HcalNoiseRBXArray::const_iterator HcalNoiseRBXArray::findRBX | ( | const HBHEDataFrame & | f | ) | const |
Definition at line 146 of file HcalNoiseRBXArray.cc.
References findRBX(), and HBHEDataFrame::id().
HcalNoiseRBXArray::iterator HcalNoiseRBXArray::findRBX | ( | const HBHERecHit & | h | ) |
Definition at line 158 of file HcalNoiseRBXArray.cc.
References findRBX(), and HBHERecHit::id().
HcalNoiseRBXArray::const_iterator HcalNoiseRBXArray::findRBX | ( | const HcalDetId & | id | ) | const |
Definition at line 127 of file HcalNoiseRBXArray.cc.
References endRBX(), findRBX(), HcalHPDRBXMap::indexRBX(), and HcalHPDRBXMap::isValid().
{ if(!HcalHPDRBXMap::isValid(id)) return endRBX(); return findRBX(HcalHPDRBXMap::indexRBX(id)); }
HcalNoiseRBXArray::iterator HcalNoiseRBXArray::findRBX | ( | const HBHEDataFrame & | f | ) |
Definition at line 142 of file HcalNoiseRBXArray.cc.
References findRBX(), and HBHEDataFrame::id().