CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Protected Member Functions | Protected Attributes
PPSFastLocalSimulation Class Reference

Fast (no G4) proton simulation in within one station. Uses misaligned geometry. More...

Inheritance diagram for PPSFastLocalSimulation:
edm::stream::EDProducer<>

Classes

struct  Distribution
 

Public Member Functions

 PPSFastLocalSimulation (const edm::ParameterSet &)
 
 ~PPSFastLocalSimulation () override
 
- Public Member Functions inherited from edm::stream::EDProducer<>
 EDProducer ()=default
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 

Protected Member Functions

void GenerateTrack (unsigned int pi, CLHEP::HepRandomEngine &rndEng, HepMC::GenEvent *gEv, std::unique_ptr< edm::DetSetVector< TotemRPRecHit >> &stripHitColl, std::unique_ptr< edm::DetSetVector< CTPPSDiamondRecHit >> &diamondHitColl, std::unique_ptr< edm::DetSetVector< CTPPSPixelRecHit >> &pixelHitColl, const CTPPSGeometry &geometry)
 
void produce (edm::Event &, const edm::EventSetup &) override
 

Protected Attributes

Distribution angular_dist_
 angular parameters in rad More...
 
edm::ESGetToken< CTPPSGeometry, VeryForwardMisalignedGeometryRecordesTokenGeometry_
 
double insensitiveMarginStrips_
 size of insensitive margin at sensor's edge facing the beam, in mm More...
 
bool makeHepMC_
 whether a HepMC description of the proton shall be saved in the event More...
 
bool makeHits_
 whether the hits of the proton shall be calculated and saved More...
 
double particle_E_
 particle energy and momentum More...
 
double particle_p_
 
unsigned int particlesPerEvent_
 number of particles to generate per event More...
 
double pitchDiamonds_
 
double pitchPixels_
 
double pitchStrips_
 in mm More...
 
Distribution position_dist_
 position parameters in mm More...
 
bool roundToPitch_
 whether measurement values shall be rounded to the nearest strip More...
 
std::vector< unsigned int > RPs_
 the list of RPs to simulate More...
 
double stripZeroPosition_
 v position of strip 0, in mm More...
 
unsigned int verbosity_
 verbosity level More...
 
double z0_
 the "origin" of tracks, in mm More...
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDProducer<>
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 

Detailed Description

Fast (no G4) proton simulation in within one station. Uses misaligned geometry.

Definition at line 44 of file PPSFastLocalSimulation.cc.

Constructor & Destructor Documentation

◆ PPSFastLocalSimulation()

PPSFastLocalSimulation::PPSFastLocalSimulation ( const edm::ParameterSet ps)

Definition at line 186 of file PPSFastLocalSimulation.cc.

187  : verbosity_(ps.getUntrackedParameter<unsigned int>("verbosity", 0)),
188 
189  makeHepMC_(ps.getParameter<bool>("makeHepMC")),
190  makeHits_(ps.getParameter<bool>("makeHits")),
191 
192  RPs_(ps.getParameter<vector<unsigned int>>("RPs")),
193 
194  particlesPerEvent_(ps.getParameter<unsigned int>("particlesPerEvent")),
195  particle_E_(ps.getParameter<double>("particle_E")),
196  particle_p_(ps.getParameter<double>("particle_p")),
197  z0_(ps.getParameter<double>("z0")),
198 
199  roundToPitch_(ps.getParameter<bool>("roundToPitch")),
200  pitchStrips_(ps.getParameter<double>("pitchStrips")),
201  pitchDiamonds_(ps.getParameter<double>("pitchDiamonds")),
202  pitchPixels_(ps.getParameter<double>("pitchPixels")),
203 
204  insensitiveMarginStrips_(ps.getParameter<double>("insensitiveMarginStrips")),
205 
206  position_dist_(ps.getParameterSet("position_distribution")),
207  angular_dist_(ps.getParameterSet("angular_distribution")),
208 
209  esTokenGeometry_(esConsumes()) {
210  // v position of strip 0
213 
214  // register the output
215  if (makeHepMC_)
216  produces<HepMCProduct>();
217 
218  if (makeHits_) {
219  produces<DetSetVector<TotemRPRecHit>>();
220  produces<DetSetVector<CTPPSDiamondRecHit>>();
221  produces<DetSetVector<CTPPSPixelRecHit>>();
222  }
223 }

References RPTopology::last_strip_to_border_dist_, makeHepMC_, makeHits_, RPTopology::no_of_strips_, RPTopology::pitch_, stripZeroPosition_, and RPTopology::y_width_.

