00001 // -*- C++ -*- 00002 // 00003 // Package: KVFTest 00004 // Class: KVFTest 00005 // 00013 // 00014 // Original Author: Pascal Vanlaer 00015 // Created: Tue Feb 28 11:06:34 CET 2006 00016 // $Id: KVFTest.h,v 1.2 2007/12/20 10:33:10 speer Exp $ 00017 // 00018 // 00019 00020 00021 // system include files 00022 #include <memory> 00023 00024 // user include files 00025 #include "FWCore/Framework/interface/Frameworkfwd.h" 00026 #include "FWCore/Framework/interface/EDAnalyzer.h" 00027 00028 #include "FWCore/Framework/interface/Event.h" 00029 #include "FWCore/Framework/interface/EventSetup.h" 00030 00031 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00032 #include "SimDataFormats/Vertex/interface/SimVertex.h" 00033 #include "SimDataFormats/TrackingAnalysis/interface/TrackingVertexContainer.h" 00034 #include "RecoVertex/KalmanVertexFit/interface/SimpleVertexTree.h" 00035 #include "SimTracker/TrackAssociation/interface/TrackAssociatorByChi2.h" 00036 #include <TFile.h> 00037 00042 class KVFTest : public edm::EDAnalyzer { 00043 public: 00044 explicit KVFTest(const edm::ParameterSet&); 00045 ~KVFTest(); 00046 00047 virtual void analyze(const edm::Event&, const edm::EventSetup&); 00048 00049 virtual void beginJob(edm::EventSetup const&); 00050 virtual void endJob(); 00051 00052 private: 00053 00054 TrackingVertex getSimVertex(const edm::Event& iEvent) const; 00055 00056 edm::ParameterSet theConfig; 00057 edm::ParameterSet kvfPSet; 00058 TrackAssociatorByChi2 * associatorForParamAtPca; 00059 SimpleVertexTree *tree; 00060 TFile* rootFile_; 00061 00062 std::string outputFile_; // output file 00063 std::string trackLabel_; // label of track producer 00064 };