ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/DataTree/interface/BranchName.h
Revision: 1.2
Committed: Fri Mar 13 20:24:51 2009 UTC (16 years, 1 month ago) by loizides
Content type: text/plain
Branch: MAIN
CVS Tags: Mit_008pre2
Changes since 1.1: +8 -53 lines
Log Message:
Added BranchTable.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2 loizides 1.2 // $Id: BranchName.h,v 1.1 2009/03/13 08:40:01 loizides Exp $
3 loizides 1.1 //
4     // BranchName
5     //
6 loizides 1.2 // A class that for a given branch name stores a branch that it depends on.
7 loizides 1.1 //
8     // Authors: C.Loizides
9     //--------------------------------------------------------------------------------------------------
10    
11     #ifndef MITANA_DATATREE_BRANCHNAME_H
12     #define MITANA_DATATREE_BRANCHNAME_H
13    
14     #include <TString.h>
15     #include "MitAna/DataTree/interface/DataBase.h"
16    
17     namespace mithep
18     {
19     class BranchName : public DataBase
20     {
21     public:
22     BranchName() {}
23     BranchName(const char *brname, const char *brdep) :
24     fBrName(brname), fBrDep(brdep) {}
25    
26 loizides 1.2 const char *Dep() const { return fBrDep; }
27     const char *Name() const { return fBrName; }
28     ULong_t Hash() const { return fBrName.Hash(); }
29     EObjType ObjType() const { return kBranchName; }
30 loizides 1.1 void Print(Option_t *opt="") const;
31    
32     protected:
33 loizides 1.2 TString fBrName; //name of branch
34     TString fBrDep; //name of dependency
35 loizides 1.1
36     ClassDef(BranchName, 1) // Branch name class
37     };
38     }
39     #endif