CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
RPCSimAsymmetricCls Class Reference

#include <RPCSimAsymmetricCls.h>

Inheritance diagram for RPCSimAsymmetricCls:
RPCSim

Public Member Functions

int getClSize (float posX, CLHEP::HepRandomEngine *)
 
int getClSize (uint32_t id, float posX, CLHEP::HepRandomEngine *)
 
 RPCSimAsymmetricCls (const edm::ParameterSet &config)
 
void simulate (const RPCRoll *roll, const edm::PSimHitContainer &rpcHits, CLHEP::HepRandomEngine *) override
 
void simulateNoise (const RPCRoll *, CLHEP::HepRandomEngine *) override
 
unsigned int slice (float posX)
 
 ~RPCSimAsymmetricCls () override
 
- Public Member Functions inherited from RPCSim
const DigiSimLinksdigiSimLinks () const
 
virtual void fillDigis (int rollDetId, RPCDigiCollection &digis)
 
RPCSimSetUpgetRPCSimSetUp ()
 
const RPCDigiSimLinksrpcDigiSimLinks () const
 
void setRPCSimSetUp (RPCSimSetUp *setup)
 
virtual ~RPCSim ()
 

Private Member Functions

void init () override
 

Private Attributes

RPCSynchronizer_rpcSync
 
double aveCls
 
double aveEff
 
std::vector< double > clsForDetId
 
std::map< int, std::vector< double > > clsMap
 
double dtimCs
 
bool eledig
 
double frate
 
double gate
 
std::ifstream * infile
 
double lbGate
 
int N_hits
 
int nbxing
 
double rate
 
double resEle
 
double resRPC
 
bool rpcdigiprint
 
double sspeed
 
std::vector< double > sum_clsize
 
double timOff
 

Additional Inherited Members

- Public Types inherited from RPCSim
typedef edm::DetSet< StripDigiSimLinkDigiSimLinks
 
typedef edm::DetSet< RPCDigiSimLinkRPCDigiSimLinks
 
- Protected Types inherited from RPCSim
typedef std::multimap< std::pair< unsigned int, int >, const PSimHit *, std::less< std::pair< unsigned int, int > > > DetectorHitMap
 
- Protected Member Functions inherited from RPCSim
virtual void addLinks (unsigned int strip, int bx)
 
 RPCSim (const edm::ParameterSet &config)
 
- Protected Attributes inherited from RPCSim
std::set< RPCDigiirpc_digis
 
std::set< std::pair< int, int > > strips
 
DetectorHitMap theDetectorHitMap
 
DigiSimLinks theDigiSimLinks
 
RPCDigiSimLinks theRpcDigiSimLinks
 
RPCSimSetUptheSimSetUp
 

Detailed Description

Definition at line 30 of file RPCSimAsymmetricCls.h.

Constructor & Destructor Documentation

◆ RPCSimAsymmetricCls()

RPCSimAsymmetricCls::RPCSimAsymmetricCls ( const edm::ParameterSet config)

Definition at line 41 of file RPCSimAsymmetricCls.cc.

41  : RPCSim(config) {
42  aveEff = config.getParameter<double>("averageEfficiency");
43  aveCls = config.getParameter<double>("averageClusterSize");
44  resRPC = config.getParameter<double>("timeResolution");
45  timOff = config.getParameter<double>("timingRPCOffset");
46  dtimCs = config.getParameter<double>("deltatimeAdjacentStrip");
47  resEle = config.getParameter<double>("timeJitter");
48  sspeed = config.getParameter<double>("signalPropagationSpeed");
49  lbGate = config.getParameter<double>("linkGateWidth");
50  rpcdigiprint = config.getParameter<bool>("printOutDigitizer");
51  eledig = config.getParameter<bool>("digitizeElectrons");
52 
53  rate = config.getParameter<double>("Rate");
54  nbxing = config.getParameter<int>("Nbxing");
55  gate = config.getParameter<double>("Gate");
56  frate = config.getParameter<double>("Frate");
57 
58  if (rpcdigiprint) {
59  std::cout << "Average Efficiency = " << aveEff << std::endl;
60  std::cout << "Average Cluster Size = " << aveCls << " strips" << std::endl;
61  std::cout << "RPC Time Resolution = " << resRPC << " ns" << std::endl;
62  std::cout << "RPC Signal formation time = " << timOff << " ns" << std::endl;
63  std::cout << "RPC adjacent strip delay = " << dtimCs << " ns" << std::endl;
64  std::cout << "Electronic Jitter = " << resEle << " ns" << std::endl;
65  std::cout << "Signal propagation time = " << sspeed << " x c" << std::endl;
66  std::cout << "Link Board Gate Width = " << lbGate << " ns" << std::endl;
67  }
68 
70 }

