2 // ********************************************************************
 
    3 // * License and Disclaimer                                           *
 
    5 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
 
    6 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
 
    7 // * conditions of the Geant4 Software License,  included in the file *
 
    8 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
 
    9 // * include a list of copyright holders.                             *
 
   11 // * Neither the authors of this software system, nor their employing *
 
   12 // * institutes,nor the agencies providing financial support for this *
 
   13 // * work  make  any representation or  warranty, express or implied, *
 
   14 // * regarding  this  software system or assume any liability for its *
 
   15 // * use.  Please see the license in the file  LICENSE  and URL above *
 
   16 // * for the full disclaimer and the limitation of liability.         *
 
   18 // * This  code  implementation is the result of  the  scientific and *
 
   19 // * technical work of the GEANT4 collaboration.                      *
 
   20 // * By using,  copying,  modifying or  distributing the software (or *
 
   21 // * any work based  on the software)  you  agree  to acknowledge its *
 
   22 // * use  in  resulting  scientific  publications,  and indicate your *
 
   23 // * acceptance of all terms of the Geant4 Software license.          *
 
   24 // ********************************************************************
 
   26 // $Id: G4CsvAnalysisManager.hh 70604 2013-06-03 11:27:06Z ihrivnac $
 
   28 #include "G4H1ToolsManager.hh"
 
   29 #include "G4H2ToolsManager.hh"
 
   30 #include "G4H3ToolsManager.hh"
 
   31 #include "G4P1ToolsManager.hh"
 
   32 #include "G4P2ToolsManager.hh"
 
   33 #include "G4CsvNtupleManager.hh"
 
   35 //_____________________________________________________________________________
 
   37 tools::histo::h1d*  G4CsvAnalysisManager::GetH1(G4int id, G4bool warn,
 
   38                                                 G4bool onlyIfActive) const 
 
   40   return fH1Manager->GetH1(id, warn, onlyIfActive);
 
   43 //_____________________________________________________________________________
 
   45 tools::histo::h2d*  G4CsvAnalysisManager::GetH2(G4int id, G4bool warn,
 
   46                                                 G4bool onlyIfActive) const 
 
   48   return fH2Manager->GetH2(id, warn, onlyIfActive);
 
   51 //_____________________________________________________________________________
 
   53 tools::histo::h3d*  G4CsvAnalysisManager::GetH3(G4int id, G4bool warn,
 
   54                                                  G4bool onlyIfActive) const 
 
   56   return fH3Manager->GetH3(id, warn, onlyIfActive);
 
   59 //_____________________________________________________________________________
 
   61 tools::histo::p1d*  G4CsvAnalysisManager::GetP1(G4int id, G4bool warn,
 
   62                                                  G4bool onlyIfActive) const 
 
   64   return fP1Manager->GetP1(id, warn, onlyIfActive);
 
   67 //_____________________________________________________________________________
 
   69 tools::histo::p2d*  G4CsvAnalysisManager::GetP2(G4int id, G4bool warn,
 
   70                                                  G4bool onlyIfActive) const 
 
   72   return fP2Manager->GetP2(id, warn, onlyIfActive);
 
   75 //_____________________________________________________________________________
 
   77 tools::wcsv::ntuple* G4CsvAnalysisManager::GetNtuple() const
 
   79   return fNtupleManager->GetNtuple();
 
   82 //_____________________________________________________________________________
 
   84 tools::wcsv::ntuple* G4CsvAnalysisManager::GetNtuple(G4int ntupleId) const
 
   86   return fNtupleManager->GetNtuple(ntupleId);
 
   89 //_____________________________________________________________________________
 
   91 std::vector<tools::histo::h1d*>::iterator G4CsvAnalysisManager::BeginH1()
 
   93   return fH1Manager->BeginH1();
 
   96 //_____________________________________________________________________________
 
   98 std::vector<tools::histo::h1d*>::iterator G4CsvAnalysisManager::EndH1()
 
  100   return fH1Manager->EndH1();
 
  103 //_____________________________________________________________________________
 
  105 std::vector<tools::histo::h1d*>::const_iterator 
 
  106 G4CsvAnalysisManager::BeginConstH1() const
 
  108   return fH1Manager->BeginConstH1();
 
  111 //_____________________________________________________________________________
 
  113 std::vector<tools::histo::h1d*>::const_iterator 
 
  114 G4CsvAnalysisManager::EndConstH1() const
 
  116   return fH1Manager->EndConstH1();
 
  119 //_____________________________________________________________________________
 
  121 std::vector<tools::histo::h2d*>::iterator G4CsvAnalysisManager::BeginH2()
 
  123   return fH2Manager->BeginH2();
 
  126 //_____________________________________________________________________________
 
  128 std::vector<tools::histo::h2d*>::iterator G4CsvAnalysisManager::EndH2()
 
  130   return fH2Manager->EndH2();
 
  133 //_____________________________________________________________________________
 
  135 std::vector<tools::histo::h2d*>::const_iterator 
 
  136 G4CsvAnalysisManager::BeginConstH2() const
 
  138   return fH2Manager->BeginConstH2();
 
  141 //_____________________________________________________________________________
 
  143 std::vector<tools::histo::h2d*>::const_iterator 
 
  144 G4CsvAnalysisManager::EndConstH2() const
 
  146   return fH2Manager->EndConstH2();
 
  149 //_____________________________________________________________________________
 
  151 std::vector<tools::histo::h3d*>::iterator G4CsvAnalysisManager::BeginH3()
 
  153   return fH3Manager->BeginH3();
 
  156 //_____________________________________________________________________________
 
  158 std::vector<tools::histo::h3d*>::iterator G4CsvAnalysisManager::EndH3()
 
  160   return fH3Manager->EndH3();
 
  163 //_____________________________________________________________________________
 
  165 std::vector<tools::histo::h3d*>::const_iterator 
 
  166 G4CsvAnalysisManager::BeginConstH3() const
 
  168   return fH3Manager->BeginConstH3();
 
  171 //_____________________________________________________________________________
 
  173 std::vector<tools::histo::h3d*>::const_iterator 
 
  174 G4CsvAnalysisManager::EndConstH3() const
 
  176   return fH3Manager->EndConstH3();
 
  179 //_____________________________________________________________________________
 
  181 std::vector<tools::histo::p1d*>::iterator G4CsvAnalysisManager::BeginP1()
 
  183   return fP1Manager->BeginP1();
 
  186 //_____________________________________________________________________________
 
  188 std::vector<tools::histo::p1d*>::iterator G4CsvAnalysisManager::EndP1()
 
  190   return fP1Manager->EndP1();
 
  193 //_____________________________________________________________________________
 
  195 std::vector<tools::histo::p1d*>::const_iterator 
 
  196 G4CsvAnalysisManager::BeginConstP1() const
 
  198   return fP1Manager->BeginConstP1();
 
  201 //_____________________________________________________________________________
 
  203 std::vector<tools::histo::p1d*>::const_iterator 
 
  204 G4CsvAnalysisManager::EndConstP1() const
 
  206   return fP1Manager->EndConstP1();
 
  209 //_____________________________________________________________________________
 
  211 std::vector<tools::histo::p2d*>::iterator G4CsvAnalysisManager::BeginP2()
 
  213   return fP2Manager->BeginP2();
 
  216 //_____________________________________________________________________________
 
  218 std::vector<tools::histo::p2d*>::iterator G4CsvAnalysisManager::EndP2()
 
  220   return fP2Manager->EndP2();
 
  223 //_____________________________________________________________________________
 
  225 std::vector<tools::histo::p2d*>::const_iterator 
 
  226 G4CsvAnalysisManager::BeginConstP2() const
 
  228   return fP2Manager->BeginConstP2();
 
  231 //_____________________________________________________________________________
 
  233 std::vector<tools::histo::p2d*>::const_iterator 
 
  234 G4CsvAnalysisManager::EndConstP2() const
 
  236   return fP2Manager->EndConstP2();
 
  239 //_____________________________________________________________________________
 
  241 std::vector<tools::wcsv::ntuple*>::iterator G4CsvAnalysisManager::BeginNtuple()
 
  243   return fNtupleManager->BeginNtuple();
 
  246 //_____________________________________________________________________________
 
  248 std::vector<tools::wcsv::ntuple*>::iterator G4CsvAnalysisManager::EndNtuple()
 
  250   return fNtupleManager->EndNtuple();
 
  253 //_____________________________________________________________________________
 
  255 std::vector<tools::wcsv::ntuple*>::const_iterator 
 
  256 G4CsvAnalysisManager::BeginConstNtuple() const
 
  258   return fNtupleManager->BeginConstNtuple();
 
  261 //_____________________________________________________________________________
 
  263 std::vector<tools::wcsv::ntuple*>::const_iterator 
 
  264 G4CsvAnalysisManager::EndConstNtuple() const
 
  266   return fNtupleManager->EndConstNtuple();
 
  269 //_____________________________________________________________________________
 
  271 void G4CsvAnalysisManager::SetIsCommentedHeader(G4bool isCommentedHeader)
 
  273   fNtupleManager->SetIsCommentedHeader(isCommentedHeader);
 
  276 //_____________________________________________________________________________
 
  278 void G4CsvAnalysisManager::SetIsHippoHeader(G4bool isHippoHeader)
 
  280   fNtupleManager->SetIsHippoHeader(isHippoHeader);