◆ ~PPSFastLocalSimulation()

PPSFastLocalSimulation::~PPSFastLocalSimulation ( )
override

Definition at line 227 of file PPSFastLocalSimulation.cc.

227 {}

Member Function Documentation

◆ GenerateTrack()

void PPSFastLocalSimulation::GenerateTrack ( unsigned int  pi,
CLHEP::HepRandomEngine &  rndEng,
HepMC::GenEvent gEv,
std::unique_ptr< edm::DetSetVector< TotemRPRecHit >> &  stripHitColl,
std::unique_ptr< edm::DetSetVector< CTPPSDiamondRecHit >> &  diamondHitColl,
std::unique_ptr< edm::DetSetVector< CTPPSPixelRecHit >> &  pixelHitColl,
const CTPPSGeometry geometry 
)
protected

Definition at line 231 of file PPSFastLocalSimulation.cc.

237  {
238  // generate track
239  double bx = 0., by = 0., ax = 0., ay = 0.;
240  position_dist_.Generate(rndEng, bx, by);
241  angular_dist_.Generate(rndEng, ax, ay);
242 
243  if (verbosity_ > 5)
244  printf("\tax = %.3f mrad, bx = %.3f mm, ay = %.3f mrad, by = %.3f mm, z0 = %.3f m\n",
245  ax * 1E3,
246  bx,
247  ay * 1E3,
248  by,
249  z0_ * 1E-3);
250 
251  // add HepMC track description
252  if (makeHepMC_) {
253  GenVertex *gVx = new GenVertex(HepMC::FourVector(bx, by, z0_, 0.));
254  gEv->add_vertex(gVx);
255 
256  GenParticle *gPe;
257  double az = sqrt(1. - ax * ax - ay * ay);
258  gPe = new GenParticle(HepMC::FourVector(particle_p_ * ax, particle_p_ * ay, particle_p_ * az, particle_E_),
259  2212,
260  1); // add a proton in final state
261  gPe->suggest_barcode(idx + 1);
262  gVx->add_particle_out(gPe);
263  }
264 
265  if (makeHits_) {
266  // check all sensors known to geometry
267  for (CTPPSGeometry::mapType::const_iterator it = geometry.beginSensor(); it != geometry.endSensor(); ++it) {
268  // get RP decimal id
269  CTPPSDetId detId(it->first);
270  unsigned int decRPId = detId.arm() * 100 + detId.station() * 10 + detId.rp();
271 
272  // stop if the RP is not selected
273  if (find(RPs_.begin(), RPs_.end(), decRPId) == RPs_.end())
274  continue;
275 
276  // keep only 1 diamond channel to represent 1 plane
277  if (detId.subdetId() == CTPPSDetId::sdTimingDiamond) {
278  CTPPSDiamondDetId channelId(it->first);
279  if (channelId.channel() != 0)
280  continue;
281  }
282 
283  if (verbosity_ > 5) {
284  printf(" ");
285  printId(it->first);
286  printf(": ");
287  }
288 
289  // determine the track impact point (in global coordinates)
290  // !! this assumes that local axes (1, 0, 0) and (0, 1, 0) describe the sensor surface
291  const auto gl_o = geometry.localToGlobal(detId, CTPPSGeometry::Vector(0, 0, 0));
292  const auto gl_a1 = geometry.localToGlobal(detId, CTPPSGeometry::Vector(1, 0, 0)) - gl_o;
293  const auto gl_a2 = geometry.localToGlobal(detId, CTPPSGeometry::Vector(0, 1, 0)) - gl_o;
294 
295  TMatrixD A(3, 3);
296  TVectorD B(3);
297  A(0, 0) = ax;
298  A(0, 1) = -gl_a1.x();
299  A(0, 2) = -gl_a2.x();
300  B(0) = gl_o.x() - bx;
301  A(1, 0) = ay;
302  A(1, 1) = -gl_a1.y();
303  A(1, 2) = -gl_a2.y();
304  B(1) = gl_o.y() - by;
305  A(2, 0) = 1.;
306  A(2, 1) = -gl_a1.z();
307  A(2, 2) = -gl_a2.z();
308  B(2) = gl_o.z() - z0_;
309  TMatrixD Ai(3, 3);
310  Ai = A.Invert();
311  TVectorD P(3);
312  P = Ai * B;
313 
314  double de_z = P(0);
315  CTPPSGeometry::Vector h_glo(ax * de_z + bx, ay * de_z + by, de_z + z0_);
316 
317  // hit in local coordinates
318  CTPPSGeometry::Vector h_loc = geometry.globalToLocal(detId, h_glo);
319 
320  // strips
321  if (detId.subdetId() == CTPPSDetId::sdTrackingStrip) {
322  double u = h_loc.x();
323  double v = h_loc.y();
324 
325  if (verbosity_ > 5)
326  printf(" u=%+8.4f, v=%+8.4f", u, v);
327 
328  // is it within detector?
330  if (verbosity_ > 5)
331  printf(" | no hit\n");
332  continue;
333  }
334 
335  // round the measurement
336  if (roundToPitch_) {
337  double m = stripZeroPosition_ - v;
338  signed int strip = (int)floor(m / pitchStrips_ + 0.5);
339 
341 
342  if (verbosity_ > 5)
343  printf(" | strip=%+4i", strip);
344  }
345 
346  double sigma = pitchStrips_ / sqrt(12.);
347 
348  if (verbosity_ > 5)
349  printf(" | m=%+8.4f, sigma=%+8.4f\n", v, sigma);
350 
351  DetSet<TotemRPRecHit> &hits = stripHitColl->find_or_insert(detId);
352  hits.push_back(TotemRPRecHit(v, sigma));
353  }
354 
355  // diamonds
356  if (detId.subdetId() == CTPPSDetId::sdTimingDiamond) {
357  if (roundToPitch_) {
358  h_loc.SetX(pitchDiamonds_ * floor(h_loc.x() / pitchDiamonds_ + 0.5));
359  }
360 
361  if (verbosity_ > 5)
362  printf(" m = %.3f\n", h_loc.x());
363 
364  const double width = pitchDiamonds_;
365 
366  DetSet<CTPPSDiamondRecHit> &hits = diamondHitColl->find_or_insert(detId);
368  hits.push_back(CTPPSDiamondRecHit(h_loc.x(), width, 0., 0., 0., 0., 0., 0., 0., 0, flags, false));
369  }
370 
371  // pixels
372  if (detId.subdetId() == CTPPSDetId::sdTrackingPixel) {
373  if (roundToPitch_) {
374  h_loc.SetX(pitchPixels_ * floor(h_loc.x() / pitchPixels_ + 0.5));
375  h_loc.SetY(pitchPixels_ * floor(h_loc.y() / pitchPixels_ + 0.5));
376  }
377 
378  if (verbosity_ > 5)
379  printf(" m1 = %.3f, m2 = %.3f\n", h_loc.x(), h_loc.y());
380 
381  const double sigma = pitchPixels_ / sqrt(12.);
382 
383  const LocalPoint lp(h_loc.x(), h_loc.y(), h_loc.z());
384  const LocalError le(sigma, 0., sigma);
385 
386  DetSet<CTPPSPixelRecHit> &hits = pixelHitColl->find_or_insert(detId);
387  hits.push_back(CTPPSPixelRecHit(lp, le));
388  }
389  }
390  }
391 }

