Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:50

0001 #include "OnlineDB/CSCCondDB/test/stubs/CSCDDUMapHandler.h"
0002 #include "FWCore/ParameterSet/interface/ParameterSetfwd.h"
0003 #include <iostream>
0004 
0005 #include "CondFormats/CSCObjects/interface/CSCDDUMap.h"
0006 #include "OnlineDB/CSCCondDB/interface/CSCDDUMapValues.h"
0007 
0008 popcon::CSCDDUMapImpl::CSCDDUMapImpl(const edm::ParameterSet& pset)
0009     : m_name(pset.getUntrackedParameter<std::string>("name", "CSCDDUMapImpl")) {}
0010 
0011 popcon::CSCDDUMapImpl::~CSCDDUMapImpl() {}
0012 
0013 void popcon::CSCDDUMapImpl::getNewObjects() {
0014   std::cout << "------- CSC src - > getNewObjects\n" << m_name;
0015 
0016   // fill object from file
0017   CSCDDUMap* myddu_map = CSCDDUMapValues::fillDDUMap();
0018 
0019   //check whats already inside of database
0020   std::cerr << "got offlineInfo" << std::endl;
0021   std::cerr << tagInfo().name << " , last object valid since " << tagInfo().lastInterval.since << std::endl;
0022 
0023   unsigned int snc;
0024 
0025   std::cout << "Source implementation test ::getNewObjects : enter since ? \n";
0026   std::cin >> snc;
0027 
0028   m_to_transfer.push_back(std::make_pair((CSCDDUMap*)myddu_map, snc));
0029 
0030   std::cout << "------- " << m_name << "CSC src - > getNewObjects -----------\n" << std::endl;
0031 }