2 void savePulseShapes(Char_t* pulseFile=
"pulses.root")
10 for(
int iD=1;iD<7;iD++)
12 for(
int iQ=0;iQ<4;iQ++)
17 sprintf(quadName,
"A");
19 sprintf(quadName,
"B");
21 sprintf(quadName,
"C");
23 sprintf(quadName,
"D");
24 sprintf(buffer,
"pulseShapes_disc%d_quad%s",iD,quadName);
25 TCanvas c(buffer,buffer,2000,2000);
28 sprintf(buffer,
"validChargesR_D%d_Q%d",iD,iQ);
29 cout <<
"loading " << buffer <<endl;
30 TH1D* hVC=(TH1D*)f.Get(buffer);
31 sprintf(buffer,
"validChargesR_D%d_Q%s",iD,quadName);
37 sprintf(buffer,
"validChargesP_D%d_Q%d",iD,iQ);
38 cout <<
"loading " << buffer <<endl;
39 TH1D* hVC=(TH1D*)f.Get(buffer);
40 sprintf(buffer,
"validChargesP_D%d_Q%s",iD,quadName);
43 sprintf(buffer,
"validChargesP_D%d_Q%s.png",iD,quadName);
47 sprintf(buffer,
"validPulsesR_D%d_Q%d",iD,iQ);
48 cout <<
"loading " << buffer <<endl;
49 TH1D* hVP=(TH1D*)f.Get(buffer);
50 sprintf(buffer,
"validPulsesR_D%d_Q%s",iD,quadName);
53 sprintf(buffer,
"validPulsesR_D%d_Q%s.png",iD,quadName);
56 sprintf(buffer,
"validPulsesP_D%d_Q%d",iD,iQ);
57 cout <<
"loading " << buffer <<endl;
58 TH1D* hVP=(TH1D*)f.Get(buffer);
59 sprintf(buffer,
"validPulsesP_D%d_Q%s",iD,quadName);
62 sprintf(buffer,
"validChargeAndPulses_D%d_Q%s.png",iD,quadName);