CMS 3D CMS Logo

KVFTest.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: KVFTest
4 // Class: KVFTest
5 //
14 // system include files
15 #include <memory>
16 
17 // user include files
32 #include <TFile.h>
33 
38 class KVFTest : public edm::one::EDAnalyzer<> {
39 public:
40  explicit KVFTest(const edm::ParameterSet&);
41  ~KVFTest() override;
42 
43  void analyze(const edm::Event&, const edm::EventSetup&) override;
44 
45  void beginJob() override;
46  void endJob() override;
47 
48 private:
50 
53 
56  std::unique_ptr<SimpleVertexTree> tree;
57  TFile* rootFile_;
58 
59  std::string outputFile_; // output file
64 };
std::string outputFile_
Definition: KVFTest.h:59
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > estoken_MF
Definition: KVFTest.h:51
edm::EDGetTokenT< reco::TrackCollection > token_tracks
Definition: KVFTest.h:60
edm::ParameterSet theConfig
Definition: KVFTest.h:54
edm::EDGetTokenT< reco::TrackToTrackingParticleAssociator > token_associatorForParamAtPca
Definition: KVFTest.h:63
edm::EDGetTokenT< TrackingParticleCollection > token_TrackTruth
Definition: KVFTest.h:61
int iEvent
Definition: GenABIO.cc:224
const edm::ESGetToken< TransientTrackBuilder, TransientTrackRecord > estoken_TTB
Definition: KVFTest.h:52
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: KVFTest.cc:45
TFile * rootFile_
Definition: KVFTest.h:57
~KVFTest() override
Definition: KVFTest.cc:35
std::unique_ptr< SimpleVertexTree > tree
Definition: KVFTest.h:56
edm::EDGetTokenT< TrackingVertexCollection > token_VertexTruth
Definition: KVFTest.h:62
void beginJob() override
Definition: KVFTest.cc:37
KVFTest(const edm::ParameterSet &)
Definition: KVFTest.cc:19
TrackingVertex getSimVertex(const edm::Event &iEvent) const
Definition: KVFTest.cc:101
void endJob() override
Definition: KVFTest.cc:39
edm::ParameterSet kvfPSet
Definition: KVFTest.h:55