All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HistoList.h
Go to the documentation of this file.
1 #ifndef _sbncode_histolisto_hh_
2 #define _sbncode_histolisto_hh_
3 
4 #include <vector>
5 
6 class TH1;
7 class TDirectory;
8 
9 namespace ana {
10  namespace SBNOsc {
11 
12 class HistoList {
13 public:
14 
15  /**
16  * Scale all histograms by a set value
17  * \param scale The scaing value
18  */
19  void Scale(double scale);
20  /**
21  * Add another set of histograms to this one
22  * \param other The set of histograms to add
23  */
24  void Add(const HistoList &other);
25 
26  /**
27  ** Write this set of histograms to disk
28  **/
29  void Write();
30 
31  void StoreHisto(TH1 *histo);
32  void Merge(const HistoList &merge);
33 
34  std::vector<TH1 *> fAllHistos;
35  std::vector<TDirectory *> fLocations;
36 };
37 
38  } // end namespace ana
39 } // end namespace SBNOsc
40 
41 #endif
std::vector< TH1 * > fAllHistos
Definition: HistoList.h:34
std::vector< TDirectory * > fLocations
Definition: HistoList.h:35
void Scale(double scale)
Definition: HistoList.cc:16
process_name opflashCryoW ana
void StoreHisto(TH1 *histo)
Definition: HistoList.cc:20
void Merge(const HistoList &merge)
Definition: HistoList.cc:31
void Add(const HistoList &other)
Definition: HistoList.cc:25