GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RunADFToTree.C
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (c) IPNL, IN2P3, CNRS *
3  * Contibutor(s) : *
4  * Olivier Stezowski stezow(AT)ipnl.in2p3.fr [2014] *
5  * *
6  * This program is free software; you can redistribute it and/or modify *
7  * it under the terms of the GNU General Public License as published by *
8  * the Free Software Foundation; either version 2 of the License, or *
9  * (at your option) any later version. *
10  * *
11  * This program is distributed in the hope that it will be useful, *
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14  * GNU General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU General Public License *
17  * along with this program; if not, write to the *
18  * Free Software Foundation, Inc., *
19  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
20  ***************************************************************************/
21 
22 //
23 // Macro to transform one ADF run (Tracked_XXXX.adf) into a root tree containing the AGATA and VAMS branches
24 //
25 void RunADFToTree(Int_t which_run=-1, const char *which_experiment="", const char *which_adf_data="", const char *run_name_pattern = "", const char *opt_adf_pattern="", const char *which_output_dir="")
26 {
27  if(which_run==-1)
28  {
29  cout<<endl;
30  cout<<"********************************"<<endl;
31  cout<<"****** RunADFToTree usage ******"<<endl;
32  cout<<"********************************"<<endl<<endl;
33  cout<<" To run the the function, it requires to get the path to the run, the sub-path to the data file, additional filters and the output directory"<<endl;
34  cout<<" ex: RunADFToTree(148,\"/agatadisks/e663/e663/Replay\",\"/Out/Merger/\",\"run_\",\"*.adf\",\"./Out\");"<<endl<<endl;
35 
36  return;
37  }
38 
39  // load what is required
40  gROOT->ProcessLine(".x GANILLoadWatchers.C");
41  gROOT->ProcessLine(".L ADF_to_Tree.C+");
42 
43  ADF_to_Tree(which_run,which_experiment,which_adf_data,run_name_pattern,opt_adf_pattern,which_output_dir);
44 }
void RunADFToTree(Int_t which_run=-1, const char *which_experiment="", const char *which_adf_data="", const char *run_name_pattern="", const char *opt_adf_pattern="", const char *which_output_dir="")
Definition: RunADFToTree.C:25
ADF::LogMessage & endl(ADF::LogMessage &log)
void ADF_to_Tree(const Char_t *rootafpconf="")
Transform ADF files into a ROOT Tree using the RootAFP.conf given as argument. No Arguments means Roo...
Definition: ADF_to_Tree.C:89