Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #include "CalibMuon/CSCCalibration/test/stubs/CSCL1TPParametersHandler.h"
0002 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0003 #include <iostream>
0004 
0005 popcon::CSCL1TPParametersImpl::CSCL1TPParametersImpl(const edm::ParameterSet &pset)
0006     : m_name(pset.getUntrackedParameter<std::string>("name", "CSCL1TPParametersImpl")) {}
0007 
0008 popcon::CSCL1TPParametersImpl::~CSCL1TPParametersImpl() {}
0009 
0010 #include "CalibMuon/CSCCalibration/interface/CSCL1TPParametersConditions.h"
0011 #include "CondFormats/CSCObjects/interface/CSCL1TPParameters.h"
0012 
0013 void popcon::CSCL1TPParametersImpl::getNewObjects() {
0014   std::cout << "CSCL1TPParametersHandler - time before filling object:" << std::endl;
0015   std::cout << "------- CSC src - > getNewObjects\n" << m_name;
0016 
0017   // fill object from file
0018   CSCL1TPParameters *cnl1tp = CSCL1TPParametersConditions::prefillCSCL1TPParameters();
0019 
0020   std::cout << "CSCL1TPParametersHandler - 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 << "CSCL1TPParametersHandler - time before writing into DB:" << std::endl;
0036 }