CMS 3D CMS Logo

OptAlignDBAnalyzer.cc

Go to the documentation of this file.
00001 
00002 #include "../interface/OptAlignDBAnalyzer.h"
00003 
00004 #include <string>
00005 #include <iostream>
00006 #include <vector>
00007 
00008 #include "CondFormats/OptAlignObjects/interface/OpticalAlignments.h"
00009 #include "CondFormats/DataRecord/interface/OpticalAlignmentsRcd.h"
00010 
00011 void OptAlignDBAnalyzer::analyze(const edm::Event& e, const edm::EventSetup& context)
00012 {
00013   using namespace edm::eventsetup;
00014   edm::ESHandle<OpticalAlignments> pObjs;
00015   context.get<OpticalAlignmentsRcd>().get(pObjs);
00016   const OpticalAlignments* myobj=pObjs.product();
00017   std::vector<OpticalAlignInfo>::const_iterator it;
00018   for( it=myobj->opticalAlignments_.begin();it!=myobj->opticalAlignments_.end(); ++it ){
00019     std::cout<<"@@@@@ OpticalAlignInfo READ "<< *it << std::endl;
00020   }
00021 }
00022 
00023 

Generated on Tue Jun 9 17:24:58 2009 for CMSSW by  doxygen 1.5.4