improve index.html file to include runs list
[u/mrichter/AliRoot.git] / PWGPP / QA / detectorQAscripts / TPC.sh
CommitLineData
f7707400 1#available variables:
2# $dataType e.g. data or sim
3# $year e.g. 2011
4# $period e.g. LHC13g
5# $runNumer e.g. 169123
6# $pass e.g. cpass1,pass1,passMC
302db621 7# #ocdbStorage e.g. "raw://", "local://./OCDB"
f7707400 8
9runLevelQA()
10{
11 qaFile=$1
12
13 cp $ALICE_ROOT/PWGPP/TPC/macros/MakeTrend.C .
14 aliroot -b -q -l "MakeTrend.C(\"$qaFile\",$runNumber)"
15
16 cp $ALICE_ROOT/PWGPP/TPC/macros/drawPerformanceTPCQAMatch.C .
17 aliroot -b -q -l "drawPerformanceTPCQAMatch.C(\"$qaFile\")"
0f3724e7 18 makeHTMLindexPerRun
f7707400 19}
20
21periodLevelQA()
22{
23 trendingFile=$1
24
25 cp $ALICE_ROOT/PWGPP/TPC/macros/drawPerformanceTPCQAMatchTrends.C .
26 cp $ALICE_ROOT/PWGPP/TPC/macros/qaConfig.C .
27 aliroot -b -q -l "drawPerformanceTPCQAMatchTrends.C(\"trending.root\",\"PbPb\")"
0f3724e7 28 makeHTMLindexPerPeriod
29}
30
31makeHTMLindexPerRun()
32{
33 cat > index.html <<EOF
34<div align="left"><br>
35<h2>Run Data Quality</h2>
36<a href="TPC_event_info.png">Event Information</a><br>
37<a href="cluster_occupancy.png">Cluster Occupancy</a><br>
38<a href="eta_phi_pt.png">#eta, #phi and pt</a><br>
39<a href="cluster_in_detail.png">Number of clusters in #eta and #phi</a><br>
40<a href="dca_in_detail.png">DCAs vs #eta</a><br>
41<a href="TPC_dEdx_track_info.png">TPC dEdx</a><br>
42<a href="dca_and_phi.png">DCAs vs #phi</a><br>
43<a href="TPC-ITS.png">TPC-ITS matching</a><br>
44<a href="dcar_pT.png">dcar vs pT</a><br>
45<a href="pullPhiConstrain.png">Tracking parameter phi</a><br>
46<!-- <a href="res_pT_1overpT.png">Resolution vs pT and 1/pT</a><br> //-->
47<!-- <a href="eff_all+all_findable.png">Efficiency all charged + findable</a><br> //-->
48<!-- <a href="eff_Pi_K_P.png">Efficiency #pi, K, p</a><br> //-->
49<!-- <a href="eff_Pi_K_P_findable.png">Efficiency findable #pi, K, p</a><br> //-->
50</div>
51
52EOF
53}
54
55makeHTMLindexPerPeriod()
56{
57 cat > index.html <<EOF
58<div align="left"><br>
59<h2>Periodical Data Quality</h2>
60<a href="meanTPCncl_vs_run.png">Mean Number of TPC Clusters</a><br>
61<a href="meanTPCnclF_vs_run.png"># of Found Clusters / # of Findable Clusters</a><br>
62<br>
63<a href="meanMIP_vs_run.png">Mean of MIPs</a><br>
64<a href="meandEdxele_vs_run.png">Mean electron energy loss p(0.32,0.38)GeV/c, dEdx(70,100)</a><br>
65<br>
66<a href="meanVertX_vs_run.png">Mean of Vertex_X</a>, <a href="meanVertY_vs_run.png">Vertex_Y</a>, <a href="meanVertZ_vs_run.png">Vertex_Z</a>
67<br><br>
68<a href="meanMult_vs_run.png">Multiplicities of Primary Tracks</a><br>
69<a href="TPC-ITS_vs_run.png">TPC-ITS matching efficiency</a><br>
70<a href="1overPt_vs_run.png">Delta 1/pt</a><br>
71<a href="DCAOffset_vs_run.png">DCAs</a><br>
72<br>
749fb673 73<p><font size="4">Runs:</font></p>
74EOF
75
76for dir in 000*; do
77 echo "<a href="${dir}">${dir}</a>" >> index.html
78done
0f3724e7 79
749fb673 80 cat >> index.html <<EOF
81<br>
0f3724e7 82<p><font size="4">Additional plots</font></p>
83<a href="occ_AC_Side_IROC_OROC_vs_run.png">Nr of Chambers with lower gain (occupancy)</a><br>
84<br>
85<a href="dcar_fitting_run.png">DCAr fitting parameters</a><br>
86<a href="dcar_0_vs_run.png">DCAr fitting parameters (0)</a><br>
87<a href="dcar_1_vs_run.png">DCAr fitting parameters (1)</a><br>
88<a href="dcar_2_vs_run.png">DCAr fitting parameters (2)</a><br>
89<a href="dcaz_0_vs_run.png">DCAz fitting parameters (0)</a><br>
90<a href="dcaz_1_vs_run.png">DCAz fitting parameters (1)</a><br>
91<a href="dcaz_2_vs_run.png">DCAz fitting parameters (2)</a><br>
92<br>
93<a href="resolutionMIP_vs_run.png">Resolution of MIPs</a><br>
94<a href="resolutionMeandEdxEle_vs_run.png">Resolution of mean electron energy loss</a><br>
95<a href="ElectroMIPSeparation_vs_run.png">Separation between electon and MIPs energy loss</a><br>
96<br>
97<a href="MIPattachSlopeA_vs_run.png">Attachment parameter p1, A side</a><br>
98<a href="MIPattachSlopeC_vs_run.png">Attachment parameter p1, C side</a><br>
99<br>
100<a href="pullPhiConstrain_vs_run.png">Tracking parameter phi</a><br>
101
102</div>
103
104EOF
f7707400 105}