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>
|
2018-04-03 23:30:20 +02:00
|
|
|
#include <iostream>
|
2018-04-03 22:11:52 +02:00
|
|
|
#include "G4Threading.hh"
|
|
|
|
#include "G4AutoLock.hh"
|
2018-04-03 20:21:22 +02:00
|
|
|
#include "TTree.h"
|
|
|
|
#include "TFile.h"
|
2018-04-06 21:21:48 +02:00
|
|
|
#include "Parameters.hh"
|
2018-04-03 20:21:22 +02:00
|
|
|
|
|
|
|
class MedtechAnalysis
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
/* Here will be the instance stored. */
|
|
|
|
static MedtechAnalysis* instance;
|
|
|
|
|
|
|
|
/* Private constructor to prevent instancing. */
|
|
|
|
TTree *tree;
|
2018-04-12 14:43:05 +02:00
|
|
|
TTree *electrontree;
|
2018-04-03 20:21:22 +02:00
|
|
|
TFile *file;
|
2018-04-03 22:11:52 +02:00
|
|
|
|
|
|
|
G4Mutex MedtechAnalysisMutex;
|
|
|
|
|
2018-04-03 20:21:22 +02:00
|
|
|
/* Static access method. */
|
|
|
|
MedtechAnalysis();
|
2018-04-12 14:43:05 +02:00
|
|
|
double x, y, z, e;
|
2018-04-03 22:11:52 +02:00
|
|
|
|
|
|
|
public:
|
2018-04-03 20:21:22 +02:00
|
|
|
~MedtechAnalysis();
|
2018-04-03 23:30:20 +02:00
|
|
|
MedtechAnalysis(const MedtechAnalysis&) = delete;
|
|
|
|
MedtechAnalysis& operator=(const MedtechAnalysis&) = delete;
|
2018-04-03 20:21:22 +02:00
|
|
|
|
2018-04-12 14:43:05 +02:00
|
|
|
void Fill(int, double, double, double, double);
|
2018-04-03 20:21:22 +02:00
|
|
|
void Close();
|
|
|
|
|
|
|
|
static MedtechAnalysis* getInstance();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* MedtechAnalysis_hh */
|