GENIEGenerator
Loading...
Searching...
No Matches
CacheBranchNtp.h
Go to the documentation of this file.
1//____________________________________________________________________________
2/*!
3
4\class genie::CacheBranchNtp
5
6\brief A simple cache branch storing the cached data in a TNtuple
7
8\author Costas Andreopoulos <c.andreopoulos \at cern.ch>
9 University of Liverpool
10
11\created November 26, 2004
12
13\cpright Copyright (c) 2003-2025, The GENIE Collaboration
14 For the full text of the license visit http://copyright.genie-mc.org
15*/
16//____________________________________________________________________________
17
18#ifndef _CACHE_BRANCH_NTP_H_
19#define _CACHE_BRANCH_NTP_H_
20
21#include <iostream>
22#include <string>
23#include <TNtupleD.h>
24
26
27using std::string;
28using std::ostream;
29
30namespace genie {
31
32class CacheBranchNtp;
33ostream & operator << (ostream & stream, const CacheBranchNtp & cbntp);
34
36{
37public:
38 using TObject::Print; // suppress clang 'hides overloaded virtual function [-Woverloaded-virtual]' warnings
39
41 CacheBranchNtp(string name, string brdef);
43
44 inline TNtupleD * Ntuple (void) const { return fNtp; }
45
46 void CreateNtuple(string name, string branch_def);
47
48 void Reset (void);
49 void Print (ostream & stream) const;
50
51 TNtupleD * operator () (void) const;
52 friend ostream & operator << (ostream & stream, const CacheBranchNtp & cbntp);
53
54private:
55 void Init (void);
56 void CleanUp (void);
57
58 TNtupleD * fNtp;
59
60ClassDef(CacheBranchNtp,1)
61};
62
63} // genie namespace
64#endif // _CACHE_BRANCH_NTP_H_
A simple cache branch storing the cached data in a TNtuple.
TNtupleD * Ntuple(void) const
void CreateNtuple(string name, string branch_def)
TNtupleD * operator()(void) const
void Print(ostream &stream) const
friend ostream & operator<<(ostream &stream, const CacheBranchNtp &cbntp)
THE MAIN GENIE PROJECT NAMESPACE
Definition AlgCmp.h:25
ostream & operator<<(ostream &stream, const AlgConfigPool &config_pool)