References MaterialEffects_cfi::A, angular_dist_, CTPPSDetId::arm(), TtFullHadDaughter::B, l1GtPatternGenerator_cfi::bx, CTPPSDiamondDetId::channel(), spr::find(), HLT_FULL_cff::flags, PPSFastLocalSimulation::Distribution::Generate(), GenParticle::GenParticle, hfClusterShapes_cfi::hits, heavyIonCSV_trainingSettings::idx, insensitiveMarginStrips_, createfilelist::int, RPTopology::IsHit(), visualization-live-secondInstance_cfg::m, makeHepMC_, makeHits_, particle_E_, particle_p_, pitchDiamonds_, pitchPixels_, pitchStrips_, position_dist_, printId(), roundToPitch_, CTPPSDetId::rp(), RPs_, CTPPSDetId::sdTimingDiamond, CTPPSDetId::sdTrackingPixel, CTPPSDetId::sdTrackingStrip, mathSSE::sqrt(), CTPPSDetId::station(), digitizers_cfi::strip, stripZeroPosition_, DetId::subdetId(), findQualityFiles::v, verbosity_, ApeEstimator_cff::width, and z0_.

Referenced by produce().

◆ produce()

void PPSFastLocalSimulation::produce ( edm::Event event,
const edm::EventSetup es 
)
overrideprotected

Definition at line 395 of file PPSFastLocalSimulation.cc.