References _rpcSync, aveCls, aveEff, gather_cfg::cout, dtimCs, eledig, frate, gate, lbGate, nbxing, rate, resEle, resRPC, rpcdigiprint, sspeed, and timOff.

◆ ~RPCSimAsymmetricCls()

RPCSimAsymmetricCls::~RPCSimAsymmetricCls ( )
override

Definition at line 72 of file RPCSimAsymmetricCls.cc.

72 { delete _rpcSync; }

References _rpcSync.

Member Function Documentation

◆ getClSize() [1/2]

int RPCSimAsymmetricCls::getClSize ( float  posX,
CLHEP::HepRandomEngine *  engine 
)

Definition at line 93 of file RPCSimAsymmetricCls.cc.

93  {
94  std::map<int, std::vector<double> > clsMap = getRPCSimSetUp()->getClsMap();
95 
96  int cnt = 1;
97  int min = 1;
98  double func = 0.0;
99  std::vector<double> sum_clsize;
100 
101  double rr_cl = CLHEP::RandFlat::shoot(engine);
102  LogDebug("RPCSimAsymmetricCls") << "[RPCSimAsymmetricCls::getClSize] Fired RandFlat :: " << rr_cl;
103 
104  if (0.0 <= posX && posX < 0.2) {
105  func = (clsMap[1])[(clsMap[1]).size() - 1] * (rr_cl);
106  sum_clsize = clsMap[1];
107  }
108  if (0.2 <= posX && posX < 0.4) {
109  func = (clsMap[2])[(clsMap[2]).size() - 1] * (rr_cl);
110  sum_clsize = clsMap[2];
111  }
112  if (0.4 <= posX && posX < 0.6) {
113  func = (clsMap[3])[(clsMap[3]).size() - 1] * (rr_cl);
114  sum_clsize = clsMap[3];
115  }
116  if (0.6 <= posX && posX < 0.8) {
117  func = (clsMap[4])[(clsMap[4]).size() - 1] * (rr_cl);
118  sum_clsize = clsMap[4];
119  }
120  if (0.8 <= posX && posX < 1.0) {
121  func = (clsMap[5])[(clsMap[5]).size() - 1] * (rr_cl);
122  sum_clsize = clsMap[5];
123  }
124 
125  for (vector<double>::iterator iter = sum_clsize.begin(); iter != sum_clsize.end(); ++iter) {
126  cnt++;
127  if (func > (*iter)) {
128  min = cnt;
129  } else if (func < (*iter)) {
130  break;
131  }
132  }
133  return min;
134 }

References clsMap, TrackCollections2monitor_cff::func, RPCSimSetUp::getClsMap(), RPCSim::getRPCSimSetUp(), LogDebug, min(), RecoTauValidation_cfi::posX, and sum_clsize.

Referenced by simulate().

◆ getClSize() [2/2]

int RPCSimAsymmetricCls::getClSize ( uint32_t  id,
float  posX,
CLHEP::HepRandomEngine *  engine 
)

Definition at line 74 of file RPCSimAsymmetricCls.cc.

74  {
75  std::vector<double> clsForDetId = getRPCSimSetUp()->getAsymmetricClsDistribution(id, slice(posX));
76 
77  int cnt = 1;
78  int min = 1;
79 
80  double rr_cl = CLHEP::RandFlat::shoot(engine);
81  LogDebug("RPCSimAsymmetricCls") << "[RPCSimAsymmetricCls::getClSize] Fired RandFlat :: " << rr_cl;
82  for (unsigned int i = 0; i < clsForDetId.size(); i++) {
83  cnt++;
84  if (rr_cl > clsForDetId[i]) {
85  min = cnt;
86  } else if (rr_cl < clsForDetId[i]) {
87  break;
88  }
89  }
90  return min;
91 }

References clsForDetId, RPCSimSetUp::getAsymmetricClsDistribution(), RPCSim::getRPCSimSetUp(), mps_fire::i, LogDebug, min(), RecoTauValidation_cfi::posX, and slice().

◆ init()

void RPCSimAsymmetricCls::init ( void  )
inlineoverrideprivatevirtual

Implements RPCSim.

Definition at line 44 of file RPCSimAsymmetricCls.h.

