#include <GEMSimSetUp.h>
Public Member Functions | |
GEMSimSetUp (const edm::ParameterSet &ps) | |
const std::vector< float > & | getCluster (uint32_t id) |
const std::map< int, std::vector< float > > & | getClusterMap () |
const std::vector< float > & | getEfficiency (uint32_t id) |
const GEMGeometry * | getGeometry () |
const std::vector< float > & | getNoise (uint32_t id) |
float | getTime (uint32_t id) |
void | setGeometry (const GEMGeometry *geom) |
void | setup () |
void | setup (std::vector< RPCStripNoises::NoiseItem > &vnoise, std::vector< float > &vcluster) |
void | setup (std::vector< RPCStripNoises::NoiseItem > &vnoise, std::vector< RPCClusterSize::ClusterSizeItem > &vClusterSize) |
virtual | ~GEMSimSetUp () |
Private Member Functions | |
void | setupNoiseAndEfficiency (std::vector< RPCStripNoises::NoiseItem > &vnoise) |
void | setupTimeCalibration (GEMDetId id, float timing) |
Private Attributes | |
double | averageEfficiency_ |
double | averageNoiseRate_ |
std::map< GEMDetId, float > | bxmap_ |
std::map< int, std::vector < float > > | clusterMap_ |
const GEMGeometry * | geometry_ |
std::map< uint32_t, std::vector< float > > | mapDetClusterMap_ |
std::map< uint32_t, std::vector< float > > | mapDetIdEfficiency_ |
std::map< uint32_t, std::vector< float > > | mapDetIdNoise_ |
int | numberOfStripsPerPartition_ |
double | timeCalibrationOffset_ |
Definition at line 15 of file GEMSimSetUp.h.
GEMSimSetUp::GEMSimSetUp | ( | const edm::ParameterSet & | ps | ) |
Definition at line 5 of file GEMSimSetUp.cc.
References averageEfficiency_, averageNoiseRate_, edm::ParameterSet::getParameter(), numberOfStripsPerPartition_, and timeCalibrationOffset_.
|
inlinevirtual |
Definition at line 21 of file GEMSimSetUp.h.
const std::vector< float > & GEMSimSetUp::getCluster | ( | uint32_t | id | ) |
Definition at line 164 of file GEMSimSetUp.cc.
References edm::hlt::Exception, and mapDetClusterMap_.
const std::map< int, std::vector< float > > & GEMSimSetUp::getClusterMap | ( | ) |
Definition at line 153 of file GEMSimSetUp.cc.
References clusterMap_, and edm::hlt::Exception.
const std::vector< float > & GEMSimSetUp::getEfficiency | ( | uint32_t | id | ) |
Definition at line 123 of file GEMSimSetUp.cc.
References edm::hlt::Exception, mapDetIdEfficiency_, and numberOfStripsPerPartition_.
|
inline |
Definition at line 43 of file GEMSimSetUp.h.
References geometry_.
Referenced by GEMSynchronizer::getSimHitBx().
const std::vector< float > & GEMSimSetUp::getNoise | ( | uint32_t | id | ) |
Definition at line 111 of file GEMSimSetUp.cc.
References edm::hlt::Exception, and mapDetIdNoise_.
float GEMSimSetUp::getTime | ( | uint32_t | id | ) |
Definition at line 140 of file GEMSimSetUp.cc.
References bxmap_, cond::rpcobgas::detid, edm::hlt::Exception, and DetId::rawId().
Referenced by GEMSynchronizer::getSimHitBx().
|
inline |
Definition at line 41 of file GEMSimSetUp.h.
References relativeConstraints::geom, and geometry_.
Referenced by GEMDigiProducer::beginRun().
void GEMSimSetUp::setup | ( | void | ) |
Definition at line 63 of file GEMSimSetUp.cc.
References averageEfficiency_, averageNoiseRate_, GEMGeometry::dets(), RPCStripNoises::NoiseItem::dpid, RPCStripNoises::NoiseItem::eff, edm::hlt::Exception, geometry_, GEMEtaPartition::id(), RPCStripNoises::NoiseItem::noise, GEMEtaPartition::nstrips(), numberOfStripsPerPartition_, setupNoiseAndEfficiency(), setupTimeCalibration(), RPCStripNoises::NoiseItem::time, and timeCalibrationOffset_.
Referenced by GEMDigiProducer::beginRun().
void GEMSimSetUp::setup | ( | std::vector< RPCStripNoises::NoiseItem > & | vnoise, |
std::vector< float > & | vcluster | ||
) |
Definition at line 15 of file GEMSimSetUp.cc.
References clusterMap_, counter, gather_cfg::cout, n, and setupNoiseAndEfficiency().
void GEMSimSetUp::setup | ( | std::vector< RPCStripNoises::NoiseItem > & | vnoise, |
std::vector< RPCClusterSize::ClusterSizeItem > & | vClusterSize | ||
) |
Definition at line 40 of file GEMSimSetUp.cc.
References mapDetClusterMap_, and setupNoiseAndEfficiency().
|
private |
Definition at line 181 of file GEMSimSetUp.cc.
References mapDetIdEfficiency_, mapDetIdNoise_, and numberOfStripsPerPartition_.
Referenced by setup().
|
private |
|
private |
Definition at line 58 of file GEMSimSetUp.h.
Referenced by GEMSimSetUp(), and setup().
|
private |
Definition at line 59 of file GEMSimSetUp.h.
Referenced by GEMSimSetUp(), and setup().
|
private |
Definition at line 54 of file GEMSimSetUp.h.
Referenced by getTime(), and setupTimeCalibration().
|
private |
Definition at line 55 of file GEMSimSetUp.h.
Referenced by getClusterMap(), and setup().
|
private |
Definition at line 50 of file GEMSimSetUp.h.
Referenced by getGeometry(), setGeometry(), and setup().
|
private |
Definition at line 56 of file GEMSimSetUp.h.
Referenced by getCluster(), and setup().
|
private |
Definition at line 53 of file GEMSimSetUp.h.
Referenced by getEfficiency(), and setupNoiseAndEfficiency().
|
private |
Definition at line 52 of file GEMSimSetUp.h.
Referenced by getNoise(), and setupNoiseAndEfficiency().
|
private |
Definition at line 61 of file GEMSimSetUp.h.
Referenced by GEMSimSetUp(), getEfficiency(), setup(), and setupNoiseAndEfficiency().
|
private |
Definition at line 60 of file GEMSimSetUp.h.
Referenced by GEMSimSetUp(), and setup().