Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
np
nptool
Commits
2486c50a
Commit
2486c50a
authored
Nov 15, 2020
by
Morfouace
Browse files
* Adding Sofia project to nptool (NPLib, NPSimulation and Projects)
parent
a30d8286
Pipeline
#91019
passed with stages
in 11 minutes and 3 seconds
Changes
14
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
1433 additions
and
0 deletions
+1433
-0
NPLib/Detectors/Sofia/CMakeLists.txt
NPLib/Detectors/Sofia/CMakeLists.txt
+6
-0
NPLib/Detectors/Sofia/TSofiaData.h
NPLib/Detectors/Sofia/TSofiaData.h
+87
-0
NPLib/Detectors/Sofia/TSofiaPhysics.cxx
NPLib/Detectors/Sofia/TSofiaPhysics.cxx
+337
-0
NPLib/Detectors/Sofia/TSofiaPhysics.h
NPLib/Detectors/Sofia/TSofiaPhysics.h
+181
-0
NPLib/Detectors/Sofia/TSofiaSpectra.cxx
NPLib/Detectors/Sofia/TSofiaSpectra.cxx
+156
-0
NPLib/Detectors/Sofia/TSofiaSpectra.h
NPLib/Detectors/Sofia/TSofiaSpectra.h
+62
-0
NPSimulation/Detectors/Sofia/CMakeLists.txt
NPSimulation/Detectors/Sofia/CMakeLists.txt
+2
-0
NPSimulation/Detectors/Sofia/Sofia.cc
NPSimulation/Detectors/Sofia/Sofia.cc
+333
-0
NPSimulation/Detectors/Sofia/Sofia.hh
NPSimulation/Detectors/Sofia/Sofia.hh
+120
-0
Projects/Sofia/Analysis.cxx
Projects/Sofia/Analysis.cxx
+68
-0
Projects/Sofia/Analysis.h
Projects/Sofia/Analysis.h
+42
-0
Projects/Sofia/CMakeLists.txt
Projects/Sofia/CMakeLists.txt
+5
-0
Projects/Sofia/PhysicsListOption.txt
Projects/Sofia/PhysicsListOption.txt
+11
-0
Projects/Sofia/sofia.detector
Projects/Sofia/sofia.detector
+23
-0
No files found.
NPLib/Detectors/Sofia/CMakeLists.txt
0 → 100644
View file @
2486c50a
add_custom_command
(
OUTPUT TSofiaPhysicsDict.cxx COMMAND
${
CMAKE_BINARY_DIR
}
/scripts/build_dict.sh TSofiaPhysics.h TSofiaPhysicsDict.cxx TSofiaPhysics.rootmap libNPSofia.dylib DEPENDS TSofiaPhysics.h
)
add_custom_command
(
OUTPUT TSofiaDataDict.cxx COMMAND
${
CMAKE_BINARY_DIR
}
/scripts/build_dict.sh TSofiaData.h TSofiaDataDict.cxx TSofiaData.rootmap libNPSofia.dylib DEPENDS TSofiaData.h
)
add_library
(
NPSofia SHARED TSofiaSpectra.cxx TSofiaData.cxx TSofiaPhysics.cxx TSofiaDataDict.cxx TSofiaPhysicsDict.cxx
)
target_link_libraries
(
NPSofia
${
ROOT_LIBRARIES
}
NPCore
)
install
(
FILES TSofiaData.h TSofiaPhysics.h TSofiaSpectra.h DESTINATION
${
CMAKE_INCLUDE_OUTPUT_DIRECTORY
}
)
NPLib/Detectors/Sofia/TSofiaData.h
0 → 100644
View file @
2486c50a
#ifndef __SofiaDATA__
#define __SofiaDATA__
/*****************************************************************************
* Copyright (C) 2009-2020 this file is part of the NPTool Project *
* *
* For the licensing terms see $NPTOOL/Licence/NPTool_Licence *
* For the list of contributors see $NPTOOL/Licence/Contributors *
*****************************************************************************/
/*****************************************************************************
* Original Author: Pierre Morfouace contact address: pierre.morfouace2@cea.fr *
* *
* Creation Date : November 2020 *
* Last update : *
*---------------------------------------------------------------------------*
* Decription: *
* This class hold Sofia Raw data *
* *
*---------------------------------------------------------------------------*
* Comment: *
* *
* *
*****************************************************************************/
// STL
#include <vector>
using
namespace
std
;
// ROOT
#include "TObject.h"
class
TSofiaData
:
public
TObject
{
//////////////////////////////////////////////////////////////
// data members are hold into vectors in order
// to allow multiplicity treatment
private:
vector
<
int
>
fTOF_DetectorNbr
;
vector
<
int
>
fTOF_PlasticNbr
;
vector
<
double
>
fTOF_Energy
;
vector
<
double
>
fTOF_Time
;
//////////////////////////////////////////////////////////////
// Constructor and destructor
public:
TSofiaData
();
~
TSofiaData
();
//////////////////////////////////////////////////////////////
// Inherited from TObject and overriden to avoid warnings
public:
void
Clear
();
void
Clear
(
const
Option_t
*
)
{};
void
Dump
()
const
;
//////////////////////////////////////////////////////////////
// Getters and Setters
// Prefer inline declaration to avoid unnecessary called of
// frequently used methods
// add //! to avoid ROOT creating dictionnary for the methods
public:
////////////////////// SETTERS ////////////////////////
inline
void
SetDetectorNbr
(
int
det
){
fTOF_DetectorNbr
.
push_back
(
det
);};
//!
inline
void
SetPlasticNbr
(
int
plastic
){
fTOF_PlasticNbr
.
push_back
(
plastic
);};
//!
inline
void
SetEnergy
(
double
Energy
){
fTOF_Energy
.
push_back
(
Energy
);};
//!
inline
void
SetTime
(
double
Time
){
fTOF_Time
.
push_back
(
Time
);};
//!
////////////////////// GETTERS ////////////////////////
// Energy
inline
int
GetMultiplicity
()
const
{
return
fTOF_PlasticNbr
.
size
();}
inline
int
GetDetectorNbr
(
const
unsigned
int
&
i
)
const
{
return
fTOF_DetectorNbr
[
i
];}
//!
inline
int
GetPlasticNbr
(
const
unsigned
int
&
i
)
const
{
return
fTOF_PlasticNbr
[
i
];}
//!
inline
double
GetEnergy
(
const
unsigned
int
&
i
)
const
{
return
fTOF_Energy
[
i
];}
//!
inline
double
GetTime
(
const
unsigned
int
&
i
)
const
{
return
fTOF_Time
[
i
];}
//!
//////////////////////////////////////////////////////////////
// Required for ROOT dictionnary
ClassDef
(
TSofiaData
,
1
)
// SofiaData structure
};
#endif
NPLib/Detectors/Sofia/TSofiaPhysics.cxx
0 → 100644
View file @
2486c50a
/*****************************************************************************
* Copyright (C) 2009-2020 this file is part of the NPTool Project *
* *
* For the licensing terms see $NPTOOL/Licence/NPTool_Licence *
* For the list of contributors see $NPTOOL/Licence/Contributors *
*****************************************************************************/
/*****************************************************************************
* Original Author: Pierre Morfouace contact address: pierre.morfouace2@cea.fr *
* *
* Creation Date : November 2020 *
* Last update : *
*---------------------------------------------------------------------------*
* Decription: *
* This class hold Sofia Treated data *
* *
*---------------------------------------------------------------------------*
* Comment: *
* *
* *
*****************************************************************************/
#include "TSofiaPhysics.h"
// STL
#include <sstream>
#include <iostream>
#include <cmath>
#include <stdlib.h>
#include <limits>
using
namespace
std
;
// NPL
#include "RootInput.h"
#include "RootOutput.h"
#include "NPDetectorFactory.h"
#include "NPOptionManager.h"
// ROOT
#include "TChain.h"
ClassImp
(
TSofiaPhysics
)
///////////////////////////////////////////////////////////////////////////
TSofiaPhysics
::
TSofiaPhysics
()
:
m_EventData
(
new
TSofiaData
),
m_PreTreatedData
(
new
TSofiaData
),
m_EventPhysics
(
this
),
m_Spectra
(
0
),
m_E_RAW_Threshold
(
0
),
// adc channels
m_E_Threshold
(
0
),
// MeV
m_NumberOfDetectors
(
0
)
{
}
///////////////////////////////////////////////////////////////////////////
/// A usefull method to bundle all operation to add a detector
void
TSofiaPhysics
::
AddDetector
(
TVector3
,
string
){
// In That simple case nothing is done
// Typically for more complex detector one would calculate the relevant
// positions (stripped silicon) or angles (gamma array)
m_NumberOfDetectors
++
;
}
///////////////////////////////////////////////////////////////////////////
void
TSofiaPhysics
::
AddDetector
(
double
R
,
double
Theta
,
double
Phi
,
string
shape
){
// Compute the TVector3 corresponding
TVector3
Pos
(
R
*
sin
(
Theta
)
*
cos
(
Phi
),
R
*
sin
(
Theta
)
*
sin
(
Phi
),
R
*
cos
(
Theta
));
// Call the cartesian method
AddDetector
(
Pos
,
shape
);
}
///////////////////////////////////////////////////////////////////////////
void
TSofiaPhysics
::
BuildSimplePhysicalEvent
()
{
BuildPhysicalEvent
();
}
///////////////////////////////////////////////////////////////////////////
void
TSofiaPhysics
::
BuildPhysicalEvent
()
{
// apply thresholds and calibration
PreTreat
();
// match energy and time together
unsigned
int
mysizeE
=
m_PreTreatedData
->
GetMultiplicity
();
for
(
UShort_t
e
=
0
;
e
<
mysizeE
;
e
++
)
{
DetectorNumber
.
push_back
(
m_PreTreatedData
->
GetDetectorNbr
(
e
));
PlasticNumber
.
push_back
(
m_PreTreatedData
->
GetPlasticNbr
(
e
));
Energy
.
push_back
(
m_PreTreatedData
->
GetEnergy
(
e
));
Time
.
push_back
(
m_PreTreatedData
->
GetTime
(
e
));
}
}
///////////////////////////////////////////////////////////////////////////
void
TSofiaPhysics
::
PreTreat
()
{
// This method typically applies thresholds and calibrations
// Might test for disabled channels for more complex detector
// clear pre-treated object
ClearPreTreatedData
();
// instantiate CalibrationManager
static
CalibrationManager
*
Cal
=
CalibrationManager
::
getInstance
();
// Energy
unsigned
int
mysize
=
m_EventData
->
GetMultiplicity
();
for
(
UShort_t
i
=
0
;
i
<
mysize
;
++
i
)
{
if
(
m_EventData
->
GetEnergy
(
i
)
>
m_E_RAW_Threshold
)
{
Double_t
Energy
=
Cal
->
ApplyCalibration
(
"Sofia/ENERGY"
+
NPL
::
itoa
(
m_EventData
->
GetPlasticNbr
(
i
)),
m_EventData
->
GetEnergy
(
i
));
if
(
Energy
>
m_E_Threshold
)
{
m_PreTreatedData
->
SetDetectorNbr
(
m_EventData
->
GetDetectorNbr
(
i
));
m_PreTreatedData
->
SetPlasticNbr
(
m_EventData
->
GetPlasticNbr
(
i
));
m_PreTreatedData
->
SetTime
(
m_EventData
->
GetTime
(
i
));
m_PreTreatedData
->
SetEnergy
(
Energy
);
}
}
}
}
///////////////////////////////////////////////////////////////////////////
void
TSofiaPhysics
::
ReadAnalysisConfig
()
{
bool
ReadingStatus
=
false
;
// path to file
string
FileName
=
"./configs/ConfigSofia.dat"
;
// open analysis config file
ifstream
AnalysisConfigFile
;
AnalysisConfigFile
.
open
(
FileName
.
c_str
());
if
(
!
AnalysisConfigFile
.
is_open
())
{
cout
<<
" No ConfigSofia.dat found: Default parameter loaded for Analayis "
<<
FileName
<<
endl
;
return
;
}
cout
<<
" Loading user parameter for Analysis from ConfigSofia.dat "
<<
endl
;
// Save it in a TAsciiFile
TAsciiFile
*
asciiConfig
=
RootOutput
::
getInstance
()
->
GetAsciiFileAnalysisConfig
();
asciiConfig
->
AppendLine
(
"%%% ConfigSofia.dat %%%"
);
asciiConfig
->
Append
(
FileName
.
c_str
());
asciiConfig
->
AppendLine
(
""
);
// read analysis config file
string
LineBuffer
,
DataBuffer
,
whatToDo
;
while
(
!
AnalysisConfigFile
.
eof
())
{
// Pick-up next line
getline
(
AnalysisConfigFile
,
LineBuffer
);
// search for "header"
string
name
=
"ConfigSofia"
;
if
(
LineBuffer
.
compare
(
0
,
name
.
length
(),
name
)
==
0
)
ReadingStatus
=
true
;
// loop on tokens and data
while
(
ReadingStatus
)
{
whatToDo
=
""
;
AnalysisConfigFile
>>
whatToDo
;
// Search for comment symbol (%)
if
(
whatToDo
.
compare
(
0
,
1
,
"%"
)
==
0
)
{
AnalysisConfigFile
.
ignore
(
numeric_limits
<
streamsize
>::
max
(),
'\n'
);
}
else
if
(
whatToDo
==
"E_RAW_THRESHOLD"
)
{
AnalysisConfigFile
>>
DataBuffer
;
m_E_RAW_Threshold
=
atof
(
DataBuffer
.
c_str
());
cout
<<
whatToDo
<<
" "
<<
m_E_RAW_Threshold
<<
endl
;
}
else
if
(
whatToDo
==
"E_THRESHOLD"
)
{
AnalysisConfigFile
>>
DataBuffer
;
m_E_Threshold
=
atof
(
DataBuffer
.
c_str
());
cout
<<
whatToDo
<<
" "
<<
m_E_Threshold
<<
endl
;
}
else
{
ReadingStatus
=
false
;
}
}
}
}
///////////////////////////////////////////////////////////////////////////
void
TSofiaPhysics
::
Clear
()
{
DetectorNumber
.
clear
();
PlasticNumber
.
clear
();
Energy
.
clear
();
Time
.
clear
();
}
///////////////////////////////////////////////////////////////////////////
void
TSofiaPhysics
::
ReadConfiguration
(
NPL
::
InputParser
parser
)
{
vector
<
NPL
::
InputBlock
*>
blocks
=
parser
.
GetAllBlocksWithToken
(
"Sofia"
);
if
(
NPOptionManager
::
getInstance
()
->
GetVerboseLevel
())
cout
<<
"//// "
<<
blocks
.
size
()
<<
" detectors found "
<<
endl
;
vector
<
string
>
cart
=
{
"POS"
,
"Shape"
};
vector
<
string
>
sphe
=
{
"R"
,
"Theta"
,
"Phi"
,
"Shape"
};
for
(
unsigned
int
i
=
0
;
i
<
blocks
.
size
()
;
i
++
){
if
(
blocks
[
i
]
->
HasTokenList
(
cart
)){
if
(
NPOptionManager
::
getInstance
()
->
GetVerboseLevel
())
cout
<<
endl
<<
"//// Sofia "
<<
i
+
1
<<
endl
;
TVector3
Pos
=
blocks
[
i
]
->
GetTVector3
(
"POS"
,
"mm"
);
string
Shape
=
blocks
[
i
]
->
GetString
(
"Shape"
);
AddDetector
(
Pos
,
Shape
);
}
else
if
(
blocks
[
i
]
->
HasTokenList
(
sphe
)){
if
(
NPOptionManager
::
getInstance
()
->
GetVerboseLevel
())
cout
<<
endl
<<
"//// Sofia "
<<
i
+
1
<<
endl
;
double
R
=
blocks
[
i
]
->
GetDouble
(
"R"
,
"mm"
);
double
Theta
=
blocks
[
i
]
->
GetDouble
(
"Theta"
,
"deg"
);
double
Phi
=
blocks
[
i
]
->
GetDouble
(
"Phi"
,
"deg"
);
string
Shape
=
blocks
[
i
]
->
GetString
(
"Shape"
);
AddDetector
(
R
,
Theta
,
Phi
,
Shape
);
}
else
{
cout
<<
"ERROR: check your input file formatting "
<<
endl
;
exit
(
1
);
}
}
}
///////////////////////////////////////////////////////////////////////////
void
TSofiaPhysics
::
InitSpectra
()
{
m_Spectra
=
new
TSofiaSpectra
(
m_NumberOfDetectors
);
}
///////////////////////////////////////////////////////////////////////////
void
TSofiaPhysics
::
FillSpectra
()
{
m_Spectra
->
FillRawSpectra
(
m_EventData
);
m_Spectra
->
FillPreTreatedSpectra
(
m_PreTreatedData
);
m_Spectra
->
FillPhysicsSpectra
(
m_EventPhysics
);
}
///////////////////////////////////////////////////////////////////////////
void
TSofiaPhysics
::
CheckSpectra
()
{
m_Spectra
->
CheckSpectra
();
}
///////////////////////////////////////////////////////////////////////////
void
TSofiaPhysics
::
ClearSpectra
()
{
// To be done
}
///////////////////////////////////////////////////////////////////////////
map
<
string
,
TH1
*>
TSofiaPhysics
::
GetSpectra
()
{
if
(
m_Spectra
)
return
m_Spectra
->
GetMapHisto
();
else
{
map
<
string
,
TH1
*>
empty
;
return
empty
;
}
}
///////////////////////////////////////////////////////////////////////////
void
TSofiaPhysics
::
WriteSpectra
()
{
m_Spectra
->
WriteSpectra
();
}
///////////////////////////////////////////////////////////////////////////
void
TSofiaPhysics
::
AddParameterToCalibrationManager
()
{
CalibrationManager
*
Cal
=
CalibrationManager
::
getInstance
();
for
(
int
i
=
0
;
i
<
m_NumberOfDetectors
;
++
i
)
{
Cal
->
AddParameter
(
"Sofia"
,
"D"
+
NPL
::
itoa
(
i
+
1
)
+
"_ENERGY"
,
"Sofia_D"
+
NPL
::
itoa
(
i
+
1
)
+
"_ENERGY"
);
Cal
->
AddParameter
(
"Sofia"
,
"D"
+
NPL
::
itoa
(
i
+
1
)
+
"_TIME"
,
"Sofia_D"
+
NPL
::
itoa
(
i
+
1
)
+
"_TIME"
);
}
}
///////////////////////////////////////////////////////////////////////////
void
TSofiaPhysics
::
InitializeRootInputRaw
()
{
TChain
*
inputChain
=
RootInput
::
getInstance
()
->
GetChain
();
inputChain
->
SetBranchStatus
(
"Sofia"
,
true
);
inputChain
->
SetBranchAddress
(
"Sofia"
,
&
m_EventData
);
}
///////////////////////////////////////////////////////////////////////////
void
TSofiaPhysics
::
InitializeRootInputPhysics
()
{
TChain
*
inputChain
=
RootInput
::
getInstance
()
->
GetChain
();
inputChain
->
SetBranchAddress
(
"Sofia"
,
&
m_EventPhysics
);
}
///////////////////////////////////////////////////////////////////////////
void
TSofiaPhysics
::
InitializeRootOutput
()
{
TTree
*
outputTree
=
RootOutput
::
getInstance
()
->
GetTree
();
outputTree
->
Branch
(
"Sofia"
,
"TSofiaPhysics"
,
&
m_EventPhysics
);
}
////////////////////////////////////////////////////////////////////////////////
// Construct Method to be pass to the DetectorFactory //
////////////////////////////////////////////////////////////////////////////////
NPL
::
VDetector
*
TSofiaPhysics
::
Construct
()
{
return
(
NPL
::
VDetector
*
)
new
TSofiaPhysics
();
}
////////////////////////////////////////////////////////////////////////////////
// Registering the construct method to the factory //
////////////////////////////////////////////////////////////////////////////////
extern
"C"
{
class
proxy_Sofia
{
public:
proxy_Sofia
(){
NPL
::
DetectorFactory
::
getInstance
()
->
AddToken
(
"Sofia"
,
"Sofia"
);
NPL
::
DetectorFactory
::
getInstance
()
->
AddDetector
(
"Sofia"
,
TSofiaPhysics
::
Construct
);
}
};
proxy_Sofia
p_Sofia
;
}
NPLib/Detectors/Sofia/TSofiaPhysics.h
0 → 100644
View file @
2486c50a
#ifndef TSofiaPHYSICS_H
#define TSofiaPHYSICS_H
/*****************************************************************************
* Copyright (C) 2009-2020 this file is part of the NPTool Project *
* *
* For the licensing terms see $NPTOOL/Licence/NPTool_Licence *
* For the list of contributors see $NPTOOL/Licence/Contributors *
*****************************************************************************/
/*****************************************************************************
* Original Author: Pierre Morfouace contact address: pierre.morfouace2@cea.fr *
* *
* Creation Date : November 2020 *
* Last update : *
*---------------------------------------------------------------------------*
* Decription: *
* This class hold Sofia Treated data *
* *
*---------------------------------------------------------------------------*
* Comment: *
* *
* *
*****************************************************************************/
// C++ headers
#include <vector>
#include <map>
#include <string>
using
namespace
std
;
// ROOT headers
#include "TObject.h"
#include "TH1.h"
#include "TVector3.h"
// NPTool headers
#include "TSofiaData.h"
#include "TSofiaSpectra.h"
#include "NPCalibrationManager.h"
#include "NPVDetector.h"
#include "NPInputParser.h"
// forward declaration
class
TSofiaSpectra
;
class
TSofiaPhysics
:
public
TObject
,
public
NPL
::
VDetector
{
//////////////////////////////////////////////////////////////
// constructor and destructor
public:
TSofiaPhysics
();
~
TSofiaPhysics
()
{};
//////////////////////////////////////////////////////////////
// Inherited from TObject and overriden to avoid warnings
public:
void
Clear
();
void
Clear
(
const
Option_t
*
)
{};
//////////////////////////////////////////////////////////////
// data obtained after BuildPhysicalEvent() and stored in
// output ROOT file
public:
vector
<
int
>
DetectorNumber
;
vector
<
int
>
PlasticNumber
;
vector
<
double
>
Energy
;
vector
<
double
>
Time
;
/// A usefull method to bundle all operation to add a detector
void
AddDetector
(
TVector3
POS
,
string
shape
);
void
AddDetector
(
double
R
,
double
Theta
,
double
Phi
,
string
shape
);
//////////////////////////////////////////////////////////////
// methods inherited from the VDetector ABC class
public:
// read stream from ConfigFile to pick-up detector parameters
void
ReadConfiguration
(
NPL
::
InputParser
);
// add parameters to the CalibrationManger
void
AddParameterToCalibrationManager
();
// method called event by event, aiming at extracting the
// physical information from detector
void
BuildPhysicalEvent
();
// same as BuildPhysicalEvent() method but with a simpler
// treatment
void
BuildSimplePhysicalEvent
();
// same as above but for online analysis
void
BuildOnlinePhysicalEvent
()
{
BuildPhysicalEvent
();};
// activate raw data object and branches from input TChain
// in this method mother branches (Detector) AND daughter leaves
// (fDetector_parameter) have to be activated
void
InitializeRootInputRaw
();
// activate physics data object and branches from input TChain
// in this method mother branches (Detector) AND daughter leaves
// (fDetector_parameter) have to be activated
void
InitializeRootInputPhysics
();
// create branches of output ROOT file
void
InitializeRootOutput
();
// clear the raw and physical data objects event by event
void
ClearEventPhysics
()
{
Clear
();}
void
ClearEventData
()
{
m_EventData
->
Clear
();}
// methods related to the TSofiaSpectra class
// instantiate the TSofiaSpectra class and
// declare list of histograms
void
InitSpectra
();
// fill the spectra
void
FillSpectra
();
// used for Online mainly, sanity check for histograms and
// change their color if issues are found, for example
void
CheckSpectra
();
// used for Online only, clear all the spectra
void
ClearSpectra
();
// write spectra to ROOT output file
void
WriteSpectra
();
//////////////////////////////////////////////////////////////
// specific methods to Sofia array
public:
// remove bad channels, calibrate the data and apply thresholds
void
PreTreat
();
// clear the pre-treated object
void
ClearPreTreatedData
()
{
m_PreTreatedData
->
Clear
();}
// read the user configuration file. If no file is found, load standard one
void
ReadAnalysisConfig
();
// give and external TSofiaData object to TSofiaPhysics.
// needed for online analysis for example
void
SetRawDataPointer
(
TSofiaData
*
rawDataPointer
)
{
m_EventData
=
rawDataPointer
;}
// objects are not written in the TTree
private:
TSofiaData
*
m_EventData
;
//!
TSofiaData
*
m_PreTreatedData
;
//!
TSofiaPhysics
*
m_EventPhysics
;
//!
// getters for raw and pre-treated data object
public:
TSofiaData
*
GetRawData
()
const
{
return
m_EventData
;}
TSofiaData
*
GetPreTreatedData
()
const
{
return
m_PreTreatedData
;}
// parameters used in the analysis
private:
// thresholds
double
m_E_RAW_Threshold
;
//!
double
m_E_Threshold
;
//!
// number of detectors
private:
int
m_NumberOfDetectors
;
//!
// spectra class
private:
TSofiaSpectra
*
m_Spectra
;
// !
// spectra getter
public:
map
<
string
,
TH1
*>
GetSpectra
();