44 {};

◆ simulate()

void RPCSimAsymmetricCls::simulate ( const RPCRoll roll,
const edm::PSimHitContainer rpcHits,
CLHEP::HepRandomEngine *  engine 
)
overridevirtual

Implements RPCSim.

Definition at line 136 of file RPCSimAsymmetricCls.cc.

138  {
141  theDetectorHitMap.clear();
143 
144  RPCDetId rpcId = roll->id();
145  RPCGeomServ RPCname(rpcId);
146  std::string nameRoll = RPCname.name();
147 
148  const Topology& topology = roll->specs()->topology();
149  for (edm::PSimHitContainer::const_iterator _hit = rpcHits.begin(); _hit != rpcHits.end(); ++_hit) {
150  if (!eledig && _hit->particleType() == 11)
151  continue;
152  // Here I hould check if the RPC are up side down;
153  const LocalPoint& entr = _hit->entryPoint();
154 
155  int time_hit = _rpcSync->getSimHitBx(&(*_hit), engine);
156  float posX = roll->strip(_hit->localPosition()) - static_cast<int>(roll->strip(_hit->localPosition()));
157 
158  std::vector<float> veff = (getRPCSimSetUp())->getEff(rpcId.rawId());
159 
160  std::stringstream veffstream;
161  veffstream << "[";
162  for (std::vector<float>::iterator veffIt = veff.begin(); veffIt != veff.end(); ++veffIt) {
163  veffstream << (*veffIt) << ",";
164  }
165  veffstream << "]";
166  std::string veffstr = veffstream.str();
167  LogDebug("RPCSimAsymmetricCls") << "Get Eff from RPCSimSetup for detId = " << rpcId.rawId() << " :: " << veffstr;
168 
169  // Efficiency
170  int centralStrip = topology.channel(entr) + 1;
171  float fire = CLHEP::RandFlat::shoot(engine);
172  LogDebug("RPCSimAsymmetricCls") << "[RPCSimAsymmetricCls::simulate] Fired RandFlat :: " << fire << " --> < "
173  << veff[centralStrip - 1] << " ? --> " << ((fire < veff[centralStrip - 1]) ? 1 : 0);
174 
175  if (fire < veff[centralStrip - 1]) {
176  LogDebug("RPCSimAsymmetricCls") << "Detector is Efficient for this simhit";
177 
178  int fstrip = centralStrip;
179  int lstrip = centralStrip;
180 
181  // Compute the cluster size
182 
183  //double w = CLHEP::RandFlat::shoot(engine);
184  //LogDebug ("RPCSimAsymmetricCls")<<"[RPCSimAsymmetricCls::simulate] Fired RandFlat :: "<<w<<" (w is not used)";
185  //if (w < 1.e-10) w=1.e-10;
186 
187  int clsize = this->getClSize(rpcId.rawId(), posX, engine); // This is for cluster size chamber by chamber
188  LogDebug("RPCSimAsymmetricCls") << "Clustersize = " << clsize;
189 
190  std::vector<int> cls;
191 
192  cls.push_back(centralStrip);
193  if (clsize > 1) {
194  for (int cl = 0; cl < (clsize - 1) / 2; cl++) {
195  if (centralStrip - cl - 1 >= 1) {
196  fstrip = centralStrip - cl - 1;
197  cls.push_back(fstrip);
198  }
199  if (centralStrip + cl + 1 <= roll->nstrips()) {
200  lstrip = centralStrip + cl + 1;
201  cls.push_back(lstrip);
202  }
203  }
204  if (clsize % 2 == 0) { //even cluster size is a special case
205  if (clsize > 5) {
206  // insert the last strip according to the
207  // simhit position in the central strip
208  // needed for cls > 5, because higher cluster size has no asymmetry
209  // and thus is treated like in the old parametrization
210  double deltaw = roll->centreOfStrip(centralStrip).x() - entr.x();
211  if (deltaw < 0.) {
212  if (lstrip < roll->nstrips()) {
213  lstrip++;
214  cls.push_back(lstrip);
215  }
216  } else {
217  if (fstrip > 1) {
218  fstrip--;
219  cls.push_back(fstrip);
220  }
221  }
222  } else {
223  // needed for correct initial position for even cluster size
224  // in case of asymmetric cluster size
225  if (lstrip < roll->nstrips()) {
226  lstrip++;
227  cls.push_back(lstrip);
228  }
229  }
230  }
231  }
232 
233  //Now calculate the shift according to the distribution
234  float fire1 = CLHEP::RandFlat::shoot(engine);
235  LogDebug("RPCSimAsymmetricCls") << "[RPCSimAsymmetricCls::simulate] Fired RandFlat :: " << fire1
236  << " (fire1 is used for a shift of the cluster)";
237 
238  int strip_shift = 0;
239 
240  int offset;
241 
242  if (clsize % 2 == 0) {
243  offset = 2;
244  } else {
245  offset = 1;
246  }
247 
248  //No shift (asymmetry) for higher cluster size.
249  if (clsize > 5) {
250  strip_shift = 0;
251  } else {
252  std::vector<double> TMPclsAsymmForDetId = getRPCSimSetUp()->getAsymmetryForCls(rpcId, slice(posX), clsize);
253 
254  for (unsigned int i = 0; i < TMPclsAsymmForDetId.size(); i++) {
255  if (fire1 < TMPclsAsymmForDetId[i]) {
256  strip_shift = i - offset;
257  break;
258  }
259  }
260  }
261 
262  vector<int> shifted_cls; // vector to hold shifted strips
263  shifted_cls.clear();
264 
265  int min_strip = 100;
266  int max_strip = 0;
267 
268  //correction for the edges
269  for (std::vector<int>::iterator i = cls.begin(); i != cls.end(); i++) {
270  if (*i + strip_shift < min_strip) {
271  min_strip = *i + strip_shift;
272  }
273  if (*i + strip_shift > max_strip) {
274  max_strip = *i + strip_shift;
275  }
276  }
277 
278  if (min_strip < 1 || max_strip - roll->nstrips() > 0) {
279  strip_shift = 0;
280  }
281 
282  //Now shift the cluster
283  for (std::vector<int>::iterator i = cls.begin(); i != cls.end(); i++) {
284  shifted_cls.push_back(*i + strip_shift);
285  }
286  for (std::vector<int>::iterator i = shifted_cls.begin(); i != shifted_cls.end(); i++) {
287  // Check the timing of the adjacent strip
288  if (*i != centralStrip) {
289  double fire2 = CLHEP::RandFlat::shoot(engine);
290  LogDebug("RPCSimAsymmetricCls") << "[RPCSimAsymmetricCls::simulate] Fired RandFlat :: " << fire2
291  << " (check whether adjacent strips are efficient)";
292  if (fire2 < veff[*i - 1]) {
293  std::pair<int, int> digi(*i, time_hit);
294  strips.insert(digi);
295  LogDebug("RPCSimAsymmetricCls")
296  << "RPC Digi inserted :: Signl :: DetId :: " << rpcId << " = " << rpcId.rawId() << " ==> digi <"
297  << digi.first << "," << digi.second << ">";
298 
299  theDetectorHitMap.insert(DetectorHitMap::value_type(digi, &(*_hit)));
300  }
301  } else {
302  std::pair<int, int> digi(*i, time_hit);
303  theDetectorHitMap.insert(DetectorHitMap::value_type(digi, &(*_hit)));
304 
305  strips.insert(digi);
306  LogDebug("RPCSimAsymmetricCls") << "RPC Digi inserted :: Signl :: DetId :: " << rpcId << " = "
307  << rpcId.rawId() << " ==> digi <" << digi.first << "," << digi.second << ">";
308  }
309  }
310  }
311  }
312 }

