#include <ETLDeviceSim.h>
Definition at line 18 of file ETLDeviceSim.h.
Definition at line 6 of file ETLDeviceSim.cc.
T getParameter(std::string const &) const
void ETLDeviceSim::getEvent |
( |
const edm::Event & |
evt | ) |
|
|
inline |
Definition at line 12 of file ETLDeviceSim.cc.
References bxTime_, ALCARECOTkAlJpsiMuMu_cff::charge, DetId::Forward, mps_fire::i, MIPPerMeV_, and tofDelay_.
18 const int nchits = hitRefs.size();
19 for(
int i=0;
i<nchits; ++
i) {
20 const int hitidx = std::get<0>(hitRefs[
i]);
21 const uint32_t
id = std::get<1>(hitRefs[
i]);
25 if ( detId.det()!=
DetId::Forward || detId.mtdSubDetector()!=2 )
continue;
31 const float toa = std::get<2>(hitRefs[
i]) +
tofDelay_;
36 const int itime = std::floor( toa/
bxTime_ ) + 9;
37 if(itime<0 || itime>14)
continue;
40 if(itime >= (
int)simHitIt->second.hit_info[0].size() )
continue;
42 (simHitIt->second).hit_info[0][itime] += charge;
45 const float tof = toa - (itime-9)*
bxTime_;
47 if( (simHitIt->second).hit_info[1][itime] == 0. ||
48 tof < (simHitIt->second).hit_info[1][itime] ) {
49 (simHitIt->second).hit_info[1][itime] = tof;
Detector identifier base class for the MIP Timing Layer.
float ETLDeviceSim::bxTime_ |
|
private |
float ETLDeviceSim::MIPPerMeV_ |
|
private |
float ETLDeviceSim::tofDelay_ |
|
private |