test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ()
 
void simulateNoise (const ME0EtaPartition *, CLHEP::HepRandomEngine *) override
 
void simulateSignal (const ME0EtaPartition *, const edm::PSimHitContainer &, CLHEP::HepRandomEngine *) override
 
 ~ME0PreRecoNoSmearModel ()
 
- 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 ( const edm::ParameterSet config)

Definition at line 8 of file ME0PreRecoNoSmearModel.cc.

9  : ME0DigiPreRecoModel(config)
10 {
11 }
ME0DigiPreRecoModel(const edm::ParameterSet &)
ME0PreRecoNoSmearModel::~ME0PreRecoNoSmearModel ( )
inline

Definition at line 20 of file ME0PreRecoNoSmearModel.h.

20 {}

Member Function Documentation

void ME0PreRecoNoSmearModel::setup ( void  )
inlinevirtual

Implements ME0DigiPreRecoModel.

Definition at line 26 of file ME0PreRecoNoSmearModel.h.

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

Implements ME0DigiPreRecoModel.

Definition at line 36 of file ME0PreRecoNoSmearModel.cc.

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

Implements ME0DigiPreRecoModel.

Definition at line 14 of file ME0PreRecoNoSmearModel.cc.

References funct::abs(), corr, ME0DigiPreRecoModel::digi_, mps_splice::entry, lumiQTWidget::t, x, and y.

16 {
17 
18  for (const auto & hit: simHits)
19  {
20  if (std::abs(hit.particleType()) != 13) continue;
21  auto entry = hit.entryPoint();
22  float x=entry.x();
23  float y=entry.y();
24  float ex=0.001;
25  float ey=0.001;
26  float corr=0.;
27  float t = hit.timeOfFlight();
28  int pdgid=hit.particleType();
29  // please keep hit time always 0 for this model
30  ME0DigiPreReco digi(x,y,ex,ey,corr,t,pdgid);
31  digi_.insert(digi);
32  }
33 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
JetCorrectorParameters corr
Definition: classes.h:5
std::set< ME0DigiPreReco > digi_
tuple simHits
Definition: trackerHits.py:16
list entry
Definition: mps_splice.py:62