References _rpcSync, RPCRoll::centreOfStrip(), GetRecoTauVFromDQM_MC_cff::cl, edm::DetSet< T >::clear(), eledig, RPCSimSetUp::getAsymmetryForCls(), getClSize(), RPCSim::getRPCSimSetUp(), RPCSynchronizer::getSimHitBx(), mps_fire::i, RPCRoll::id(), LogDebug, RPCGeomServ::name(), RPCRoll::nstrips(), hltrates_dqm_sourceclient-live_cfg::offset, RecoTauValidation_cfi::posX, DetId::rawId(), RPCSynchronizer::setRPCSimSetUp(), slice(), RPCRoll::specs(), AlCaHLTBitMon_QueryRunRegistry::string, RPCRoll::strip(), RPCSim::strips, RPCSim::theDetectorHitMap, RPCSim::theRpcDigiSimLinks, RPCRollSpecs::topology(), ecaldqm::topology(), and PV3DBase< T, PVType, FrameType >::x().

◆ simulateNoise()

void RPCSimAsymmetricCls::simulateNoise ( const RPCRoll roll,
CLHEP::HepRandomEngine *  engine 
)
overridevirtual

Implements RPCSim.

Definition at line 314 of file RPCSimAsymmetricCls.cc.

314  {
315  RPCDetId rpcId = roll->id();
316 
317  RPCGeomServ RPCname(rpcId);
318  std::string nameRoll = RPCname.name();
319 
320  std::vector<float> vnoise = (getRPCSimSetUp())->getNoise(rpcId.rawId());
321  std::vector<float> veff = (getRPCSimSetUp())->getEff(rpcId.rawId());
322 
323  LogDebug("RPCSimAsymmetricCls") << "[RPCSimAsymmetricCls::simulateNoise] Treating DetId :: " << rpcId << " = "
324  << rpcId.rawId() << " which has " << roll->nstrips() << " strips";
325 
326  std::stringstream vnoisestream;
327  vnoisestream << "[";
328  for (std::vector<float>::iterator vnoiseIt = vnoise.begin(); vnoiseIt != vnoise.end(); ++vnoiseIt) {
329  vnoisestream << (*vnoiseIt) << ",";
330  }
331  vnoisestream << "]";
332  std::string vnoisestr = vnoisestream.str();
333  LogDebug("RPCSimAsymmetricCls") << "Get Noise from RPCSimSetup for detId = " << rpcId.rawId() << " :: vector with "
334  << vnoise.size() << "entries :: " << vnoisestr;
335 
336  unsigned int nstrips = roll->nstrips();
337  double area = 0.0;
338 
339  if (rpcId.region() == 0) {
340  const RectangularStripTopology* top_ = dynamic_cast<const RectangularStripTopology*>(&(roll->topology()));
341  float xmin = (top_->localPosition(0.)).x();
342  float xmax = (top_->localPosition((float)roll->nstrips())).x();
343  float striplength = (top_->stripLength());
344  area = striplength * (xmax - xmin);
345  } else {
346  const TrapezoidalStripTopology* top_ = dynamic_cast<const TrapezoidalStripTopology*>(&(roll->topology()));
347  float xmin = (top_->localPosition(0.)).x();
348  float xmax = (top_->localPosition((float)roll->nstrips())).x();
349  float striplength = (top_->stripLength());
350  area = striplength * (xmax - xmin);
351  }
352 
353  LogDebug("RPCSimAsymmetricCls") << "Noise :: vnoise.size() = " << vnoise.size();
354 
355  for (unsigned int j = 0; j < vnoise.size(); ++j) {
356  if (j >= nstrips)
357  break;
358 
359  // The efficiency of 0% does not imply on the noise rate.
360  // If the strip is masked the noise rate should be 0 Hz/cm^2
361  // if(veff[j] == 0) continue;
362 
363  // double ave = vnoise[j]*nbxing*gate*area*1.0e-9*frate;
364  // The vnoise is the noise rate per strip, so we shout multiply not
365  // by the chamber area,
366  // but the strip area which is area/((float)roll->nstrips()));
367  double ave = vnoise[j] * nbxing * gate * area * 1.0e-9 * frate / ((float)roll->nstrips());
368  LogDebug("RPCSimAsymmetricCls") << "Noise :: strip " << j << " Average = " << ave
369  << " = vnoise[j]*nbxing*gate*area*1.0e-9*frate/((float)roll->nstrips()) = "
370  << vnoise[j] << "*" << nbxing << "*" << gate << "*" << area << "*" << 1.0e-9 << "*"
371  << frate << "/" << ((float)roll->nstrips());
372 
373  CLHEP::RandPoissonQ randPoissonQ(*engine, ave);
374  N_hits = randPoissonQ.fire();
375  LogDebug("RPCSimAsymmetricCls") << "[RPCSimAsymmetricCls::simulateNoise] Fired RandPoissonQ :: " << N_hits;
376  LogDebug("RPCSimAsymmetricCls") << "Noise :: Amount of Noise Hits for DetId :: " << rpcId << " = " << rpcId.rawId()
377  << " = N_hits = randPoissonQ.fire() = " << N_hits;
378 
379  for (int i = 0; i < N_hits; i++) {
380  double time2 = CLHEP::RandFlat::shoot((nbxing * gate) / gate);
381  LogDebug("RPCSimAsymmetricCls") << "[RPCSimAsymmetricCls::simulateNoise] Fired RandFlat :: " << time2;
382  int time_hit = (static_cast<int>(time2) - nbxing / 2);
383  std::pair<int, int> digi(j + 1, time_hit);
384  strips.insert(digi);
385  LogDebug("RPCSimAsymmetricCls") << "RPC Digi inserted :: Noise :: DetId :: " << rpcId << " = " << rpcId.rawId()
386  << " ==> digi <" << digi.first << "," << digi.second << ">";
387  }
388  }
389 }

