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