Go to the documentation of this file.
9 #include "CLHEP/Random/RandFlat.h"
10 #include "CLHEP/Random/RandPoissonQ.h"
37 for (edm::PSimHitContainer::const_iterator _hit = rpcHits.begin(); _hit != rpcHits.end(); ++_hit) {
43 std::pair<int, int> digi(topology.channel(entr) + 1, time_hit);
71 CLHEP::RandPoissonQ randPoissonQ(*engine, ave);
72 N_hits = randPoissonQ.fire();
75 int strip = static_cast<int>(CLHEP::RandFlat::shoot(engine, 1, nstrips));
77 time_hit = (static_cast<int>(CLHEP::RandFlat::shoot(engine, (
nbxing *
gate) /
gate))) -
nbxing / 2;
78 std::pair<int, int> digi(
strip, time_hit);
void setRPCSimSetUp(RPCSimSetUp *simsetup)
RPCSimSetUp * getRPCSimSetUp()
RPCSimSimple(const edm::ParameterSet &config)
float stripLength() const override
det heigth (strip length in the middle)
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.
int getSimHitBx(const PSimHit *, CLHEP::HepRandomEngine *)
std::set< std::pair< int, int > > strips
LocalPoint localPosition(float strip) const override
const Topology & topology() const override
DetectorHitMap theDetectorHitMap
void simulate(const RPCRoll *roll, const edm::PSimHitContainer &rpcHits, CLHEP::HepRandomEngine *) override
RPCDigiSimLinks theRpcDigiSimLinks
const Topology & topology() const override
float stripLength() const override
RPCSynchronizer * _rpcSync
Container::value_type value_type
constexpr uint32_t rawId() const
get the raw id
const RPCRollSpecs * specs() const
LocalPoint localPosition(float strip) const override
std::vector< PSimHit > PSimHitContainer
edm::DetSet< RPCDigiSimLink > RPCDigiSimLinks
void simulateNoise(const RPCRoll *, CLHEP::HepRandomEngine *) override