Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:30:45

0001 #include "SimMuon/GEMDigitizer/interface/ME0PreRecoNoSmearModel.h"
0002 
0003 #include <cmath>
0004 #include <utility>
0005 #include <map>
0006 
0007 ME0PreRecoNoSmearModel::ME0PreRecoNoSmearModel(const edm::ParameterSet& config) : ME0DigiPreRecoModel(config) {}
0008 
0009 void ME0PreRecoNoSmearModel::simulateSignal(const ME0EtaPartition* roll,
0010                                             const edm::PSimHitContainer& simHits,
0011                                             CLHEP::HepRandomEngine* engine) {
0012   for (const auto& hit : simHits) {
0013     if (std::abs(hit.particleType()) != 13)
0014       continue;
0015     const auto& entry = hit.entryPoint();
0016     float x = entry.x();
0017     float y = entry.y();
0018     float ex = 0.001;
0019     float ey = 0.001;
0020     float corr = 0.;
0021     float t = hit.timeOfFlight();
0022     int pdgid = hit.particleType();
0023     digi_.emplace(x, y, ex, ey, corr, t, pdgid, 1);
0024   }
0025 }
0026 
0027 void ME0PreRecoNoSmearModel::simulateNoise(const ME0EtaPartition* roll, CLHEP::HepRandomEngine* engine) {}