1 #ifndef _CSCFAKEDBNOISEMATRIX_H 2 #define _CSCFAKEDBNOISEMATRIX_H 27 typedef std::unique_ptr<CSCDBNoiseMatrix>
Pointer;
46 const int MAX_SIZE = 252288;
47 const int FACTOR = 1000;
50 cndbmatrix->
matrix.resize(MAX_SIZE);
56 for (
int i = 0;
i < MAX_SIZE;
i++) {
57 cndbmatrix->
matrix[
i].elem33 = (
short int)(10.0 * FACTOR + 0.5);
58 cndbmatrix->
matrix[
i].elem34 = (
short int)(4.0 * FACTOR + 0.5);
59 cndbmatrix->
matrix[
i].elem35 = (
short int)(3.0 * FACTOR + 0.5);
60 cndbmatrix->
matrix[
i].elem44 = (
short int)(10.0 * FACTOR + 0.5);
61 cndbmatrix->
matrix[
i].elem45 = (
short int)(8.0 * FACTOR + 0.5);
62 cndbmatrix->
matrix[
i].elem46 = (
short int)(2.0 * FACTOR + 0.5);
63 cndbmatrix->
matrix[
i].elem55 = (
short int)(10.0 * FACTOR + 0.5);
64 cndbmatrix->
matrix[
i].elem56 = (
short int)(5.0 * FACTOR + 0.5);
65 cndbmatrix->
matrix[
i].elem57 = (
short int)(3.0 * FACTOR + 0.5);
66 cndbmatrix->
matrix[
i].elem66 = (
short int)(10.0 * FACTOR + 0.5);
67 cndbmatrix->
matrix[
i].elem67 = (
short int)(4.0 * FACTOR + 0.5);
68 cndbmatrix->
matrix[
i].elem77 = (
short int)(10.0 * FACTOR + 0.5);
std::unique_ptr< CSCDBNoiseMatrix > Pointer
static CSCDBNoiseMatrix * prefillDBNoiseMatrix()
CSCFakeDBNoiseMatrix(const edm::ParameterSet &)
Pointer produceDBNoiseMatrix(const CSCDBNoiseMatrixRcd &)
void setIntervalFor(const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override
~CSCFakeDBNoiseMatrix() override
NoiseMatrixContainer matrix