ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitProd/TreeFiller/interface/FillerMCVertexes.h
Revision: 1.1
Committed: Fri Sep 25 08:42:42 2009 UTC (15 years, 7 months ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_013pre1, Mit_012i, Mit_012h, Mit_012g, Mit_012f, Mit_012e, Mit_012d, Mit_012c, Mit_012b, Mit_012a, Mit_012, Mit_011a
Log Message:
Added mc vertex filler

File Contents

# Content
1 //--------------------------------------------------------------------------------------------------
2 // $Id: FillerMCVertexes.h,v 1.8 2009/06/15 15:00:25 loizides Exp $
3 //
4 // FillerMCVertexes
5 //
6 // Implementation of a filler to find the generated main vertex into our
7 // mithep::Vertex data structure.
8 //
9 // Authors: C.Loizides
10 //--------------------------------------------------------------------------------------------------
11
12 #ifndef MITPROD_TREEFILLER_FILLERMCVERTEXES_H
13 #define MITPROD_TREEFILLER_FILLERMCVERTEXES_H
14
15 #include "MitAna/DataTree/interface/VertexFwd.h"
16 #include "MitProd/TreeFiller/interface/AssociationMaps.h"
17 #include "MitProd/TreeFiller/interface/BaseFiller.h"
18
19 namespace mithep
20 {
21 class FillerMCVertexes : public BaseFiller
22 {
23 public:
24 FillerMCVertexes(const edm::ParameterSet &cfg, const char *name, bool active=1);
25 ~FillerMCVertexes();
26
27 void BookDataBlock(TreeWriter &tws, const edm::EventSetup &es);
28 void FillDataBlock(const edm::Event &e, const edm::EventSetup &es);
29
30 private:
31 bool useAodGen_; //=true if AOD GenParticles to be used
32 std::string edmName_; //edm name of generated particles
33 std::string mitName_; //name of MCParticles branch
34 mithep::VertexArr *vertexes_; //array of vertexes
35 };
36 }
37 #endif