Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:47:36

0001 #include "CalibMuon/CSCCalibration/test/stubs/CSCFakeDBNoiseMatrixHandler.h"
0002 #include "FWCore/ParameterSet/interface/ParameterSetfwd.h"
0003 #include <iostream>
0004 
0005 #include "CalibMuon/CSCCalibration/interface/CSCFakeDBNoiseMatrix.h"
0006 #include "CondFormats/CSCObjects/interface/CSCDBNoiseMatrix.h"
0007 
0008 popcon::CSCFakeDBNoiseMatrixImpl::CSCFakeDBNoiseMatrixImpl(const edm::ParameterSet &pset)
0009     : m_name(pset.getUntrackedParameter<std::string>("name", "CSCFakeDBNoiseMatrixImpl")) {}
0010 
0011 popcon::CSCFakeDBNoiseMatrixImpl::~CSCFakeDBNoiseMatrixImpl() {}
0012 
0013 void popcon::CSCFakeDBNoiseMatrixImpl::getNewObjects() {
0014   std::cout << "------- CSC src - > getNewObjects\n" << m_name;
0015 
0016   // fill object from file
0017   CSCDBNoiseMatrix *cnmatrix = CSCFakeDBNoiseMatrix::prefillDBNoiseMatrix();
0018   // std::cout << "matrix size " << cnmatrix->matrix.size() << std::endl;
0019 
0020   // check whats already inside of database
0021 
0022   std::cerr << "got offlineInfo" << std::endl;
0023   std::cerr << tagInfo().name << " , last object valid since " << tagInfo().lastInterval.since << std::endl;
0024 
0025   unsigned int snc;
0026 
0027   std::cout << "Source implementation test ::getNewObjects : enter since ? \n";
0028   std::cin >> snc;
0029 
0030   m_to_transfer.push_back(std::make_pair(cnmatrix, snc));
0031 
0032   std::cout << "------- " << m_name << "CSC src - > getNewObjects -----------\n" << std::endl;
0033 }