StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
AggregateVtxSeed.C
1 // //
3 // AggregateVtxSeed.C macro //
4 // Author: G. Van Buren, BNL //
5 // Description: uses StVertexSeedMaker to aggregate results of //
6 // vertex seed-finding from multiple runs within fills //
7 // Usage: Reads histograms from directory given as argument. A blank //
8 // argument will use the directory in which the macro is run. //
9 // A directory name should end in a forward slash "/" for all //
10 // files named vertexseedhist.*.root in that directory to be //
11 // used (otherwise assumes you're actually specifying the //
12 // filenames). Output histograms go to the directory in which //
13 // the macro is run, and output database tables go to subdir: //
14 // StarDb/Calibrations/rhic/ //
15 // //
17 
18 Int_t AggregateVtxSeed(char* dir=0, const char* cuts="", const Int_t offset=0);
19 
20 Int_t AggregateVtxSeed(char* dir, const char* cuts, const Int_t offset) {
21  gROOT->LoadMacro("$STAR/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
22  loadSharedLibraries();
23 
24  gSystem->Load("StDbBroker.so");
25  gSystem->Load("St_db_Maker");
26  gSystem->Load("StDetectorDbMaker");
27  gSystem->Load("StTpcDb");
28  gSystem->Load("StDbUtilities");
29  gSystem->Load("StdEdxY2Maker");
30  gSystem->Load("StPicoEvent");
31  gSystem->Load("StPicoDstMaker");
32  gSystem->Load("StPass0CalibMaker");
33 
34  StVertexSeedMaker vtxSeedMk;
35  //vtxSeedMk.UseFillDateTimeFromFile();
36  //vtxSeedMk.SetNoClobber(kFALSE);
37  Int_t nfiles = vtxSeedMk.Aggregate(dir,cuts,offset);
38  return nfiles;
39 }
40 
41 // $Id: AggregateVtxSeed.C,v 1.5 2017/08/22 17:32:13 genevb Exp $
42 // $Log: AggregateVtxSeed.C,v $
43 // Revision 1.5 2017/08/22 17:32:13 genevb
44 // Add Pico dependendence for StPass0CalibMaker lib
45 //
46 // Revision 1.4 2013/08/14 21:41:15 genevb
47 // Introduce time offsets, noclobber toggle
48 //
49 // Revision 1.3 2013/03/15 01:52:28 genevb
50 // library dependence
51 //
52 // Revision 1.2 2008/04/29 23:30:57 genevb
53 // Added cuts capability to Aggregate
54 //
55 // Revision 1.1 2006/05/09 21:48:45 genevb
56 // move macro to calib directory
57 //
58 // Revision 1.3 2005/07/01 23:57:40 genevb
59 // Allow use of StEvent/MuDst in finding vertex seed
60 //
61 // Revision 1.2 2003/02/11 21:43:15 genevb
62 // added needed library
63 //
64 // Revision 1.1 2002/03/20 00:51:42 genevb
65 // Introduction
66 //
BeamLine Constraint calibration base class.