12 #include <StMessMgr.h>
14 #include "StBarrelMonitorMaker.h"
17 void StBarrelMonitorMaker::initHistos() {
19 memset(hTile,0,
sizeof(hTile));
20 initHistosTiles(kBTow);
21 initHistosTiles(kBPrs);
25 LOG_INFO<<Form(
"initHistos done")<<endm;
30 void StBarrelMonitorMaker::initAuxBprsHistos(){
32 char tt1[100], tt2[500];
34 if(par_calibPass & kPassPedSub){
36 for(icr=0;icr<mxBprsCrate;icr++) {
37 sprintf(tt1,
"bprsPedResCr%d",icr);
38 sprintf(tt2,
"bprs pedResidua, crate=%d; rawADC-ped ",icr);
39 hBprsA[icr]=
new TH1F(tt1,tt2,200,-50,50);
40 HList->Add( hBprsA[icr]);
44 hTonko0=
new TH2D(
"bprsTnk0",
"entries per caps, all events; BPRS soft ID, capID",mxBtow,0.5,mxBtow+0.5,mxBcap,-0.5,mxBcap-0.5);
45 hTonko1=
new TH2D(
"bprsTnk1",
"rawAdc sum per cap , all events; BPRS soft ID, capID",mxBtow,0.5,mxBtow+0.5,mxBcap,-0.5,mxBcap-0.5);
46 hTonko2=
new TH2D(
"bprsTnk2",
"rawADc^2 sum per cap , all events; BPRS soft ID, capID",mxBtow,0.5,mxBtow+0.5,mxBcap,-0.5,mxBcap-0.5);
54 TH1F *StBarrelMonitorMaker::addBprsEveHisto(
int *cap){
56 char tt1[100], tt2[500];
57 sprintf(tt1,
"bprsRawAdc_eve%03d",nInpEve);
58 sprintf(tt2,
"bprs raw ADC, capsID:%d:%d:%d:%d: eve=%d; softID",cap[0],cap[1],cap[2],cap[3],nInpEve);
60 TH1F *h=
new TH1F(tt1,tt2,mxBtow,0.5,mxBtow+0.5);
67 void StBarrelMonitorMaker::initHistosTiles(
int ibp){
69 char tt1[100], tt2[500];
70 LOG_INFO<<Form(
"initHistos=%s",cTile4[ibp])<<endm;
71 assert(ibp>=0 && ibp<mxBTile);
75 if(!(par_calibPass & kPassPedSub)){
77 if(ibp==kBPrs) adc1=100;
82 sprintf(tt1,
"%s_c0",cTile4[ibp]);
84 sprintf(tt2,
"%s pedestal residua ; %s softID; rawADC-ped",cTile4[ibp],cTile4[ibp]);
85 if(!(par_calibPass & kPassPedSub) ) sprintf(tt2,
"%s rawADC ; %s softID; rawADC",cTile4[ibp],cTile4[ibp]);
87 TH2F *h=
new TH2F(tt1,tt2,mxBtow,0.5,mxBtow+0.5, nb,adc1,adc2);
92 if(ibp==kBPrs && par_bprsHisto==2) {
93 sprintf(tt1,
"bprs3D_c0");
94 if(!(par_calibPass & kPassPedSub)) sprintf(tt2,
"bprs rawADC 3D ; BPRS soft ID; rawADC; capID ");
96 sprintf(tt2,
"bprs ADC 3D ; BPRS soft ID; rawADC-capPed; capID ");
97 hBprs3D=
new TH3F(tt1,tt2,mxBtow,0.5,mxBtow+0.5, nb,adc1,adc2,mxBcap,-0.5,mxBcap-0.5);
105 Lx=h->GetListOfFunctions(); assert(Lx);
106 ln=
new TLine(par_isoMinT3x3adc,0,par_isoMinT3x3adc,100000);
107 ln->SetLineColor(kRed); Lx->Add(ln);
108 ln=
new TLine(par_isoMaxT3x3adc,0,par_isoMinT3x3adc,100000);
109 ln->SetLineColor(kRed); Lx->Add(ln);