10 #include "CLHEP/Random/RandomEngine.h"
11 #include "CLHEP/Random/RandFlat.h"
15 #include "CLHEP/Random/Random.h"
16 #include "CLHEP/Random/RandFlat.h"
17 #include "CLHEP/Random/RandPoissonQ.h"
63 for (edm::PSimHitContainer::const_iterator _hit = rpcHits.begin();
64 _hit != rpcHits.end(); ++_hit){
72 std::pair<int, int> digi(topology.channel(entr)+1,
90 const RectangularStripTopology* top_ =
dynamic_cast<const
91 RectangularStripTopology*
>(&(roll->
topology()));
92 float xmin = (top_->localPosition(0.)).
x();
93 float xmax = (top_->localPosition((
float)roll->
nstrips())).x();
94 float striplength = (top_->stripLength());
95 area = striplength*(xmax-xmin);
99 const TrapezoidalStripTopology* top_=
dynamic_cast<const TrapezoidalStripTopology*
>(&(roll->
topology()));
100 float xmin = (top_->localPosition(0.)).
x();
101 float xmax = (top_->localPosition((
float)roll->
nstrips())).x();
102 float striplength = (top_->stripLength());
103 area = striplength*(xmax-xmin);
114 std::pair<int, int> digi(strip,time_hit);
T getParameter(std::string const &) const
CLHEP::RandFlat * flatDistribution2
const Topology & topology() const
void setRandomEngine(CLHEP::HepRandomEngine &eng)
RPCSynchronizer * _rpcSync
DetectorHitMap theDetectorHitMap
void setRPCSimSetUp(RPCSimSetUp *simsetup)
RPCSimSetUp * getRPCSimSetUp()
void simulateNoise(const RPCRoll *)
const RPCRollSpecs * specs() const
std::set< std::pair< int, int > > strips
uint32_t rawId() const
get the raw id
edm::DetSet< RPCDigiSimLink > RPCDigiSimLinks
CLHEP::RandPoissonQ * poissonDistribution
RPCSimSimple(const edm::ParameterSet &config)
Container::value_type value_type
int getSimHitBx(const PSimHit *)
void setRandomEngine(CLHEP::HepRandomEngine &eng)
void simulate(const RPCRoll *roll, const edm::PSimHitContainer &rpcHits)
std::vector< PSimHit > PSimHitContainer
CLHEP::RandFlat * flatDistribution1
RPCDigiSimLinks theRpcDigiSimLinks
const Topology & topology() const
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.