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);
int detId(int chamberIndex, int localDetId) override
int localDetId(int globalDetId) const
static int whatChamberType(int istation, int iring)
constexpr uint32_t rawId() const
get the raw id
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
CSCDetId chamberId() 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