DESY Hbb Analysis Framework
Definitions.h
Go to the documentation of this file.
1 #ifndef Analysis_Ntuplizer_Definitions_h
2 #define Analysis_Ntuplizer_Definitions_h 1
3 
4 // -*- C++ -*-
5 //
6 // Package: Analysis/Ntuplizer
7 // Class: Definitions
8 //
16 //
17 // Original Author: Roberval Walsh Bastos Rangel
18 // Created: Mon, 20 Oct 2014 14:24:08 GMT
19 //
20 //
21 
22 // system include files
23 #include <memory>
24 //
25 // user include files
26 #include "FWCore/ServiceRegistry/interface/Service.h"
27 #include "CommonTools/UtilAlgos/interface/TFileService.h"
28 
29 #include "TTree.h"
30 
31 //
32 // class declaration
33 //
34 
35 namespace analysis {
36  namespace ntuple {
37 
38  class Definitions {
39  public:
40  Definitions();
41  Definitions(edm::Service<TFileService> &);
42  Definitions(edm::Service<TFileService> &, const std::string &);
43  Definitions(TFileDirectory &);
44  Definitions(TFileDirectory &, const std::string &);
45  ~Definitions();
46  void Fill();
47  void Init();
48  void Add(const std::vector<std::string> &, const std::vector<std::string> &);
49  void Add(const std::string &, const std::string &);
50  TTree * Tree();
51 
52  private:
53  // ----------member data ---------------------------
54 
55  // Output tree
56  TTree * tree_;
57 
58  };
59  }
60 }
61 
62 #endif // Analysis_Ntuplizer_Definitions_h
void Add(const std::vector< std::string > &, const std::vector< std::string > &)
Definition: Definitions.cc:89