00001 00002 // // 00003 // AggregateVtxSeed.C macro // 00004 // Author: G. Van Buren, BNL // 00005 // Description: uses StVertexSeedMaker to aggregate results of // 00006 // vertex seed-finding from multiple runs within fills // 00007 // Usage: Reads histograms from directory given as argument. A blank // 00008 // argument will use the directory in which the macro is run. // 00009 // A directory name should end in a forward slash "/" for all // 00010 // files named vertexseedhist.*.root in that directory to be // 00011 // used (otherwise assumes you're actually specifying the // 00012 // filenames). Output histograms go to the directory in which // 00013 // the macro is run, and output database tables go to subdir: // 00014 // StarDb/Calibrations/rhic/ // 00015 // // 00017 00018 Int_t AggregateVtxSeed(char* dir=0, const char* cuts=""); 00019 00020 Int_t AggregateVtxSeed(char* dir, const char* cuts) { 00021 gROOT->LoadMacro("$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C"); 00022 loadSharedLibraries(); 00023 00024 gSystem->Load("StDbBroker.so"); 00025 gSystem->Load("St_db_Maker"); 00026 gSystem->Load("StDetectorDbMaker"); 00027 gSystem->Load("StTpcDb"); 00028 gSystem->Load("StDbUtilities"); 00029 gSystem->Load("StPass0CalibMaker"); 00030 00031 StVertexSeedMaker vtxSeedMk; 00032 //vtxSeedMk.UseFillDateTimeFromFile(); 00033 Int_t nfiles = vtxSeedMk.Aggregate(dir,cuts); 00034 return nfiles; 00035 } 00036 00037 // $Id: AggregateVtxSeed.C,v 1.2 2008/04/29 23:30:57 genevb Exp $ 00038 // $Log: AggregateVtxSeed.C,v $ 00039 // Revision 1.2 2008/04/29 23:30:57 genevb 00040 // Added cuts capability to Aggregate 00041 // 00042 // Revision 1.1 2006/05/09 21:48:45 genevb 00043 // move macro to calib directory 00044 // 00045 // Revision 1.3 2005/07/01 23:57:40 genevb 00046 // Allow use of StEvent/MuDst in finding vertex seed 00047 // 00048 // Revision 1.2 2003/02/11 21:43:15 genevb 00049 // added needed library 00050 // 00051 // Revision 1.1 2002/03/20 00:51:42 genevb 00052 // Introduction 00053 //
1.5.9