395  {
396  if (verbosity_ > 2)
397  printf(">> PPSFastLocalSimulation::produce > event %llu\n", event.id().event());
398 
400  HepRandomEngine &rndEng = rng->getEngine(event.streamID());
401 
402  if (verbosity_ > 5)
403  printf("\tseed = %li\n", rndEng.getSeed());
404 
405  // get geometry
406  auto const &geometry = es.getData(esTokenGeometry_);
407 
408  // initialize products
409  GenEvent *gEv = new GenEvent();
410  gEv->set_event_number(event.id().event());
411 
412  unique_ptr<DetSetVector<TotemRPRecHit>> stripHitColl(new DetSetVector<TotemRPRecHit>());
413  unique_ptr<DetSetVector<CTPPSDiamondRecHit>> diamondHitColl(new DetSetVector<CTPPSDiamondRecHit>());
414  unique_ptr<DetSetVector<CTPPSPixelRecHit>> pixelHitColl(new DetSetVector<CTPPSPixelRecHit>());
415 
416  // run particle loop
417  for (unsigned int pi = 0; pi < particlesPerEvent_; pi++) {
418  if (verbosity_ > 5)
419  printf(" generating track %u\n", pi);
420 
421  GenerateTrack(pi, rndEng, gEv, stripHitColl, diamondHitColl, pixelHitColl, geometry);
422  }
423 
424  // save products
425  if (makeHepMC_) {
426  unique_ptr<HepMCProduct> hepMCoutput(new HepMCProduct());
427  hepMCoutput->addHepMCData(gEv);
428  event.put(move(hepMCoutput));
429  }
430 
431  if (makeHits_) {
432  event.put(move(stripHitColl));
433  event.put(move(diamondHitColl));
434  event.put(move(pixelHitColl));
435  }
436 }

References esTokenGeometry_, GenerateTrack(), edm::EventSetup::getData(), edm::RandomNumberGenerator::getEngine(), ZgammaFilter_cfi::HepMCProduct, makeHepMC_, makeHits_, eostools::move(), particlesPerEvent_, pi, and verbosity_.

Member Data Documentation

◆ angular_dist_

Distribution PPSFastLocalSimulation::angular_dist_
protected

angular parameters in rad

Definition at line 96 of file PPSFastLocalSimulation.cc.

Referenced by GenerateTrack().

◆ esTokenGeometry_

edm::ESGetToken<CTPPSGeometry, VeryForwardMisalignedGeometryRecord> PPSFastLocalSimulation::esTokenGeometry_
protected

Definition at line 103 of file PPSFastLocalSimulation.cc.

Referenced by produce().

◆ insensitiveMarginStrips_

double PPSFastLocalSimulation::insensitiveMarginStrips_
protected

size of insensitive margin at sensor's edge facing the beam, in mm

Definition at line 80 of file PPSFastLocalSimulation.cc.

Referenced by GenerateTrack().

◆ makeHepMC_

bool PPSFastLocalSimulation::makeHepMC_
protected

whether a HepMC description of the proton shall be saved in the event

Definition at line 56 of file PPSFastLocalSimulation.cc.

Referenced by GenerateTrack(), PPSFastLocalSimulation(), and produce().

◆ makeHits_

bool PPSFastLocalSimulation::makeHits_
protected

whether the hits of the proton shall be calculated and saved

Definition at line 59 of file PPSFastLocalSimulation.cc.

Referenced by GenerateTrack(), PPSFastLocalSimulation(), and produce().

◆ particle_E_

double PPSFastLocalSimulation::particle_E_
protected

particle energy and momentum

Definition at line 68 of file PPSFastLocalSimulation.cc.

Referenced by GenerateTrack().

◆ particle_p_

double PPSFastLocalSimulation::particle_p_
protected

Definition at line 68 of file PPSFastLocalSimulation.cc.

Referenced by GenerateTrack().

◆ particlesPerEvent_

unsigned int PPSFastLocalSimulation::particlesPerEvent_
protected

number of particles to generate per event

Definition at line 65 of file PPSFastLocalSimulation.cc.

Referenced by produce().

◆ pitchDiamonds_

double PPSFastLocalSimulation::pitchDiamonds_
protected

Definition at line 77 of file PPSFastLocalSimulation.cc.

Referenced by GenerateTrack().

◆ pitchPixels_

double PPSFastLocalSimulation::pitchPixels_
protected

Definition at line 77 of file PPSFastLocalSimulation.cc.

Referenced by GenerateTrack().

◆ pitchStrips_

