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: G4XmlAnalysisManager.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 "G4XmlNtupleManager.hh"
 
   35 //_____________________________________________________________________________
 
   37 tools::histo::h1d*  G4XmlAnalysisManager::GetH1(G4int id, G4bool warn,
 
   38                                                 G4bool onlyIfActive) const 
 
   40   return fH1Manager->GetH1(id, warn, onlyIfActive);
 
   43 //_____________________________________________________________________________
 
   45 tools::histo::h2d*  G4XmlAnalysisManager::GetH2(G4int id, G4bool warn,
 
   46                                                 G4bool onlyIfActive) const 
 
   48   return fH2Manager->GetH2(id, warn, onlyIfActive);
 
   51 //_____________________________________________________________________________
 
   53 tools::histo::h3d*  G4XmlAnalysisManager::GetH3(G4int id, G4bool warn,
 
   54                                                  G4bool onlyIfActive) const 
 
   56   return fH3Manager->GetH3(id, warn, onlyIfActive);
 
   59 //_____________________________________________________________________________
 
   61 tools::histo::p1d*  G4XmlAnalysisManager::GetP1(G4int id, G4bool warn,
 
   62                                                  G4bool onlyIfActive) const 
 
   64   return fP1Manager->GetP1(id, warn, onlyIfActive);
 
   67 //_____________________________________________________________________________
 
   69 tools::histo::p2d*  G4XmlAnalysisManager::GetP2(G4int id, G4bool warn,
 
   70                                                  G4bool onlyIfActive) const 
 
   72   return fP2Manager->GetP2(id, warn, onlyIfActive);
 
   75 //_____________________________________________________________________________
 
   77 tools::waxml::ntuple* G4XmlAnalysisManager::GetNtuple() const
 
   79   return fNtupleManager->GetNtuple();
 
   82 //_____________________________________________________________________________
 
   84 tools::waxml::ntuple* G4XmlAnalysisManager::GetNtuple(G4int ntupleId) const
 
   86   return fNtupleManager->GetNtuple(ntupleId);
 
   88 //_____________________________________________________________________________
 
   90 std::vector<tools::histo::h1d*>::iterator G4XmlAnalysisManager::BeginH1()
 
   92   return fH1Manager->BeginH1();
 
   95 //_____________________________________________________________________________
 
   97 std::vector<tools::histo::h1d*>::iterator G4XmlAnalysisManager::EndH1()
 
   99   return fH1Manager->EndH1();
 
  102 //_____________________________________________________________________________
 
  104 std::vector<tools::histo::h1d*>::const_iterator 
 
  105 G4XmlAnalysisManager::BeginConstH1() const
 
  107   return fH1Manager->BeginConstH1();
 
  110 //_____________________________________________________________________________
 
  112 std::vector<tools::histo::h1d*>::const_iterator 
 
  113 G4XmlAnalysisManager::EndConstH1() const
 
  115   return fH1Manager->EndConstH1();
 
  118 //_____________________________________________________________________________
 
  120 std::vector<tools::histo::h2d*>::iterator G4XmlAnalysisManager::BeginH2()
 
  122   return fH2Manager->BeginH2();
 
  125 //_____________________________________________________________________________
 
  127 std::vector<tools::histo::h2d*>::iterator G4XmlAnalysisManager::EndH2()
 
  129   return fH2Manager->EndH2();
 
  132 //_____________________________________________________________________________
 
  134 std::vector<tools::histo::h2d*>::const_iterator 
 
  135 G4XmlAnalysisManager::BeginConstH2() const
 
  137   return fH2Manager->BeginConstH2();
 
  140 //_____________________________________________________________________________
 
  142 std::vector<tools::histo::h2d*>::const_iterator 
 
  143 G4XmlAnalysisManager::EndConstH2() const
 
  145   return fH2Manager->EndConstH2();
 
  148 //_____________________________________________________________________________
 
  150 std::vector<tools::histo::h3d*>::iterator G4XmlAnalysisManager::BeginH3()
 
  152   return fH3Manager->BeginH3();
 
  155 //_____________________________________________________________________________
 
  157 std::vector<tools::histo::h3d*>::iterator G4XmlAnalysisManager::EndH3()
 
  159   return fH3Manager->EndH3();
 
  162 //_____________________________________________________________________________
 
  164 std::vector<tools::histo::h3d*>::const_iterator 
 
  165 G4XmlAnalysisManager::BeginConstH3() const
 
  167   return fH3Manager->BeginConstH3();
 
  170 //_____________________________________________________________________________
 
  172 std::vector<tools::histo::h3d*>::const_iterator 
 
  173 G4XmlAnalysisManager::EndConstH3() const
 
  175   return fH3Manager->EndConstH3();
 
  178 //_____________________________________________________________________________
 
  180 std::vector<tools::histo::p1d*>::iterator G4XmlAnalysisManager::BeginP1()
 
  182   return fP1Manager->BeginP1();
 
  185 //_____________________________________________________________________________
 
  187 std::vector<tools::histo::p1d*>::iterator G4XmlAnalysisManager::EndP1()
 
  189   return fP1Manager->EndP1();
 
  192 //_____________________________________________________________________________
 
  194 std::vector<tools::histo::p1d*>::const_iterator 
 
  195 G4XmlAnalysisManager::BeginConstP1() const
 
  197   return fP1Manager->BeginConstP1();
 
  200 //_____________________________________________________________________________
 
  202 std::vector<tools::histo::p1d*>::const_iterator 
 
  203 G4XmlAnalysisManager::EndConstP1() const
 
  205   return fP1Manager->EndConstP1();
 
  208 //_____________________________________________________________________________
 
  210 std::vector<tools::histo::p2d*>::iterator G4XmlAnalysisManager::BeginP2()
 
  212   return fP2Manager->BeginP2();
 
  215 //_____________________________________________________________________________
 
  217 std::vector<tools::histo::p2d*>::iterator G4XmlAnalysisManager::EndP2()
 
  219   return fP2Manager->EndP2();
 
  222 //_____________________________________________________________________________
 
  224 std::vector<tools::histo::p2d*>::const_iterator 
 
  225 G4XmlAnalysisManager::BeginConstP2() const
 
  227   return fP2Manager->BeginConstP2();
 
  230 //_____________________________________________________________________________
 
  232 std::vector<tools::histo::p2d*>::const_iterator 
 
  233 G4XmlAnalysisManager::EndConstP2() const
 
  235   return fP2Manager->EndConstP2();
 
  238 //_____________________________________________________________________________
 
  240 std::vector<tools::waxml::ntuple*>::iterator G4XmlAnalysisManager::BeginNtuple()
 
  242   return fNtupleManager->BeginNtuple();
 
  245 //_____________________________________________________________________________
 
  247 std::vector<tools::waxml::ntuple*>::iterator G4XmlAnalysisManager::EndNtuple()
 
  249   return fNtupleManager->EndNtuple();
 
  252 //_____________________________________________________________________________
 
  254 std::vector<tools::waxml::ntuple*>::const_iterator 
 
  255 G4XmlAnalysisManager::BeginConstNtuple() const
 
  257   return fNtupleManager->BeginConstNtuple();
 
  260 //_____________________________________________________________________________
 
  262 std::vector<tools::waxml::ntuple*>::const_iterator 
 
  263 G4XmlAnalysisManager::EndConstNtuple() const
 
  265   return fNtupleManager->EndConstNtuple();