Medtech/include/MedtechAnalysis.hh

42 lines
746 B
C++
Raw Normal View History

2018-04-03 20:21:22 +02:00
//
// MedtechAnalysis.hh
// medtech
//
// Created by Baranyai David on 2018. 04. 03..
//
#ifndef MedtechAnalysis_hh
#define MedtechAnalysis_hh
#include <stdio.h>
#include "G4Threading.hh"
#include "G4AutoLock.hh"
2018-04-03 20:21:22 +02:00
#include "TTree.h"
#include "TFile.h"
class MedtechAnalysis
{
private:
/* Here will be the instance stored. */
static MedtechAnalysis* instance;
/* Private constructor to prevent instancing. */
TTree *tree;
TFile *file;
G4Mutex MedtechAnalysisMutex;
2018-04-03 20:21:22 +02:00
/* Static access method. */
MedtechAnalysis();
public:
2018-04-03 20:21:22 +02:00
~MedtechAnalysis();
void Fill(double, double, double);
void Close();
static MedtechAnalysis* getInstance();
};
#endif /* MedtechAnalysis_hh */