double PPSFastLocalSimulation::pitchStrips_
protected

in mm

Definition at line 77 of file PPSFastLocalSimulation.cc.

Referenced by GenerateTrack().

◆ position_dist_

Distribution PPSFastLocalSimulation::position_dist_
protected

position parameters in mm

Definition at line 93 of file PPSFastLocalSimulation.cc.

Referenced by GenerateTrack().

◆ roundToPitch_

bool PPSFastLocalSimulation::roundToPitch_
protected

whether measurement values shall be rounded to the nearest strip

Definition at line 74 of file PPSFastLocalSimulation.cc.

Referenced by GenerateTrack().

◆ RPs_

std::vector<unsigned int> PPSFastLocalSimulation::RPs_
protected

the list of RPs to simulate

Definition at line 62 of file PPSFastLocalSimulation.cc.

Referenced by GenerateTrack().

◆ stripZeroPosition_

double PPSFastLocalSimulation::stripZeroPosition_
protected

v position of strip 0, in mm

Definition at line 101 of file PPSFastLocalSimulation.cc.

Referenced by GenerateTrack(), and PPSFastLocalSimulation().

◆ verbosity_

unsigned int PPSFastLocalSimulation::verbosity_
protected

verbosity level

Definition at line 53 of file PPSFastLocalSimulation.cc.

Referenced by GenerateTrack(), and produce().

◆ z0_

double PPSFastLocalSimulation::z0_
protected

the "origin" of tracks, in mm

Definition at line 71 of file PPSFastLocalSimulation.cc.

Referenced by GenerateTrack().

