16 std::vector<float> &vcluster)
18 std::cout <<
"GEMSimSetUp::setup()" << std::endl;
21 std::vector<float> sum_clsize;
23 for(
unsigned int n = 0;
n < vcluster.size(); ++
n)
25 sum_clsize.push_back(vcluster[
n]);
27 if(counter == row * 20)
41 std::vector<RPCClusterSize::ClusterSizeItem> &vClusterSize)
43 int clusterCounter = 1;
44 std::vector<float> clusterVect;
46 for(
auto cluster: vClusterSize)
48 clusterVect.push_back(cluster.clusterSize);
49 if( !(clusterCounter % 100) && clusterCounter != 0 )
73 std::vector<RPCStripNoises::NoiseItem> vnoise;
82 if(roll ==
nullptr)
continue;
84 const int nStrips = roll->
nstrips();
88 <<
"GEMSimSetUp::setup() - numberOfStripsPerPartition given in configuration "
93 for(
int iStrip=0; iStrip <= nStrips-1; ++iStrip)
103 vnoise.push_back(noise);
117 <<
"GEMSimSetUp::getNoise() - no noise information for DetId "<<
id<<
"\n";
129 <<
"GEMSimSetUp::getEfficiency() - no efficiency information for DetId "<<
id<<
"\n";
134 <<
"GEMSimSetUp::getEfficiency() - efficiency information in a wrong format for DetId "<<
id<<
"\n";
143 auto iter =
bxmap_.find(detid);
147 <<
"GEMSimSetUp::getTime() - no timing information for gemid.rawId() "<<detid.
rawId()<<
"\n";
158 <<
"GEMSimSetUp::getClusterMap() - cluster size has the wrong format.\n";
170 <<
"GEMSimSetUp::getCluster() - no cluster size information for DetId "<<
id<<
"\n";
172 if((iter->second).size() != 100)
175 <<
"GEMSimSetUp::getCluster() - cluster size information in a wrong format for DetId "<<
id<<
"\n";
183 unsigned int iStrip = 0;
185 std::vector<float> vEfficiency, vNoise;
190 for(
auto noise: vnoise)
203 vNoise.push_back(noise.noise);
204 vEfficiency.push_back(noise.eff);
207 else if (iStrip == 0 )
210 vNoise.push_back(noise.noise);
211 vEfficiency.push_back(noise.eff);
215 else if (iStrip == vnoise.size() - 1 )
218 vNoise.push_back(noise.noise);
219 vEfficiency.push_back(noise.eff);
228 vNoise.push_back(noise.noise);
229 vEfficiency.push_back(noise.eff);
T getParameter(std::string const &) const
double averageEfficiency_
int numberOfStripsPerPartition_
const std::vector< float > & getNoise(uint32_t id)
std::map< GEMDetId, float > bxmap_
void setupNoiseAndEfficiency(std::vector< RPCStripNoises::NoiseItem > &vnoise)
void setupTimeCalibration(GEMDetId id, float timing)
std::map< uint32_t, std::vector< float > > mapDetIdEfficiency_
std::map< uint32_t, std::vector< float > > mapDetClusterMap_
uint32_t rawId() const
get the raw id
const std::map< int, std::vector< float > > & getClusterMap()
GEMSimSetUp(const edm::ParameterSet &ps)
virtual const DetContainer & dets() const
Returm a vector of all GeomDet (including all GeomDetUnits)
std::map< uint32_t, std::vector< float > > mapDetIdNoise_
const std::vector< float > & getEfficiency(uint32_t id)
std::map< int, std::vector< float > > clusterMap_
static std::atomic< unsigned int > counter
double timeCalibrationOffset_
float getTime(uint32_t id)
const std::vector< float > & getCluster(uint32_t id)
const GEMGeometry * geometry_