References custom_jme_cff::area, dqmMemoryStats::float, frate, gate, RPCSim::getRPCSimSetUp(), mps_fire::i, RPCRoll::id(), dqmiolumiharvest::j, RectangularStripTopology::localPosition(), TrapezoidalStripTopology::localPosition(), LogDebug, N_hits, RPCGeomServ::name(), nbxing, RPCRoll::nstrips(), DetId::rawId(), RPCDetId::region(), AlCaHLTBitMon_QueryRunRegistry::string, RectangularStripTopology::stripLength(), TrapezoidalStripTopology::stripLength(), RPCSim::strips, RPCRoll::topology(), x, TrackerOfflineValidation_Dqm_cff::xmax, and TrackerOfflineValidation_Dqm_cff::xmin.

◆ slice()

unsigned int RPCSimAsymmetricCls::slice ( float  posX)

Definition at line 391 of file RPCSimAsymmetricCls.cc.

391  {
392  if (0.0 <= posX && posX < 0.2) {
393  return 0;
394  } else if (0.2 <= posX && posX < 0.4) {
395  return 1;
396  } else if (0.4 <= posX && posX < 0.6) {
397  return 2;
398  } else if (0.6 <= posX && posX < 0.8) {
399  return 3;
400  } else if (0.8 <= posX && posX < 1.0) {
401  return 4;
402  } else
403  return 2;
404 }

