PandaRoot
PndMvdAnaRadDam.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 /*
14  * PndMvdAnaRadDam.h
15  *
16  * Created on: Feb 2, 2009
17  * Author: stockman
18  */
19 
20 #ifndef PNDMVDANARADDAM_H
21 #define PNDMVDANARADDAM_H
22 
23 #include "TFile.h"
24 #include "TString.h"
25 #include "TGeoMatrix.h"
26 #include "TProfile2D.h"
27 
28 #include <vector>
29 #include <map>
30 
32  public:
34  virtual ~PndMvdAnaRadDam();
35 
36  void AddFile(TString fileName) { AddFile(new TFile(fileName)); }
37  void AddFile(TFile *f)
38  {
39  if (f != 0) {
40  fFileList.push_back(f);
41  }
42  }
43  int GetNHistos() { return fHistoMap.size(); }
44  TH2 *GetHisto(int i);
45  TH2 *GetHistoByName(TString name);
46 
47  Int_t GetNGoodFiles() { return fCountGoodFiles; }
48 
49  void SaveHistos(TString fileName);
50 
51  void AnalyzeFiles();
52 
53  private:
54  Int_t fCountGoodFiles;
55  std::vector<TFile *> fFileList;
56  std::map<TString, TProfile2D *> fHistoMap;
57 
58  void AddHisto(TProfile2D *histo);
59 };
60 
61 #endif /* PNDMVDANARADDAM_H */
void AddFile(TFile *f)
void SaveHistos(TString fileName)
unsigned int i
Definition: P4_F32vec4.h:33
TH2 * GetHisto(int i)
virtual ~PndMvdAnaRadDam()
void AddFile(TString fileName)
TH2 * GetHistoByName(TString name)
float f
Definition: P4_F32vec4.h:32