Class for the RPC strip response simulation based on a parametrized model (ORCA-based)
- Author
- Borislav Pavlov – University of Sofia
Class for the RPC strip response simulation based on a parametrized model (ORCA-based)
- Author
- Raffaello Trentadue – INFN Bari
Definition at line 27 of file RPCSimAverage.h.
Definition at line 39 of file RPCSimAverage.cc.
40 aveEff =
config.getParameter<
double>(
"averageEfficiency");
41 aveCls =
config.getParameter<
double>(
"averageClusterSize");
44 dtimCs =
config.getParameter<
double>(
"deltatimeAdjacentStrip");
46 sspeed =
config.getParameter<
double>(
"signalPropagationSpeed");
55 std::cout <<
"Average Cluster Size = " <<
aveCls <<
" strips" << std::endl;
57 std::cout <<
"RPC Signal formation time = " <<
timOff <<
" ns" << std::endl;
58 std::cout <<
"RPC adjacent strip delay = " <<
dtimCs <<
" ns" << std::endl;
60 std::cout <<
"Signal propagation time = " <<
sspeed <<
" x c" << std::endl;
61 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 110 of file RPCSimAverage.cc.
120 for (edm::PSimHitContainer::const_iterator _hit = rpcHits.begin(); _hit != rpcHits.end(); ++_hit) {
126 float posX = roll->
strip(_hit->localPosition()) - static_cast<int>(roll->
strip(_hit->localPosition()));
131 if (CLHEP::RandFlat::shoot(engine) <
aveEff) {
132 int centralStrip =
topology.channel(entr) + 1;
133 int fstrip = centralStrip;
134 int lstrip = centralStrip;
138 int clsize = this->
getClSize(posX, engine);
140 std::vector<int> cls;
141 cls.push_back(centralStrip);
143 for (
int cl = 0;
cl < (clsize - 1) / 2;
cl++)
144 if (centralStrip -
cl - 1 >= 1) {
145 fstrip = centralStrip -
cl - 1;
146 cls.push_back(fstrip);
148 for (
int cl = 0;
cl < (clsize - 1) / 2;
cl++)
149 if (centralStrip +
cl + 1 <= roll->
nstrips()) {
150 lstrip = centralStrip +
cl + 1;
151 cls.push_back(lstrip);
153 if (clsize % 2 == 0) {
158 if (lstrip < roll->nstrips()) {
160 cls.push_back(lstrip);
165 cls.push_back(fstrip);
171 for (std::vector<int>::iterator
i = cls.begin();
i != cls.end();
i++) {
173 std::pair<int, int> digi(*
i, time_hit);
References _rpcSync, aveEff, RPCRoll::centreOfStrip(), GetRecoTauVFromDQM_MC_cff::cl, edm::DetSet< T >::clear(), getClSize(), RPCSim::getRPCSimSetUp(), RPCSynchronizer::getSimHitBx(), mps_fire::i, RPCRoll::id(), RPCRoll::nstrips(), RecoTauValidation_cfi::posX, DetId::rawId(), RPCSynchronizer::setRPCSimSetUp(), RPCRoll::specs(), RPCRoll::strip(), RPCSim::strips, RPCSim::theDetectorHitMap, RPCSim::theRpcDigiSimLinks, RPCRollSpecs::topology(), ecaldqm::topology(), and PV3DBase< T, PVType, FrameType >::x().
void RPCSimAverage::simulateNoise |
( |
const RPCRoll * |
roll, |
|
|
CLHEP::HepRandomEngine * |
engine |
|
) |
| |
|
overridevirtual |
Implements RPCSim.
Definition at line 181 of file RPCSimAverage.cc.
186 if (rpcId.
region() == 0) {
202 CLHEP::RandPoissonQ randPoissonQ(*engine, ave);
203 N_hits = randPoissonQ.fire();
206 int strip = static_cast<int>(CLHEP::RandFlat::shoot(engine, 1, nstrips));
208 time_hit = (static_cast<int>(CLHEP::RandFlat::shoot(engine, (
nbxing *
gate) /
gate))) -
nbxing / 2;
209 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.