BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
residAnal.C
Go to the documentation of this file.
1#include <Rtypes.h>
2#include <TCanvas.h>
3#include <TFile.h>
4#include <TH1F.h>
5
6R__ADD_INCLUDE_PATH($VMCWORKDIR)
7#include "macro/run/bmnloadlibs.C"
8
9using namespace std;
10using namespace TMath;
11
12void residAnal(TString dataPath = "", TString mcPath = "")
13{
14 BmnDataAnalRun7* dAnal = new BmnDataAnalRun7(dataPath);
15
16 dAnal->SetMcData(mcPath); // if necessary
17 dAnal->SetGeometryFile(""); // path to geometry
18
19 // Some setters to speed up the procedure by limiting number of files / events to be processed (if necessary)
20 // dAnal->SetNFilesInList(10);
21 // dAnal->SetNEventsInFile(10000);
22 dAnal->SetTarget(""); // target should be passed obligatory (C, Al, Cu, Sn, Pb are available within the anal.)
23
24 dAnal->doResidAnal();
25}
#define R__ADD_INCLUDE_PATH(PATH)
void SetGeometryFile(TString file)
void SetMcData(TString dirMc)
void SetTarget(TString t)
void residAnal(TString dataPath="", TString mcPath="")
Definition residAnal.C:12
Definition json.hpp:4446