7 std::vector<int> chambersDone;
9 std::map<int, edm::PSimHitContainer> signalHits = hitMap;
10 for (std::map<int, edm::PSimHitContainer>::const_iterator signalHitItr = signalHits.begin();
11 signalHitItr != signalHits.end();
13 int chamberIndex =
chamberId(signalHitItr->first);
16 if (
find(chambersDone.begin(), chambersDone.end(), chamberIndex) == chambersDone.end()) {
21 for (edm::PSimHitContainer::const_iterator neutronHitItr = neutronHits.begin();
22 neutronHitItr != neutronHits.end();
24 uint32_t layerId = neutronHitItr->detUnitId();
25 hitMap[layerId].push_back(*neutronHitItr);
28 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