CMS 3D CMS Logo

List of all members | Public Member Functions
ME0PreRecoNoSmearModel Class Reference

#include <ME0PreRecoNoSmearModel.h>

Inheritance diagram for ME0PreRecoNoSmearModel:
ME0DigiPreRecoModel

Public Member Functions

 ME0PreRecoNoSmearModel (const edm::ParameterSet &)
 
void setup () override
 
void simulateNoise (const ME0EtaPartition *, CLHEP::HepRandomEngine *) override
 
void simulateSignal (const ME0EtaPartition *, const edm::PSimHitContainer &, CLHEP::HepRandomEngine *) override
 
 ~ME0PreRecoNoSmearModel () override
 
- Public Member Functions inherited from ME0DigiPreRecoModel
void fillDigis (int rollDetId, ME0DigiPreRecoCollection &)
 
const ME0GeometrygetGeometry ()
 
void setGeometry (const ME0Geometry *geom)
 
virtual ~ME0DigiPreRecoModel ()
 

Additional Inherited Members

- Protected Member Functions inherited from ME0DigiPreRecoModel
 ME0DigiPreRecoModel (const edm::ParameterSet &)
 
- Protected Attributes inherited from ME0DigiPreRecoModel
std::set< ME0DigiPreRecodigi_
 
const ME0Geometrygeometry_
 

Detailed Description

Class for the ME0 NoSmear response simulation as pre-reco step

Definition at line 14 of file ME0PreRecoNoSmearModel.h.

Constructor & Destructor Documentation

◆ ME0PreRecoNoSmearModel()

ME0PreRecoNoSmearModel::ME0PreRecoNoSmearModel ( const edm::ParameterSet config)

Definition at line 7 of file ME0PreRecoNoSmearModel.cc.

◆ ~ME0PreRecoNoSmearModel()

ME0PreRecoNoSmearModel::~ME0PreRecoNoSmearModel ( )
inlineoverride

Definition at line 18 of file ME0PreRecoNoSmearModel.h.

18 {}

Member Function Documentation

◆ setup()

void ME0PreRecoNoSmearModel::setup ( )
inlineoverridevirtual

Implements ME0DigiPreRecoModel.

Definition at line 24 of file ME0PreRecoNoSmearModel.h.

24 {}

◆ simulateNoise()

void ME0PreRecoNoSmearModel::simulateNoise ( const ME0EtaPartition roll,
CLHEP::HepRandomEngine *  engine 
)
overridevirtual

Implements ME0DigiPreRecoModel.

Definition at line 27 of file ME0PreRecoNoSmearModel.cc.

27 {}

◆ simulateSignal()

void ME0PreRecoNoSmearModel::simulateSignal ( const ME0EtaPartition roll,
const edm::PSimHitContainer simHits,
CLHEP::HepRandomEngine *  engine 
)
overridevirtual

Implements ME0DigiPreRecoModel.

Definition at line 9 of file ME0PreRecoNoSmearModel.cc.

11  {
12  for (const auto& hit : simHits) {
13  if (std::abs(hit.particleType()) != 13)
14  continue;
15  const auto& entry = hit.entryPoint();
16  float x = entry.x();
17  float y = entry.y();
18  float ex = 0.001;
19  float ey = 0.001;
20  float corr = 0.;
21  float t = hit.timeOfFlight();
22  int pdgid = hit.particleType();
23  digi_.emplace(x, y, ex, ey, corr, t, pdgid, 1);
24  }
25 }

References funct::abs(), alignCSCRings::corr, ME0DigiPreRecoModel::digi_, mps_splice::entry, EgammaValidation_cff::pdgid, FastTrackerRecHitCombiner_cfi::simHits, submitPVValidationJobs::t, x, and y.

DDAxes::y
mps_splice.entry
entry
Definition: mps_splice.py:68
FastTrackerRecHitCombiner_cfi.simHits
simHits
Definition: FastTrackerRecHitCombiner_cfi.py:5
DDAxes::x
config
Definition: config.py:1
ME0DigiPreRecoModel::ME0DigiPreRecoModel
ME0DigiPreRecoModel(const edm::ParameterSet &)
Definition: ME0DigiPreRecoModel.h:50
alignCSCRings.corr
dictionary corr
Definition: alignCSCRings.py:124
ME0DigiPreRecoModel::digi_
std::set< ME0DigiPreReco > digi_
Definition: ME0DigiPreRecoModel.h:48
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
EgammaValidation_cff.pdgid
pdgid
Definition: EgammaValidation_cff.py:30
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
hit
Definition: SiStripHitEffFromCalibTree.cc:88