ROOT logo
#ifndef HNTUPLEMAP_H
#define HNTUPLEMAP_H

#include "TObject.h"
#include "TFile.h"
#include "TNtuple.h"
#include "TString.h"
#include <map>
#include <string>
using namespace std;


class HNtupleMap : public TObject {

public:

    TNtuple* ntuple;      //! pointer to the ntuple
    TFile*   file;        //! pointer to the input file
    map<string, Int_t> c; //! map object : key==leaf name, mapped index
    Float_t* a;           //! pointer to the argument array of the ntuple

    HNtupleMap();

    ~HNtupleMap();

    void createMap(TString in, TString ntupleName);
    void printMap();
    Float_t& operator[](const std::string& val);
    ClassDef(HNtupleMap,1) // map class arround TNtuple

};

#endif  /*!HNtupleMap_H*/
 hntuplemap.h:1
 hntuplemap.h:2
 hntuplemap.h:3
 hntuplemap.h:4
 hntuplemap.h:5
 hntuplemap.h:6
 hntuplemap.h:7
 hntuplemap.h:8
 hntuplemap.h:9
 hntuplemap.h:10
 hntuplemap.h:11
 hntuplemap.h:12
 hntuplemap.h:13
 hntuplemap.h:14
 hntuplemap.h:15
 hntuplemap.h:16
 hntuplemap.h:17
 hntuplemap.h:18
 hntuplemap.h:19
 hntuplemap.h:20
 hntuplemap.h:21
 hntuplemap.h:22
 hntuplemap.h:23
 hntuplemap.h:24
 hntuplemap.h:25
 hntuplemap.h:26
 hntuplemap.h:27
 hntuplemap.h:28
 hntuplemap.h:29
 hntuplemap.h:30
 hntuplemap.h:31
 hntuplemap.h:32
 hntuplemap.h:33