File indexing completed on 2024-04-06 12:22:50
0001 #include "OnlineDB/CSCCondDB/test/stubs/CSCChamberTimeCorrectionsHandler.h"
0002 #include "FWCore/ParameterSet/interface/ParameterSetfwd.h"
0003 #include <iostream>
0004
0005 #include "CondFormats/CSCObjects/interface/CSCChamberTimeCorrections.h"
0006 #include "OnlineDB/CSCCondDB/interface/CSCChamberTimeCorrectionsValues.h"
0007
0008 popcon::CSCChamberTimeCorrectionsImpl::CSCChamberTimeCorrectionsImpl(const edm::ParameterSet& pset) {
0009 m_name = (pset.getUntrackedParameter<std::string>("name", "CSCChamberTimeCorrectionsImpl"));
0010 isForMC = (pset.getUntrackedParameter<bool>("isForMC", true));
0011 ME11offsetMC = 184;
0012 ME11offsetData = 205;
0013 nonME11offsetMC = 174;
0014 nonME11offsetData = 216;
0015 }
0016
0017 popcon::CSCChamberTimeCorrectionsImpl::~CSCChamberTimeCorrectionsImpl() {}
0018
0019 void popcon::CSCChamberTimeCorrectionsImpl::getNewObjects() {
0020 std::cout << "------- CSC src - > getNewObjects\n" << m_name;
0021
0022
0023 CSCChamberTimeCorrections* mychambers = CSCChamberTimeCorrectionsValues::prefill(
0024 isForMC, isForMC ? ME11offsetMC : ME11offsetData, isForMC ? nonME11offsetMC : nonME11offsetData);
0025
0026
0027 std::cerr << "got offlineInfo" << std::endl;
0028 std::cerr << tagInfo().name << " , last object valid since " << tagInfo().lastInterval.since << std::endl;
0029
0030 unsigned int snc;
0031
0032 std::cout << "Source implementation test ::getNewObjects : enter since ? \n";
0033 std::cin >> snc;
0034
0035 m_to_transfer.push_back(std::make_pair((CSCChamberTimeCorrections*)mychambers, snc));
0036
0037 std::cout << "------- " << m_name << "CSC src - > getNewObjects -----------\n" << std::endl;
0038 }