References RecoTauValidation_cfi::posX.

Referenced by getClSize(), and simulate().

Member Data Documentation

◆ _rpcSync

RPCSynchronizer* RPCSimAsymmetricCls::_rpcSync
private

Definition at line 69 of file RPCSimAsymmetricCls.h.

Referenced by RPCSimAsymmetricCls(), simulate(), and ~RPCSimAsymmetricCls().

◆ aveCls

double RPCSimAsymmetricCls::aveCls
private

Definition at line 48 of file RPCSimAsymmetricCls.h.

Referenced by RPCSimAsymmetricCls().

◆ aveEff

double RPCSimAsymmetricCls::aveEff
private

Definition at line 44 of file RPCSimAsymmetricCls.h.

Referenced by RPCSimAsymmetricCls().

◆ clsForDetId

std::vector<double> RPCSimAsymmetricCls::clsForDetId
private

Definition at line 66 of file RPCSimAsymmetricCls.h.

Referenced by getClSize().

◆ clsMap

std::map<int, std::vector<double> > RPCSimAsymmetricCls::clsMap
private

Definition at line 64 of file RPCSimAsymmetricCls.h.

Referenced by getClSize().

◆ dtimCs

double RPCSimAsymmetricCls::dtimCs
private

Definition at line 51 of file RPCSimAsymmetricCls.h.

Referenced by RPCSimAsymmetricCls().

◆ eledig

bool RPCSimAsymmetricCls::eledig
private

Definition at line 56 of file RPCSimAsymmetricCls.h.

Referenced by RPCSimAsymmetricCls(), and simulate().

◆ frate

double RPCSimAsymmetricCls::frate
private

Definition at line 62 of file RPCSimAsymmetricCls.h.

Referenced by RPCSimAsymmetricCls(), and simulateNoise().

◆ gate

double RPCSimAsymmetricCls::gate
private

Definition at line 61 of file RPCSimAsymmetricCls.h.

Referenced by RPCSimAsymmetricCls(), and simulateNoise().

◆ infile

std::ifstream* RPCSimAsymmetricCls::infile
private

Definition at line 67 of file RPCSimAsymmetricCls.h.

◆ lbGate

double RPCSimAsymmetricCls::lbGate
private

Definition at line 54 of file RPCSimAsymmetricCls.h.

Referenced by RPCSimAsymmetricCls().

◆ N_hits

int RPCSimAsymmetricCls::N_hits
private

Definition at line 58 of file RPCSimAsymmetricCls.h.

Referenced by simulateNoise().

◆ nbxing

int RPCSimAsymmetricCls::nbxing
private

Definition at line 59 of file RPCSimAsymmetricCls.h.

Referenced by RPCSimAsymmetricCls(), and simulateNoise().

◆ rate

double RPCSimAsymmetricCls::rate
private

