Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:58:23

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