File indexing completed on 2024-04-06 11:58:23
0001 #include "CalibMuon/CSCCalibration/test/stubs/CSCFakeDBCrosstalkHandler.h"
0002 #include "FWCore/ParameterSet/interface/ParameterSetfwd.h"
0003 #include <iostream>
0004
0005 #include "CalibMuon/CSCCalibration/interface/CSCFakeDBCrosstalk.h"
0006 #include "CondFormats/CSCObjects/interface/CSCDBCrosstalk.h"
0007
0008 popcon::CSCFakeDBCrosstalkImpl::CSCFakeDBCrosstalkImpl(const edm::ParameterSet &pset)
0009 : m_name(pset.getUntrackedParameter<std::string>("name", "CSCFakeDBCrosstalkImpl")) {}
0010
0011 popcon::CSCFakeDBCrosstalkImpl::~CSCFakeDBCrosstalkImpl() {}
0012
0013 void popcon::CSCFakeDBCrosstalkImpl::getNewObjects() {
0014 std::cout << "------- CSC src - > getNewObjects\n" << m_name;
0015
0016
0017 CSCDBCrosstalk *cncrosstalk = CSCFakeDBCrosstalk::prefillDBCrosstalk();
0018
0019
0020
0021
0022
0023 std::cerr << "got offlineInfo" << std::endl;
0024 std::cerr << tagInfo().name << " , last object valid since " << tagInfo().lastInterval.since << std::endl;
0025
0026 unsigned int snc;
0027
0028 std::cout << "Source implementation test ::getNewObjects : enter since ? \n";
0029 std::cin >> snc;
0030
0031 m_to_transfer.push_back(std::make_pair(cncrosstalk, snc));
0032
0033 std::cout << "------- " << m_name << "CSC src - > getNewObjects -----------\n" << std::endl;
0034 }