1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- /**
- * \brief Helper macros for analyzing name.femtoDst.root files using FemtoDstAnalyzer.C
- *
- * This macros takes inFileName argument with a femtoDst.root file
- * or with a list of files (name.lis or name.list). It sets _VANILLA_ROOT_
- * (necessary for standalone mode), loads pre-compiled libStFemtoDst.so
- * (from StFemtoEvent), compiles and executes a text
- * FemtoDstAnalyzer.C macro with passing inFileName to it, and
- * cleans up the directory from the compilation products at the end.
- *
- * Some details:
- * inFileName - is a name of name.femtoDst.root file or a name
- * of a name.lis(t) files that contains a list of
- * name1.femtoDst.root files.
- * NOTE: inFileName should contain either /absolutePath/inFileName
- * or /relative2currentDir/inFileName
- * It is assumed that FemtoDstAnalyzer.C is placed in the same
- * directory where the RunAnalyzer.C is stored.
- *
- * \author Grigory Nigmatkulov
- * \date July 5, 2018
- */
- // ROOT headers
- #include "TROOT.h"
- #include "TSystem.h"
- #include "TString.h"
- //const Char_t* defaultFileName = "/mnt/pool/rhic/4/parfenovpeter/STAR/list/200gev_run_12132011.list";
- // const Char_t* defaultFileName = "/mnt/pool/rhic/4/parfenovpeter/STAR/list/middle_200gev_run_12132011.list";
- const Char_t* defaultFileName = "/mnt/pool/rhic/4/parfenovpeter/STAR/list/little_200gev_run_12132011.list";
- // const Char_t* recFileName = "/mnt/pool/rhic/4/parfenovpeter/STAR/Analysis/macro/Flow/oReCenteringTest.root";
- // const Char_t* shiftFile = "/mnt/pool/rhic/4/parfenovpeter/STAR/Analysis/macro/Flow/oShiftTest.root";
- // const Char_t* resFile = "/mnt/pool/rhic/4/parfenovpeter/STAR/Analysis/macro/Flow/oResolutionTest.root";
- const Char_t* recFileName = "/mnt/pool/rhic/4/parfenovpeter/STAR/OUT/200gev/merge/Recentering.root";
- const Char_t* shiftFile = "/mnt/pool/rhic/4/parfenovpeter/STAR/OUT/200gev/merge/ShiftCorr.root";
- const Char_t* resFile = "/mnt/pool/rhic/4/parfenovpeter/STAR/OUT/200gev/merge/Resolution.root";
- const Char_t* pidFile = "/mnt/pool/rhic/4/parfenovpeter/STAR/OUT/200gev/merge/pid_fit.root";
- //_________________
- void RunAnalyzer_FlowPIDHadrons(const Char_t *inFileName = defaultFileName,
- const Char_t *oFileName = "oFlowPIDTest.root",
- const Char_t *recentFileName = recFileName,
- const Char_t *shiftFileName = shiftFile,
- const Char_t *resFileName = resFile,
- const Char_t *pidFileName = pidFile) {
- // Next line is not needed if you are not running in a standalone mode
- gROOT->ProcessLine("#define _VANILLA_ROOT_");
- //gSystem->Load("$FEMTOSOFT/StFemtoEvent/libStFemtoDst.so");
- gSystem->Load("/mnt/pool/rhic/4/parfenovpeter/STAR/build/libStFemtoDst.so");
- TString str;
- str = ".x /mnt/pool/rhic/4/parfenovpeter/STAR/Analysis/macro/Flow/FemtoDstAnalyzer_FlowPIDHadrons.C+(\"";
- str += inFileName;
- str += "\",\"";
- str += oFileName;
- str += "\",\"";
- str += recentFileName;
- str += "\",\"";
- str += shiftFileName;
- str += "\",\"";
- str += resFileName;
- str += "\",\"";
- str += pidFileName;
- str += "\")";
- gROOT->ProcessLine( str.Data() );
- // Next line should be commented if you run in a batch mode
- //gROOT->ProcessLine(".!rm -f FemtoDstAnalyzer_C* ");
- }
|