00001
00002
00003 void doEmbeddingQAMaker(
00004 const Int_t year = 2007,
00005 const TString production = "P08ic",
00006 const Char_t* inputFileList = "minimc.list",
00007 const Char_t* outputFileName = "",
00008 const Bool_t isSimulation = kTRUE,
00009 const Float_t vzCut = 30.0,
00010 const Int_t refMultMinCut = 0,
00011 const Int_t refMultMaxCut = 1000
00012 ){
00013 const TString data = (isSimulation) ? "minimc tree" : "real data" ;
00014 const TString title = "Embedding QA from " + data ;
00015
00016 gBenchmark->Start(title);
00017
00018 gROOT->Macro("${STAR}/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
00019 gSystem->Load("StMiniMcEvent");
00020 gSystem->Load("StEmbeddingUtilities");
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 const StEmbeddingQAUtilities* utility = StEmbeddingQAUtilities::instance() ;
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049 StEmbeddingQA* maker = new StEmbeddingQA(year, production, isSimulation);
00050
00052 maker->setZVertexCut(vzCut);
00053 maker->setRefMultMinCut(refMultMinCut);
00054 maker->setRefMultMaxCut(refMultMaxCut);
00055
00057
00058
00059
00061
00062
00063
00064
00065
00066
00067
00068 maker->book(outputFileName);
00069 maker->run(inputFileList);
00070 maker->end();
00071
00072 gBenchmark->Stop(title);
00073 gBenchmark->Show(title);
00074 gBenchmark->Reset();
00075 }
00076
00077
00078 void doEmbeddingQA(
00079 const Int_t year = 2007,
00080 const TString production = "P08ic",
00081 const TString inputFileList = "minimc.list"
00082 ){
00083 doEmbeddingQAMaker(year, production, inputFileList, "", kTRUE);
00084 }
00085
00086
00087 void doRealDataQA(
00088 const Int_t year = 2007,
00089 const TString production = "P08ic",
00090 const Char_t* inputFileList = "MuDst.list"
00091 ){
00092 doEmbeddingQAMaker(year, production, inputFileList, "", kFALSE);
00093 }
00094
00095
00096 void doEmbeddingQAMakerOneFile(
00097 const Int_t year = 2007,
00098 const TString production = "P08ic",
00099 const Char_t* inputFileName = "/star/institutions/lbl/hmasui/embedding/data/P08if/PiPlus_st_physics_8172100_raw_1020010.minimc.root",
00100 const Char_t* outputFileName = "",
00101 const Bool_t isSimulation = kTRUE,
00102 const Float_t vzCut = 30.0,
00103 const Int_t refMultMinCut = 0,
00104 const Int_t refMultMaxCut = 1000
00105 ){
00106 gBenchmark->Start("Embedding QA from minimc tree");
00107
00108 gROOT->Macro("${STAR}/StRoot/StMuDSTMaker/COMMON/macros/loadSharedLibraries.C");
00109 gSystem->Load("StMiniMcEvent");
00110 gSystem->Load("StEmbeddingUtilities");
00111
00112 StEmbeddingQA* maker = new StEmbeddingQA(year, production, isSimulation);
00113 maker->setZVertexCut(vzCut);
00114 maker->setRefMultMinCut(refMultMinCut);
00115 maker->setRefMultMaxCut(refMultMaxCut);
00116
00117
00118
00119
00120 maker->book(outputFileName);
00121 maker->make(inputFileName, kTRUE);
00122 maker->end();
00123
00124 gBenchmark->Stop("Embedding QA from minimc tree");
00125 gBenchmark->Show("Embedding QA from minimc tree");
00126 gBenchmark->Reset();
00127 }
00128