Definition at line 60 of file RPCSimAsymmetricCls.h.

Referenced by RPCSimAsymmetricCls().

◆ resEle

double RPCSimAsymmetricCls::resEle
private

Definition at line 52 of file RPCSimAsymmetricCls.h.

Referenced by RPCSimAsymmetricCls().

◆ resRPC

double RPCSimAsymmetricCls::resRPC
private

Definition at line 49 of file RPCSimAsymmetricCls.h.

Referenced by RPCSimAsymmetricCls().

◆ rpcdigiprint

bool RPCSimAsymmetricCls::rpcdigiprint
private

Definition at line 55 of file RPCSimAsymmetricCls.h.

Referenced by RPCSimAsymmetricCls().

◆ sspeed

double RPCSimAsymmetricCls::sspeed
private

Definition at line 53 of file RPCSimAsymmetricCls.h.

Referenced by RPCSimAsymmetricCls().

◆ sum_clsize

std::vector<double> RPCSimAsymmetricCls::sum_clsize
private

Definition at line 65 of file RPCSimAsymmetricCls.h.

Referenced by getClSize().

◆ timOff

double RPCSimAsymmetricCls::timOff
private

Definition at line 50 of file RPCSimAsymmetricCls.h.

Referenced by RPCSimAsymmetricCls().

