9 std::vector<int> chambersDone;
11 std::map<int, edm::PSimHitContainer> signalHits = hitMap;
12 for(std::map<int, edm::PSimHitContainer>::const_iterator signalHitItr = signalHits.begin();
13 signalHitItr != signalHits.end(); ++signalHitItr)
15 int chamberIndex =
chamberId(signalHitItr->first);
18 if(
find(chambersDone.begin(), chambersDone.end(), chamberIndex) == chambersDone.end())
24 for(edm::PSimHitContainer::const_iterator neutronHitItr = neutronHits.begin();
25 neutronHitItr != neutronHits.end(); ++neutronHitItr)
27 uint32_t layerId = neutronHitItr->detUnitId();
28 hitMap[layerId].push_back(*neutronHitItr);
31 chambersDone.push_back(chamberIndex);
46 return CSCDetId(globalDetId).layer();
59 return CSCDetId(globalDetId).chamberId().rawId();
int localDetId(int globalDetId) const
static int whatChamberType(int istation, int iring)
int chamberId(int globalDetId) const
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
int chamberType(int globalDetId) const
void generateChamberNoise(int chamberType, int chamberIndex, edm::PSimHitContainer &result, CLHEP::HepRandomEngine *)
void addHits(std::map< int, edm::PSimHitContainer > &hitMap, CLHEP::HepRandomEngine *)
std::vector< PSimHit > PSimHitContainer
virtual int detId(int chamberIndex, int localDetId)