Class for the RPC strip response simulation based on a parametrized model (ORCA-based)
- Author
- Marcello Maggi – INFN Bari
Definition at line 20 of file RPCSimParam.h.
Definition at line 12 of file RPCSimParam.cc.
13 aveEff =
config.getParameter<
double>(
"averageEfficiency");
14 aveCls =
config.getParameter<
double>(
"averageClusterSize");
17 dtimCs =
config.getParameter<
double>(
"deltatimeAdjacentStrip");
19 sspeed =
config.getParameter<
double>(
"signalPropagationSpeed");
29 std::cout <<
"Average Cluster Size = " <<
aveCls <<
" strips" << std::endl;
31 std::cout <<
"RPC Signal formation time = " <<
timOff <<
" ns" << std::endl;
32 std::cout <<
"RPC adjacent strip delay = " <<
dtimCs <<
" ns" << std::endl;
34 std::cout <<
"Signal propagation time = " <<
sspeed <<
" x c" << std::endl;
35 std::cout <<
"Link Board Gate Width = " <<
lbGate <<
" ns" << std::endl;
References _rpcSync, aveCls, aveEff, gather_cfg::cout, dtimCs, gate, lbGate, nbxing, rate, resEle, resRPC, rpcdigiprint, sspeed, and timOff.
Implements RPCSim.
Definition at line 43 of file RPCSimParam.cc.
51 for (edm::PSimHitContainer::const_iterator _hit = rpcHits.begin(); _hit != rpcHits.end(); ++_hit) {
57 float eff = CLHEP::RandFlat::shoot(engine);
59 int centralStrip =
topology.channel(entr) + 1;
60 int fstrip = centralStrip;
61 int lstrip = centralStrip;
63 double w = CLHEP::RandFlat::shoot(engine);
66 int clsize = static_cast<int>(-1. *
aveCls *
log(
w) + 1.);
68 cls.push_back(centralStrip);
70 for (
int cl = 0;
cl < (clsize - 1) / 2;
cl++)
71 if (centralStrip -
cl - 1 >= 1) {
72 fstrip = centralStrip -
cl - 1;
73 cls.push_back(fstrip);
75 for (
int cl = 0;
cl < (clsize - 1) / 2;
cl++)
76 if (centralStrip +
cl + 1 <= roll->
nstrips()) {
77 lstrip = centralStrip +
cl + 1;
78 cls.push_back(lstrip);
80 if (clsize % 2 == 0) {
85 if (lstrip < roll->nstrips()) {
87 cls.push_back(lstrip);
92 cls.push_back(fstrip);
98 for (std::vector<int>::iterator
i = cls.begin();
i != cls.end();
i++) {
100 std::pair<unsigned int, int> digi(*
i, time_hit);
References _rpcSync, aveCls, aveEff, RPCRoll::centreOfStrip(), GetRecoTauVFromDQM_MC_cff::cl, edm::DetSet< T >::clear(), MillePedeFileConverter_cfg::e, RPCSim::getRPCSimSetUp(), RPCSynchronizer::getSimHitBx(), mps_fire::i, RPCRoll::id(), dqm-mbProfile::log, RPCRoll::nstrips(), DetId::rawId(), RPCSynchronizer::setRPCSimSetUp(), RPCRoll::specs(), RPCSim::strips, RPCSim::theDetectorHitMap, RPCSim::theRpcDigiSimLinks, RPCRollSpecs::topology(), ecaldqm::topology(), w, and PV3DBase< T, PVType, FrameType >::x().
void RPCSimParam::simulateNoise |
( |
const RPCRoll * |
roll, |
|
|
CLHEP::HepRandomEngine * |
engine |
|
) |
| |
|
overridevirtual |
Implements RPCSim.
Definition at line 109 of file RPCSimParam.cc.
114 if (rpcId.
region() == 0) {
130 CLHEP::RandPoissonQ randPoissonQ(*engine, ave);
131 N_hits = randPoissonQ.fire();
134 int strip = static_cast<int>(CLHEP::RandFlat::shoot(engine, 1, nstrips));
136 time_hit = (static_cast<int>(CLHEP::RandFlat::shoot(engine, (
nbxing *
gate) /
gate))) -
nbxing / 2;
137 std::pair<int, int> digi(
strip, time_hit);
References custom_jme_cff::area, gate, mps_fire::i, RPCRoll::id(), RectangularStripTopology::localPosition(), TrapezoidalStripTopology::localPosition(), N_hits, nbxing, RPCRoll::nstrips(), rate, RPCDetId::region(), digitizers_cfi::strip, RectangularStripTopology::stripLength(), TrapezoidalStripTopology::stripLength(), RPCSim::strips, RPCRoll::topology(), x, TrackerOfflineValidation_Dqm_cff::xmax, and TrackerOfflineValidation_Dqm_cff::xmin.