Files
geant4/examples/advanced/lAr_calorimeter/include/FCALAnalysisManager.hh
T
2016-06-09 14:44:26 +02:00

126 lines
3.7 KiB
C++

//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: FCALAnalysisManager.hh
// GEANT4 tag $Name: xray_fluo-V04-01-03
//
// Author: Patricia Mendez (patricia.mendez@cern.ch)
//
// History:
// -----------
// 12 Feb 2003 Patricia Mendez created based on XrayFluoAnalysisManager.
// -------------------------------------------------------------------
#ifndef G4PROCESSTESTANALYSIS_HH
#define G4PROCESSTESTANALYSIS_HH
#include "globals.hh"
#include <vector>
#include "G4ThreeVector.hh"
#ifdef G4ANALYSIS_USE
#include "AIDA/AIDA.h"
#endif
#include "FCALAnalysisMessenger.hh"
class G4Step;
#ifdef G4ANALYSIS_USE
namespace AIDA {
class IAnalysisFactory;
class IHistogramFactory;
class ITree;
class ITupleFactory;
class ITuple;
};
#endif
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
class FCALAnalysisManager
{
public:
virtual ~FCALAnalysisManager();
#ifdef G4ANALYSIS_USE
void book();
void finish();
//fill histograms with data from FCALTBEventAction
void analyseEnergyDep(G4double eDep);
//method to call to create an instance of this class
static FCALAnalysisManager* getInstance();
//method intended to chenge the name of the hbook output file
void SetOutputFileName(G4String);
#endif
public:
//private constructor in order to create a singleton
FCALAnalysisManager();
G4String outputFileName;
// G4double OutOfWorld, Secondary, EmEdep, HadEdep;
static FCALAnalysisManager* instance;
#ifdef G4ANALYSIS_USE
//pointer to the analysis messenger
FCALAnalysisMessenger* analisysMessenger;
AIDA::IAnalysisFactory* analysisFactory;
AIDA::ITree* tree;
AIDA::IHistogramFactory *histogramFactory;
AIDA:: ITupleFactory* tupleFactory;
AIDA::ITuple* ntuple_1;
AIDA::ITuple* ntuple_2;
AIDA::ITuple* ntuple_3;
AIDA::IHistogram1D* getfhisto_1() {return histo_1;}
AIDA::IHistogram1D* getfhisto_2() {return histo_2;}
AIDA::IHistogram1D* getfhisto_3() {return histo_3;}
AIDA::IHistogram1D* getfhisto_4() {return histo_4;}
AIDA::IHistogram1D* histo_1;
AIDA::IHistogram1D* histo_2;
AIDA::IHistogram1D* histo_3;
AIDA::IHistogram1D* histo_4;
#endif
};
#endif