Public Member Functions | |
CTPPSDirectProtonSimulation (const edm::ParameterSet &) | |
~CTPPSDirectProtonSimulation () override | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
bool | hasAbilityToProduceInLumis () const final |
bool | hasAbilityToProduceInRuns () const final |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Private Member Functions | |
void | processProton (const HepMC::GenVertex *in_vtx, const HepMC::GenParticle *in_trk, const CTPPSGeometry &geometry, const LHCInfo &lhcInfo, const CTPPSBeamParameters &beamParameters, const LHCInterpolatedOpticalFunctionsSetCollection &opticalFunctions, std::vector< CTPPSLocalTrackLite > &out_tracks, edm::DetSetVector< TotemRPRecHit > &out_strip_hits, edm::DetSetVector< CTPPSPixelRecHit > &out_pixel_hits, edm::DetSetVector< CTPPSDiamondRecHit > &out_diamond_hits, std::map< int, edm::DetSetVector< TotemRPRecHit >> &out_strip_hits_per_particle, std::map< int, edm::DetSetVector< CTPPSPixelRecHit >> &out_pixel_hits_per_particle, std::map< int, edm::DetSetVector< CTPPSDiamondRecHit >> &out_diamond_hits_per_particle) const |
void | produce (edm::Event &, const edm::EventSetup &) override |
Private Attributes | |
bool | checkApertures_ |
simulation parameters More... | |
bool | checkIsHit_ |
double | empiricalAperture45_a_int_ |
double | empiricalAperture45_a_slp_ |
double | empiricalAperture45_xi0_int_ |
double | empiricalAperture45_xi0_slp_ |
double | empiricalAperture56_a_int_ |
double | empiricalAperture56_a_slp_ |
double | empiricalAperture56_xi0_int_ |
double | empiricalAperture56_xi0_slp_ |
edm::EDGetTokenT< edm::HepMCProduct > | hepMCToken_ |
double | insensitiveMarginStrips_ |
size of insensitive margin at sensor's edge facing the beam, in mm More... | |
std::string | lhcInfoLabel_ |
input More... | |
std::string | opticsLabel_ |
double | pitchPixelsHor_ |
double | pitchPixelsVer_ |
double | pitchStrips_ |
strip pitch in mm More... | |
bool | produceHitsRelativeToBeam_ |
bool | produceRecHits_ |
bool | produceScoringPlaneHits_ |
flags what output to be produced More... | |
bool | roundToPitch_ |
double | stripZeroPosition_ |
internal variable: v position of strip 0, in mm More... | |
bool | useEmpiricalApertures_ |
unsigned int | verbosity_ |
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, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
Definition at line 49 of file CTPPSDirectProtonSimulation.cc.
|
explicit |
Definition at line 116 of file CTPPSDirectProtonSimulation.cc.
References RPTopology::last_strip_to_border_dist_, RPTopology::no_of_strips_, RPTopology::pitch_, produceRecHits_, produceScoringPlaneHits_, stripZeroPosition_, and RPTopology::y_width_.
|
inlineoverride |
Definition at line 52 of file CTPPSDirectProtonSimulation.cc.
References fillDescriptions(), GenParticle::GenParticle, genParticles_cff::map, year_2016_postTS2_cff::opticalFunctions, processProton(), and produce().
|
static |
Definition at line 507 of file CTPPSDirectProtonSimulation.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addUntracked(), DEFINE_FWK_MODULE, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ~CTPPSDirectProtonSimulation().
|
private |
xi is positive for diffractive protons, thus proton momentum p = (1-xi) * p_nom horizontal component of proton momentum: p_x = th_x * (1-xi) * p_nom
Definition at line 242 of file CTPPSDirectProtonSimulation.cc.
References patCaloMETCorrections_cff::A, CTPPSDetId::arm(), TtFullHadDaughter::B, checkIsHit_, LHCInfo::crossingAngle(), DDD_CTPPS_PIXELS_SENSOR_TYPE_2x2, empiricalAperture45_a_int_, empiricalAperture45_a_slp_, empiricalAperture45_xi0_int_, empiricalAperture45_xi0_slp_, empiricalAperture56_a_int_, empiricalAperture56_a_slp_, empiricalAperture56_xi0_int_, empiricalAperture56_xi0_slp_, Exception, edm::DetSetVector< T >::find_or_insert(), CTPPSBeamParameters::getBeamMom45(), CTPPSBeamParameters::getBeamMom56(), CTPPSBeamParameters::getHalfXangleX45(), CTPPSBeamParameters::getHalfXangleX56(), CTPPSGeometry::getSensor(), CTPPSGeometry::getSensorsInRP(), CTPPSGeometry::globalToLocal(), hfClusterShapes_cfi::hits, insensitiveMarginStrips_, createfilelist::int, invalid, RPTopology::IsHit(), CTPPSPixelTopology::isPixelHit(), CTPPSGeometry::localToGlobal(), funct::m, AlCaHLTBitMon_ParallelJobs::p, pitchPixelsHor_, pitchPixelsVer_, pitchStrips_, CTPPSPixelDetId::plane(), produceHitsRelativeToBeam_, produceRecHits_, produceScoringPlaneHits_, edm::DetSet< T >::push_back(), DetId::rawId(), roundToPitch_, CTPPSDetId::rp(), year_2016_postTS2_cff::rpId, CTPPSDetId::sdTimingDiamond, CTPPSDetId::sdTrackingPixel, CTPPSDetId::sdTrackingStrip, DetGeomDesc::sensorType(), mathSSE::sqrt(), CTPPSDetId::station(), digitizers_cfi::strip, stripZeroPosition_, DetId::subdetId(), LHCInterpolatedOpticalFunctionsSet::Kinematics::th_x, LHCInterpolatedOpticalFunctionsSet::Kinematics::th_y, useEmpiricalApertures_, findQualityFiles::v, verbosity_, LHCInterpolatedOpticalFunctionsSet::Kinematics::x, base_cff::xangle, hybridSuperClusters_cfi::xi, and LHCInterpolatedOpticalFunctionsSet::Kinematics::y.
Referenced by produce(), and ~CTPPSDirectProtonSimulation().
|
overrideprivate |
Definition at line 165 of file CTPPSDirectProtonSimulation.cc.
References geometry, edm::EventSetup::get(), edm::Event::getByToken(), edm::HepMCProduct::GetEvent(), hepMCToken_, lhcInfoLabel_, eostools::move(), opticsLabel_, processProton(), produceRecHits_, produceScoringPlaneHits_, edm::Event::put(), and extraflags_cff::vtx.
Referenced by ~CTPPSDirectProtonSimulation().
|
private |
simulation parameters
Definition at line 88 of file CTPPSDirectProtonSimulation.cc.
|
private |
Definition at line 98 of file CTPPSDirectProtonSimulation.cc.
Referenced by processProton().
|
private |
Definition at line 91 of file CTPPSDirectProtonSimulation.cc.
Referenced by processProton().
|
private |
Definition at line 91 of file CTPPSDirectProtonSimulation.cc.
Referenced by processProton().
|
private |
Definition at line 91 of file CTPPSDirectProtonSimulation.cc.
Referenced by processProton().
|
private |
Definition at line 91 of file CTPPSDirectProtonSimulation.cc.
Referenced by processProton().
|
private |
Definition at line 93 of file CTPPSDirectProtonSimulation.cc.
Referenced by processProton().
|
private |
Definition at line 93 of file CTPPSDirectProtonSimulation.cc.
Referenced by processProton().
|
private |
Definition at line 93 of file CTPPSDirectProtonSimulation.cc.
Referenced by processProton().
|
private |
Definition at line 93 of file CTPPSDirectProtonSimulation.cc.
Referenced by processProton().
|
private |
Definition at line 81 of file CTPPSDirectProtonSimulation.cc.
Referenced by produce().
|
private |
size of insensitive margin at sensor's edge facing the beam, in mm
Definition at line 101 of file CTPPSDirectProtonSimulation.cc.
Referenced by processProton().
|
private |
|
private |
Definition at line 79 of file CTPPSDirectProtonSimulation.cc.
Referenced by produce().
|
private |
Definition at line 103 of file CTPPSDirectProtonSimulation.cc.
Referenced by processProton().
|
private |
Definition at line 104 of file CTPPSDirectProtonSimulation.cc.
Referenced by processProton().
|
private |
strip pitch in mm
Definition at line 100 of file CTPPSDirectProtonSimulation.cc.
Referenced by processProton().
|
private |
Definition at line 96 of file CTPPSDirectProtonSimulation.cc.
Referenced by processProton().
|
private |
Definition at line 85 of file CTPPSDirectProtonSimulation.cc.
Referenced by CTPPSDirectProtonSimulation(), processProton(), and produce().
|
private |
flags what output to be produced
Definition at line 84 of file CTPPSDirectProtonSimulation.cc.
Referenced by CTPPSDirectProtonSimulation(), processProton(), and produce().
|
private |
Definition at line 97 of file CTPPSDirectProtonSimulation.cc.
Referenced by processProton().
|
private |
internal variable: v position of strip 0, in mm
Definition at line 111 of file CTPPSDirectProtonSimulation.cc.
Referenced by CTPPSDirectProtonSimulation(), and processProton().
|
private |
Definition at line 90 of file CTPPSDirectProtonSimulation.cc.
Referenced by processProton().
|
private |
Definition at line 106 of file CTPPSDirectProtonSimulation.cc.
Referenced by processProton().