PPSFastLocalSimulation::particlesPerEvent_
unsigned int particlesPerEvent_
number of particles to generate per event
Definition: PPSFastLocalSimulation.cc:65
PPSFastLocalSimulation::makeHits_
bool makeHits_
whether the hits of the proton shall be calculated and saved
Definition: PPSFastLocalSimulation.cc:59
TotemRPRecHit
Reconstructed hit in TOTEM RP.
Definition: TotemRPRecHit.h:17
edm::DetSetVector< TotemRPRecHit >
ApeEstimator_cff.width
width
Definition: ApeEstimator_cff.py:24
RPTopology::y_width_
static const double y_width_
Definition: RPTopology.h:60
edm::RandomNumberGenerator::getEngine
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
PPSFastLocalSimulation::particle_E_
double particle_E_
particle energy and momentum
Definition: PPSFastLocalSimulation.cc:68
PPSFastLocalSimulation::stripZeroPosition_
double stripZeroPosition_
v position of strip 0, in mm
Definition: PPSFastLocalSimulation.cc:101
CTPPSPixelRecHit
Definition: CTPPSPixelRecHit.h:17
PPSFastLocalSimulation::z0_
double z0_
the "origin" of tracks, in mm
Definition: PPSFastLocalSimulation.cc:71
hfClusterShapes_cfi.hits
hits
Definition: hfClusterShapes_cfi.py:5
edm::DetSet
Definition: DetSet.h:23
CTPPSDiamondRecHit
Reconstructed hit in diamond detectors.
Definition: CTPPSDiamondRecHit.h:16
digitizers_cfi.strip
strip
Definition: digitizers_cfi.py:19
ZgammaFilter_cfi.HepMCProduct
HepMCProduct
Definition: ZgammaFilter_cfi.py:9
geometry
Definition: geometry.py:1
l1GtPatternGenerator_cfi.bx
bx
Definition: l1GtPatternGenerator_cfi.py:18
PPSFastLocalSimulation::insensitiveMarginStrips_
double insensitiveMarginStrips_
size of insensitive margin at sensor's edge facing the beam, in mm
Definition: PPSFastLocalSimulation.cc:80
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
findQualityFiles.v
v
Definition: findQualityFiles.py:179
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
GenParticle
Definition: GenParticle.py:1
HepMC::GenEvent
Definition: hepmc_rootio.cc:9
PPSFastLocalSimulation::roundToPitch_
bool roundToPitch_
whether measurement values shall be rounded to the nearest strip
Definition: PPSFastLocalSimulation.cc:74
heavyIonCSV_trainingSettings.idx
idx
Definition: heavyIonCSV_trainingSettings.py:5
PPSFastLocalSimulation::GenerateTrack
void GenerateTrack(unsigned int pi, CLHEP::HepRandomEngine &rndEng, HepMC::GenEvent *gEv, std::unique_ptr< edm::DetSetVector< TotemRPRecHit >> &stripHitColl, std::unique_ptr< edm::DetSetVector< CTPPSDiamondRecHit >> &diamondHitColl, std::unique_ptr< edm::DetSetVector< CTPPSPixelRecHit >> &pixelHitColl, const CTPPSGeometry &geometry)
Definition: PPSFastLocalSimulation.cc:231
CTPPSDetId::sdTrackingStrip
Definition: CTPPSDetId.h:44
HPTDCErrorFlags
Definition: HPTDCErrorFlags.h:15
PPSFastLocalSimulation::particle_p_
double particle_p_
Definition: PPSFastLocalSimulation.cc:68
PPSFastLocalSimulation::esTokenGeometry_
edm::ESGetToken< CTPPSGeometry, VeryForwardMisalignedGeometryRecord > esTokenGeometry_
Definition: PPSFastLocalSimulation.cc:103
PPSFastLocalSimulation::RPs_
std::vector< unsigned int > RPs_
the list of RPs to simulate
Definition: PPSFastLocalSimulation.cc:62
RPTopology::last_strip_to_border_dist_
static const double last_strip_to_border_dist_
Definition: RPTopology.h:62
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
PPSFastLocalSimulation::position_dist_
Distribution position_dist_
position parameters in mm
Definition: PPSFastLocalSimulation.cc:93
CTPPSDetId::sdTimingDiamond
Definition: CTPPSDetId.h:44
Point3DBase< float, LocalTag >
CTPPSDetId::sdTrackingPixel
Definition: CTPPSDetId.h:44
CTPPSDiamondDetId
Detector ID class for CTPPS Timing Diamond detectors. Bits [19:31] : Assigend in CTPPSDetId Calss Bit...
Definition: CTPPSDiamondDetId.h:24
PPSFastLocalSimulation::pitchStrips_
double pitchStrips_
in mm
Definition: PPSFastLocalSimulation.cc:77
RPTopology::pitch_
static const double pitch_
Definition: RPTopology.h:56
LocalError
Definition: LocalError.h:12
PPSFastLocalSimulation::pitchPixels_
double pitchPixels_
Definition: PPSFastLocalSimulation.cc:77
CTPPSDetId
Base class for CTPPS detector IDs.
Definition: CTPPSDetId.h:31
edm::Service< edm::RandomNumberGenerator >
createfilelist.int
int
Definition: createfilelist.py:10
RPTopology::IsHit
static bool IsHit(double u, double v, double insensitiveMargin=0)
Definition: RPTopology.cc:28
RPTopology::no_of_strips_
static const unsigned short no_of_strips_
Definition: RPTopology.h:58
PPSFastLocalSimulation::pitchDiamonds_
double pitchDiamonds_
Definition: PPSFastLocalSimulation.cc:77
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:120
PPSFastLocalSimulation::Distribution::Generate
void Generate(CLHEP::HepRandomEngine &rndEng, double &x, double &y)
Definition: PPSFastLocalSimulation.cc:150
TtFullHadDaughter::B
static const std::string B
Definition: TtFullHadronicEvent.h:9
MaterialEffects_cfi.A
A
Definition: MaterialEffects_cfi.py:11
GenParticle.GenParticle
GenParticle
Definition: GenParticle.py:18
eostools.move
def move(src, dest)
Definition: eostools.py:511
PPSFastLocalSimulation::makeHepMC_
bool makeHepMC_
whether a HepMC description of the proton shall be saved in the event
Definition: PPSFastLocalSimulation.cc:56
printId
void printId(unsigned int id)
Definition: Utilities.cc:25
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
PPSFastLocalSimulation::angular_dist_
Distribution angular_dist_
angular parameters in rad
Definition: PPSFastLocalSimulation.cc:96
pi
const Double_t pi
Definition: trackSplitPlot.h:36
PPSFastLocalSimulation::verbosity_
unsigned int verbosity_
verbosity level
Definition: PPSFastLocalSimulation.cc:53
P
std::pair< OmniClusterRef, TrackingParticleRef > P
Definition: BDHadronTrackMonitoringAnalyzer.cc:202
event
Definition: event.py:1
HLT_FULL_cff.flags
flags
Definition: HLT_FULL_cff.py:13150
A
edm::ParameterSet::getParameterSet
ParameterSet const & getParameterSet(std::string const &) const
Definition: ParameterSet.cc:2128
CTPPSGeometry::Vector
DetGeomDesc::Translation Vector
Definition: CTPPSGeometry.h:39