Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:15:02

0001 #include <SpinDBQA.h>
0002 
0003 R__LOAD_LIBRARY(libSpinDBQA.so)
0004 
0005 //First run in spin db: 41935
0006 //First official spin run: 45236
0007 //Final spin (pp) run: 53880
0008 void run_SpinDBQA()
0009 {
0010     std::string runfile = "runnumbers.dat";
0011     std::string CNIpath = "/gpfs02/eic/cnipol/jet_run24/results";
0012     std::string mdfile = "README.md";
0013     std::string htmlfile = "runsummary.html";
0014     std::string rootfile = "qa_results.root";
0015 
0016     SpinDBQA *qa = new SpinDBQA();
0017     
0018     qa->SetRunList(runfile);
0019     qa->SetCNIPath(CNIpath);
0020 
0021     // ==== Set QA level (can either do default qa level or specific choice of qa level) ==== //
0022     qa->DefaultQA();
0023     //int qa_level = 0xFFFF; qa->SetQALevel(qa_level);
0024     //int qa_level = 0; qa->SetQALevel(qa_level);
0025     // ====================== //
0026 
0027     qa->ReadSpinDBData();
0028     qa->doQA();
0029 
0030     qa->SetMarkdownFilename(mdfile);
0031     qa->WriteMarkdown();
0032 
0033     qa->SetHtmlFilename(htmlfile);
0034     qa->WriteHtml();
0035     
0036     // qa->SetRootFilename(rootfile);
0037     // qa->WriteRootFile();
0038 
0039 
0040     // ======== Write new QA level (WARNING: EXPERT ONLY!)========== //
0041     // int newqalevel = 0; 
0042     // qa->WriteNewQALevel(newqalevel);
0043 
0044 }