fTextSM(new TText*[fknSM]),
fLineCol(new TLine(48.0,0.,48.0,47.0)),
fLineRow(new TLine(0.,24.,96.,24.)),
-fText(new TPaveText(0.2,40.,1.6,90.,"br"))
+fText(new TPaveText(0.2,0.7,0.8,0.9,"NDC"))
{
// ctor
fLineCol->SetLineColor(1);
fTextSM(new TText*[fknSM]) ,
fLineCol(static_cast<TLine*>(qac.fLineCol->Clone())) ,
fLineRow(static_cast<TLine*>(qac.fLineRow->Clone())) ,
-fText(new TPaveText(0.2,40.,1.6,90.,"br"))
+fText(new TPaveText(0.2,0.7,0.8,0.9,"NDC"))
{
// copy ctor
for (Int_t sm = 0 ; sm < fknSM ; sm++){
fTextSM = new TText*[fknSM] ;
fLineCol = static_cast<TLine*>(qac.fLineCol->Clone()) ;
fLineRow = static_cast<TLine*>(qac.fLineRow->Clone()) ;
- fText = new TPaveText(0.2,40.,1.6,90.,"br") ;
+ fText = new TPaveText(0.2,0.7,0.8,0.9,"NDC") ;
for (Int_t sm = 0 ; sm < fknSM ; sm++){
fTextSM[sm] = static_cast<TText *>(qac.fTextSM[sm]->Clone()) ;
}
hdata->GetListOfFunctions()->Add(fTextSM[iSM]);
}
}
- if ( ratio->GetListOfFunctions()->GetEntries() == 0 ){
+ if ( ratio->GetListOfFunctions()->GetEntries() == 0 ){ //adding the object at the beginning
ratio->GetListOfFunctions()->Add(fText) ;
}
printf("%2.2f %% towers out of range [0.8, 1.2]\n", (1-rv)*100);
if(fText){
fText->Clear() ;
- }
- fText->AddText(Form("%2.2f %% towers out of range [0.8, 1.2]", (1-rv)*100));
- if (rv < 0.9) {
- test[specie] = 0.9 ;
- // 2 lines text info for quality
- fText->SetFillColor(2) ;
- fText->AddText(Form("EMCAL = NOK, CALL EXPERTS!!!"));
- }
- else {
- test[specie] = 0.1 ;
- fText->SetFillColor(3) ;
- fText->AddText(Form("EMCAL = OK, ENJOY..."));
- }
+
+ fText->AddText(Form("%2.2f %% towers out of range [0.8, 1.2]", (1-rv)*100));
+ if (rv < 0.9) {
+ test[specie] = 0.9 ;
+ // 2 lines text info for quality
+ fText->SetFillColor(2) ;
+ fText->AddText(Form("EMCAL = NOK, CALL EXPERTS!!!"));
+ }
+ else {
+ test[specie] = 0.1 ;
+ fText->SetFillColor(3) ;
+ fText->AddText(Form("EMCAL = OK, ENJOY..."));
+ }
+ //hdata->Reset("ICE");
+ //ratio->Reset("ICE");
+ }//fText
}
} //finish the checking
}