Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:31:18

0001 #include "CondFormats/Serialization/interface/Test.h"
0002 
0003 
0004 int main(int argc, char *argv[]){
0005 
0006     if( argc != 3 ){
0007         std::cout<<"provide filename with the blob"<<std::endl;
0008         return 0;
0009     }
0010 
0011 //    L1TriggerKeyStage1 deserializedObject;
0012     l1t::CaloParams deserializedObject1, deserializedObject2;
0013 
0014     std::ifstream ifs(argv[1], std::ios::in | std::ios::binary);
0015     cond::serialization::InputArchive ia(ifs);
0016     std::cout << "Deserializing " << typeid(l1t::CaloParams).name() << " ..." << std::endl;
0017     ia >> deserializedObject1;
0018 
0019 
0020     std::ifstream ifs2(argv[2], std::ios::in | std::ios::binary);
0021     cond::serialization::InputArchive ia2(ifs2);
0022     std::cout << "Deserializing " << typeid(l1t::CaloParams).name() << " ..." << std::endl;
0023     ia2 >> deserializedObject2;
0024 
0025     return 0;
0026 }