RPCSynchronizer::setRPCSimSetUp
void setRPCSimSetUp(RPCSimSetUp *simsetup)
Definition: RPCSynchronizer.h:43
RPCSim::getRPCSimSetUp
RPCSimSetUp * getRPCSimSetUp()
Definition: RPCSim.h:45
RPCSimAsymmetricCls::getClSize
int getClSize(float posX, CLHEP::HepRandomEngine *)
Definition: RPCSimAsymmetricCls.cc:93
mps_fire.i
i
Definition: mps_fire.py:355
TrapezoidalStripTopology::stripLength
float stripLength() const override
det heigth (strip length in the middle)
Definition: TrapezoidalStripTopology.h:63
RPCSimAsymmetricCls::slice
unsigned int slice(float posX)
Definition: RPCSimAsymmetricCls.cc:391
RPCGeomServ
Definition: RPCGeomServ.h:8
RPCSimAsymmetricCls::nbxing
int nbxing
Definition: RPCSimAsymmetricCls.h:59
RPCSimAsymmetricCls::timOff
double timOff
Definition: RPCSimAsymmetricCls.h:50
dqmMemoryStats.float
float
Definition: dqmMemoryStats.py:127
RPCSimSetUp::getAsymmetricClsDistribution
const std::vector< double > & getAsymmetricClsDistribution(uint32_t id, uint32_t slice)
Definition: RPCSimSetUp.cc:440
RPCDetId::region
int region() const
Region id: 0 for Barrel, +/-1 For +/- Endcap.
Definition: RPCDetId.h:53
PV3DBase::x
T x() const
Definition: PV3DBase.h:59
min
T min(T a, T b)
Definition: MathUtil.h:58
edm::DetSet::clear
void clear()
Definition: DetSet.h:71
RPCSim::RPCSim
RPCSim(const edm::ParameterSet &config)
Definition: RPCSim.cc:5
RPCDetId
Definition: RPCDetId.h:16
gather_cfg.cout
cout
Definition: gather_cfg.py:144
RPCSynchronizer
Definition: RPCSynchronizer.h:36
RPCSynchronizer::getSimHitBx
int getSimHitBx(const PSimHit *, CLHEP::HepRandomEngine *)
Definition: RPCSynchronizer.cc:58
DDAxes::x
RPCSim::strips
std::set< std::pair< int, int > > strips
Definition: RPCSim.h:55
RPCSimAsymmetricCls::frate
double frate
Definition: RPCSimAsymmetricCls.h:62
RPCSimAsymmetricCls::rate
double rate
Definition: RPCSimAsymmetricCls.h:60
RPCSimAsymmetricCls::aveCls
double aveCls
Definition: RPCSimAsymmetricCls.h:48
RectangularStripTopology::localPosition
LocalPoint localPosition(float strip) const override
Definition: RectangularStripTopology.cc:17
RPCRoll::topology
const Topology & topology() const override
Definition: RPCRoll.cc:18
GetRecoTauVFromDQM_MC_cff.cl
cl
Definition: GetRecoTauVFromDQM_MC_cff.py:38
config
Definition: config.py:1
RPCRoll::id
RPCDetId id() const
Definition: RPCRoll.cc:16
RectangularStripTopology
Definition: RectangularStripTopology.h:11
RPCSim::theDetectorHitMap
DetectorHitMap theDetectorHitMap
Definition: RPCSim.h:68
ecaldqm::topology
const CaloTopology * topology(nullptr)
TrapezoidalStripTopology
Definition: TrapezoidalStripTopology.h:21
RPCSim::theRpcDigiSimLinks
RPCDigiSimLinks theRpcDigiSimLinks
Definition: RPCSim.h:70
RPCRollSpecs::topology
const Topology & topology() const override
Definition: RPCRollSpecs.cc:36
RecoTauValidation_cfi.posX
posX
Definition: RecoTauValidation_cfi.py:288
RPCSimAsymmetricCls::_rpcSync
RPCSynchronizer * _rpcSync
Definition: RPCSimAsymmetricCls.h:69
RPCSimSetUp::getClsMap
const std::map< int, std::vector< double > > & getClsMap()
Definition: RPCSimSetUp.cc:413
Point3DBase< float, LocalTag >
RPCSimSetUp::getAsymmetryForCls
const std::vector< double > & getAsymmetryForCls(uint32_t id, uint32_t slice, uint32_t cls)
Definition: RPCSimSetUp.cc:504
RPCRoll::strip
float strip(const LocalPoint &lp) const
Definition: RPCRoll.cc:35
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
RPCRoll::centreOfStrip
LocalPoint centreOfStrip(int strip) const
Definition: RPCRoll.cc:26
RectangularStripTopology::stripLength
float stripLength() const override
Definition: RectangularStripTopology.h:44
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:670
RPCSimAsymmetricCls::lbGate
double lbGate
Definition: RPCSimAsymmetricCls.h:54
RPCRoll::nstrips
int nstrips() const
Definition: RPCRoll.cc:24
RPCSimAsymmetricCls::sum_clsize
std::vector< double > sum_clsize
Definition: RPCSimAsymmetricCls.h:65
RPCSimAsymmetricCls::clsForDetId
std::vector< double > clsForDetId
Definition: RPCSimAsymmetricCls.h:66
RPCSimAsymmetricCls::resRPC
double resRPC
Definition: RPCSimAsymmetricCls.h:49
reco::JetExtendedAssociation::value_type
Container::value_type value_type
Definition: JetExtendedAssociation.h:30
RPCSimAsymmetricCls::dtimCs
double dtimCs
Definition: RPCSimAsymmetricCls.h:51
TrackCollections2monitor_cff.func
func
Definition: TrackCollections2monitor_cff.py:359
RPCSimAsymmetricCls::sspeed
double sspeed
Definition: RPCSimAsymmetricCls.h:53
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
RPCSimAsymmetricCls::aveEff
double aveEff
Definition: RPCSimAsymmetricCls.h:44
RPCSimAsymmetricCls::clsMap
std::map< int, std::vector< double > > clsMap
Definition: RPCSimAsymmetricCls.h:64
TrackerOfflineValidation_Dqm_cff.xmax
xmax
Definition: TrackerOfflineValidation_Dqm_cff.py:11
RPCSimAsymmetricCls::rpcdigiprint
bool rpcdigiprint
Definition: RPCSimAsymmetricCls.h:55
RPCRoll::specs
const RPCRollSpecs * specs() const
Definition: RPCRoll.cc:14
TrapezoidalStripTopology::localPosition
LocalPoint localPosition(float strip) const override
Definition: TrapezoidalStripTopology.cc:27
Topology
Definition: Topology.h:39
RPCSimAsymmetricCls::gate
double gate
Definition: RPCSimAsymmetricCls.h:61
TrackerOfflineValidation_Dqm_cff.xmin
xmin
Definition: TrackerOfflineValidation_Dqm_cff.py:10
RPCSimAsymmetricCls::resEle
double resEle
Definition: RPCSimAsymmetricCls.h:52
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
RPCSimAsymmetricCls::eledig
bool eledig
Definition: RPCSimAsymmetricCls.h:56
hltrates_dqm_sourceclient-live_cfg.offset
offset
Definition: hltrates_dqm_sourceclient-live_cfg.py:78
RPCSim::RPCDigiSimLinks
edm::DetSet< RPCDigiSimLink > RPCDigiSimLinks
Definition: RPCSim.h:33
RPCSimAsymmetricCls::N_hits
int N_hits
Definition: RPCSimAsymmetricCls.h:58
custom_jme_cff.area
area
Definition: custom_jme_cff.py:169