er  dev
Public Member Functions | Private Attributes | List of all members
ERCalibrationSSD::Preprocessing Class Reference
Inheritance diagram for ERCalibrationSSD::Preprocessing:
Inheritance graph
[legend]
Collaboration diagram for ERCalibrationSSD::Preprocessing:
Collaboration graph
[legend]

Public Member Functions

 Preprocessing (const TString &rawDataPath)
 
void AddSensor (SensorRunInfo *sensor)
 Adds sensor to a current preprocessing. Sensors are form common file.
 
void ConvertTree (const TString &option="neevent")
 Prepares raw input tree by leaving only leaves needed for the further analysis. As a result file [WORKING_DIR]/[SENSOR_NAME]/input/input*.root is created. Obligatory it contains aliases "[SENSOR_NAME]" for analyzed branches. More...
 
void FindThresholds (const TString &opt="draw_off")
 Finds noise thresholds, saves results to a file. Algorithm: 1) Find bin number with maximal amplitude MAX_BIN_NB 2) Move to the right since MAX_BIN_NB while bin amplitude value decreases. The first bin with ascending amplitude value is a threshold boundary. Resulting values are stored in the [WORKING_DIR]/[SENSOR_NAME]/txt/thresolds_*.root file. More...
 
void MultiplicitySelection (const SensorRunInfo *sensor, std::vector< SensorRunInfo * > sensorsZeroSignal=std::vector< SensorRunInfo * >())
 Performs multiplicity selection of a data. Method creates a tree where in each event analyzed sensors have only one channel with amplitude value higher then noise thresholds. More...
 
void MultiplicitySelection (std::vector< SensorRunInfo * > sensors, std::vector< SensorRunInfo * > sensorsZeroSignal=std::vector< SensorRunInfo * >())
 
void CreateSpectraHists (const SensorRunInfo *sensor)
 Creates strips spectra for the further analysis analysis. Saves resulting hists for each sensor by path [WORKING_DIR]/[SENSOR_NAME]/draw/spectra_*.root.
 
void Exec ()
 
- Public Member Functions inherited from ERCalibrationSSD::TaskManager
 TaskManager (const TString &rawDataPath)
 

Private Attributes

std::vector< SensorRunInfo * > * fSensors = nullptr
 

Additional Inherited Members

- Protected Attributes inherited from ERCalibrationSSD::TaskManager
CalibIOManagerfIOManager = nullptr
 
TString fWorkDir = "result"
 
TString fRunId = ""
 
TString fRawDataPath = ""
 

Detailed Description

Definition at line 836 of file ERCalibrationSSD.cxx.

Member Function Documentation

void Preprocessing::ConvertTree ( const TString &  option = "neevent")

Prepares raw input tree by leaving only leaves needed for the further analysis. As a result file [WORKING_DIR]/[SENSOR_NAME]/input/input*.root is created. Obligatory it contains aliases "[SENSOR_NAME]" for analyzed branches.

Parameters
optionselect input file source. Only one option is implemented for now "neevent", which means input file were converted by FLNR TNeEvent based library. In further "aqqdaq" option will avaliable for files repached by AqqDAQ library (https://github.com/evovch/ACCULINNA_go4_user_library)

Definition at line 915 of file ERCalibrationSSD.cxx.

void Preprocessing::FindThresholds ( const TString &  opt = "draw_off")

Finds noise thresholds, saves results to a file. Algorithm: 1) Find bin number with maximal amplitude MAX_BIN_NB 2) Move to the right since MAX_BIN_NB while bin amplitude value decreases. The first bin with ascending amplitude value is a threshold boundary. Resulting values are stored in the [WORKING_DIR]/[SENSOR_NAME]/txt/thresolds_*.root file.

Parameters
optdraw option. 'draw_off' – draws resulting threshold positions in a file [WORKING_DIR]/[SENSOR_NAME]/draw/thresholds_*.root.

Definition at line 943 of file ERCalibrationSSD.cxx.

void Preprocessing::MultiplicitySelection ( const SensorRunInfo sensor,
std::vector< SensorRunInfo * >  sensorsZeroSignal = std::vector<SensorRunInfo*>() 
)

Performs multiplicity selection of a data. Method creates a tree where in each event analyzed sensors have only one channel with amplitude value higher then noise thresholds.

Parameters
optdraw option. 'draw_off' – draws resulting threshold positions in a file [WORKING_DIR]/[SENSOR_NAME]/draw/multiplicity_*.root.

Definition at line 994 of file ERCalibrationSSD.cxx.

void Preprocessing::MultiplicitySelection ( std::vector< SensorRunInfo * >  sensors,
std::vector< SensorRunInfo * >  sensorsZeroSignal = std::vector<SensorRunInfo*>() 
)

Method creates a tree where all analyzed sensors have only one channel with amplitude value higher then noise thresholds in each event.

Parameters
sensors- list of sensor each of those has a single multuplicity

Definition at line 1054 of file ERCalibrationSSD.cxx.


The documentation for this class was generated from the following file: