Skip to content
Snippets Groups Projects
Commit 10581dfa authored by Theodore Efremov's avatar Theodore Efremov :hibiscus:
Browse files

Modified the input file method in mwpc linearisation

parent 54df1880
No related branches found
No related tags found
1 merge request!27Draft: [Epic] Preparation of the environement for the new GaseousDetectorScorers...
Pipeline #359181 failed
#include <vector> // Needed to store histograms. #include <vector> // Needed to store histograms.
void HistoPosFiller(int RunStart, int RunStop) { void HistoPosFiller(const char* FileName) {
// ************************************************************************** // **************************************************************************
// This macro simply fill an histogram per FPMW and store them in a root file. // This macro simply fill an histogram per FPMW and store them in a root file.
// It is needed for the input of the LinearisationYaml.cxx macro. // It is needed for the input of the LinearisationYaml.cxx macro.
...@@ -22,9 +22,8 @@ void HistoPosFiller(int RunStart, int RunStop) { ...@@ -22,9 +22,8 @@ void HistoPosFiller(int RunStart, int RunStop) {
// Import the chain // Import the chain
TChain *ch = new TChain("PhysicsTree"); TChain *ch = new TChain("PhysicsTree");
for (int run = RunStart; run <= RunStop; run++) { ch->Add(Form("../../root/analysis/%s.root", FileName));
ch->Add(Form("../../root/analysis/linea_%d.root", run)); // End of run loop
} // End of run loop
// Declaration of the histograms storing the reconstructed position // Declaration of the histograms storing the reconstructed position
vector<TH1F *> Position; vector<TH1F *> Position;
......
...@@ -9,9 +9,7 @@ First thing first you need a run filled with a good amount of data with the ...@@ -9,9 +9,7 @@ First thing first you need a run filled with a good amount of data with the
position on the FPMW unlinearised. position on the FPMW unlinearised.
Then execute the HistoPosFiller.cxx macro with the following command in terminal Then execute the HistoPosFiller.cxx macro with the following command in terminal
: root 'HistoPosFiller.cxx(RunStart,RunEnd)' : root 'HistoPosFiller.cxx(FileName)'
The run you are using should have a name of the form : linea_$RunNumber$.root
This macro will fill the histogram with the unlinearised FPMW position and store them in the HistUnlinea.root file. It is mandatory to run the following steps. This macro will fill the histogram with the unlinearised FPMW position and store them in the HistUnlinea.root file. It is mandatory to run the following steps.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment