Fast (no G4) proton simulation in within one station. Uses misaligned geometry. More...
Classes | |
struct | Distribution |
Public Member Functions | |
PPSFastLocalSimulation (const edm::ParameterSet &) | |
~PPSFastLocalSimulation () override | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
EDProducer (const EDProducer &)=delete | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndProcessBlocks () const final |
bool | hasAbilityToProduceInEndRuns () const final |
const EDProducer & | operator= (const EDProducer &)=delete |
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, VeryForwardMisalignedGeometryRecord > | esTokenGeometry_ |
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<> | |
using | CacheTypes = CacheContexts< T... > |
using | GlobalCache = typename CacheTypes::GlobalCache |
using | HasAbility = AbilityChecker< T... > |
using | InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache |
using | LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache |
using | LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > |
using | LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache |
using | RunCache = typename CacheTypes::RunCache |
using | RunContext = RunContextT< RunCache, GlobalCache > |
using | RunSummaryCache = typename CacheTypes::RunSummaryCache |
Fast (no G4) proton simulation in within one station. Uses misaligned geometry.
Definition at line 44 of file PPSFastLocalSimulation.cc.
PPSFastLocalSimulation::PPSFastLocalSimulation | ( | const edm::ParameterSet & | ps | ) |
Definition at line 186 of file PPSFastLocalSimulation.cc.
References RPTopology::last_strip_to_border_dist_, makeHepMC_, makeHits_, RPTopology::no_of_strips_, RPTopology::pitch_, stripZeroPosition_, and RPTopology::y_width_.
|
override |
Definition at line 227 of file PPSFastLocalSimulation.cc.
|
protected |
Definition at line 231 of file PPSFastLocalSimulation.cc.
References MaterialEffects_cfi::A, angular_dist_, CTPPSDetId::arm(), TtFullHadDaughter::B, l1GtPatternGenerator_cfi::bx, CTPPSDiamondDetId::channel(), protons_cff::decRPId, spr::find(), 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().
|
overrideprotected |
Definition at line 394 of file PPSFastLocalSimulation.cc.
References esTokenGeometry_, GenerateTrack(), edm::EventSetup::getData(), edm::RandomNumberGenerator::getEngine(), ZgammaFilter_cfi::HepMCProduct, makeHepMC_, makeHits_, eostools::move(), particlesPerEvent_, pi, and verbosity_.
|
protected |
angular parameters in rad
Definition at line 96 of file PPSFastLocalSimulation.cc.
Referenced by GenerateTrack().
|
protected |
Definition at line 103 of file PPSFastLocalSimulation.cc.
Referenced by produce().
|
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().
|
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().
|
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().
|
protected |
particle energy and momentum
Definition at line 68 of file PPSFastLocalSimulation.cc.
Referenced by GenerateTrack().
|
protected |
Definition at line 68 of file PPSFastLocalSimulation.cc.
Referenced by GenerateTrack().
|
protected |
number of particles to generate per event
Definition at line 65 of file PPSFastLocalSimulation.cc.
Referenced by produce().
|
protected |
Definition at line 77 of file PPSFastLocalSimulation.cc.
Referenced by GenerateTrack().
|
protected |
Definition at line 77 of file PPSFastLocalSimulation.cc.
Referenced by GenerateTrack().
|
protected |
|
protected |
position parameters in mm
Definition at line 93 of file PPSFastLocalSimulation.cc.
Referenced by GenerateTrack().
|
protected |
whether measurement values shall be rounded to the nearest strip
Definition at line 74 of file PPSFastLocalSimulation.cc.
Referenced by GenerateTrack().
|
protected |
the list of RPs to simulate
Definition at line 62 of file PPSFastLocalSimulation.cc.
Referenced by GenerateTrack().
|
protected |
v position of strip 0, in mm
Definition at line 101 of file PPSFastLocalSimulation.cc.
Referenced by GenerateTrack(), and PPSFastLocalSimulation().
|
protected |
verbosity level
Definition at line 53 of file PPSFastLocalSimulation.cc.
Referenced by GenerateTrack(), and produce().
|
protected |
the "origin" of tracks, in mm
Definition at line 71 of file PPSFastLocalSimulation.cc.
Referenced by GenerateTrack().