52 if (fT1DRunNumber != 0){
delete [] fT1DRunNumber; fCdelete++;}
66 if ( fCnew != fCdelete )
68 cout <<
"*TEcnaHistos> WRONG MANAGEMENT OF ALLOCATIONS: fCnew = "
69 << fCnew <<
", fCdelete = " << fCdelete << fTTBELL << endl;
79 if ( fCnewRoot != fCdeleteRoot )
81 cout <<
"*TEcnaHistos> WRONG MANAGEMENT OF ROOT ALLOCATIONS: fCnewRoot = "
82 << fCnewRoot <<
", fCdeleteRoot = " << fCdeleteRoot << endl;
86 cout <<
"*TEcnaHistos> BRAVO! GOOD MANAGEMENT OF ROOT ALLOCATIONS:"
87 <<
" fCnewRoot = " << fCnewRoot <<
", fCdeleteRoot = "
88 << fCdeleteRoot << endl;
117 Long_t i_this = (Long_t)
this;
127 if( iCnaParCout == 0 )
134 Long_t iCnaParPaths = pObjectManager->
GetPointerValue(
"TEcnaParPaths");
135 if( iCnaParPaths == 0 )
140 fCfgResultsRootFilePath = fCnaParPaths->ResultsRootFilePath();
141 fCfgHistoryRunListFilePath = fCnaParPaths->HistoryRunListFilePath();
147 {fEcal =
new TEcnaParEcal(pObjectManager, SubDet.Data()); }
153 Long_t iEcalNumbering = pObjectManager->
GetPointerValue(
"TEcnaNumbering");
154 if( iEcalNumbering == 0 )
155 {fEcalNumbering =
new TEcnaNumbering(pObjectManager, SubDet.Data()); }
161 Long_t iCnaParHistos = pObjectManager->
GetPointerValue(
"TEcnaParHistos");
162 if( iCnaParHistos == 0 )
163 {fCnaParHistos =
new TEcnaParHistos(pObjectManager, SubDet.Data()); }
171 {fCnaWrite =
new TEcnaWrite(pObjectManager, SubDet.Data()); }
178 if( iMyRootFile == 0 )
179 {fMyRootFile =
new TEcnaRead(pObjectManager, SubDet.Data()); }
192 SetEcalSubDetector(SubDet.Data());
194 SetAllYminYmaxMemoFromDefaultValues();
210 Int_t MaxCar = fgMaxCar;
218 fMemoPlotH1SamePlus = 0;
219 fMemoPlotD_NOE_ChNb = 0; fMemoPlotD_NOE_ChDs = 0;
220 fMemoPlotD_Ped_ChNb = 0; fMemoPlotD_Ped_ChDs = 0;
221 fMemoPlotD_TNo_ChNb = 0; fMemoPlotD_TNo_ChDs = 0;
222 fMemoPlotD_MCs_ChNb = 0; fMemoPlotD_MCs_ChDs = 0;
223 fMemoPlotD_LFN_ChNb = 0; fMemoPlotD_LFN_ChDs = 0;
224 fMemoPlotD_HFN_ChNb = 0; fMemoPlotD_HFN_ChDs = 0;
225 fMemoPlotD_SCs_ChNb = 0; fMemoPlotD_SCs_ChDs = 0;
226 fMemoPlotD_MSp_SpNb = 0; fMemoPlotD_SSp_SpNb = 0;
227 fMemoPlotD_MSp_SpDs = 0; fMemoPlotD_SSp_SpDs = 0;
228 fMemoPlotD_Adc_EvDs = 0; fMemoPlotD_Adc_EvNb = 0;
229 fMemoPlotH_Ped_Date = 0; fMemoPlotH_TNo_Date = 0;
230 fMemoPlotH_MCs_Date = 0; fMemoPlotH_LFN_Date = 0;
231 fMemoPlotH_HFN_Date = 0; fMemoPlotH_SCs_Date = 0;
232 fMemoPlotH_Ped_RuDs = 0; fMemoPlotH_TNo_RuDs = 0;
233 fMemoPlotH_MCs_RuDs = 0; fMemoPlotH_LFN_RuDs = 0;
234 fMemoPlotH_HFN_RuDs = 0; fMemoPlotH_SCs_RuDs = 0;
236 fMemoColorH1SamePlus = 0;
237 fMemoColorD_NOE_ChNb = 0; fMemoColorD_NOE_ChDs = 0;
238 fMemoColorD_Ped_ChNb = 0; fMemoColorD_Ped_ChDs = 0;
239 fMemoColorD_TNo_ChNb = 0; fMemoColorD_TNo_ChDs = 0;
240 fMemoColorD_MCs_ChNb = 0; fMemoColorD_MCs_ChDs = 0;
241 fMemoColorD_LFN_ChNb = 0; fMemoColorD_LFN_ChDs = 0;
242 fMemoColorD_HFN_ChNb = 0; fMemoColorD_HFN_ChDs = 0;
243 fMemoColorD_SCs_ChNb = 0; fMemoColorD_SCs_ChDs = 0;
244 fMemoColorD_MSp_SpNb = 0; fMemoColorD_SSp_SpNb = 0;
245 fMemoColorD_MSp_SpDs = 0; fMemoColorD_SSp_SpDs = 0;
246 fMemoColorD_Adc_EvDs = 0; fMemoColorD_Adc_EvNb = 0;
247 fMemoColorH_Ped_Date = 0; fMemoColorH_TNo_Date = 0;
248 fMemoColorH_MCs_Date = 0; fMemoColorH_LFN_Date = 0;
249 fMemoColorH_HFN_Date = 0; fMemoColorH_SCs_Date = 0;
250 fMemoColorH_Ped_RuDs = 0; fMemoColorH_TNo_RuDs = 0;
251 fMemoColorH_MCs_RuDs = 0; fMemoColorH_LFN_RuDs = 0;
252 fMemoColorH_HFN_RuDs = 0; fMemoColorH_SCs_RuDs = 0;
255 fCanvSameH1SamePlus = 0;
256 fCanvSameD_NOE_ChNb = 0; fCanvSameD_NOE_ChDs = 0;
257 fCanvSameD_Ped_ChNb = 0; fCanvSameD_Ped_ChDs = 0;
258 fCanvSameD_TNo_ChNb = 0; fCanvSameD_TNo_ChDs = 0;
259 fCanvSameD_MCs_ChNb = 0; fCanvSameD_MCs_ChDs = 0;
260 fCanvSameD_LFN_ChNb = 0; fCanvSameD_LFN_ChDs = 0;
261 fCanvSameD_HFN_ChNb = 0; fCanvSameD_HFN_ChDs = 0;
262 fCanvSameD_SCs_ChNb = 0; fCanvSameD_SCs_ChDs = 0;
263 fCanvSameD_MSp_SpNb = 0; fCanvSameD_SSp_SpNb = 0;
264 fCanvSameD_MSp_SpDs = 0; fCanvSameD_SSp_SpDs = 0;
265 fCanvSameD_Adc_EvDs = 0; fCanvSameD_Adc_EvNb = 0;
266 fCanvSameH_Ped_Date = 0; fCanvSameH_TNo_Date = 0;
267 fCanvSameH_MCs_Date = 0; fCanvSameH_LFN_Date = 0;
268 fCanvSameH_HFN_Date = 0; fCanvSameH_SCs_Date = 0;
269 fCanvSameH_Ped_RuDs = 0; fCanvSameH_TNo_RuDs = 0;
270 fCanvSameH_MCs_RuDs = 0; fCanvSameH_LFN_RuDs = 0;
271 fCanvSameH_HFN_RuDs = 0; fCanvSameH_SCs_RuDs = 0;
275 fFlagScaleX.Resize(MaxCar);
279 fFlagScaleY.Resize(MaxCar);
283 fFlagColPal.Resize(MaxCar);
284 fFlagColPal =
"Black/Red/Blue";
288 fFlagGeneralTitle.Resize(MaxCar);
289 fFlagGeneralTitle =
"";
292 fOptScaleLinx = 31400;
293 fOptScaleLogx = 31401;
294 fOptScaleLiny = 31402;
295 fOptScaleLogy = 31403;
302 fCovarianceMatrix.Resize(MaxCar);
303 fCovarianceMatrix =
"Cov";
305 fCorrelationMatrix.Resize(MaxCar);
306 fCorrelationMatrix =
"Cor";
309 fLFBetweenStins.Resize(MaxCar);
310 fLFBetweenStins =
"MttLF";
312 fHFBetweenStins.Resize(MaxCar);
313 fHFBetweenStins =
"MttHF";
316 fLFBetweenChannels.Resize(MaxCar);
317 fLFBetweenChannels =
"MccLF";
319 fHFBetweenChannels.Resize(MaxCar);
320 fHFBetweenChannels =
"MccHF";
323 fBetweenSamples.Resize(MaxCar);
324 fBetweenSamples =
"Mss";
329 fTextPaveSize = (Float_t)0.025;
333 fXMemoH1SamePlus =
"";
334 fXMemoD_NOE_ChNb =
"";
335 fXMemoD_NOE_ChDs =
"";
336 fXMemoD_Ped_ChNb =
"";
337 fXMemoD_Ped_ChDs =
"";
338 fXMemoD_TNo_ChNb =
"";
339 fXMemoD_TNo_ChDs =
"";
340 fXMemoD_MCs_ChNb =
"";
341 fXMemoD_MCs_ChDs =
"";
342 fXMemoD_LFN_ChNb =
"";
343 fXMemoD_LFN_ChDs =
"";
344 fXMemoD_HFN_ChNb =
"";
345 fXMemoD_HFN_ChDs =
"";
346 fXMemoD_SCs_ChNb =
"";
347 fXMemoD_SCs_ChDs =
"";
348 fXMemoD_MSp_SpNb =
"";
349 fXMemoD_MSp_SpDs =
"";
350 fXMemoD_SSp_SpNb =
"";
351 fXMemoD_SSp_SpDs =
"";
352 fXMemoD_Adc_EvDs =
"";
353 fXMemoD_Adc_EvNb =
"";
354 fXMemoH_Ped_Date =
"";
355 fXMemoH_TNo_Date =
"";
356 fXMemoH_MCs_Date =
"";
357 fXMemoH_LFN_Date =
"";
358 fXMemoH_HFN_Date =
"";
359 fXMemoH_SCs_Date =
"";
360 fXMemoH_Ped_RuDs =
"";
361 fXMemoH_TNo_RuDs =
"";
362 fXMemoH_MCs_RuDs =
"";
363 fXMemoH_LFN_RuDs =
"";
364 fXMemoH_HFN_RuDs =
"";
365 fXMemoH_SCs_RuDs =
"";
367 fYMemoH1SamePlus =
"";
368 fYMemoD_NOE_ChNb =
"";
369 fYMemoD_NOE_ChDs =
"";
370 fYMemoD_Ped_ChNb =
"";
371 fYMemoD_Ped_ChDs =
"";
372 fYMemoD_TNo_ChNb =
"";
373 fYMemoD_TNo_ChDs =
"";
374 fYMemoD_MCs_ChNb =
"";
375 fYMemoD_MCs_ChDs =
"";
376 fYMemoD_LFN_ChNb =
"";
377 fYMemoD_LFN_ChDs =
"";
378 fYMemoD_HFN_ChNb =
"";
379 fYMemoD_HFN_ChDs =
"";
380 fYMemoD_SCs_ChNb =
"";
381 fYMemoD_SCs_ChDs =
"";
382 fYMemoD_MSp_SpNb =
"";
383 fYMemoD_MSp_SpDs =
"";
384 fYMemoD_SSp_SpNb =
"";
385 fYMemoD_SSp_SpDs =
"";
386 fYMemoD_Adc_EvDs =
"";
387 fYMemoD_Adc_EvNb =
"";
388 fYMemoH_Ped_Date =
"";
389 fYMemoH_TNo_Date =
"";
390 fYMemoH_MCs_Date =
"";
391 fYMemoH_LFN_Date =
"";
392 fYMemoH_HFN_Date =
"";
393 fYMemoH_SCs_Date =
"";
394 fYMemoH_Ped_RuDs =
"";
395 fYMemoH_TNo_RuDs =
"";
396 fYMemoH_MCs_RuDs =
"";
397 fYMemoH_LFN_RuDs =
"";
398 fYMemoH_HFN_RuDs =
"";
399 fYMemoH_SCs_RuDs =
"";
401 fNbBinsMemoH1SamePlus = 0;
402 fNbBinsMemoD_NOE_ChNb = 0;
403 fNbBinsMemoD_NOE_ChDs = 0;
404 fNbBinsMemoD_Ped_ChNb = 0;
405 fNbBinsMemoD_Ped_ChDs = 0;
406 fNbBinsMemoD_TNo_ChNb = 0;
407 fNbBinsMemoD_TNo_ChDs = 0;
408 fNbBinsMemoD_MCs_ChNb = 0;
409 fNbBinsMemoD_MCs_ChDs = 0;
410 fNbBinsMemoD_LFN_ChNb = 0;
411 fNbBinsMemoD_LFN_ChDs = 0;
412 fNbBinsMemoD_HFN_ChNb = 0;
413 fNbBinsMemoD_HFN_ChDs = 0;
414 fNbBinsMemoD_SCs_ChNb = 0;
415 fNbBinsMemoD_SCs_ChDs = 0;
416 fNbBinsMemoD_MSp_SpNb = 0;
417 fNbBinsMemoD_MSp_SpDs = 0;
418 fNbBinsMemoD_SSp_SpNb = 0;
419 fNbBinsMemoD_SSp_SpDs = 0;
420 fNbBinsMemoD_Adc_EvDs = 0;
421 fNbBinsMemoD_Adc_EvNb = 0;
422 fNbBinsMemoH_Ped_Date = 0;
423 fNbBinsMemoH_TNo_Date = 0;
424 fNbBinsMemoH_MCs_Date = 0;
425 fNbBinsMemoH_LFN_Date = 0;
426 fNbBinsMemoH_HFN_Date = 0;
427 fNbBinsMemoH_SCs_Date = 0;
428 fNbBinsMemoH_Ped_RuDs = 0;
429 fNbBinsMemoH_TNo_RuDs = 0;
430 fNbBinsMemoH_MCs_RuDs = 0;
431 fNbBinsMemoH_LFN_RuDs = 0;
432 fNbBinsMemoH_HFN_RuDs = 0;
433 fNbBinsMemoH_SCs_RuDs = 0;
438 fCurrentCanvasName =
"?";
475 fClosedH1SamePlus = kFALSE;
476 fClosedD_NOE_ChNb = kFALSE;
477 fClosedD_NOE_ChDs = kFALSE;
478 fClosedD_Ped_ChNb = kFALSE;
479 fClosedD_Ped_ChDs = kFALSE;
480 fClosedD_TNo_ChNb = kFALSE;
481 fClosedD_TNo_ChDs = kFALSE;
482 fClosedD_MCs_ChNb = kFALSE;
483 fClosedD_MCs_ChDs = kFALSE;
484 fClosedD_LFN_ChNb = kFALSE;
485 fClosedD_LFN_ChDs = kFALSE;
486 fClosedD_HFN_ChNb = kFALSE;
487 fClosedD_HFN_ChDs = kFALSE;
488 fClosedD_SCs_ChNb = kFALSE;
489 fClosedD_SCs_ChDs = kFALSE;
490 fClosedD_MSp_SpNb = kFALSE;
491 fClosedD_MSp_SpDs = kFALSE;
492 fClosedD_SSp_SpNb = kFALSE;
493 fClosedD_SSp_SpDs = kFALSE;
494 fClosedD_Adc_EvDs = kFALSE;
495 fClosedD_Adc_EvNb = kFALSE;
496 fClosedH_Ped_Date = kFALSE;
497 fClosedH_TNo_Date = kFALSE;
498 fClosedH_MCs_Date = kFALSE;
499 fClosedH_LFN_Date = kFALSE;
500 fClosedH_HFN_Date = kFALSE;
501 fClosedH_SCs_Date = kFALSE;
502 fClosedH_Ped_RuDs = kFALSE;
503 fClosedH_TNo_RuDs = kFALSE;
504 fClosedH_MCs_RuDs = kFALSE;
505 fClosedH_LFN_RuDs = kFALSE;
506 fClosedH_HFN_RuDs = kFALSE;
507 fClosedH_SCs_RuDs = kFALSE;
545 fPavTxtH1SamePlus = 0;
546 fPavTxtD_NOE_ChNb = 0;
547 fPavTxtD_NOE_ChDs = 0;
548 fPavTxtD_Ped_ChNb = 0;
549 fPavTxtD_Ped_ChDs = 0;
550 fPavTxtD_TNo_ChNb = 0;
551 fPavTxtD_TNo_ChDs = 0;
552 fPavTxtD_MCs_ChNb = 0;
553 fPavTxtD_MCs_ChDs = 0;
554 fPavTxtD_LFN_ChNb = 0;
555 fPavTxtD_LFN_ChDs = 0;
556 fPavTxtD_HFN_ChNb = 0;
557 fPavTxtD_HFN_ChDs = 0;
558 fPavTxtD_SCs_ChNb = 0;
559 fPavTxtD_SCs_ChDs = 0;
560 fPavTxtD_MSp_SpNb = 0;
561 fPavTxtD_MSp_SpDs = 0;
562 fPavTxtD_SSp_SpNb = 0;
563 fPavTxtD_SSp_SpDs = 0;
564 fPavTxtD_Adc_EvDs = 0;
565 fPavTxtD_Adc_EvNb = 0;
566 fPavTxtH_Ped_Date = 0;
567 fPavTxtH_TNo_Date = 0;
568 fPavTxtH_MCs_Date = 0;
569 fPavTxtH_LFN_Date = 0;
570 fPavTxtH_HFN_Date = 0;
571 fPavTxtH_SCs_Date = 0;
572 fPavTxtH_Ped_RuDs = 0;
573 fPavTxtH_TNo_RuDs = 0;
574 fPavTxtH_MCs_RuDs = 0;
575 fPavTxtH_LFN_RuDs = 0;
576 fPavTxtH_HFN_RuDs = 0;
577 fPavTxtH_SCs_RuDs = 0;
617 fNbOfListFileH_Ped_Date = 0;
618 fNbOfListFileH_TNo_Date = 0;
619 fNbOfListFileH_MCs_Date = 0;
620 fNbOfListFileH_LFN_Date = 0;
621 fNbOfListFileH_HFN_Date = 0;
622 fNbOfListFileH_SCs_Date = 0;
624 fNbOfListFileH_Ped_RuDs = 0;
625 fNbOfListFileH_TNo_RuDs = 0;
626 fNbOfListFileH_MCs_RuDs = 0;
627 fNbOfListFileH_LFN_RuDs = 0;
628 fNbOfListFileH_HFN_RuDs = 0;
629 fNbOfListFileH_SCs_RuDs = 0;
631 fNbOfExistingRuns = 0;
634 fFapMaxNbOfRuns = -1;
637 fFapFileRuns.Resize(MaxCar);
638 fFapFileRuns =
"(file with list of runs parameters: no info)";
642 fStartEvolDate =
"Start date: not known";
643 fStopEvolDate =
"Stop date: not known";
648 fRunType =
"Run type: not known";
653 fMyRootFileName.Resize(MaxCar);
654 fMyRootFileName =
"No ROOT file name available (fMyRootFileName).";
656 fFapAnaType =
"Analysis name: not known";
659 fFapFirstReqEvtNumber = 0;
660 fFapLastReqEvtNumber = 0;
666 fMemoAlreadyRead = 0;
670 TVectorD fReadHistoDummy(fUnev);
671 TMatrixD fReadMatrixDummy(fUnev, fUnev);
674 fAsciiFileName =
"?";
683 Int_t MaxCar = fgMaxCar;
684 fFlagSubDet.Resize(MaxCar);
685 fFlagSubDet = fEcal->GetEcalSubDetector();
689 fFapStexName.Resize(MaxCar);
690 fFapStexName =
"no info for Stex";
692 fFapStinName.Resize(MaxCar);
693 fFapStinName =
"no info for Stin";
695 fFapXtalName.Resize(MaxCar);
696 fFapXtalName =
"no info for Xtal";
698 fFapEchaName.Resize(MaxCar);
699 fFapEchaName =
"no info for Echa";
701 if( fFlagSubDet ==
"EB" )
704 fFapStinName =
"Tower";
705 fFapXtalName =
"Xtal";
706 fFapEchaName =
"Chan";
707 fFapStexBarrel = fEcalNumbering->GetSMHalfBarrel(fFapStexNumber);
710 if( fFlagSubDet ==
"EE" )
712 fFapStexName =
"Dee";
714 fFapXtalName =
"Xtal";
715 fFapEchaName =
"Chan";
716 fFapStexType = fEcalNumbering->GetEEDeeType(fFapStexNumber);
717 fFapStexDir =
"right";
718 fFapStinQuadType =
"top";
723 fOnlyOnePlot.Resize(MaxCar);
724 fOnlyOnePlot = fCnaParHistos->GetCodeOnlyOnePlot();
727 fSeveralPlot.Resize(MaxCar);
728 fSeveralPlot = fCnaParHistos->GetCodeSeveralPlot();
731 fSameOnePlot.Resize(MaxCar);
732 fSameOnePlot = fCnaParHistos->GetCodeSameOnePlot();
735 fAllXtalsInStinPlot.Resize(MaxCar);
736 fAllXtalsInStinPlot = fCnaParHistos->GetCodeAllXtalsInStinPlot();
738 fPlotAllXtalsInStin = fCnaParHistos->GetCodePlotAllXtalsInStin();
750 const Int_t& xArgRunNumber,
const Int_t& xArgFirstReqEvtNumber,
751 const Int_t& xArgLastReqEvtNumber,
const Int_t& xArgReqNbOfEvts,
752 const Int_t& xArgStexNumber)
756 fFapAnaType = xArgAnaType;
757 fFapNbOfSamples = xArgNbOfSamples;
758 fFapRunNumber = xArgRunNumber;
759 fFapFirstReqEvtNumber = xArgFirstReqEvtNumber;
760 fFapLastReqEvtNumber = xArgLastReqEvtNumber;
761 fFapReqNbOfEvts = xArgReqNbOfEvts;
762 fFapStexNumber = xArgStexNumber;
764 InitSpecParBeforeFileReading();
771 InitSpecParBeforeFileReading();
800 fFlagGeneralTitle = title.Data();
805 if ( option_scale ==
"LOG" ){fFlagScaleX =
"LOG";}
810 if ( option_scale ==
"LOG" ){fFlagScaleY =
"LOG";}
814 fFlagColPal =
"Black/Red/Blue";
815 if ( !(option_palette ==
"Rainbow" || option_palette ==
"rainbow") ){fFlagColPal =
"Black/Red/Blue";}
816 if ( option_palette ==
"Rainbow" || option_palette ==
"rainbow" ){fFlagColPal =
"Rainbow";}
820 fStartDate = start_date.Data();
821 fStopDate = stop_date.Data();
825 fRunType = run_type.Data();
829 fFapNbOfEvts = nb_of_evts;
893 const TString& UserCorOrCov,
const TString& UserBetweenWhat)
894 {PlotMatrix(read_matrix_corcc, UserCorOrCov, UserBetweenWhat,
"");}
897 const TString& UserCorOrCov,
const TString& UserBetweenWhat,
898 const TString& UserPlotOption)
900 TString CallingMethod =
"2D";
902 TString StandardPlotOption = fCnaParHistos->BuildStandardPlotOption(CallingMethod, UserPlotOption);
904 TString BetweenWhat = fCnaParHistos->BuildStandardBetweenWhatCode(CallingMethod, UserBetweenWhat);
905 TString CorOrCov = fCnaParHistos->BuildStandardCovOrCorCode(CallingMethod, UserCorOrCov);
907 if( BetweenWhat !=
"?" && CorOrCov !=
"?" )
909 if( BetweenWhat ==
"MttLF" || BetweenWhat ==
"MttHF" )
912 ViewMatrix(read_matrix_corcc, fAlreadyRead,
913 fZerv, fZerv, fZerv, CorOrCov, BetweenWhat, StandardPlotOption);
915 if( BetweenWhat ==
"MccLF" ){StexHocoVecoLHFCorcc(
"LF");}
916 if( BetweenWhat ==
"MccHF" ){StexHocoVecoLHFCorcc(
"HF");}
919 {fFlagUserHistoMin =
"OFF"; fFlagUserHistoMax =
"OFF";
920 cout <<
"!TEcnaHistos::PlotMatrix(...)> Histo cannot be reached." << fTTBELL << endl;}
924 {PlotMatrix(UserCorOrCov, UserBetweenWhat,
"");}
927 const TString& UserPlotOption)
929 TString CallingMethod =
"2D";
931 TString StandardPlotOption = fCnaParHistos->BuildStandardPlotOption(CallingMethod, UserPlotOption);
933 TString BetweenWhat = fCnaParHistos->BuildStandardBetweenWhatCode(CallingMethod, UserBetweenWhat);
934 TString CorOrCov = fCnaParHistos->BuildStandardCovOrCorCode(CallingMethod, UserCorOrCov);
936 if( BetweenWhat !=
"?" && CorOrCov !=
"?" )
938 if( BetweenWhat ==
"MttLF" || BetweenWhat ==
"MttHF" )
940 ViewMatrix(fReadMatrixDummy, fTobeRead,
941 fZerv, fZerv, fZerv, CorOrCov, BetweenWhat, StandardPlotOption);
943 if( BetweenWhat ==
"MccLF" ){StexHocoVecoLHFCorcc(
"LF");}
944 if( BetweenWhat ==
"MccHF" ){StexHocoVecoLHFCorcc(
"HF");}
947 {fFlagUserHistoMin =
"OFF"; fFlagUserHistoMax =
"OFF";
948 cout <<
"!TEcnaHistos::PlotMatrix(...)> Histo cannot be reached." << fTTBELL << endl;}
954 const TString& UserCorOrCov,
const TString& UserBetweenWhat,
955 const Int_t& arg_n1,
const Int_t& arg_n2)
956 {PlotMatrix(read_matrix, UserCorOrCov, UserBetweenWhat, arg_n1, arg_n2,
"");}
959 const TString& UserCorOrCov,
const TString& UserBetweenWhat,
960 const Int_t& arg_n1,
const Int_t& arg_n2,
961 const TString& UserPlotOption)
963 TString CallingMethod =
"2D";
965 TString StandardPlotOption = fCnaParHistos->BuildStandardPlotOption(CallingMethod, UserPlotOption);
967 TString BetweenWhat = fCnaParHistos->BuildStandardBetweenWhatCode(CallingMethod, UserBetweenWhat);
968 TString CorOrCov = fCnaParHistos->BuildStandardCovOrCorCode(CallingMethod, UserCorOrCov);
970 if( BetweenWhat !=
"?" && CorOrCov !=
"?" )
972 if( BetweenWhat ==
"MccLF" || BetweenWhat ==
"MccHF" )
974 Int_t cStexStin_A = arg_n1;
975 Int_t cStexStin_B = arg_n2;
977 ViewMatrix(read_matrix, fAlreadyRead,
978 cStexStin_A, cStexStin_B, fZerv, CorOrCov, BetweenWhat, StandardPlotOption);
981 if( BetweenWhat ==
"Mss" )
983 Int_t n1StexStin = arg_n1;
984 Int_t i0StinEcha = arg_n2;
985 if( fFlagSubDet ==
"EE" ){n1StexStin = fEcalNumbering->Get1DeeSCEcnaFromDeeSCCons(fFapStexNumber, arg_n1);}
987 ViewMatrix(read_matrix, fAlreadyRead,
988 n1StexStin, fZerv, i0StinEcha, CorOrCov, BetweenWhat, StandardPlotOption);
992 {fFlagUserHistoMin =
"OFF"; fFlagUserHistoMax =
"OFF";
993 cout <<
"!TEcnaHistos::PlotMatrix(...)> Histo cannot be reached." << fTTBELL << endl;}
997 const Int_t& arg_n1,
const Int_t& arg_n2)
998 {PlotMatrix(UserCorOrCov, UserBetweenWhat, arg_n1, arg_n2,
"");}
1001 const Int_t& arg_n1,
const Int_t& arg_n2,
1002 const TString& UserPlotOption)
1004 TString CallingMethod =
"2D";
1006 TString StandardPlotOption = fCnaParHistos->BuildStandardPlotOption(CallingMethod, UserPlotOption);
1008 TString StandardBetweenWhat = fCnaParHistos->BuildStandardBetweenWhatCode(CallingMethod, UserBetweenWhat);
1009 TString StandardCorOrCov = fCnaParHistos->BuildStandardCovOrCorCode(CallingMethod, UserCorOrCov);
1011 if( StandardBetweenWhat !=
"?" && StandardCorOrCov !=
"?" )
1013 if( StandardBetweenWhat ==
"MccLF" || StandardBetweenWhat ==
"MccHF" )
1015 Int_t cStexStin_A = arg_n1;
1016 Int_t cStexStin_B = arg_n2;
1017 ViewMatrix(fReadMatrixDummy, fTobeRead,
1018 cStexStin_A, cStexStin_B, fZerv, StandardCorOrCov, StandardBetweenWhat, StandardPlotOption);
1021 if( StandardBetweenWhat ==
"Mss" )
1023 Int_t n1StexStin = arg_n1;
1024 Int_t i0StinEcha = arg_n2;
1025 if( fFlagSubDet ==
"EE" ){n1StexStin = fEcalNumbering->Get1DeeSCEcnaFromDeeSCCons(fFapStexNumber, arg_n1);}
1027 ViewMatrix(fReadMatrixDummy, fTobeRead,
1028 n1StexStin, fZerv, i0StinEcha, StandardCorOrCov, StandardBetweenWhat, StandardPlotOption);
1032 {fFlagUserHistoMin =
"OFF"; fFlagUserHistoMax =
"OFF";
1033 cout <<
"!TEcnaHistos::PlotMatrix(...)> Histo cannot be reached." << fTTBELL << endl;}
1044 TString CallingMethod =
"2DS";
1046 TString StandardHistoCode = fCnaParHistos->BuildStandard1DHistoCodeY(CallingMethod, UserHistoCode);
1047 if( StandardHistoCode !=
"?" )
1049 TString TechHistoCode = fCnaParHistos->GetTechHistoCode(StandardHistoCode);
1050 TString StandardDetectorCode = fCnaParHistos->BuildStandardDetectorCode(UserDetector);
1051 if( StandardDetectorCode !=
"?" )
1058 if( StandardDetectorCode ==
"SM" || StandardDetectorCode ==
"Dee" )
1059 {ViewStex(fReadHistoDummy, fTobeRead, TechHistoCode);}
1060 if( StandardDetectorCode ==
"EB" || StandardDetectorCode ==
"EE" )
1061 {ViewStas(fReadHistoDummy, fTobeRead, TechHistoCode);}
1064 {fFlagUserHistoMin =
"OFF"; fFlagUserHistoMax =
"OFF";
1065 cout <<
"!TEcnaHistos::PlotDetector(...)> Histo cannot be reached." << fTTBELL << endl;}
1068 {fFlagUserHistoMin =
"OFF"; fFlagUserHistoMax =
"OFF";
1069 cout <<
"!TEcnaHistos::PlotDetector(...)> Histo cannot be reached." << fTTBELL << endl;}
1074 TString CallingMethod =
"2DS";
1076 TString StandardHistoCode = fCnaParHistos->BuildStandard1DHistoCodeY(CallingMethod, UserHistoCode);
1077 if( StandardHistoCode !=
"?" )
1079 TString TechHistoCode = fCnaParHistos->GetTechHistoCode(StandardHistoCode);
1080 TString StandardDetectorCode = fCnaParHistos->BuildStandardDetectorCode(UserDetector);
1081 if( StandardDetectorCode !=
"?" )
1090 if( StandardDetectorCode ==
"SM" || StandardDetectorCode ==
"Dee" )
1091 {ViewStex(read_histo, fAlreadyRead, TechHistoCode);}
1092 if( StandardDetectorCode ==
"EB" || StandardDetectorCode ==
"EE" )
1093 {ViewStas(read_histo, fAlreadyRead, TechHistoCode);}
1096 {fFlagUserHistoMin =
"OFF"; fFlagUserHistoMax =
"OFF";
1097 cout <<
"!TEcnaHistos::PlotDetector(...)> Histo cannot be reached." << fTTBELL << endl;}
1100 {fFlagUserHistoMin =
"OFF"; fFlagUserHistoMax =
"OFF";
1101 cout <<
"!TEcnaHistos::PlotDetector(...)> Histo cannot be reached." << fTTBELL << endl;}
1110 const TString& User_X_Quantity,
const TString& User_Y_Quantity,
1111 const TString& UserDetector)
1112 {Plot1DHisto(InputHisto, User_X_Quantity, User_Y_Quantity, UserDetector,
"");}
1115 const TString& User_X_Quantity,
const TString& User_Y_Quantity,
1116 const TString& UserDetector,
1117 const TString& UserPlotOption)
1119 TString CallingMethod =
"1D";
1121 TString StandardPlotOption = fCnaParHistos->BuildStandardPlotOption(CallingMethod, UserPlotOption);
1123 TString Standard_X_Quantity = fCnaParHistos->BuildStandard1DHistoCodeX(CallingMethod, User_X_Quantity);
1124 TString Standard_Y_Quantity = fCnaParHistos->BuildStandard1DHistoCodeY(CallingMethod, User_Y_Quantity);
1126 if( Standard_X_Quantity !=
"?" && Standard_Y_Quantity !=
"?" )
1128 TString TechHistoCode = fCnaParHistos->GetTechHistoCode(Standard_X_Quantity, Standard_Y_Quantity);
1129 if( fAlreadyRead > 1 ){fAlreadyRead = 1;}
1130 TString StandardDetectorCode = fCnaParHistos->BuildStandardDetectorCode(UserDetector);
1131 if( StandardDetectorCode !=
"?" )
1133 if( StandardDetectorCode ==
"EB" || StandardDetectorCode ==
"EE" ){fFapStexNumber = 0;}
1134 ViewHisto(InputHisto, fAlreadyRead, fZerv, fZerv, fZerv, TechHistoCode, StandardPlotOption);
1137 {fFlagUserHistoMin =
"OFF"; fFlagUserHistoMax =
"OFF";
1138 cout <<
"!TEcnaHistos::Plot1DHisto(...)> Histo cannot be reached." << fTTBELL << endl;}
1141 {fFlagUserHistoMin =
"OFF"; fFlagUserHistoMax =
"OFF";
1142 cout <<
"!TEcnaHistos::Plot1DHisto(...)> Histo cannot be reached." << fTTBELL << endl;}
1146 const TString& UserDetector)
1147 {Plot1DHisto(User_X_Quantity, User_Y_Quantity, UserDetector,
"");}
1150 const TString& UserDetector,
const TString& UserPlotOption)
1152 TString CallingMethod =
"1D";
1154 TString StandardPlotOption = fCnaParHistos->BuildStandardPlotOption(CallingMethod, UserPlotOption);
1156 TString Standard_X_Quantity = fCnaParHistos->BuildStandard1DHistoCodeX(CallingMethod, User_X_Quantity);
1157 TString Standard_Y_Quantity = fCnaParHistos->BuildStandard1DHistoCodeY(CallingMethod, User_Y_Quantity);
1159 if( Standard_X_Quantity !=
"?" && Standard_Y_Quantity !=
"?" )
1161 TString TechHistoCode = fCnaParHistos->GetTechHistoCode(Standard_X_Quantity, Standard_Y_Quantity);
1162 TString StandardDetectorCode = fCnaParHistos->BuildStandardDetectorCode(UserDetector);
1163 if( StandardDetectorCode !=
"?" )
1165 if( StandardDetectorCode ==
"EB" || StandardDetectorCode ==
"EE" ){fFapStexNumber = 0;}
1166 ViewHisto(fReadHistoDummy, fTobeRead, fZerv, fZerv, fZerv, TechHistoCode, StandardPlotOption);
1169 {fFlagUserHistoMin =
"OFF"; fFlagUserHistoMax =
"OFF";
1170 cout <<
"!TEcnaHistos::Plot1DHisto(...)> Histo cannot be reached." << fTTBELL << endl;}
1173 {fFlagUserHistoMin =
"OFF"; fFlagUserHistoMax =
"OFF";
1174 cout <<
"!TEcnaHistos::Plot1DHisto(...)> Histo cannot be reached." << fTTBELL << endl;}
1184 const TString& User_X_Quantity,
const TString& User_Y_Quantity,
1185 const Int_t& n1StexStin)
1186 {Plot1DHisto(InputHisto, User_X_Quantity, User_Y_Quantity, n1StexStin,
"");}
1189 const TString& User_X_Quantity,
const TString& User_Y_Quantity,
1190 const Int_t& n1StexStin,
1191 const TString& UserPlotOption)
1193 TString CallingMethod =
"1DX";
1194 TString StandardPlotOption = fCnaParHistos->BuildStandardPlotOption(CallingMethod, UserPlotOption);
1195 Int_t i0StinEcha = 0;
1196 Plot1DHisto(InputHisto, User_X_Quantity, User_Y_Quantity, n1StexStin, i0StinEcha, StandardPlotOption);
1201 const TString& User_X_Quantity,
const TString& User_Y_Quantity,
1202 const Int_t& n1StexStin,
const Int_t& i0StinEcha)
1203 {Plot1DHisto(InputHisto, User_X_Quantity, User_Y_Quantity, n1StexStin, i0StinEcha,
"");}
1206 const TString& User_X_Quantity,
const TString& User_Y_Quantity,
1207 const Int_t& n1StexStin,
const Int_t& i0StinEcha,
1208 const TString& UserPlotOption)
1210 TString CallingMethod =
"1D";
1211 TString StandardPlotOption = fCnaParHistos->BuildStandardPlotOption(CallingMethod, UserPlotOption);
1212 TString Standard_X_Quantity = fCnaParHistos->BuildStandard1DHistoCodeX(CallingMethod, User_X_Quantity);
1213 TString Standard_Y_Quantity = fCnaParHistos->BuildStandard1DHistoCodeY(CallingMethod, User_Y_Quantity);
1215 TString TechHistoCode = fCnaParHistos->GetTechHistoCode(Standard_X_Quantity, Standard_Y_Quantity);
1217 if( Standard_X_Quantity !=
"?" && Standard_Y_Quantity !=
"?" )
1220 if( StandardPlotOption != fAllXtalsInStinPlot )
1222 ViewHisto(InputHisto, fAlreadyRead, n1StexStin, i0StinEcha, fZerv, TechHistoCode, StandardPlotOption);
1225 if( StandardPlotOption == fAllXtalsInStinPlot && fAlreadyRead >= 1 && fAlreadyRead <= fEcal->MaxCrysInStin() )
1227 if( Standard_X_Quantity ==
"Smp" && Standard_Y_Quantity ==
"MSp" )
1228 {XtalSamplesEv(InputHisto, fAlreadyRead, n1StexStin, i0StinEcha, StandardPlotOption);}
1229 if( Standard_X_Quantity ==
"MSp" && Standard_Y_Quantity ==
"NOS" )
1230 {EvSamplesXtals(InputHisto, fAlreadyRead, n1StexStin, i0StinEcha, StandardPlotOption);}
1231 if( Standard_X_Quantity ==
"Smp" && Standard_Y_Quantity ==
"SSp" )
1232 {XtalSamplesSigma(InputHisto, fAlreadyRead, n1StexStin, i0StinEcha, StandardPlotOption);}
1233 if( Standard_X_Quantity ==
"SSp" && Standard_Y_Quantity ==
"NOS" )
1234 {SigmaSamplesXtals(InputHisto, fAlreadyRead, n1StexStin, i0StinEcha, StandardPlotOption);}
1238 {fFlagUserHistoMin =
"OFF"; fFlagUserHistoMax =
"OFF";
1239 cout <<
"!TEcnaHistos::Plot1DHisto(...)> Histo cannot be reached." << fTTBELL << endl;}
1243 const Int_t& n1StexStin,
const Int_t& i0StinEcha)
1244 {Plot1DHisto(User_X_Quantity, User_Y_Quantity, n1StexStin, i0StinEcha,
"");}
1247 const Int_t& n1StexStin,
const Int_t& i0StinEcha,
1248 const TString& UserPlotOption)
1250 TString CallingMethod =
"1D";
1252 TString StandardPlotOption = fCnaParHistos->BuildStandardPlotOption(CallingMethod, UserPlotOption);
1254 TString Standard_X_Quantity = fCnaParHistos->BuildStandard1DHistoCodeX(CallingMethod, User_X_Quantity);
1255 TString Standard_Y_Quantity = fCnaParHistos->BuildStandard1DHistoCodeY(CallingMethod, User_Y_Quantity);
1257 if( Standard_X_Quantity !=
"?" && Standard_Y_Quantity !=
"?" )
1259 if( StandardPlotOption != fAllXtalsInStinPlot )
1261 TString TechHistoCode = fCnaParHistos->GetTechHistoCode(Standard_X_Quantity, Standard_Y_Quantity);
1262 ViewHisto(fReadHistoDummy, fTobeRead, n1StexStin, i0StinEcha, fZerv, TechHistoCode, StandardPlotOption);
1264 if( StandardPlotOption == fAllXtalsInStinPlot && fAlreadyRead >= 1 && fAlreadyRead <= fEcal->MaxCrysInStin() )
1266 if( Standard_X_Quantity ==
"Smp" && Standard_Y_Quantity ==
"MSp" )
1267 {XtalSamplesEv(fReadHistoDummy, fTobeRead, n1StexStin, i0StinEcha, StandardPlotOption);}
1268 if( Standard_X_Quantity ==
"MSp" && Standard_Y_Quantity ==
"NOS" )
1269 {EvSamplesXtals(fReadHistoDummy, fTobeRead, n1StexStin, i0StinEcha, StandardPlotOption);}
1270 if( Standard_X_Quantity ==
"Smp" && Standard_Y_Quantity ==
"SSp" )
1271 {XtalSamplesSigma(fReadHistoDummy, fTobeRead, n1StexStin, i0StinEcha, StandardPlotOption);}
1272 if( Standard_X_Quantity ==
"SSp" && Standard_Y_Quantity ==
"NOS" )
1273 {SigmaSamplesXtals(fReadHistoDummy, fTobeRead, n1StexStin, i0StinEcha, StandardPlotOption);}
1277 {fFlagUserHistoMin =
"OFF"; fFlagUserHistoMax =
"OFF";
1278 cout <<
"!TEcnaHistos::Plot1DHisto(...)> Histo cannot be reached." << fTTBELL << endl;}
1282 const TString& User_X_Quantity,
const TString& User_Y_Quantity,
1283 const Int_t& n1StexStin,
const Int_t& i0StinEcha,
const Int_t& n1Sample)
1284 {Plot1DHisto(InputHisto, User_X_Quantity, User_Y_Quantity, n1StexStin, i0StinEcha, n1Sample,
"");}
1287 const TString& User_X_Quantity,
const TString& User_Y_Quantity,
1288 const Int_t& n1StexStin,
const Int_t& i0StinEcha,
const Int_t& n1Sample,
1289 const TString& UserPlotOption)
1291 TString CallingMethod =
"1D";
1293 TString StandardPlotOption = fCnaParHistos->BuildStandardPlotOption(CallingMethod, UserPlotOption);
1295 TString Standard_X_Quantity = fCnaParHistos->BuildStandard1DHistoCodeX(CallingMethod, User_X_Quantity);
1296 TString Standard_Y_Quantity = fCnaParHistos->BuildStandard1DHistoCodeY(CallingMethod, User_Y_Quantity);
1298 TString TechHistoCode = fCnaParHistos->GetTechHistoCode(Standard_X_Quantity, Standard_Y_Quantity);
1300 if( Standard_X_Quantity !=
"?" && Standard_Y_Quantity !=
"?" )
1302 Int_t i0Sample = n1Sample-1;
1304 ViewHisto(InputHisto, fAlreadyRead, n1StexStin, i0StinEcha, i0Sample, TechHistoCode, StandardPlotOption);
1307 {fFlagUserHistoMin =
"OFF"; fFlagUserHistoMax =
"OFF";
1308 cout <<
"!TEcnaHistos::Plot1DHisto(...)> Histo cannot be reached." << fTTBELL << endl;}
1312 const Int_t& n1StexStin,
const Int_t& i0StinEcha,
const Int_t& n1Sample)
1313 {Plot1DHisto(User_X_Quantity, User_Y_Quantity, n1StexStin, i0StinEcha, n1Sample,
"");}
1316 const Int_t& n1StexStin,
const Int_t& i0StinEcha,
const Int_t& n1Sample,
1317 const TString& UserPlotOption)
1319 TString CallingMethod =
"1D";
1321 TString StandardPlotOption = fCnaParHistos->BuildStandardPlotOption(CallingMethod, UserPlotOption);
1323 TString Standard_X_Quantity = fCnaParHistos->BuildStandard1DHistoCodeX(CallingMethod, User_X_Quantity);
1324 TString Standard_Y_Quantity = fCnaParHistos->BuildStandard1DHistoCodeY(CallingMethod, User_Y_Quantity);
1326 Int_t i0Sample = n1Sample-1;
1328 if( Standard_X_Quantity !=
"?" && Standard_Y_Quantity !=
"?" )
1330 TString TechHistoCode = fCnaParHistos->GetTechHistoCode(Standard_X_Quantity, Standard_Y_Quantity);
1331 ViewHisto(fReadHistoDummy, fTobeRead, n1StexStin, i0StinEcha, i0Sample, TechHistoCode, StandardPlotOption);
1334 {fFlagUserHistoMin =
"OFF"; fFlagUserHistoMax =
"OFF";
1335 cout <<
"!TEcnaHistos::Plot1DHisto(...)> Histo cannot be reached." << fTTBELL << endl;}
1344 const TString& list_of_run_file_name,
1345 const Int_t& StexStin_A,
const Int_t& i0StinEcha)
1346 {PlotHistory(User_X_Quantity, User_Y_Quantity, list_of_run_file_name, StexStin_A, i0StinEcha,
"");}
1349 const TString& list_of_run_file_name,
1350 const Int_t& StexStin_A,
const Int_t& i0StinEcha,
1351 const TString& UserPlotOption)
1353 TString CallingMethod =
"Time";
1355 TString StandardPlotOption = fCnaParHistos->BuildStandardPlotOption(CallingMethod, UserPlotOption);
1357 TString Standard_X_Quantity = fCnaParHistos->BuildStandard1DHistoCodeX(CallingMethod, User_X_Quantity);
1358 TString Standard_Y_Quantity = fCnaParHistos->BuildStandard1DHistoCodeY(CallingMethod, User_Y_Quantity);
1360 if( Standard_X_Quantity !=
"?" && Standard_Y_Quantity !=
"?" )
1362 TString TechHistoCode = fCnaParHistos->GetTechHistoCode(Standard_X_Quantity, Standard_Y_Quantity);
1363 ViewHistime(list_of_run_file_name, StexStin_A, i0StinEcha, TechHistoCode, StandardPlotOption);
1366 {fFlagUserHistoMin =
"OFF"; fFlagUserHistoMax =
"OFF";
1367 cout <<
"!TEcnaHistos::PlotHistory(...)> Histo cannot be reached." << fTTBELL << endl;}
1415 const Int_t& StexStin_A,
const Int_t& StexStin_B,
1416 const Int_t& MatrixBinIndex,
const TString& CorOrCov,
1417 const TString& BetweenWhat,
const TString& PlotOption)
1421 if( (fFapStexNumber > 0) && (fFapStexNumber <= fEcal->MaxStexInStas()) )
1423 Bool_t OKArray = kFALSE;
1424 Bool_t OKData = kFALSE;
1425 TVectorD vStin(fEcal->MaxStinEcnaInStex());
1427 if( arg_AlreadyRead == fTobeRead )
1429 fMyRootFile->PrintNoComment();
1430 fMyRootFile->FileParameters(fFapAnaType, fFapNbOfSamples,
1431 fFapRunNumber, fFapFirstReqEvtNumber,
1432 fFapLastReqEvtNumber, fFapReqNbOfEvts,
1433 fFapStexNumber, fCfgResultsRootFilePath.Data());
1434 OKArray = fMyRootFile->LookAtRootFile();
1435 if( OKArray == kTRUE )
1437 fFapNbOfEvts = fMyRootFile->GetNumberOfEvents(fFapReqNbOfEvts, fFapStexNumber);
1438 TString fp_name_short = fMyRootFile->GetRootFileNameShort();
1442 for(Int_t
i=0;
i<fEcal->MaxStinEcnaInStex();
i++){vStin(
i)=(Double_t)0.;}
1443 vStin = fMyRootFile->ReadStinNumbers(fEcal->MaxStinEcnaInStex());
1445 fStartDate = fMyRootFile->GetStartDate();
1446 fStopDate = fMyRootFile->GetStopDate();
1447 fRunType = fMyRootFile->GetRunType();
1449 if( fMyRootFile->DataExist() == kTRUE ){OKData = kTRUE;}
1453 if( arg_AlreadyRead >= 1 )
1457 if( fFlagSubDet ==
"EB")
1459 for(Int_t
i=0;
i<fEcal->MaxStinEcnaInStex();
i++){vStin(
i)=
i;}
1461 if( fFlagSubDet ==
"EE")
1463 for(Int_t
i=0;
i<fEcal->MaxStinEcnaInStex();
i++)
1464 {vStin(
i)= fEcalNumbering->GetDeeSCConsFrom1DeeSCEcna(fFapStexNumber, (Int_t)vStin(
i));}
1468 if ( OKArray == kTRUE )
1470 fStatusFileFound = kTRUE;
1472 if( OKData == kTRUE )
1474 fStatusDataExist = kTRUE;
1476 Int_t Stin_X_ok = 0;
1477 Int_t Stin_Y_ok = 0;
1479 if( (BetweenWhat == fLFBetweenStins) || (BetweenWhat == fHFBetweenStins) )
1480 {Stin_X_ok = 1; Stin_Y_ok = 1;}
1481 if( BetweenWhat == fBetweenSamples )
1484 for (Int_t index_Stin = 0; index_Stin < fEcal->MaxStinEcnaInStex(); index_Stin++)
1486 if ( vStin(index_Stin) == StexStin_A ){Stin_X_ok = 1;}
1487 if ( vStin(index_Stin) == StexStin_B ){Stin_Y_ok = 1;}
1490 if( Stin_X_ok == 1 && Stin_Y_ok == 1 )
1493 Int_t ReadMatSize = -1;
1494 Int_t i0StinEcha = -1;
1497 if( BetweenWhat == fBetweenSamples )
1498 {ReadMatSize = fFapNbOfSamples; MatSize = fEcal->MaxSampADC(); i0StinEcha=(Int_t)MatrixBinIndex;}
1500 if( BetweenWhat == fLFBetweenChannels || BetweenWhat == fHFBetweenChannels )
1501 {ReadMatSize = fEcal->MaxCrysInStin(); MatSize = fEcal->MaxCrysInStin(); }
1503 if( (BetweenWhat == fLFBetweenStins) || (BetweenWhat == fHFBetweenStins) )
1504 {ReadMatSize = fEcal->MaxStinEcnaInStex(); MatSize = fEcal->MaxStinInStex();}
1507 if( ( BetweenWhat == fLFBetweenStins || BetweenWhat == fHFBetweenStins ) ||
1508 ( BetweenWhat == fLFBetweenChannels || BetweenWhat == fHFBetweenChannels
1510 ( (BetweenWhat == fBetweenSamples) && (i0StinEcha >= 0) && (i0StinEcha < fEcal->MaxCrysInStin()) ) )
1512 TMatrixD read_matrix(ReadMatSize, ReadMatSize);
1513 for(Int_t
i=0;
i-ReadMatSize<0;
i++)
1514 {
for(Int_t
j=0;
j-ReadMatSize<0;
j++){read_matrix(
i,
j)=(Double_t)0.;}}
1516 Bool_t OKData = kFALSE;
1517 if( arg_AlreadyRead == fTobeRead )
1519 if( BetweenWhat == fBetweenSamples && CorOrCov == fCovarianceMatrix )
1521 fMyRootFile->ReadCovariancesBetweenSamples(StexStin_A, i0StinEcha, ReadMatSize);}
1523 if( BetweenWhat == fBetweenSamples && CorOrCov == fCorrelationMatrix )
1525 fMyRootFile->ReadCorrelationsBetweenSamples(StexStin_A, i0StinEcha, ReadMatSize);}
1527 if( BetweenWhat == fLFBetweenChannels && CorOrCov == fCovarianceMatrix )
1529 fMyRootFile->ReadLowFrequencyCovariancesBetweenChannels(StexStin_A, StexStin_B, ReadMatSize);}
1531 if( BetweenWhat == fLFBetweenChannels && CorOrCov == fCorrelationMatrix )
1533 fMyRootFile->ReadLowFrequencyCorrelationsBetweenChannels(StexStin_A, StexStin_B, ReadMatSize);}
1535 if( BetweenWhat == fHFBetweenChannels && CorOrCov == fCovarianceMatrix )
1537 fMyRootFile->ReadHighFrequencyCovariancesBetweenChannels(StexStin_A, StexStin_B, ReadMatSize);}
1539 if( BetweenWhat == fHFBetweenChannels && CorOrCov == fCorrelationMatrix )
1541 fMyRootFile->ReadHighFrequencyCorrelationsBetweenChannels(StexStin_A, StexStin_B, ReadMatSize);}
1543 if( BetweenWhat == fLFBetweenStins && CorOrCov == fCorrelationMatrix )
1545 fMyRootFile->ReadLowFrequencyMeanCorrelationsBetweenStins(ReadMatSize);}
1547 if( BetweenWhat == fHFBetweenStins && CorOrCov == fCorrelationMatrix )
1549 fMyRootFile->ReadHighFrequencyMeanCorrelationsBetweenStins(ReadMatSize);
1552 OKData = fMyRootFile->DataExist();
1556 read_matrix = arg_read_matrix;
1560 if( OKData == kTRUE )
1562 fStatusDataExist = kTRUE;
1564 if( PlotOption ==
"ASCII" )
1566 WriteMatrixAscii(BetweenWhat, CorOrCov,
1567 StexStin_A, MatrixBinIndex, ReadMatSize, read_matrix);
1572 char* f_in_mat_tit =
new char[fgMaxCar]; fCnew++;
1574 if( BetweenWhat == fBetweenSamples && CorOrCov == fCovarianceMatrix )
1575 {sprintf(f_in_mat_tit,
"Covariance(Sample, Sample')");}
1576 if( BetweenWhat == fBetweenSamples && CorOrCov == fCorrelationMatrix )
1577 {sprintf(f_in_mat_tit,
"Correlation(Sample, Sample')");}
1579 if(fFlagSubDet ==
"EB" )
1581 if( BetweenWhat == fLFBetweenStins && CorOrCov == fCorrelationMatrix )
1582 {sprintf(f_in_mat_tit,
1583 "Mean LF |Cor(Xtal,Xtal')| for each (Tower,Tower')");}
1584 if( BetweenWhat == fHFBetweenStins && CorOrCov == fCorrelationMatrix )
1585 {sprintf(f_in_mat_tit,
1586 "Mean HF |Cor(Xtal,Xtal')| for each (Tower,Tower')");}
1588 if(fFlagSubDet ==
"EE" )
1590 if( BetweenWhat == fLFBetweenStins && CorOrCov == fCorrelationMatrix )
1591 {sprintf(f_in_mat_tit,
1592 "Mean LF |Cor(Xtal,Xtal')| for each (SC,SC')");}
1593 if( BetweenWhat == fHFBetweenStins && CorOrCov == fCorrelationMatrix )
1594 {sprintf(f_in_mat_tit,
1595 "Mean HF |Cor(Xtal,Xtal')| for each (SC,SC')");}
1598 if( BetweenWhat == fLFBetweenChannels && CorOrCov == fCorrelationMatrix )
1600 if( fFlagSubDet ==
"EB" )
1601 {sprintf(f_in_mat_tit,
"LF Cor(Xtal,Xtal') matrix elts for (Tow,Tow')");}
1602 if( fFlagSubDet ==
"EE" )
1603 {sprintf(f_in_mat_tit,
"LF Cor(Xtal,Xtal') matrix elts for (SC,SC')");}
1605 if( BetweenWhat == fHFBetweenChannels && CorOrCov == fCorrelationMatrix )
1607 if( fFlagSubDet ==
"EB" )
1608 {sprintf(f_in_mat_tit,
"HF Cor(Xtal,Xtal') matrix elts for (Tow,Tow')");}
1609 if( fFlagSubDet ==
"EE" )
1610 {sprintf(f_in_mat_tit,
"LF Cor(Xtal,Xtal') matrix elts for (SC,SC')");}
1614 TString axis_x_var_name;
1615 TString axis_y_var_name;
1617 char* f_in_axis_x =
new char[fgMaxCar]; fCnew++;
1618 char* f_in_axis_y =
new char[fgMaxCar]; fCnew++;
1620 if( BetweenWhat == fLFBetweenStins || BetweenWhat == fHFBetweenStins )
1622 if( fFlagSubDet ==
"EB" )
1623 {sprintf(f_in_axis_x,
" %s number ", fFapStinName.Data());}
1624 if( fFlagSubDet ==
"EE" )
1625 {sprintf(f_in_axis_x,
" %s number for construction ", fFapStinName.Data());}
1627 axis_x_var_name = f_in_axis_x; axis_y_var_name = f_in_axis_x;
1629 if( BetweenWhat == fBetweenSamples)
1631 axis_x_var_name =
" Sample "; axis_y_var_name =
" Sample ";
1633 if( BetweenWhat == fLFBetweenChannels || BetweenWhat == fHFBetweenChannels ){
1634 sprintf(f_in_axis_x,
" Crystal %s %d ", fFapStinName.Data(), StexStin_A);
1635 sprintf(f_in_axis_y,
" Crystal %s %d ", fFapStinName.Data(),StexStin_B);
1636 axis_x_var_name = f_in_axis_x; axis_y_var_name = f_in_axis_y;}
1638 Int_t nb_binx = MatSize;
1639 Int_t nb_biny = MatSize;
1640 Axis_t xinf_bid = (Axis_t)0.;
1641 Axis_t xsup_bid = (Axis_t)MatSize;
1642 Axis_t yinf_bid = (Axis_t)0.;
1643 Axis_t ysup_bid = (Axis_t)MatSize;
1645 if( (fFlagSubDet ==
"EE") &&
1646 (BetweenWhat == fLFBetweenStins || BetweenWhat == fHFBetweenStins) )
1648 if( fFapStexNumber == 1 || fFapStexNumber == 3 )
1650 xinf_bid += fEcal->MaxStinInStex();
1651 xsup_bid += fEcal->MaxStinInStex();
1652 yinf_bid += fEcal->MaxStinInStex();
1653 ysup_bid += fEcal->MaxStinInStex();
1657 TH2D* h_fbid0 =
new TH2D(
"bidim", f_in_mat_tit,
1658 nb_binx, xinf_bid, xsup_bid,
1659 nb_biny, yinf_bid, ysup_bid); fCnewRoot++;
1662 h_fbid0->GetXaxis()->SetTitle(axis_x_var_name);
1663 h_fbid0->GetYaxis()->SetTitle(axis_y_var_name);
1666 if( (fFlagSubDet ==
"EE") &&
1667 (BetweenWhat == fLFBetweenStins || BetweenWhat == fHFBetweenStins) )
1669 for(Int_t
i = 0 ;
i < ReadMatSize ;
i++)
1671 for(Int_t
j = 0 ;
j < ReadMatSize ;
j++)
1675 (Double_t)fEcalNumbering->GetDeeSCConsFrom1DeeSCEcna(fFapStexNumber, ip);
1678 (Double_t)fEcalNumbering->GetDeeSCConsFrom1DeeSCEcna(fFapStexNumber, jp);
1679 if( xi_bid > 0 && xj_bid > 0 )
1681 Int_t xi_bid_m = xi_bid-1;
1682 Int_t xj_bid_m = xj_bid-1;
1683 h_fbid0->Fill(xi_bid_m, xj_bid_m, read_matrix(
i,
j));
1690 for(Int_t
i = 0 ;
i - ReadMatSize < 0 ;
i++)
1692 Double_t xi = (Double_t)
i;
1693 for(Int_t
j = 0 ;
j < ReadMatSize ;
j++)
1695 Double_t xj = (Double_t)
j;
1696 Double_t mat_val = (Double_t)read_matrix(
i,
j);
1697 h_fbid0->Fill(xi, xj, (Double_t)mat_val);
1704 TString quantity_code =
"D_MCs_ChNb";
1705 if ( CorOrCov == fCorrelationMatrix )
1707 if( BetweenWhat == fBetweenSamples ){quantity_code =
"D_MCs_ChNb";}
1709 if( BetweenWhat == fLFBetweenChannels ){quantity_code =
"H2LFccMosMatrix";}
1710 if( BetweenWhat == fHFBetweenChannels ){quantity_code =
"H2HFccMosMatrix";}
1712 if( BetweenWhat == fLFBetweenStins ){quantity_code =
"H2LFccMosMatrix";}
1713 if( BetweenWhat == fHFBetweenStins ){quantity_code =
"H2HFccMosMatrix";}
1715 if( CorOrCov == fCovarianceMatrix ){quantity_code =
"H2HFccMosMatrix";}
1717 SetYminMemoFromValue(quantity_code, fCnaParHistos->GetYminDefaultValue(quantity_code));
1718 SetYmaxMemoFromValue(quantity_code, fCnaParHistos->GetYmaxDefaultValue(quantity_code));
1720 if( fUserHistoMin == fUserHistoMax ){fFlagUserHistoMin =
"AUTO"; fFlagUserHistoMax =
"AUTO";}
1722 if( fFlagUserHistoMin ==
"ON" )
1723 {SetYminMemoFromValue(quantity_code, fUserHistoMin); fFlagUserHistoMin =
"OFF";}
1724 if( fFlagUserHistoMax ==
"ON" )
1725 {SetYmaxMemoFromValue(quantity_code, fUserHistoMax); fFlagUserHistoMax =
"OFF";}
1727 if( fFlagUserHistoMin ==
"AUTO" )
1728 {SetYminMemoFromValue(quantity_code, h_fbid0->GetMinimum()); fFlagUserHistoMin =
"OFF";}
1729 if( fFlagUserHistoMax ==
"AUTO" )
1730 {SetYmaxMemoFromValue(quantity_code, h_fbid0->GetMaximum()); fFlagUserHistoMax =
"OFF";}
1732 if( CorOrCov == fCorrelationMatrix )
1734 if(BetweenWhat == fBetweenSamples)
1735 {SetHistoFrameYminYmaxFromMemo((TH1D*)h_fbid0,
"D_MCs_ChNb");}
1736 if( BetweenWhat == fLFBetweenStins || BetweenWhat == fLFBetweenChannels )
1737 {SetHistoFrameYminYmaxFromMemo((TH1D*)h_fbid0,
"H2LFccMosMatrix");}
1738 if( BetweenWhat == fHFBetweenStins || BetweenWhat == fHFBetweenChannels )
1739 {SetHistoFrameYminYmaxFromMemo((TH1D*)h_fbid0,
"H2HFccMosMatrix");}
1749 if( CorOrCov == fCovarianceMatrix )
1751 if (BetweenWhat == fBetweenSamples)
1752 {SetYminMemoFromPreviousMemo(
"D_TNo_ChNb");
1753 SetYmaxMemoFromPreviousMemo(
"D_TNo_ChNb");
1754 SetHistoFrameYminYmaxFromMemo((TH1D*)h_fbid0,
"D_TNo_ChNb");}
1755 if ( BetweenWhat == fLFBetweenStins || BetweenWhat == fHFBetweenStins ||
1756 BetweenWhat == fLFBetweenChannels || BetweenWhat == fHFBetweenChannels )
1757 {SetHistoFrameYminYmaxFromMemo((TH1D*)h_fbid0,
"H2HFccMosMatrix");}
1761 char* f_in =
new char[fgMaxCar]; fCnew++;
1763 UInt_t canv_w = fCnaParHistos->CanvasFormatW(
"petit");
1764 UInt_t canv_h = fCnaParHistos->CanvasFormatH(
"petit");
1768 Int_t MaxCar = fgMaxCar;
1769 HistoType.Resize(MaxCar);
1770 HistoType =
"(no quantity type info)";
1772 if (PlotOption ==
"COLZ" ){HistoType =
"colz";}
1773 if (PlotOption ==
"BOX" ){HistoType =
"colz";}
1774 if (PlotOption ==
"TEXT" ){HistoType =
"colz";}
1775 if (PlotOption ==
"CONTZ" ){HistoType =
"colz";}
1776 if (PlotOption ==
"LEGO2Z"){HistoType =
"lego";}
1777 if (PlotOption ==
"SURF1Z"){HistoType =
"surf";}
1778 if (PlotOption ==
"SURF2Z"){HistoType =
"surf";}
1779 if (PlotOption ==
"SURF3Z"){HistoType =
"surf";}
1780 if (PlotOption ==
"SURF4" ){HistoType =
"surf";}
1782 if( fFlagSubDet ==
"EB" )
1784 fFapStexBarrel = fEcalNumbering->GetSMHalfBarrel(fFapStexNumber);
1785 SetAllPavesViewMatrix(BetweenWhat.Data(), StexStin_A, StexStin_B, i0StinEcha);
1787 if( fFlagSubDet ==
"EE" )
1789 fFapStexType = fEcalNumbering->GetEEDeeType(fFapStexNumber);
1790 fFapStinQuadType = fEcalNumbering->GetSCQuadFrom1DeeSCEcna(StexStin_A);
1791 SetAllPavesViewMatrix(BetweenWhat.Data(), StexStin_A, StexStin_B, i0StinEcha);
1795 TString name_cov_cor;
1797 name_cov_cor.Resize(MaxCar);
1799 if( CorOrCov == fCovarianceMatrix){name_cov_cor =
"Covariance";}
1800 if( CorOrCov == fCorrelationMatrix){name_cov_cor =
"Correlation";}
1802 TString name_chan_samp;
1804 name_chan_samp.Resize(MaxCar);
1805 name_chan_samp =
"?";
1807 if( BetweenWhat == fLFBetweenStins ){name_chan_samp =
"LFccMos";}
1808 if( BetweenWhat == fHFBetweenStins ){name_chan_samp =
"HFccMos"; }
1810 if( BetweenWhat == fLFBetweenChannels ){name_chan_samp =
"LF_cc";}
1811 if( BetweenWhat == fHFBetweenChannels ){name_chan_samp =
"HF_cc";}
1813 if(BetweenWhat == fBetweenSamples)
1815 name_chan_samp =
"Between_Samples";
1820 name_visu.Resize(MaxCar);
1823 name_visu = PlotOption;
1825 if( (BetweenWhat == fLFBetweenStins) || (BetweenWhat == fHFBetweenStins) ){
1826 sprintf(f_in,
"%s_%s_%s_S1_%d_R%d_%d_%d_%s%d_%s",
1827 name_cov_cor.Data(), name_chan_samp.Data(),
1828 fFapAnaType.Data(), fFapNbOfSamples, fFapRunNumber,
1829 fFapFirstReqEvtNumber, fFapLastReqEvtNumber,
1830 fFapStexName.Data(), fFapStexNumber,
1833 if( BetweenWhat == fLFBetweenChannels || BetweenWhat == fHFBetweenChannels ){
1834 sprintf(f_in,
"%s_%s_%s_S1_%d_R%d_%d_%d_%s%d_%sX%d_%sY%d_%s",
1835 name_cov_cor.Data(), name_chan_samp.Data(),
1836 fFapAnaType.Data(), fFapNbOfSamples, fFapRunNumber,
1837 fFapFirstReqEvtNumber, fFapLastReqEvtNumber,
1838 fFapStexName.Data(), fFapStexNumber,
1839 fFapStexName.Data(), StexStin_A, fFapStexName.Data(), StexStin_B,
1842 if( BetweenWhat == fBetweenSamples ){
1843 sprintf(f_in,
"%s_%s_%s_S1_%d_R%d_%d_%d_%s%d_%sX%d_%sY%d_ElecChannel_%d_%s",
1844 name_cov_cor.Data(), name_chan_samp.Data(),
1845 fFapAnaType.Data(), fFapNbOfSamples, fFapRunNumber,
1846 fFapFirstReqEvtNumber, fFapLastReqEvtNumber,
1847 fFapStexName.Data(), fFapStexNumber,
1848 fFapStexName.Data(), StexStin_A, fFapStexName.Data(), StexStin_B,
1854 SetHistoPresentation((TH1D*)h_fbid0, HistoType);
1855 TCanvas *MainCanvas =
new TCanvas(f_in, f_in, canv_w , canv_h); fCnewRoot++;
1856 fCurrentCanvas = MainCanvas; fCurrentCanvasName = f_in;
1862 delete [] f_in; f_in = 0; fCdelete++;
1864 if( fPavComGeneralTitle != 0 ){fPavComGeneralTitle->Draw();}
1865 fPavComStex->Draw();
1867 if(BetweenWhat == fLFBetweenChannels || BetweenWhat == fHFBetweenChannels)
1868 {fPavComStin->Draw();}
1869 if(BetweenWhat == fBetweenSamples)
1870 {fPavComStin->Draw(); fPavComXtal->Draw();}
1872 fPavComAnaRun->Draw();
1873 fPavComNbOfEvts->Draw();
1875 Double_t x_margin = fCnaParHistos->BoxLeftX(
"bottom_left_box") - 0.005;
1876 Double_t y_margin = fCnaParHistos->BoxTopY(
"bottom_right_box") + 0.005;
1877 MainCanvas->Divide(1, 1, x_margin, y_margin);
1882 gPad->SetLogy(logy);
1883 if( (BetweenWhat == fLFBetweenStins) ||
1884 (BetweenWhat == fHFBetweenStins) ){gPad->SetGrid(1,1);}
1885 h_fbid0->DrawCopy(PlotOption);
1886 h_fbid0->SetStats((Bool_t)1);
1888 h_fbid0->Delete(); h_fbid0 = 0; fCdeleteRoot++;
1891 delete [] f_in_axis_x; f_in_axis_x = 0; fCdelete++;
1892 delete [] f_in_axis_y; f_in_axis_y = 0; fCdelete++;
1893 delete [] f_in_mat_tit; f_in_mat_tit = 0; fCdelete++;
1898 fStatusDataExist = kFALSE;
1906 if(BetweenWhat == fBetweenSamples)
1908 cout <<
"*TEcnaHistos::ViewMatrix(...)> *ERROR* ==> Wrong channel number in "
1909 << fFapStinName.Data() <<
". Value = "
1910 << i0StinEcha <<
" (required range: [0, "
1911 << fEcal->MaxCrysInStin()-1 <<
"] )"
1927 if ( Stin_X_ok != 1 )
1929 if( fFlagSubDet ==
"EB")
1931 cout <<
"*TEcnaHistos::ViewMatrix(...)> *ERROR* =====> "
1932 << fFapStinName.Data() <<
" "
1933 << StexStin_A <<
", "
1934 << fFapStinName.Data() <<
" not found. Available numbers = ";
1935 for(Int_t
i = 0;
i < fEcal->MaxStinEcnaInStex();
i++)
1939 cout << vStin(
i) <<
", ";
1944 if( fFlagSubDet ==
"EE")
1946 cout <<
"*TEcnaHistos::ViewMatrix(...)> *ERROR* =====> "
1947 << fFapStinName.Data() <<
" "
1948 << fEcalNumbering->GetDeeSCConsFrom1DeeSCEcna(fFapStexNumber, StexStin_A) <<
", "
1949 << fFapStinName.Data() <<
" not found. Available numbers = ";
1950 for(Int_t
i = 0;
i < fEcal->MaxStinEcnaInStex();
i++)
1954 cout << fEcalNumbering->GetDeeSCConsFrom1DeeSCEcna(fFapStexNumber, (Int_t)vStin(
i)) <<
", ";
1958 cout << fTTBELL << endl;
1960 if ( Stin_Y_ok != 1 )
1963 if( fFlagSubDet ==
"EB")
1965 cout <<
"*TEcnaHistos::ViewMatrix(...)> *ERROR* =====> "
1966 << fFapStinName.Data() <<
" "
1967 << StexStin_B <<
", "
1968 << fFapStinName.Data() <<
" not found. Available numbers = ";
1969 for(Int_t
i = 0;
i < fEcal->MaxStinEcnaInStex();
i++)
1973 cout << vStin(
i) <<
", ";
1978 if( fFlagSubDet ==
"EE")
1980 cout <<
"*TEcnaHistos::ViewMatrix(...)> *ERROR* =====> "
1981 << fFapStinName.Data() <<
" "
1982 << fEcalNumbering->GetDeeSCConsFrom1DeeSCEcna(fFapStexNumber, StexStin_B) <<
", "
1983 << fFapStinName.Data() <<
" not found. Available numbers = ";
1984 for(Int_t
i = 0;
i < fEcal->MaxStinEcnaInStex();
i++)
1988 cout << fEcalNumbering->GetDeeSCConsFrom1DeeSCEcna(fFapStexNumber, (Int_t)vStin(
i)) <<
", ";
1992 cout << fTTBELL << endl;
1998 fStatusDataExist = kFALSE;
1999 cout <<
"!TEcnaHistos::ViewMatrix(...)> *ERROR* =====> "
2000 <<
" Histo not available." << fTTBELL << endl;
2001 fFlagUserHistoMin =
"OFF";
2002 fFlagUserHistoMax =
"OFF";
2007 fStatusFileFound = kFALSE;
2008 cout <<
"!TEcnaHistos::ViewMatrix(...)> *ERROR* =====> "
2009 <<
" ROOT file not found" << fTTBELL << endl;
2014 cout <<
"!TEcnaHistos::ViewMatrix(...)> " << fFapStexName.Data()
2015 <<
" = " << fFapStexNumber <<
". Out of range (range = [1,"
2016 << fEcal->MaxStexInStas() <<
"]) " << fTTBELL << endl;
2028 TString CorOrCov = fCorrelationMatrix;
2029 ViewStin(StinNumber, CorOrCov);
2034 TString CorOrCov = fCovarianceMatrix;
2035 ViewStin(StinNumber, CorOrCov);
2054 if( (fFapStexNumber > 0) && fFapStexNumber <= fEcal->MaxStexInStas() )
2056 Int_t StexStin = cStexStin;
2057 if(fFlagSubDet ==
"EE" )
2058 {StexStin = fEcalNumbering->Get1DeeSCEcnaFromDeeSCCons(fFapStexNumber, cStexStin);}
2060 fMyRootFile->PrintNoComment();
2061 fMyRootFile->FileParameters(fFapAnaType, fFapNbOfSamples,
2062 fFapRunNumber, fFapFirstReqEvtNumber,
2063 fFapLastReqEvtNumber, fFapReqNbOfEvts,
2064 fFapStexNumber, fCfgResultsRootFilePath.Data());
2066 if ( fMyRootFile->LookAtRootFile() == kTRUE )
2068 fStatusFileFound = kTRUE;
2070 fFapNbOfEvts = fMyRootFile->GetNumberOfEvents(fFapReqNbOfEvts, fFapStexNumber);
2071 TString fp_name_short = fMyRootFile->GetRootFileNameShort();
2075 TVectorD vStin(fEcal->MaxStinEcnaInStex());
2076 for(Int_t
i=0;
i<fEcal->MaxStinEcnaInStex();
i++){vStin(
i)=(Double_t)0.;}
2077 vStin = fMyRootFile->ReadStinNumbers(fEcal->MaxStinEcnaInStex());
2079 if ( fMyRootFile->DataExist() == kTRUE )
2081 fStatusDataExist = kTRUE;
2084 for (Int_t index_Stin = 0; index_Stin < fEcal->MaxStinEcnaInStex(); index_Stin++)
2086 if ( vStin(index_Stin) == StexStin ){Stin_ok++;}
2091 fStartDate = fMyRootFile->GetStartDate();
2092 fStopDate = fMyRootFile->GetStopDate();
2093 fRunType = fMyRootFile->GetRunType();
2096 char* f_in_mat_tit =
new char[fgMaxCar]; fCnew++;
2098 if ( CorOrCov == fCovarianceMatrix )
2099 {sprintf(f_in_mat_tit,
"Xtal's Cov(s,s') matrices in %s.",
2100 fFapStinName.Data());}
2101 if ( CorOrCov == fCorrelationMatrix )
2102 {sprintf(f_in_mat_tit,
"Xtal's Cor(s,s') matrices in %s.",
2103 fFapStinName.Data());}
2106 Int_t GeoBidSize = fEcal->MaxSampADC()*fEcal->MaxCrysHocoInStin();
2107 Int_t nb_binx = GeoBidSize;
2108 Int_t nb_biny = GeoBidSize;
2109 Axis_t xinf_bid = (Axis_t)0.;
2110 Axis_t xsup_bid = (Axis_t)GeoBidSize;
2111 Axis_t yinf_bid = (Axis_t)0.;
2112 Axis_t ysup_bid = (Axis_t)GeoBidSize;
2117 TH2D* h_geo_bid =
new TH2D(
"geobidim_ViewStin", f_in_mat_tit,
2118 nb_binx, xinf_bid, xsup_bid,
2119 nb_biny, yinf_bid, ysup_bid); fCnewRoot++;
2126 Int_t ReadMatSize = fFapNbOfSamples;
2127 Int_t MatSize = fEcal->MaxSampADC();
2128 TMatrixD read_matrix(ReadMatSize, ReadMatSize);
2129 for(Int_t
i=0;
i-ReadMatSize < 0;
i++){
for(Int_t
j=0;
j-ReadMatSize < 0;
j++)
2130 {read_matrix(
i,
j)=(Double_t)0.;}}
2132 Int_t i_data_exist = 0;
2134 for(Int_t n_crys = 0; n_crys < fEcal->MaxCrysInStin(); n_crys++)
2136 if( CorOrCov == fCovarianceMatrix )
2137 {read_matrix = fMyRootFile->ReadCovariancesBetweenSamples(StexStin, n_crys, ReadMatSize);}
2138 if ( CorOrCov == fCorrelationMatrix )
2139 {read_matrix = fMyRootFile->ReadCorrelationsBetweenSamples(StexStin, n_crys, ReadMatSize);}
2141 if( fMyRootFile->DataExist() == kFALSE )
2143 fStatusDataExist = kFALSE;
2148 fStatusDataExist = kTRUE;
2151 for(Int_t i_samp = 0 ; i_samp < ReadMatSize ; i_samp++)
2153 Int_t i_xgeo = GetXSampInStin(fFapStexNumber, StexStin, n_crys, i_samp);
2154 for(Int_t j_samp = 0; j_samp < ReadMatSize ; j_samp++)
2156 Int_t j_ygeo = GetYSampInStin(fFapStexNumber,
2157 StexStin, n_crys, j_samp);
2158 h_geo_bid->Fill((Double_t)i_xgeo, (Double_t)j_ygeo,
2159 (Double_t)read_matrix(i_samp, j_samp));
2167 TString quantity_code =
"D_MCs_ChNb";
2168 if( CorOrCov == fCorrelationMatrix ){quantity_code =
"D_MCs_ChNb";}
2169 if( CorOrCov == fCovarianceMatrix ){quantity_code =
"H2HFccMosMatrix";}
2172 SetYminMemoFromValue(quantity_code, fCnaParHistos->GetYminDefaultValue(quantity_code));
2173 SetYmaxMemoFromValue(quantity_code, fCnaParHistos->GetYmaxDefaultValue(quantity_code));
2175 if( fUserHistoMin == fUserHistoMax ){fFlagUserHistoMin =
"AUTO"; fFlagUserHistoMax =
"AUTO";}
2177 if( fFlagUserHistoMin ==
"ON" )
2178 {SetYminMemoFromValue(quantity_code, fUserHistoMin); fFlagUserHistoMin =
"OFF";}
2179 if( fFlagUserHistoMax ==
"ON" )
2180 {SetYmaxMemoFromValue(quantity_code, fUserHistoMax); fFlagUserHistoMax =
"OFF";}
2182 if( fFlagUserHistoMin ==
"AUTO" )
2183 {SetYminMemoFromValue(quantity_code, h_geo_bid->GetMinimum()); fFlagUserHistoMin =
"OFF";}
2184 if( fFlagUserHistoMax ==
"AUTO" )
2185 {SetYmaxMemoFromValue(quantity_code, h_geo_bid->GetMaximum()); fFlagUserHistoMax =
"OFF";}
2187 if ( CorOrCov == fCorrelationMatrix )
2188 {SetHistoFrameYminYmaxFromMemo((TH1D*)h_geo_bid,
"D_MCs_ChNb");
2199 if ( CorOrCov == fCovarianceMatrix )
2200 {SetHistoFrameYminYmaxFromMemo((TH1D*)h_geo_bid,
"D_TNo_ChNb");}
2203 if( i_data_exist > 0 )
2205 char* f_in =
new char[fgMaxCar]; fCnew++;
2208 UInt_t canv_w = fCnaParHistos->CanvasFormatW(
"petit");
2209 UInt_t canv_h = fCnaParHistos->CanvasFormatH(
"petit");
2212 SetAllPavesViewStin(StexStin);
2215 TString name_cov_cor;
2216 Int_t MaxCar = fgMaxCar;
2217 name_cov_cor.Resize(MaxCar);
2219 if( CorOrCov == fCovarianceMatrix ){name_cov_cor =
"CovSS_Matrices_in_";}
2220 if( CorOrCov == fCorrelationMatrix){name_cov_cor =
"CorSS_Matrices_in_";}
2224 name_visu.Resize(MaxCar);
2227 sprintf(f_in,
"%s_%s_%s_S1_%d_R%d_%d_%d_%s%d_%s%d_%s",
2228 name_cov_cor.Data(), fFapStinName.Data(),
2229 fFapAnaType.Data(), fFapNbOfSamples, fFapRunNumber,
2230 fFapFirstReqEvtNumber, fFapLastReqEvtNumber,
2231 fFapStexName.Data(), fFapStexNumber,
2232 fFapStinName.Data(), StexStin, name_visu.Data());
2234 SetHistoPresentation((TH1D*)h_geo_bid,
"Stin");
2236 TCanvas *MainCanvas =
new TCanvas(f_in, f_in, canv_w, canv_h); fCnewRoot++;
2237 fCurrentCanvas = MainCanvas; fCurrentCanvasName = f_in;
2241 delete [] f_in; f_in = 0; fCdelete++;
2244 if( fPavComGeneralTitle != 0 ){fPavComGeneralTitle->Draw();}
2245 fPavComStex->Draw();
2246 fPavComStin->Draw();
2247 fPavComAnaRun->Draw();
2248 fPavComNbOfEvts->Draw();
2250 Double_t x_margin = fCnaParHistos->BoxLeftX(
"bottom_left_box") - 0.005;
2251 Double_t y_margin = fCnaParHistos->BoxTopY(
"bottom_right_box") + 0.005;
2252 MainCanvas->Divide(1, 1, x_margin, y_margin);
2256 gPad->SetLogy(logy);
2258 h_geo_bid->DrawCopy(
"COLZ");
2261 Int_t size_Hoco = fEcal->MaxCrysHocoInStin();
2262 Int_t size_Veco = fEcal->MaxCrysVecoInStin();
2264 ViewStinGrid(fFapStexNumber, StexStin, MatSize, size_Hoco, size_Veco,
" ");
2268 h_geo_bid->SetStats((Bool_t)1);
2272 delete [] f_in_mat_tit; f_in_mat_tit = 0; fCdelete++;
2274 h_geo_bid->Delete(); h_geo_bid = 0; fCdeleteRoot++;
2278 cout <<
"!TEcnaHistos::ViewStin(...)> *ERROR* =====> "
2279 << fFapStinName.Data() <<
" "
2280 << cStexStin <<
" not found."
2281 <<
" Available numbers = ";
2282 for(Int_t
i = 0;
i < fEcal->MaxStinEcnaInStex();
i++)
2286 if( fFlagSubDet ==
"EB" ){
cout << (Int_t)vStin(
i) <<
", ";}
2287 if( fFlagSubDet ==
"EE" )
2288 {
cout << fEcalNumbering->GetDeeSCConsFrom1DeeSCEcna(fFapStexNumber, (Int_t)vStin(
i)) <<
", ";}
2291 cout << fTTBELL << endl;
2296 fStatusDataExist = kFALSE;
2301 fStatusFileFound = kFALSE;
2303 cout <<
"!TEcnaHistos::ViewStin(...)> *ERROR* =====> "
2304 <<
" ROOT file not found" << fTTBELL << endl;
2309 cout <<
"!TEcnaHistos::ViewStin(...)> " << fFapStexName.Data()
2310 <<
" = " << fFapStexNumber <<
". Out of range (range = [1,"
2311 << fEcal->MaxStexInStas() <<
"]) " << fTTBELL << endl;
2326 if( fFlagSubDet ==
"EB" ){TowerCrystalNumbering(StexNumber, cStexStin);}
2327 if( fFlagSubDet ==
"EE" ){SCCrystalNumbering(StexNumber, cStexStin);}
2341 if( (SMNumber > 0) && (SMNumber <= fEcal->MaxSMInEB()) )
2343 fFapStexBarrel = fEcalNumbering->GetSMHalfBarrel(SMNumber);
2345 Int_t MatSize = fEcal->MaxSampADC();
2346 Int_t size_eta = fEcal->MaxCrysEtaInTow();
2347 Int_t size_phi = fEcal->MaxCrysPhiInTow();
2351 Int_t nb_bins = fEcal->MaxSampADC();
2352 Int_t nx_gbins = nb_bins*size_eta;
2353 Int_t ny_gbins = nb_bins*size_phi;
2355 Axis_t xinf_gbid = (Axis_t)0.;
2356 Axis_t xsup_gbid = (Axis_t)fEcal->MaxSampADC()*size_eta;
2357 Axis_t yinf_gbid = (Axis_t)0.;
2358 Axis_t ysup_gbid = (Axis_t)fEcal->MaxSampADC()*size_phi;
2360 TString fg_name =
"M0' crystals";
2361 TString fg_tit =
"Xtal numbering (chan. in tow, chan. in SM, Xtal in SM, hashed)";
2365 h_gbid =
new TH2D(fg_name.Data(), fg_tit.Data(),
2366 nx_gbins, xinf_gbid, xsup_gbid,
2367 ny_gbins, yinf_gbid, ysup_gbid); fCnewRoot++;
2372 char* f_in =
new char[fgMaxCar]; fCnew++;
2376 UInt_t canv_w = fCnaParHistos->CanvasFormatW(
"petit");
2377 UInt_t canv_h = fCnaParHistos->CanvasFormatH(
"petit");
2380 Color_t couleur_noir = fCnaParHistos->SetColorsForNumbers(
"crystal");
2381 Color_t couleur_rouge = fCnaParHistos->SetColorsForNumbers(
"lvrb_top");
2382 Color_t couleur_bleu_fonce = fCnaParHistos->SetColorsForNumbers(
"lvrb_bottom");
2384 gStyle->SetPalette(1,0);
2387 fCnaParHistos->SetViewHistoStyle(
"Stin");
2391 SetAllPavesViewStinCrysNb(SMNumber, n1SMTow);
2396 sprintf(f_in,
"Crystal_Numbering_for_%s_X_%d_%s%d",
2397 fFapStinName.Data(), n1SMTow, fFapStexName.Data(), SMNumber);
2399 SetHistoPresentation((TH1D*)h_gbid,
"Stin");
2401 TCanvas *MainCanvas =
new TCanvas(f_in, f_in, canv_w , canv_h); fCnewRoot++;
2402 fCurrentCanvas = MainCanvas; fCurrentCanvasName = f_in;
2407 Double_t x_margin = fCnaParHistos->BoxLeftX(
"bottom_left_box") - 0.005;
2408 Double_t y_margin = fCnaParHistos->BoxTopY(
"bottom_right_box") + 0.005;
2409 MainCanvas->Divide(1, 1, x_margin, y_margin);
2411 fPavComStex->Draw();
2412 fPavComStin->Draw();
2413 fPavComLVRB->Draw();
2419 gStyle->SetMarkerColor(couleur_rouge);
2422 gPad->SetLogy(logy);
2426 h_gbid->SetStats(b_false);
2427 h_gbid->DrawCopy(
"COLZ");
2433 char* f_in_elec =
new char[fgMaxCar]; fCnew++;
2434 TString TowerLvrbType = fEcalNumbering->GetTowerLvrbType(n1SMTow) ;
2435 TText *text_elec_num =
new TText(); fCnewRoot++;
2436 if ( TowerLvrbType ==
"top" ){text_elec_num->SetTextColor(couleur_rouge);}
2437 if ( TowerLvrbType ==
"bottom" ){text_elec_num->SetTextColor(couleur_bleu_fonce);}
2438 text_elec_num->SetTextSize(0.04);
2440 char* f_in_sme =
new char[fgMaxCar]; fCnew++;
2441 TText *text_sme_num =
new TText(); fCnewRoot++;
2442 if ( TowerLvrbType ==
"top" ){text_sme_num->SetTextColor(couleur_rouge);}
2443 if ( TowerLvrbType ==
"bottom" ){text_sme_num->SetTextColor(couleur_bleu_fonce);}
2444 text_sme_num->SetTextSize(0.03);
2446 char* f_in_sm =
new char[fgMaxCar]; fCnew++;
2447 TText *text_sm_num =
new TText(); fCnewRoot++;
2448 text_sm_num->SetTextColor(couleur_noir);
2449 text_sm_num->SetTextSize(0.03);
2451 char* f_in_hsd =
new char[fgMaxCar]; fCnew++;
2452 TText *text_hsd_num =
new TText(); fCnewRoot++;
2453 text_hsd_num->SetTextColor(couleur_noir);
2454 text_hsd_num->SetTextSize(0.03);
2459 Double_t off_set = (Double_t)1.;
2463 for (Int_t i_chan = 0; i_chan < fEcal->MaxCrysInTow(); i_chan++)
2465 Int_t i_xgeo = GetXSampInStin(SMNumber, n1SMTow, i_chan, i_samp);
2466 Int_t i_ygeo = GetYSampInStin(SMNumber, n1SMTow, i_chan, i_samp);
2468 Double_t xgi = i_xgeo + 3.*off_set;
2469 Double_t ygj = i_ygeo + 7.*off_set;
2471 Double_t xgi_sme = i_xgeo + 3.*off_set;
2472 Double_t ygj_sme = i_ygeo + 5.*off_set;
2474 Double_t xgi_sm = i_xgeo + 3.*off_set;
2475 Double_t ygj_sm = i_ygeo + 3.*off_set;
2477 Double_t xgi_hsd = i_xgeo + 3.*off_set;
2478 Double_t ygj_hsd = i_ygeo + 1.*off_set;
2480 Int_t i_crys_sme = fEcalNumbering->Get0SMEchaFrom1SMTowAnd0TowEcha(n1SMTow, i_chan);
2481 Int_t i_crys_sm = fEcalNumbering->Get1SMCrysFrom1SMTowAnd0TowEcha(n1SMTow, i_chan);
2483 Double_t
Eta = fEcalNumbering->GetEta(SMNumber, n1SMTow, i_chan);
2484 Double_t
Phi = fEcalNumbering->GetPhi(SMNumber, n1SMTow, i_chan);
2486 Int_t i_crys_hsd = fEcalNumbering->GetHashedNumberFromIEtaAndIPhi((Int_t)Eta, (Int_t)Phi);
2490 sprintf(f_in_elec,
"%d", i_chan);
2491 text_elec_num->DrawText(xgi, ygj, f_in_elec);
2493 sprintf(f_in_sme,
"%d", i_crys_sme);
2494 text_sme_num->DrawText(xgi_sme, ygj_sme, f_in_sme);
2496 sprintf(f_in_sm,
"%d", i_crys_sm);
2497 text_sm_num->DrawText(xgi_sm, ygj_sm, f_in_sm);
2499 sprintf(f_in_hsd,
"%d", i_crys_hsd);
2500 text_sm_num->DrawText(xgi_hsd, ygj_hsd, f_in_hsd);
2502 text_sm_num->Delete(); text_sm_num = 0; fCdeleteRoot++;
2503 text_sme_num->Delete(); text_sme_num = 0; fCdeleteRoot++;
2504 text_elec_num->Delete(); text_elec_num = 0; fCdeleteRoot++;
2505 text_hsd_num->Delete(); text_hsd_num = 0; fCdeleteRoot++;
2507 ViewStinGrid(SMNumber, n1SMTow, MatSize, size_eta, size_phi,
"CrystalNumbering");
2510 h_gbid->SetStats(b_true);
2512 h_gbid->Delete(); h_gbid = 0; fCdeleteRoot++;
2514 delete [] f_in; f_in = 0; fCdelete++;
2515 delete [] f_in_sm; f_in_sm = 0; fCdelete++;
2516 delete [] f_in_sme; f_in_sme = 0; fCdelete++;
2517 delete [] f_in_elec; f_in_elec = 0; fCdelete++;
2521 cout <<
"!TEcnaHistos::TowerCrystalNumbering(...)> SM = " << SMNumber
2522 <<
". Out of range ( range = [1," << fEcal->MaxSMInEB() <<
"] )" << fTTBELL << endl;
2537 if( (DeeNumber > 0) && (DeeNumber <= fEcal->MaxDeeInEE()) )
2539 Int_t n1DeeSCEcna = fEcalNumbering->Get1DeeSCEcnaFromDeeSCCons(DeeNumber, n1DeeSCCons);
2540 fFapStexType = fEcalNumbering->GetEEDeeType(DeeNumber);
2541 fFapStinQuadType = fEcalNumbering->GetSCQuadFrom1DeeSCEcna(n1DeeSCEcna);
2544 Int_t size_IX = fEcal->MaxCrysIXInSC();
2545 Int_t size_IY = fEcal->MaxCrysIYInSC();
2549 Int_t nb_bins = fEcal->MaxSampADC();
2550 Int_t nx_gbins = nb_bins*size_IX;
2551 Int_t ny_gbins = nb_bins*size_IY;
2553 Axis_t xinf_gbid = (Axis_t)0.;
2554 Axis_t xsup_gbid = (Axis_t)fEcal->MaxSampADC()*size_IX;
2555 Axis_t yinf_gbid = (Axis_t)0.;
2556 Axis_t ysup_gbid = (Axis_t)fEcal->MaxSampADC()*size_IY;
2558 TString fg_name =
"crystalnbring";
2559 TString fg_tit =
"Xtal numbering for construction";
2562 h_gbid =
new TH2D(fg_name.Data(), fg_tit.Data(),
2563 nx_gbins, xinf_gbid, xsup_gbid,
2564 ny_gbins, yinf_gbid, ysup_gbid); fCnewRoot++;
2569 char* f_in =
new char[fgMaxCar]; fCnew++;
2573 UInt_t canv_w = fCnaParHistos->CanvasFormatW(
"petit");
2574 UInt_t canv_h = fCnaParHistos->CanvasFormatH(
"petit");
2577 Color_t couleur_rouge = fCnaParHistos->ColorDefinition(
"rouge");
2580 gStyle->SetPalette(1,0);
2582 fCnaParHistos->SetViewHistoStyle(
"Stin");
2585 SetAllPavesViewStinCrysNb(DeeNumber, n1DeeSCEcna);
2589 sprintf(f_in,
"Crystal_Numbering_for_%s_X_%d_%s%d",
2590 fFapStinName.Data(), n1DeeSCEcna, fFapStexName.Data(), DeeNumber);
2592 SetHistoPresentation((TH1D*)h_gbid,
"Stin");
2594 TCanvas *MainCanvas =
new TCanvas(f_in, f_in, canv_w , canv_h); fCnewRoot++;
2595 fCurrentCanvas = MainCanvas; fCurrentCanvasName = f_in;
2600 Double_t x_margin = fCnaParHistos->BoxLeftX(
"bottom_left_box") - 0.005;
2601 Double_t y_margin = fCnaParHistos->BoxTopY(
"bottom_right_box") + 0.005;
2603 MainCanvas->Divide(1, 1, x_margin, y_margin);
2605 fPavComStex->Draw();
2606 fPavComStin->Draw();
2607 fPavComCxyz->Draw();
2613 gStyle->SetMarkerColor(couleur_rouge);
2616 gPad->SetLogy(logy);
2619 h_gbid->SetStats(b_false);
2620 fCnaParHistos->SetViewHistoOffsets((TH1D*)h_gbid,
"Stin",
" ");
2621 h_gbid->DrawCopy(
"COLZ");
2625 TString SCQuadType = fEcalNumbering->GetSCQuadFrom1DeeSCEcna(n1DeeSCEcna);
2626 TString DeeDir = fEcalNumbering->GetDeeDirViewedFromIP(DeeNumber);
2627 TString DeeEndcap = fEcalNumbering->GetEEDeeEndcap(DeeNumber);
2628 Color_t couleur_SC = GetSCColor(DeeEndcap, DeeDir, SCQuadType);
2630 char* f_in_elec =
new char[fgMaxCar]; fCnew++;
2631 TText *text_elec_num =
new TText(); fCnewRoot++;
2632 text_elec_num->SetTextColor(couleur_SC);
2633 text_elec_num->SetTextSize(0.06);
2637 Double_t off_set = (Double_t)(fEcal->MaxSampADC()/3);
2641 for (Int_t i_chan = 0; i_chan < fEcal->MaxCrysInSC(); i_chan++)
2643 Int_t i_xgeo = GetXSampInStin(DeeNumber, n1DeeSCEcna, i_chan, i_samp);
2644 Int_t i_ygeo = GetYSampInStin(DeeNumber, n1DeeSCEcna, i_chan, i_samp);
2646 Double_t xgi = i_xgeo + off_set;
2647 Double_t ygj = i_ygeo + 2*off_set;
2650 Int_t i_chan_p = i_chan+1;
2651 sprintf(f_in_elec,
"%d", i_chan_p);
2652 text_elec_num->DrawText(xgi, ygj, f_in_elec);
2654 text_elec_num->Delete(); text_elec_num = 0; fCdeleteRoot++;
2656 ViewStinGrid(DeeNumber, n1DeeSCEcna, fEcal->MaxSampADC(), size_IX, size_IY,
"CrystalNumbering");
2659 h_gbid->SetStats(b_true);
2661 h_gbid->Delete(); h_gbid = 0; fCdeleteRoot++;
2663 delete [] f_in; f_in = 0; fCdelete++;
2664 delete [] f_in_elec; f_in_elec = 0; fCdelete++;
2668 cout <<
"!TEcnaHistos::SCCrystalNumbering(...)> Dee = " << DeeNumber
2669 <<
". Out of range ( range = [1," << fEcal->MaxDeeInEE() <<
"] )" << fTTBELL << endl;
2680 const Int_t& i0StinEcha,
const Int_t& i_samp)
2686 if( fFlagSubDet ==
"EB" )
2687 {TString ctype = fEcalNumbering->GetStinLvrbType(StexStin);
2688 TString btype = fEcalNumbering->GetStexHalfStas(StexNumber);
2689 if( (btype ==
"EB+" && ctype ==
"bottom") || (btype ==
"EB-" && ctype ==
"top") )
2690 {ix_geo = ( (fEcal->MaxCrysHocoInStin()-1)-(i0StinEcha/fEcal->MaxCrysHocoInStin()) )
2691 *fEcal->MaxSampADC() + i_samp;}
2692 if( (btype ==
"EB+" && ctype ==
"top") || (btype ==
"EB-" && ctype ==
"bottom") )
2693 {ix_geo = ( i0StinEcha/fEcal->MaxCrysHocoInStin() )*fEcal->MaxSampADC() + i_samp;}}
2695 if( fFlagSubDet ==
"EE" )
2696 { TString DeeDir = fEcalNumbering->GetDeeDirViewedFromIP(StexNumber);
2697 if( DeeDir ==
"right" )
2698 {ix_geo = (fEcalNumbering->GetIXCrysInSC(StexNumber, StexStin, i0StinEcha)-1)*fEcal->MaxSampADC() + i_samp;}
2699 if( DeeDir ==
"left" )
2700 {ix_geo = (fEcal->MaxCrysHocoInStin() - fEcalNumbering->GetIXCrysInSC(StexNumber, StexStin, i0StinEcha))*
2701 fEcal->MaxSampADC() + i_samp;}}
2707 const Int_t& i0StinEcha,
const Int_t& j_samp)
2713 if( fFlagSubDet ==
"EB" )
2715 TString ctype = fEcalNumbering->GetStinLvrbType(StexStin);
2716 TString btype = fEcalNumbering->GetStexHalfStas(StexNumber);
2720 if( (btype ==
"EB+" && ctype ==
"top") || (btype ==
"EB-" && ctype ==
"bottom") )
2722 if( i0StinEcha >= 0 && i0StinEcha <= 4 ) {jy_geo = (i0StinEcha - 0)*fEcal->MaxSampADC() + j_samp;}
2723 if( i0StinEcha >= 5 && i0StinEcha <= 9 ) {jy_geo = -(i0StinEcha - 9)*fEcal->MaxSampADC() + j_samp;}
2724 if( i0StinEcha >= 10 && i0StinEcha <= 14 ) {jy_geo = (i0StinEcha - 10)*fEcal->MaxSampADC() + j_samp;}
2725 if( i0StinEcha >= 15 && i0StinEcha <= 19 ) {jy_geo = -(i0StinEcha - 19)*fEcal->MaxSampADC() + j_samp;}
2726 if( i0StinEcha >= 20 && i0StinEcha <= 24 ) {jy_geo = (i0StinEcha - 20)*fEcal->MaxSampADC() + j_samp;}
2729 if( (btype ==
"EB+" && ctype ==
"bottom") || (btype ==
"EB-" && ctype ==
"top") )
2731 if( i0StinEcha >= 0 && i0StinEcha <= 4 )
2732 {jy_geo = ( (fEcal->MaxCrysVecoInStin()-1) - (i0StinEcha- 0))*fEcal->MaxSampADC() + j_samp;}
2733 if( i0StinEcha >= 5 && i0StinEcha <= 9 )
2734 {jy_geo = ( (fEcal->MaxCrysVecoInStin()-1) + (i0StinEcha- 9))*fEcal->MaxSampADC() + j_samp;}
2735 if( i0StinEcha >= 10 && i0StinEcha <= 14 )
2736 {jy_geo = ( (fEcal->MaxCrysVecoInStin()-1) - (i0StinEcha-10))*fEcal->MaxSampADC() + j_samp;}
2737 if( i0StinEcha >= 15 && i0StinEcha <= 19 )
2738 {jy_geo = ( (fEcal->MaxCrysVecoInStin()-1) + (i0StinEcha-19))*fEcal->MaxSampADC() + j_samp;}
2739 if( i0StinEcha >= 20 && i0StinEcha <= 24 )
2740 {jy_geo = ( (fEcal->MaxCrysVecoInStin()-1) - (i0StinEcha-20))*fEcal->MaxSampADC() + j_samp;}
2744 if( fFlagSubDet ==
"EE" )
2746 (fEcalNumbering->GetJYCrysInSC(StexNumber, StexStin, i0StinEcha) - 1)*fEcal->MaxSampADC() + j_samp;}
2758 const Int_t& StexStin,
const Int_t& MatSize,
2759 const Int_t& size_Hoco,
const Int_t& size_Veco,
2760 const TString& chopt)
2764 if( fFlagSubDet ==
"EB"){ViewTowerGrid(StexNumber, StexStin, MatSize,
2765 size_Hoco, size_Veco, chopt);}
2766 if( fFlagSubDet ==
"EE"){ViewSCGrid(StexNumber, StexStin, MatSize,
2767 size_Hoco, size_Veco, chopt);}
2778 const Int_t& n1SMTow,
const Int_t& MatSize,
2779 const Int_t& size_eta,
const Int_t& size_phi,
2780 const TString& chopt)
2784 Double_t xline = 0.;
2786 Double_t yline_bot = 0.;
2787 Double_t yline_top = (Double_t)(MatSize*size_eta);
2789 for( Int_t
i = 0 ;
i < size_eta ;
i++)
2791 xline = xline + (Double_t)MatSize;
2793 lin =
new TLine(xline, yline_bot, xline, yline_top); fCnewRoot++;
2798 Double_t xline_left = 0;
2799 Double_t xline_right = (Double_t)(MatSize*size_eta);
2801 Double_t yline = -(Double_t)MatSize;
2803 for( Int_t
j = 0 ;
j < size_eta+1 ;
j++)
2805 yline = yline + (Double_t)MatSize;
2807 lin =
new TLine(xline_left, yline, xline_right, yline); fCnewRoot++;
2816 Double_t eta_min = fEcalNumbering->GetIEtaMin(SMNumber, n1SMTow);
2817 Double_t eta_max = fEcalNumbering->GetIEtaMax(SMNumber, n1SMTow);
2819 TString x_var_name = GetEtaPhiAxisTitle(
"ietaTow");
2820 TString x_direction = fEcalNumbering->GetXDirectionEB(SMNumber);
2822 Float_t tit_siz_x = fCnaParHistos->AxisTitleSize();
2823 Float_t lab_siz_x = fCnaParHistos->AxisLabelSize();
2824 Float_t tic_siz_x = fCnaParHistos->AxisTickSize();
2825 Float_t tit_off_x = fCnaParHistos->AxisTitleOffset(
"Towx");
2826 Float_t lab_off_x = fCnaParHistos->AxisLabelOffset(
"Towx");
2828 new TF1(
"f1", x_direction.Data(), eta_min, eta_max); fCnewRoot++;
2830 TGaxis* sup_axis_x = 0;
2832 if ( x_direction ==
"-x" )
2833 {sup_axis_x =
new TGaxis( -(Float_t)MatSize, (Float_t)0, (Float_t)(size_eta*MatSize), (Float_t)0.,
2834 "f1", size_eta,
"BCS" , 0.); fCnewRoot++;
2835 cout <<
"TEcnaHistosEB::ViewTowerGrid()> non foreseen case. eta with -x direction." << fTTBELL << endl;}
2837 if ( x_direction ==
"x" )
2838 {sup_axis_x =
new TGaxis( (Float_t)0. , (Float_t)0., (Float_t)(size_eta*MatSize), (Float_t)0.,
2839 "f1", size_eta,
"CS" , 0.); fCnewRoot++;}
2841 sup_axis_x->SetTitle(x_var_name);
2842 sup_axis_x->SetTitleSize(tit_siz_x);
2843 sup_axis_x->SetTitleOffset(tit_off_x);
2844 sup_axis_x->SetLabelSize(lab_siz_x);
2845 sup_axis_x->SetLabelOffset(lab_off_x);
2846 sup_axis_x->SetTickSize(tic_siz_x);
2847 sup_axis_x->Draw(
"SAME");
2850 Float_t tit_siz_y = fCnaParHistos->AxisTitleSize();
2851 Float_t lab_siz_y = fCnaParHistos->AxisLabelSize();
2852 Float_t tic_siz_y = fCnaParHistos->AxisTickSize();
2853 Float_t tit_off_y = fCnaParHistos->AxisTitleOffset(
"Towy");
2854 Float_t lab_off_y = fCnaParHistos->AxisLabelOffset(
"Towy");
2856 if( chopt ==
"CrystalNumbering" )
2858 Double_t phi_min = fEcalNumbering->GetPhiMin(SMNumber, n1SMTow);
2859 Double_t phi_max = fEcalNumbering->GetPhiMax(SMNumber, n1SMTow);
2861 TString y_var_name = GetEtaPhiAxisTitle(
"phi");
2862 TString y_direction = fEcalNumbering->GetYDirectionEB(SMNumber);
2864 new TF1(
"f2", y_direction.Data(), phi_min, phi_max); fCnewRoot++;
2865 TGaxis* sup_axis_y = 0;
2867 if ( y_direction ==
"-x" )
2868 {sup_axis_y =
new TGaxis( (Float_t)(size_eta*MatSize), (Float_t)0.,
2869 (Float_t)(size_eta*MatSize), (Float_t)(size_phi*MatSize),
2870 "f2", size_phi,
"+CS", 0.); fCnewRoot++;}
2872 if ( y_direction ==
"x" )
2873 {sup_axis_y =
new TGaxis( (Float_t)0., (Float_t)0., (Float_t) 0., (Float_t)(size_phi*MatSize),
2874 "f2", size_phi,
"BCS", 0.); fCnewRoot++;}
2876 sup_axis_y->SetTitle(y_var_name);
2877 sup_axis_y->SetTitleSize(tit_siz_y);
2878 sup_axis_y->SetTitleOffset(tit_off_y);
2879 sup_axis_y->SetLabelSize(lab_siz_y);
2880 sup_axis_y->SetLabelOffset(lab_off_y);
2881 sup_axis_y->SetTickSize(tic_siz_y);
2882 sup_axis_y->Draw(
"SAME");
2886 Double_t j_phi_min = fEcalNumbering->GetJPhiMin(SMNumber, n1SMTow);
2887 Double_t j_phi_max = fEcalNumbering->GetJPhiMax(SMNumber, n1SMTow);
2889 TString jy_var_name = GetEtaPhiAxisTitle(
"jphiTow");
2890 TString jy_direction = fEcalNumbering->GetJYDirectionEB(SMNumber);
2892 new TF1(
"f3", jy_direction.Data(), j_phi_min, j_phi_max); fCnewRoot++;
2893 TGaxis* sup_axis_jy = 0;
2895 sup_axis_jy =
new TGaxis( (Float_t)0., (Float_t)0.,
2896 (Float_t)0., (Float_t)(size_phi*MatSize),
2897 "f3", size_phi,
"SC", 0.); fCnewRoot++;
2899 sup_axis_jy->SetTitle(jy_var_name);
2900 sup_axis_jy->SetTitleSize(tit_siz_y);
2901 sup_axis_jy->SetTitleOffset(tit_off_y);
2902 sup_axis_jy->SetLabelSize(lab_siz_y);
2903 sup_axis_jy->SetLabelOffset(lab_off_y);
2904 sup_axis_jy->SetTickSize(tic_siz_y);
2905 sup_axis_jy->Draw(
"SAME");
2915 const Int_t& MatSize,
const Int_t& size_IX,
2916 const Int_t& size_IY,
const TString& chopt)
2920 Double_t xline = 0.;
2922 Double_t yline_bot = 0.;
2923 Double_t yline_top = (Double_t)(MatSize*size_IX);
2925 for( Int_t
i = 0 ;
i < size_IX ;
i++)
2927 xline = xline + (Double_t)MatSize;
2929 lin =
new TLine(xline, yline_bot, xline, yline_top); fCnewRoot++;
2934 Double_t xline_left = 0;
2935 Double_t xline_right = (Double_t)(MatSize*size_IX);
2937 Double_t yline = -(Double_t)MatSize;
2939 for( Int_t
j = 0 ;
j < size_IX+1 ;
j++)
2941 yline = yline + (Double_t)MatSize;
2943 lin =
new TLine(xline_left, yline, xline_right, yline); fCnewRoot++;
2952 Double_t IX_min = fEcalNumbering->GetIIXMin(n1DeeSCEcna) - 0.5;
2953 Double_t IX_max = fEcalNumbering->GetIIXMax(n1DeeSCEcna) + 0.5;
2955 Float_t axis_x_inf = 0;
2956 Float_t axis_x_sup = 0;
2957 Float_t axis_y_inf = 0;
2958 Float_t axis_y_sup = 0;
2959 Int_t axis_nb_div = 1;
2960 Double_t IX_values_min = 0;
2961 Double_t IX_values_max = 0;
2962 Option_t* axis_chopt =
"CS";
2964 Float_t tit_siz_x = fCnaParHistos->AxisTitleSize();
2965 Float_t lab_siz_x = fCnaParHistos->AxisLabelSize();
2966 Float_t tic_siz_x = fCnaParHistos->AxisTickSize();
2967 Float_t tit_off_x = fCnaParHistos->AxisTitleOffset(
"SCx");
2968 Float_t lab_off_x = fCnaParHistos->AxisLabelOffset(
"SCx");
2970 TString StrDee =
"iIXSC";
2971 if( DeeNumber == 1 ){StrDee =
"iIXDee1";}
2972 if( DeeNumber == 2 ){StrDee =
"iIXDee2";}
2973 if( DeeNumber == 3 ){StrDee =
"iIXDee3";}
2974 if( DeeNumber == 4 ){StrDee =
"iIXDee4";}
2976 TString x_var_name = GetIXIYAxisTitle(StrDee.Data());
2977 TString x_direction = fEcalNumbering->GetXDirectionEE(DeeNumber);
2979 TGaxis* sup_axis_x = 0;
2981 if( DeeNumber == 1 )
2983 axis_x_inf = 0; axis_y_inf = 0; axis_x_sup = size_IX*MatSize; axis_y_sup = 0;
2984 axis_nb_div = size_IX;
2985 IX_values_min = -IX_min ; IX_values_max = -IX_max; axis_chopt =
"CS";
2987 if( DeeNumber == 2 )
2989 axis_x_inf = 0; axis_y_inf = 0; axis_x_sup = size_IX*MatSize; axis_y_sup = 0;
2990 axis_nb_div = size_IX;
2991 IX_values_min = IX_min ; IX_values_max = IX_max; axis_chopt =
"CS";
2993 if( DeeNumber == 3 )
2995 axis_x_inf = 0; axis_y_inf = 0; axis_x_sup = size_IX*MatSize; axis_y_sup = 0;
2996 axis_nb_div = size_IX;
2997 IX_values_min = IX_min ; IX_values_max = IX_max; axis_chopt =
"CS";
2999 if( DeeNumber == 4 )
3001 axis_x_inf = 0; axis_y_inf = 0; axis_x_sup = size_IX*MatSize; axis_y_sup = 0;
3002 axis_nb_div = size_IX;
3003 IX_values_min = -IX_min ; IX_values_max = -IX_max; axis_chopt =
"CS";
3006 new TF1(
"f1", x_direction.Data(), IX_values_min, IX_values_max); fCnewRoot++;
3007 sup_axis_x =
new TGaxis( axis_x_inf, axis_y_inf, axis_x_sup, axis_y_sup,
3008 "f1", axis_nb_div, axis_chopt , 0.); fCnewRoot++;
3010 sup_axis_x->SetTitle(x_var_name);
3011 sup_axis_x->SetTitleSize(tit_siz_x);
3012 sup_axis_x->SetTitleOffset(tit_off_x);
3013 sup_axis_x->SetLabelSize(lab_siz_x);
3014 sup_axis_x->SetLabelOffset(lab_off_x);
3015 sup_axis_x->SetTickSize(tic_siz_x);
3016 sup_axis_x->Draw(
"SAME");
3020 Float_t tit_siz_y = fCnaParHistos->AxisTitleSize();
3021 Float_t lab_siz_y = fCnaParHistos->AxisLabelSize();
3022 Float_t tic_siz_y = fCnaParHistos->AxisTickSize();
3023 Float_t tit_off_y = fCnaParHistos->AxisTitleOffset(
"SCy");
3024 Float_t lab_off_y = fCnaParHistos->AxisLabelOffset(
"SCy");
3026 Double_t j_IY_min = fEcalNumbering->GetJIYMin(DeeNumber, n1DeeSCEcna) - 0.5;
3027 Double_t j_IY_max = fEcalNumbering->GetJIYMax(DeeNumber, n1DeeSCEcna) + 0.5;
3029 TString jy_var_name = GetIXIYAxisTitle(
"jIYSC");
3030 TString jy_direction = fEcalNumbering->GetJYDirectionEE(DeeNumber);
3032 new TF1(
"f2", jy_direction.Data(), j_IY_min, j_IY_max); fCnewRoot++;
3034 TGaxis* sup_axis_jy =
new TGaxis( (Float_t)0., (Float_t)0.,
3035 (Float_t)0., (Float_t)(size_IY*MatSize),
3036 "f2", size_IY,
"CS", 0.); fCnewRoot++;
3038 sup_axis_jy->SetTitle(jy_var_name);
3039 sup_axis_jy->SetTitleSize(tit_siz_y);
3040 sup_axis_jy->SetTitleOffset(tit_off_y);
3041 sup_axis_jy->SetLabelSize(lab_siz_y);
3042 sup_axis_jy->SetLabelOffset(lab_off_y);
3043 sup_axis_jy->SetTickSize(tic_siz_y);
3044 sup_axis_jy->Draw();
3063 const TString& HistoCode)
3067 Bool_t OKFileExists = kFALSE;
3068 Bool_t OKData = kFALSE;
3070 Int_t n1StexStin = -1;
3072 if( arg_AlreadyRead == fTobeRead )
3074 fMyRootFile->PrintNoComment();
3075 fMyRootFile->FileParameters(fFapAnaType, fFapNbOfSamples,
3076 fFapRunNumber, fFapFirstReqEvtNumber,
3077 fFapLastReqEvtNumber, fFapReqNbOfEvts,
3078 fFapStexNumber, fCfgResultsRootFilePath.Data());
3080 if( fMyRootFile->LookAtRootFile() == kTRUE ){OKFileExists = kTRUE;}
3082 if( OKFileExists == kTRUE )
3084 fFapNbOfEvts = fMyRootFile->GetNumberOfEvents(fFapReqNbOfEvts, fFapStexNumber);
3085 TString fp_name_short = fMyRootFile->GetRootFileNameShort();
3089 fStartDate = fMyRootFile->GetStartDate();
3090 fStopDate = fMyRootFile->GetStopDate();
3091 fRunType = fMyRootFile->GetRunType();
3094 if( arg_AlreadyRead >= 1 )
3096 OKFileExists = kTRUE;
3099 if( OKFileExists == kTRUE )
3101 fStatusFileFound = kTRUE;
3104 char* f_in_mat_tit =
new char[fgMaxCar]; fCnew++;
3105 sprintf(f_in_mat_tit,
"?");
3107 if (HistoCode ==
"D_NOE_ChNb") {sprintf(f_in_mat_tit,
"Number of events");}
3108 if (HistoCode ==
"D_Ped_ChNb") {sprintf(f_in_mat_tit,
"Pedestals");}
3109 if (HistoCode ==
"D_TNo_ChNb") {sprintf(f_in_mat_tit,
"Total noise");}
3110 if (HistoCode ==
"D_MCs_ChNb") {sprintf(f_in_mat_tit,
"Mean cor(s,s')");}
3111 if (HistoCode ==
"D_LFN_ChNb") {sprintf(f_in_mat_tit,
"Low frequency noise");}
3112 if (HistoCode ==
"D_HFN_ChNb") {sprintf(f_in_mat_tit,
"High frequency noise");}
3113 if (HistoCode ==
"D_SCs_ChNb") {sprintf(f_in_mat_tit,
"Sigma of cor(s,s')");}
3116 Int_t GeoBidSizeHoco = fEcal->MaxStinHocoInStex()*fEcal->MaxCrysHocoInStin();
3117 Int_t GeoBidSizeVeco = fEcal->MaxStinVecoInStex()*fEcal->MaxCrysVecoInStin();
3119 Int_t nb_binx = GeoBidSizeHoco;
3120 Int_t nb_biny = GeoBidSizeVeco;
3121 Axis_t xinf_bid = (Axis_t)0.;
3122 Axis_t xsup_bid = (Axis_t)GeoBidSizeHoco;
3123 Axis_t yinf_bid = (Axis_t)0.;
3124 Axis_t ysup_bid = (Axis_t)GeoBidSizeVeco;
3126 TString axis_x_var_name =
" #Hoco ";
3127 TString axis_y_var_name =
" #Veco ";
3131 TH2D* h_geo_bid =
new TH2D(
"geobidim_ViewStex", f_in_mat_tit,
3132 nb_binx, xinf_bid, xsup_bid,
3133 nb_biny, yinf_bid, ysup_bid); fCnewRoot++;
3138 TVectorD partial_histp(fEcal->MaxCrysEcnaInStex());
3139 for(Int_t
i=0;
i<fEcal->MaxCrysEcnaInStex();
i++){partial_histp(
i)=(Double_t)0.;}
3141 if( arg_AlreadyRead == fTobeRead )
3143 if (HistoCode ==
"D_NOE_ChNb" ){partial_histp = fMyRootFile->ReadNumberOfEvents(fEcal->MaxCrysEcnaInStex());}
3144 if (HistoCode ==
"D_Ped_ChNb" ){
3145 partial_histp = fMyRootFile->ReadPedestals(fEcal->MaxCrysEcnaInStex());}
3146 if (HistoCode ==
"D_TNo_ChNb" ){
3147 partial_histp = fMyRootFile->ReadTotalNoise(fEcal->MaxCrysEcnaInStex());}
3148 if (HistoCode ==
"D_MCs_ChNb" ){
3149 partial_histp = fMyRootFile->ReadMeanCorrelationsBetweenSamples(fEcal->MaxCrysEcnaInStex());}
3150 if (HistoCode ==
"D_LFN_ChNb" ){
3151 partial_histp = fMyRootFile->ReadLowFrequencyNoise(fEcal->MaxCrysEcnaInStex());}
3152 if (HistoCode ==
"D_HFN_ChNb" ){
3153 partial_histp = fMyRootFile->ReadHighFrequencyNoise(fEcal->MaxCrysEcnaInStex());}
3154 if (HistoCode ==
"D_SCs_ChNb" ){
3155 partial_histp = fMyRootFile->ReadSigmaOfCorrelationsBetweenSamples(fEcal->MaxCrysEcnaInStex());}
3157 OKData = fMyRootFile->DataExist();
3160 if( arg_AlreadyRead >= 1 )
3162 partial_histp = arg_read_histo;
3167 TMatrixD read_matrix(nb_binx, nb_biny);
3168 for(Int_t
i=0;
i<nb_binx;
i++)
3169 {
for(Int_t
j=0;
j<nb_biny;
j++){read_matrix(
i,
j)=(Double_t)0.;}}
3171 if ( OKData == kTRUE )
3173 fStatusDataExist = kTRUE;
3175 for(Int_t i0StexStinEcna=0; i0StexStinEcna<fEcal->MaxStinEcnaInStex(); i0StexStinEcna++)
3177 if( arg_AlreadyRead == fTobeRead )
3178 {n1StexStin = fMyRootFile->GetStexStinFromIndex(i0StexStinEcna);}
3179 if( arg_AlreadyRead >= 1 )
3180 {n1StexStin = i0StexStinEcna+1;}
3182 if (n1StexStin != -1)
3185 for(Int_t i0StinEcha=0; i0StinEcha<fEcal->MaxCrysInStin(); i0StinEcha++)
3187 Int_t iStexEcha = (n1StexStin-1)*fEcal->MaxCrysInStin() + i0StinEcha;
3188 Int_t i_xgeo = GetXCrysInStex(fFapStexNumber, n1StexStin, i0StinEcha);
3189 Int_t i_ygeo = GetYCrysInStex(fFapStexNumber, n1StexStin, i0StinEcha);
3191 if(i_xgeo >=0 && i_xgeo < nb_binx && i_ygeo >=0 && i_ygeo < nb_biny)
3193 read_matrix(i_xgeo, i_ygeo) = partial_histp(iStexEcha);
3194 h_geo_bid->Fill((Double_t)i_xgeo, (Double_t)i_ygeo,
3195 (Double_t)read_matrix(i_xgeo, i_ygeo));
3205 SetYminMemoFromValue(HistoCode.Data(), fCnaParHistos->GetYminDefaultValue(HistoCode.Data()));
3206 SetYmaxMemoFromValue(HistoCode.Data(), fCnaParHistos->GetYmaxDefaultValue(HistoCode.Data()));
3208 if( fUserHistoMin == fUserHistoMax ){fFlagUserHistoMin =
"AUTO"; fFlagUserHistoMax =
"AUTO";}
3210 if( fFlagUserHistoMin ==
"ON" )
3211 {SetYminMemoFromValue(HistoCode.Data(), fUserHistoMin); fFlagUserHistoMin =
"OFF";}
3212 if( fFlagUserHistoMax ==
"ON" )
3213 {SetYmaxMemoFromValue(HistoCode.Data(), fUserHistoMax); fFlagUserHistoMax =
"OFF";}
3215 if( fFlagUserHistoMin ==
"AUTO" )
3216 {SetYminMemoFromValue(HistoCode.Data(), h_geo_bid->GetMinimum()); fFlagUserHistoMin =
"OFF";}
3217 if( fFlagUserHistoMax ==
"AUTO" )
3218 {SetYmaxMemoFromValue(HistoCode.Data(), h_geo_bid->GetMaximum()); fFlagUserHistoMax =
"OFF";}
3220 SetHistoFrameYminYmaxFromMemo((TH1D*)h_geo_bid, HistoCode);
3236 char* f_in =
new char[fgMaxCar]; fCnew++;
3239 UInt_t canv_h = fCnaParHistos->CanvasFormatH(
"petit");
3240 UInt_t canv_w = fCnaParHistos->CanvasFormatW(
"petit");
3242 if( fFlagSubDet ==
"EB")
3243 {canv_h = fCnaParHistos->CanvasFormatH(
"etaphiSM");
3244 canv_w = fCnaParHistos->CanvasFormatW(
"etaphiSM");}
3245 if( fFlagSubDet ==
"EE")
3246 {canv_h = fCnaParHistos->CanvasFormatH(
"IXIYDee");
3247 canv_w = fCnaParHistos->CanvasFormatW(
"IXIYDee");}
3250 SetAllPavesViewStex(fFapStexNumber);
3253 TString name_cov_cor;
3254 Int_t MaxCar = fgMaxCar;
3255 name_cov_cor.Resize(MaxCar);
3258 if( HistoCode ==
"D_NOE_ChNb"){name_cov_cor =
"Nb_Of_D_Adc_EvDs";}
3259 if( HistoCode ==
"D_Ped_ChNb"){name_cov_cor =
"Pedestals";}
3260 if( HistoCode ==
"D_TNo_ChNb"){name_cov_cor =
"Total_noise";}
3261 if( HistoCode ==
"D_MCs_ChNb"){name_cov_cor =
"Mean_Corss";}
3262 if( HistoCode ==
"D_LFN_ChNb"){name_cov_cor =
"Low_Fq_Noise";}
3263 if( HistoCode ==
"D_HFN_ChNb"){name_cov_cor =
"High_Fq_Noise";}
3264 if( HistoCode ==
"D_SCs_ChNb"){name_cov_cor =
"Sigma_Corss";}
3268 name_visu.Resize(MaxCar);
3271 TString flag_already_read;
3273 flag_already_read.Resize(MaxCar);
3274 flag_already_read =
"?";
3275 sprintf(f_in,
"M%d", arg_AlreadyRead); flag_already_read = f_in;
3277 sprintf(f_in,
"%s_%s_S1_%d_R%d_%d_%d_%s%d_%s_HocoVeco_R%s",
3278 name_cov_cor.Data(), fFapAnaType.Data(), fFapNbOfSamples, fFapRunNumber,
3279 fFapFirstReqEvtNumber, fFapLastReqEvtNumber, fFapStexName.Data(), fFapStexNumber,
3280 name_visu.Data(), flag_already_read.Data());
3282 if( fFlagSubDet ==
"EB" ){SetHistoPresentation((TH1D*)h_geo_bid,
"Stex2DEB");}
3283 if( fFlagSubDet ==
"EE" ){SetHistoPresentation((TH1D*)h_geo_bid,
"Stex2DEE");}
3285 TCanvas *MainCanvas =
new TCanvas(f_in, f_in, canv_w, canv_h); fCnewRoot++;
3286 fCurrentCanvas = MainCanvas; fCurrentCanvasName = f_in;
3290 delete [] f_in; f_in = 0; fCdelete++;
3293 if( fPavComGeneralTitle != 0 ){fPavComGeneralTitle->Draw();}
3294 fPavComStex->Draw();
3295 fPavComAnaRun->Draw();
3296 fPavComNbOfEvts->Draw();
3299 Double_t x_low = fCnaParHistos->BoxLeftX(
"bottom_left_box") - 0.005;
3300 Double_t y_low = fCnaParHistos->BoxTopY(
"bottom_left_box") + 0.005;
3301 Double_t x_margin = x_low;
3302 Double_t y_margin = y_low;
3303 MainCanvas->Divide( 1, 1, x_margin, y_margin);
3307 if( fFlagSubDet ==
"EE" )
3308 {Double_t x_up = fCnaParHistos->BoxRightX(
"bottom_right_box") + 0.005;
3309 Double_t y_up = fCnaParHistos->BoxBottomY(
"top_left_box_Dee") - 0.005;
3310 TVirtualPad* main_subpad = gPad;
3311 main_subpad->SetPad(x_low, y_low, x_up, y_up);}
3314 h_geo_bid->GetXaxis()->SetTitle(axis_x_var_name);
3315 h_geo_bid->GetYaxis()->SetTitle(axis_y_var_name);
3317 h_geo_bid->DrawCopy(
"COLZ");
3320 ViewStexGrid(fFapStexNumber,
" ");
3326 h_geo_bid->SetStats(b_true);
3327 h_geo_bid->Delete(); h_geo_bid = 0; fCdeleteRoot++;
3331 delete [] f_in_mat_tit; f_in_mat_tit = 0; fCdelete++;
3335 fStatusFileFound = kFALSE;
3337 cout <<
"!TEcnaHistos::ViewStex(...)> *ERROR* =====> "
3338 <<
" ROOT file not found" << fTTBELL << endl;
3354 fMyRootFile->PrintNoComment();
3355 fMyRootFile->FileParameters(fFapAnaType, fFapNbOfSamples,
3356 fFapRunNumber, fFapFirstReqEvtNumber,
3357 fFapLastReqEvtNumber, fFapReqNbOfEvts,
3358 fFapStexNumber, fCfgResultsRootFilePath.Data());
3360 if ( fMyRootFile->LookAtRootFile() == kTRUE )
3362 fStatusFileFound = kTRUE;
3364 fFapNbOfEvts = fMyRootFile->GetNumberOfEvents(fFapReqNbOfEvts, fFapStexNumber);
3365 TString fp_name_short = fMyRootFile->GetRootFileNameShort();
3369 fStartDate = fMyRootFile->GetStartDate();
3370 fStopDate = fMyRootFile->GetStopDate();
3371 fRunType = fMyRootFile->GetRunType();
3374 char* f_in_mat_tit =
new char[fgMaxCar]; fCnew++;
3376 if( fFlagSubDet ==
"EB" && Freq ==
"LF" )
3377 {sprintf(f_in_mat_tit,
"LF Cor(Xtal,Xtal') for each tower in SM");}
3378 if( fFlagSubDet ==
"EB" && Freq ==
"HF" )
3379 {sprintf(f_in_mat_tit,
"HF Cor(Xtal,Xtal') for each tower in SM");}
3380 if( fFlagSubDet ==
"EE" && Freq ==
"LF" )
3381 {sprintf(f_in_mat_tit,
"LF Cor(Xtal,Xtal') for each SC in Dee");}
3382 if( fFlagSubDet ==
"EE" && Freq ==
"HF" )
3383 {sprintf(f_in_mat_tit,
"HF Cor(Xtal,Xtal') for each SC in Dee");}
3386 Int_t GeoBidSizeHoco = fEcal->MaxStinHocoInStex()*fEcal->MaxCrysInStin();
3387 Int_t GeoBidSizeVeco = fEcal->MaxStinVecoInStex()*fEcal->MaxCrysInStin();
3389 Int_t nb_binx = GeoBidSizeHoco;
3390 Int_t nb_biny = GeoBidSizeVeco;
3391 Axis_t xinf_bid = (Axis_t)0.;
3392 Axis_t xsup_bid = (Axis_t)GeoBidSizeHoco;
3393 Axis_t yinf_bid = (Axis_t)0.;
3394 Axis_t ysup_bid = (Axis_t)GeoBidSizeVeco;
3396 TString axis_x_var_name =
" #Hoco ";
3397 TString axis_y_var_name =
" #varVeco ";
3400 TVectorD Stin_numbers(fEcal->MaxStinEcnaInStex());
3401 for(Int_t
i=0;
i<fEcal->MaxStinEcnaInStex();
i++){Stin_numbers(
i)=(Double_t)0.;}
3402 Stin_numbers = fMyRootFile->ReadStinNumbers(fEcal->MaxStinEcnaInStex());
3404 if ( fMyRootFile->DataExist() == kTRUE )
3406 fStatusDataExist = kTRUE;
3409 TMatrixD partial_matrix(fEcal->MaxCrysEcnaInStex(), fEcal->MaxCrysEcnaInStex());
3410 for(Int_t
i=0;
i<fEcal->MaxCrysEcnaInStex();
i++)
3411 {
for(Int_t
j=0;
j<fEcal->MaxCrysEcnaInStex();
j++){partial_matrix(
i,
j)=(Double_t)0.;}}
3415 partial_matrix = fMyRootFile->ReadLowFrequencyCorrelationsBetweenChannels(fEcal->MaxCrysEcnaInStex());
3419 partial_matrix = fMyRootFile->ReadHighFrequencyCorrelationsBetweenChannels(fEcal->MaxCrysEcnaInStex());
3422 if ( fMyRootFile->DataExist() == kTRUE )
3424 fStatusDataExist = kTRUE;
3427 TH2D* h_geo_bid =
new TH2D(
"geobidim_HocoVecoLHFCorcc", f_in_mat_tit,
3428 nb_binx, xinf_bid, xsup_bid,
3429 nb_biny, yinf_bid, ysup_bid); fCnewRoot++;
3432 fFapStexBarrel = fEcalNumbering->GetStexHalfStas(fFapStexNumber);
3434 for(Int_t i0StexStinEcna=0; i0StexStinEcna<fEcal->MaxStinEcnaInStex(); i0StexStinEcna++)
3436 Int_t n1StexStin = (Int_t)Stin_numbers(i0StexStinEcna);
3437 Int_t offset_x = ((n1StexStin-1)/fEcal->MaxStinVecoInStex())*fEcal->MaxCrysInStin();
3438 Int_t offset_y = ((n1StexStin-1)%fEcal->MaxStinVecoInStex())*fEcal->MaxCrysInStin();
3440 if (n1StexStin != -1)
3444 for(Int_t i0StinEcha=0; i0StinEcha<fEcal->MaxCrysInStin(); i0StinEcha++)
3446 for(Int_t j0StinEcha=0; j0StinEcha<fEcal->MaxCrysInStin(); j0StinEcha++)
3448 Int_t i_xgeo = offset_x + i0StinEcha;
3449 Int_t i_ygeo = offset_y + j0StinEcha;
3451 if(i_xgeo >=0 && i_xgeo < nb_binx && i_ygeo >=0 && i_ygeo < nb_biny)
3453 Int_t iEcha = (n1StexStin-1)*fEcal->MaxCrysInStin() + i0StinEcha;
3454 Int_t jEcha = (n1StexStin-1)*fEcal->MaxCrysInStin() + j0StinEcha;
3456 h_geo_bid->Fill((Double_t)i_xgeo, (Double_t)i_ygeo,
3457 (Double_t)partial_matrix(iEcha, jEcha));
3466 TString HistoCode =
"H2CorccInStins";
3470 SetYminMemoFromValue(HistoCode.Data(), fCnaParHistos->GetYminDefaultValue(HistoCode.Data()));
3471 SetYmaxMemoFromValue(HistoCode.Data(), fCnaParHistos->GetYmaxDefaultValue(HistoCode.Data()));
3473 if( fUserHistoMin == fUserHistoMax ){fFlagUserHistoMin =
"AUTO"; fFlagUserHistoMax =
"AUTO";}
3475 if( fFlagUserHistoMin ==
"ON" )
3476 {SetYminMemoFromValue(HistoCode.Data(), fUserHistoMin); fFlagUserHistoMin =
"OFF";}
3477 if( fFlagUserHistoMax ==
"ON" )
3478 {SetYmaxMemoFromValue(HistoCode.Data(), fUserHistoMax); fFlagUserHistoMax =
"OFF";}
3480 if( fFlagUserHistoMin ==
"AUTO" )
3481 {SetYminMemoFromValue(HistoCode.Data(), h_geo_bid->GetMinimum()); fFlagUserHistoMin =
"OFF";}
3482 if( fFlagUserHistoMax ==
"AUTO" )
3483 {SetYmaxMemoFromValue(HistoCode.Data(), h_geo_bid->GetMaximum()); fFlagUserHistoMax =
"OFF";}
3485 SetHistoFrameYminYmaxFromMemo((TH1D*)h_geo_bid, HistoCode);
3489 char* f_in =
new char[fgMaxCar]; fCnew++;
3493 UInt_t canv_h = fCnaParHistos->CanvasFormatH(
"petit");
3494 UInt_t canv_w = fCnaParHistos->CanvasFormatW(
"petit");
3496 if( fFlagSubDet ==
"EB")
3497 {canv_h = fCnaParHistos->CanvasFormatH(
"etaphiSM");
3498 canv_w = fCnaParHistos->CanvasFormatW(
"etaphiSM");}
3499 if( fFlagSubDet ==
"EE")
3500 {canv_h = fCnaParHistos->CanvasFormatH(
"IXIYDee");
3501 canv_w = fCnaParHistos->CanvasFormatW(
"IXIYDee");}
3504 SetAllPavesViewStex(fFapStexNumber);
3507 TString name_cov_cor;
3508 Int_t MaxCar = fgMaxCar;
3509 name_cov_cor.Resize(MaxCar);
3510 if( Freq ==
"LF" ){name_cov_cor =
"StexLFCorcc";}
3511 if( Freq ==
"HF" ){name_cov_cor =
"StexHFCorcc";}
3515 name_visu.Resize(MaxCar);
3518 sprintf(f_in,
"%s_%s_S1_%d_R%d_%d_%d_Stex%s%d_%s_HocoVeco",
3519 name_cov_cor.Data(), fFapAnaType.Data(), fFapNbOfSamples, fFapRunNumber,
3520 fFapFirstReqEvtNumber, fFapLastReqEvtNumber, fFapStexName.Data(), fFapStexNumber,
3523 if( fFlagSubDet ==
"EB" ){SetHistoPresentation((TH1D*)h_geo_bid,
"Stex2DEB");}
3524 if( fFlagSubDet ==
"EE" ){SetHistoPresentation((TH1D*)h_geo_bid,
"Stex2DEE");}
3526 TCanvas *MainCanvas =
new TCanvas(f_in, f_in, canv_w, canv_h); fCnewRoot++;
3527 fCurrentCanvas = MainCanvas; fCurrentCanvasName = f_in;
3532 delete [] f_in; f_in = 0; fCdelete++;
3535 if( fPavComGeneralTitle != 0 ){fPavComGeneralTitle->Draw();}
3536 fPavComStex->Draw();
3537 fPavComAnaRun->Draw();
3538 fPavComNbOfEvts->Draw();
3541 Double_t x_low = fCnaParHistos->BoxLeftX(
"bottom_left_box") - 0.005;
3542 Double_t y_low = fCnaParHistos->BoxTopY(
"bottom_left_box") + 0.005;
3543 Double_t x_margin = x_low;
3544 Double_t y_margin = y_low;
3545 MainCanvas->Divide( 1, 1, x_margin, y_margin);
3549 if( fFlagSubDet ==
"EE" )
3551 Double_t x_up = fCnaParHistos->BoxRightX(
"bottom_right_box") + 0.005;
3552 Double_t y_up = fCnaParHistos->BoxBottomY(
"top_left_box_Dee") - 0.005;
3553 TVirtualPad* main_subpad = gPad;
3554 main_subpad->SetPad(x_low, y_low, x_up, y_up);
3557 h_geo_bid->GetXaxis()->SetTitle(axis_x_var_name);
3558 h_geo_bid->GetYaxis()->SetTitle(axis_y_var_name);
3560 h_geo_bid->DrawCopy(
"COLZ");
3563 ViewStexGrid(fFapStexNumber,
"corcc");
3569 h_geo_bid->SetStats(b_true);
3570 h_geo_bid->Delete(); h_geo_bid = 0; fCdeleteRoot++;
3575 delete [] f_in_mat_tit; f_in_mat_tit = 0; fCdelete++;
3579 fStatusFileFound = kFALSE;
3581 cout <<
"!TEcnaHistos::StexHocoVecoLHFCorcc(...)> *ERROR* =====> "
3582 <<
" ROOT file not found" << fTTBELL << endl;
3592 const Int_t& i0StinEcha)
3599 if( fFlagSubDet ==
"EB")
3600 {TString ctype = fEcalNumbering->GetStexHalfStas(StexNumber);
3601 Int_t n1StexCrys = fEcalNumbering->Get1StexCrysFrom1StexStinAnd0StinEcha(n1StexStin, i0StinEcha, StexNumber);
3602 ix_geo = (n1StexCrys-1)/fEcal->MaxCrysVecoInStex();
3603 if( ctype ==
"EB-"){ix_geo = fEcal->MaxCrysHocoInStex() - ix_geo - 1;}}
3605 if( fFlagSubDet ==
"EE")
3606 {TString DeeDir = fEcalNumbering->GetDeeDirViewedFromIP(StexNumber);
3608 if( DeeDir ==
"right" )
3609 {ix_geo = fEcalNumbering->GetIXCrysInDee(StexNumber, n1StexStin, i0StinEcha) - 1;}
3610 if( DeeDir ==
"left" )
3611 {ix_geo = fEcal->MaxCrysIXInDee() - fEcalNumbering->GetIXCrysInDee(StexNumber, n1StexStin, i0StinEcha);}}
3617 const Int_t& j0StinEcha)
3624 if( fFlagSubDet ==
"EB")
3625 {TString ctype = fEcalNumbering->GetStexHalfStas(StexNumber);
3626 Int_t n1StexCrys = fEcalNumbering->Get1StexCrysFrom1StexStinAnd0StinEcha(n1StexStin, j0StinEcha, StexNumber);
3627 Int_t ix_geo = (n1StexCrys-1)/fEcal->MaxCrysVecoInStex();
3628 iy_geo = n1StexCrys - 1 - ix_geo*fEcal->MaxCrysVecoInStex();
3629 if( ctype ==
"EB-"){iy_geo = fEcal->MaxCrysVecoInStex() - iy_geo - 1;}}
3631 if( fFlagSubDet ==
"EE")
3632 {iy_geo = fEcalNumbering->GetJYCrysInDee(StexNumber, n1StexStin, j0StinEcha) - 1;}
3648 if( fFlagSubDet ==
"EB" ){SMTowerNumbering(StexNumber);}
3649 if( fFlagSubDet ==
"EE" ){DeeSCNumbering(StexNumber);}
3663 if( fFlagSubDet ==
"EB"){ViewSMTowerNumberingPad(StexNumber);}
3664 if( fFlagSubDet ==
"EE"){ViewDeeSCNumberingPad(StexNumber);}
3678 if( fFlagSubDet ==
"EB"){ViewSMGrid(StexNumber, c_option);}
3679 if( fFlagSubDet ==
"EE"){ViewDeeGrid(StexNumber, c_option);}
3690 if( (SMNumber > 0) && (SMNumber <= fEcal->MaxSMInEB()) )
3692 Int_t GeoBidSizeEta = fEcal->MaxTowEtaInSM()*fEcal->MaxCrysEtaInTow();
3693 Int_t GeoBidSizePhi = fEcal->MaxTowPhiInSM()*fEcal->MaxCrysPhiInTow();
3695 Int_t nb_binx = GeoBidSizeEta;
3696 Int_t nb_biny = GeoBidSizePhi;
3697 Axis_t xinf_bid = (Axis_t)0.;
3698 Axis_t xsup_bid = (Axis_t)GeoBidSizeEta;
3699 Axis_t yinf_bid = (Axis_t)0.;
3700 Axis_t ysup_bid = (Axis_t)GeoBidSizePhi;
3702 TString axis_x_var_name =
" #eta ";
3703 TString axis_y_var_name =
" #varphi ";
3708 char* f_in_mat_tit =
new char[fgMaxCar]; fCnew++;
3710 sprintf(f_in_mat_tit,
"SM tower numbering");
3714 TH2D* h_empty_bid =
new TH2D(
"grid_bidim_eta_phi", f_in_mat_tit,
3715 nb_binx, xinf_bid, xsup_bid,
3716 nb_biny, yinf_bid, ysup_bid); fCnewRoot++;
3717 h_empty_bid->Reset();
3719 h_empty_bid->GetXaxis()->SetTitle(axis_x_var_name);
3720 h_empty_bid->GetYaxis()->SetTitle(axis_y_var_name);
3724 char* f_in =
new char[fgMaxCar]; fCnew++;
3728 UInt_t canv_h = fCnaParHistos->CanvasFormatH(
"etaphiSM");
3729 UInt_t canv_w = fCnaParHistos->CanvasFormatW(
"etaphiSM");
3733 fFapStexBarrel = fEcalNumbering->GetSMHalfBarrel(SMNumber);
3736 SetAllPavesViewStex(
"Numbering", SMNumber);
3740 sprintf(f_in,
"tower_numbering_for_SuperModule_SM%d", SMNumber);
3742 SetHistoPresentation((TH1D*)h_empty_bid,
"Stex2DEB");
3744 TCanvas *MainCanvas =
new TCanvas(f_in, f_in, canv_w, canv_h); fCnewRoot++;
3745 fCurrentCanvas = MainCanvas; fCurrentCanvasName = f_in;
3749 delete [] f_in; f_in = 0; fCdelete++;
3752 fPavComStex->Draw();
3754 Double_t x_margin = fCnaParHistos->BoxLeftX(
"bottom_left_box") - 0.005;
3755 Double_t y_margin = fCnaParHistos->BoxTopY(
"bottom_right_box") + 0.005;
3756 MainCanvas->Divide(1, 1, x_margin, y_margin);
3759 h_empty_bid->DrawCopy(
"COL");
3761 ViewSMTowerNumberingPad(SMNumber);
3766 h_empty_bid->SetStats(b_true);
3768 h_empty_bid->Delete(); h_empty_bid = 0; fCdeleteRoot++;
3772 delete [] f_in_mat_tit; f_in_mat_tit = 0; fCdelete++;
3776 cout <<
"!TEcnaHistos::SMTowerNumbering(...)> SM = " << SMNumber
3777 <<
". Out of range ( range = [1," << fEcal->MaxSMInEB() <<
"] )" << fTTBELL << endl;
3786 gStyle->SetTitleW(0.2);
3787 gStyle->SetTitleH(0.07);
3789 ViewSMGrid(SMNumber,
" ");
3791 Color_t couleur_rouge = fCnaParHistos->SetColorsForNumbers(
"lvrb_top");
3792 Color_t couleur_bleu_fonce = fCnaParHistos->SetColorsForNumbers(
"lvrb_bottom");
3796 char* f_in =
new char[fgMaxCar]; fCnew++;
3797 gStyle->SetTextSize(0.075);
3800 Int_t y_channel = 12;
3801 Int_t x_channel = 12;
3803 Int_t max_tow_phi = fEcal->MaxTowPhiInSM()*fEcal->MaxCrysPhiInTow();
3807 TText *text_SMtow_num =
new TText(); fCnewRoot++;
3809 for (Int_t i_SMtow = 1; i_SMtow <= fEcal->MaxTowInSM(); i_SMtow++)
3811 if(fEcalNumbering->GetTowerLvrbType(i_SMtow) ==
"top")
3812 {text_SMtow_num->SetTextColor(couleur_rouge);}
3813 if(fEcalNumbering->GetTowerLvrbType(i_SMtow) ==
"bottom")
3814 {text_SMtow_num->SetTextColor(couleur_bleu_fonce);}
3817 Double_t x_from_eta = fEcalNumbering->GetEta(SMNumber, i_SMtow, x_channel) - (Double_t)1;
3818 if(fEcalNumbering->GetSMHalfBarrel(SMNumber) ==
"EB-")
3819 {x_from_eta = fEcal->MaxTowEtaInSM()*fEcal->MaxCrysEtaInTow() + x_from_eta + (Double_t)1;}
3822 Double_t y_from_phi = max_tow_phi - 1
3823 - (fEcalNumbering->GetPhi(SMNumber, i_SMtow, y_channel) - fEcalNumbering->GetPhiMin(SMNumber));
3824 if( fEcalNumbering->GetSMHalfBarrel(SMNumber) ==
"EB-")
3825 {y_from_phi = - y_from_phi + fEcal->MaxTowPhiInSM()*fEcal->MaxCrysPhiInTow() - (Double_t)1;}
3827 sprintf(f_in,
"%d", i_SMtow);
3828 text_SMtow_num->DrawText(x_from_eta, y_from_phi, f_in);
3831 text_SMtow_num->Delete(); text_SMtow_num = 0; fCdeleteRoot++;
3834 Double_t offset_tow_tex_eta = (Double_t)8.;
3835 Double_t offset_tow_tex_phi = (Double_t)15.;
3837 Color_t couleur_noir = fCnaParHistos->ColorDefinition(
"noir");
3838 Double_t x_legend = (Double_t)0.;
3839 Double_t y_legend = (Double_t)0.;
3841 Int_t ref_tower = fEcal->MaxTowInSM();
3844 gStyle->SetTextSize(0.075);
3845 gStyle->SetTextColor(couleur_rouge);
3846 x_legend = fEcalNumbering->GetEta(SMNumber, ref_tower, x_channel);
3847 y_legend = fEcalNumbering->GetPhi(SMNumber, ref_tower, y_channel) - fEcalNumbering->GetPhiMin(SMNumber);
3849 if( fEcalNumbering->GetSMHalfBarrel(SMNumber) ==
"EB+" )
3851 x_legend = x_legend + offset_tow_tex_eta;
3852 y_legend = y_legend + offset_tow_tex_phi;
3854 if( fEcalNumbering->GetSMHalfBarrel(SMNumber) ==
"EB-" )
3856 x_legend = -x_legend + offset_tow_tex_eta;
3857 y_legend = y_legend + offset_tow_tex_phi;
3860 sprintf( f_in,
"xx");
3861 TText *text_legend_rouge =
new TText(x_legend, y_legend, f_in); fCnewRoot++;
3862 text_legend_rouge->Draw();
3863 gStyle->SetTextSize(0.05);
3864 x_legend = x_legend - (Double_t)3.5;
3865 y_legend = y_legend - (Double_t)2.;
3866 sprintf(f_in,
" LVRB ");
3867 TText *text_legend_rouge_expl =
new TText(x_legend, y_legend, f_in); fCnewRoot++;
3868 text_legend_rouge_expl->Draw();
3869 y_legend = y_legend - (Double_t)1.75;
3870 if( fEcalNumbering->GetSMHalfBarrel(SMNumber) ==
"EB+" ){sprintf(f_in,
" <--- ");}
3871 if( fEcalNumbering->GetSMHalfBarrel(SMNumber) ==
"EB-" ){sprintf(f_in,
" ---> ");}
3872 TText *text_legend_rouge_expm =
new TText(x_legend, y_legend, f_in); fCnewRoot++;
3873 text_legend_rouge_expm->Draw();
3877 gStyle->SetTextSize(0.075);
3878 gStyle->SetTextColor(couleur_bleu_fonce);
3879 x_legend = fEcalNumbering->GetEta(SMNumber, ref_tower, x_channel);
3880 y_legend = fEcalNumbering->GetPhi(SMNumber, ref_tower, y_channel) - fEcalNumbering->GetPhiMin(SMNumber);
3882 if( fEcalNumbering->GetSMHalfBarrel(SMNumber) ==
"EB+" )
3884 x_legend = x_legend + offset_tow_tex_eta;
3885 y_legend = y_legend + offset_tow_tex_phi/3;
3887 if( fEcalNumbering->GetSMHalfBarrel(SMNumber) ==
"EB-" )
3889 x_legend = -x_legend + offset_tow_tex_eta;
3890 y_legend = y_legend + offset_tow_tex_phi/3;
3893 sprintf(f_in,
"xx");
3894 TText *text_legend_bleu =
new TText(x_legend, y_legend, f_in); fCnewRoot++;
3895 text_legend_bleu->Draw();
3897 gStyle->SetTextSize(0.05);
3898 x_legend = x_legend - (Double_t)3.5;
3899 y_legend = y_legend - (Double_t)2.;
3900 sprintf( f_in,
" LVRB ");
3901 TText *text_legend_bleu_expl =
new TText(x_legend, y_legend, f_in); fCnewRoot++;
3902 text_legend_bleu_expl->Draw();
3903 y_legend = y_legend - (Double_t)1.75;
3904 if( fEcalNumbering->GetSMHalfBarrel(SMNumber) ==
"EB+" ){sprintf( f_in,
" ---> ");}
3905 if( fEcalNumbering->GetSMHalfBarrel(SMNumber) ==
"EB-" ){sprintf( f_in,
" <--- ");}
3906 TText *text_legend_bleu_expm =
new TText(x_legend, y_legend, f_in); fCnewRoot++;
3907 text_legend_bleu_expm->Draw();
3910 delete [] f_in; f_in = 0; fCdelete++;
3912 gStyle->SetTextColor(couleur_noir);
3920 Int_t GeoBidSizeEta = fEcal->MaxTowEtaInSM()*fEcal->MaxCrysEtaInTow();
3921 Int_t GeoBidSizePhi = fEcal->MaxTowPhiInSM()*fEcal->MaxCrysPhiInTow();
3923 if ( c_option ==
"corcc")
3925 GeoBidSizeEta = fEcal->MaxTowEtaInSM()*fEcal->MaxCrysInTow();
3926 GeoBidSizePhi = fEcal->MaxTowPhiInSM()*fEcal->MaxCrysInTow();
3929 Int_t nb_binx = GeoBidSizeEta;
3930 Int_t nb_biny = GeoBidSizePhi;
3931 Axis_t xinf_bid = (Axis_t)0.;
3932 Axis_t xsup_bid = (Axis_t)GeoBidSizeEta;
3933 Axis_t yinf_bid = (Axis_t)0.;
3934 Axis_t ysup_bid = (Axis_t)GeoBidSizePhi;
3938 Int_t size_eta = fEcal->MaxCrysEtaInTow();
3939 Int_t size_phi = fEcal->MaxCrysPhiInTow();
3940 if ( c_option ==
"corcc")
3942 size_eta = fEcal->MaxCrysInTow();
3943 size_phi = fEcal->MaxCrysInTow();
3945 Int_t max_x = nb_binx/size_eta;
3946 Int_t max_y = nb_biny/size_phi;
3949 Double_t yline = (Double_t)yinf_bid;
3951 Double_t xline_left = (Double_t)xinf_bid;
3952 Double_t xline_right = (Double_t)xsup_bid;
3954 for( Int_t
j = 0 ;
j < max_y ;
j++)
3956 yline = yline + (Double_t)size_phi;
3958 lin =
new TLine(xline_left, yline, xline_right, yline); fCnewRoot++;
3964 Double_t xline = (Double_t)xinf_bid - (Double_t)size_eta;
3966 Double_t yline_bot = (Double_t)yinf_bid;
3967 Double_t yline_top = (Double_t)ysup_bid;
3969 Color_t coul_surligne = fCnaParHistos->ColorDefinition(
"noir");
3970 Color_t coul_textmodu = fCnaParHistos->ColorDefinition(
"vert36");
3973 gStyle->SetTextColor(coul_textmodu);
3974 gStyle->SetTextSize(0.075);
3976 char* f_in =
new char[fgMaxCar]; fCnew++;
3978 for( Int_t
i = 0 ;
i < max_x ;
i++)
3980 xline = xline + (Double_t)size_eta;
3982 lin =
new TLine(xline, yline_bot, xline, yline_top); fCnewRoot++;
3985 if( (fEcalNumbering->GetSMHalfBarrel(SMNumber) ==
"EB-") && (
i == 4 ||
i == 8 ||
i == 12) )
3986 {lin->SetLineWidth(2); lin->SetLineColor(coul_surligne);}
3987 if( (fEcalNumbering->GetSMHalfBarrel(SMNumber) ==
"EB+") && (
i == 5 ||
i == 9 ||
i == 13) )
3988 {lin->SetLineWidth(2); lin->SetLineColor(coul_surligne);}
3994 if( (fEcalNumbering->GetSMHalfBarrel(SMNumber) ==
"EB-") && (
i == 2 ||
i == 6 ||
i == 10 ||
i == 14) )
3996 if(
i == 2 ){sprintf( f_in,
"M4");}
3997 if(
i == 6 ){sprintf( f_in,
"M3");}
3998 if(
i == 10 ){sprintf( f_in,
"M2");}
3999 if(
i == 14 ){sprintf( f_in,
"M1");}
4001 TText *text_num_module =
new TText(xline + 1, yline_top + 1, f_in); fCnewRoot++;
4002 text_num_module->Draw();
4005 if( (fEcalNumbering->GetSMHalfBarrel(SMNumber) ==
"EB+") && (
i == 3 ||
i == 7 ||
i == 11 ||
i == 15) )
4007 if(
i == 3 ){sprintf( f_in,
"M1");}
4008 if(
i == 7 ){sprintf( f_in,
"M2");}
4009 if(
i == 11 ){sprintf( f_in,
"M3");}
4010 if(
i == 15 ){sprintf( f_in,
"M4");}
4012 TText *text_num_module =
new TText(xline, yline_top + 1, f_in); fCnewRoot++;
4013 text_num_module->Draw();
4017 delete [] f_in; f_in = 0; fCdelete++;
4021 Int_t MatSize = fEcal->MaxCrysEtaInTow();
4022 if ( c_option ==
"corcc"){MatSize = fEcal->MaxCrysInTow();}
4024 Int_t size_eta_sm = fEcal->MaxTowEtaInSM();
4025 Int_t size_phi_sm = fEcal->MaxTowPhiInSM();
4028 Double_t eta_min = fEcalNumbering->GetIEtaMin(SMNumber);
4029 Double_t eta_max = fEcalNumbering->GetIEtaMax(SMNumber);
4031 TString x_var_name = GetHocoVecoAxisTitle(
"ietaSM");;
4032 TString x_direction = fEcalNumbering->GetXDirectionEB(SMNumber);
4034 Float_t tit_siz_x = fCnaParHistos->AxisTitleSize();
4035 Float_t lab_siz_x = fCnaParHistos->AxisLabelSize(
"SMx");
4036 Float_t tic_siz_x = fCnaParHistos->AxisTickSize(
"SMx");
4037 Float_t tit_off_x = fCnaParHistos->AxisTitleOffset(
"SMx");
4038 Float_t lab_off_x = fCnaParHistos->AxisLabelOffset(
"SMx");
4040 new TF1(
"f1", x_direction.Data(), eta_min, eta_max); fCnewRoot++;
4041 TGaxis* sup_axis_x = 0;
4043 if( x_direction ==
"-x" )
4044 {sup_axis_x =
new TGaxis( (Float_t)0., (Float_t)0., (Float_t)(size_eta_sm*MatSize), (Float_t)0.,
4045 "f1", size_eta_sm,
"SC" , 0.); fCnewRoot++;}
4047 if( x_direction ==
"x" )
4048 {sup_axis_x =
new TGaxis( (Float_t)0., (Float_t)0., (Float_t)(size_eta_sm*MatSize), (Float_t)0.,
4049 "f1", size_eta_sm,
"SC" , 0.); fCnewRoot++;}
4051 sup_axis_x->SetTitle(x_var_name);
4052 sup_axis_x->SetTitleSize(tit_siz_x);
4053 sup_axis_x->SetTitleOffset(tit_off_x);
4054 sup_axis_x->SetLabelSize(lab_siz_x);
4055 sup_axis_x->SetLabelOffset(lab_off_x);
4056 sup_axis_x->SetTickSize(tic_siz_x);
4057 sup_axis_x->Draw(
"SAME");
4060 Double_t phi_min = fEcalNumbering->GetPhiMin(SMNumber);
4061 Double_t phi_max = fEcalNumbering->GetPhiMax(SMNumber);
4063 TString y_var_name = GetHocoVecoAxisTitle(
"phi");
4064 TString y_direction = fEcalNumbering->GetYDirectionEB(SMNumber);
4066 Float_t tit_siz_y = fCnaParHistos->AxisTitleSize();
4067 Float_t lab_siz_y = fCnaParHistos->AxisLabelSize(
"SMy");
4068 Float_t tic_siz_y = fCnaParHistos->AxisTickSize(
"SMy");
4069 Float_t tit_off_y = fCnaParHistos->AxisTitleOffset(
"SMy");
4070 Float_t lab_off_y = fCnaParHistos->AxisLabelOffset(
"SMy");
4072 new TF1(
"f2", y_direction.Data(), phi_min, phi_max); fCnewRoot++;
4073 TGaxis* sup_axis_y = 0;
4075 if ( y_direction ==
"-x" )
4076 {sup_axis_y =
new TGaxis(-(Float_t)1.5*(Float_t)size_eta, (Float_t)0.,
4077 -(Float_t)1.5*(Float_t)size_eta, (Float_t)(size_phi_sm*MatSize),
4078 "f2", (Int_t)size_phi_sm,
"SC", 0.); fCnewRoot++;}
4080 if ( y_direction ==
"x" )
4081 {sup_axis_y =
new TGaxis(-(Float_t)1.5*(Float_t)size_eta, (Float_t)0.,
4082 -(Float_t)1.5*(Float_t)size_eta, (Float_t)(size_phi_sm*MatSize),
4083 "f2", (Int_t)size_phi_sm,
"SC", 0.); fCnewRoot++;}
4085 sup_axis_y->SetTitle(y_var_name);
4086 sup_axis_y->SetTitleSize(tit_siz_y);
4087 sup_axis_y->SetTitleOffset(tit_off_y);
4088 sup_axis_y->SetLabelSize(lab_siz_y);
4089 sup_axis_y->SetLabelOffset(lab_off_y);
4090 sup_axis_y->SetTickSize(tic_siz_y);
4091 sup_axis_y->Draw(
"SAME");
4094 Double_t jphi_min = fEcalNumbering->GetJPhiMin(SMNumber);
4095 Double_t jphi_max = fEcalNumbering->GetJPhiMax(SMNumber);
4097 TString jy_var_name =
" ";
4098 TString jy_direction = fEcalNumbering->GetJYDirectionEB(SMNumber);
4100 new TF1(
"f3", jy_direction.Data(), jphi_min, jphi_max); fCnewRoot++;
4101 TGaxis* sup_axis_jy = 0;
4104 sup_axis_jy =
new TGaxis((Float_t)0., (Float_t)0.,
4105 (Float_t)0., (Float_t)(size_phi_sm*MatSize),
4106 "f3", (Int_t)size_phi_sm,
"SC", 0.); fCnewRoot++;
4108 if ( jy_direction ==
"-x" )
4109 {jy_var_name = GetEtaPhiAxisTitle(
"jphiSMB+");}
4111 if ( jy_direction ==
"x" )
4112 {jy_var_name = GetEtaPhiAxisTitle(
"jphiSMB-");}
4114 lab_off_y = fCnaParHistos->AxisLabelOffset(
"SMyInEB");
4116 sup_axis_jy->SetTitle(jy_var_name);
4117 sup_axis_jy->SetTitleSize(tit_siz_y);
4118 sup_axis_jy->SetTitleOffset(tit_off_y);
4119 sup_axis_jy->SetLabelSize(lab_siz_y);
4120 sup_axis_jy->SetLabelOffset(lab_off_y);
4121 sup_axis_jy->SetTickSize(tic_siz_y);
4122 sup_axis_jy->Draw(
"SAME");
4126 gStyle->SetTextColor(fCnaParHistos->ColorDefinition(
"noir"));
4135 if( (DeeNumber > 0) && (DeeNumber <= fEcal->MaxDeeInEE()) )
4137 Int_t GeoBidSizeIX = fEcal->MaxSCIXInDee()*fEcal->MaxCrysIXInSC();
4138 Int_t GeoBidSizeIY = fEcal->MaxSCIYInDee()*fEcal->MaxCrysIYInSC();
4140 Int_t nb_binx = GeoBidSizeIX;
4141 Int_t nb_biny = GeoBidSizeIY;
4142 Axis_t xinf_bid = (Axis_t)0.;
4143 Axis_t xsup_bid = (Axis_t)GeoBidSizeIX;
4144 Axis_t yinf_bid = (Axis_t)0.;
4145 Axis_t ysup_bid = (Axis_t)GeoBidSizeIY;
4147 TString axis_x_var_name =
" IX ";
4148 TString axis_y_var_name =
" IY ";
4152 char* f_in_mat_tit =
new char[fgMaxCar]; fCnew++;
4154 sprintf(f_in_mat_tit,
" Dee SC numbering ");
4158 TH2D* h_empty_bid =
new TH2D(
"grid_bidim_IX_IY", f_in_mat_tit,
4159 nb_binx, xinf_bid, xsup_bid,
4160 nb_biny, yinf_bid, ysup_bid); fCnewRoot++;
4161 h_empty_bid->Reset();
4163 h_empty_bid->GetXaxis()->SetTitle(axis_x_var_name);
4164 h_empty_bid->GetYaxis()->SetTitle(axis_y_var_name);
4168 char* f_in =
new char[fgMaxCar]; fCnew++;
4172 UInt_t canv_h = fCnaParHistos->CanvasFormatH(
"IXIYDee");
4173 UInt_t canv_w = fCnaParHistos->CanvasFormatW(
"IXIYDee");
4176 fFapStexType = fEcalNumbering->GetEEDeeType(DeeNumber);
4179 SetAllPavesViewStex(
"Numbering", DeeNumber);
4183 sprintf(f_in,
"SC_numbering_for_Dee_Dee%d", DeeNumber);
4184 SetHistoPresentation((TH1D*)h_empty_bid,
"Stex2DEENb");
4185 TCanvas *MainCanvas =
new TCanvas(f_in, f_in, canv_w, canv_h); fCnewRoot++;
4186 fCurrentCanvas = MainCanvas; fCurrentCanvasName = f_in;
4190 delete [] f_in; f_in = 0; fCdelete++;
4193 fPavComStex->Draw();
4194 fPavComCxyz->Draw();
4196 Double_t x_low = fCnaParHistos->BoxLeftX(
"bottom_left_box") - 0.005;
4197 Double_t x_up = fCnaParHistos->BoxRightX(
"bottom_right_box") + 0.005;
4198 Double_t y_low = fCnaParHistos->BoxTopY(
"bottom_left_box") + 0.005;
4199 Double_t y_up = fCnaParHistos->BoxBottomY(
"top_left_box_Dee") - 0.005;
4201 Double_t x_margin = x_low;
4202 Double_t y_margin = y_low;
4204 MainCanvas->Divide( 1, 1, x_margin, y_margin);
4208 TVirtualPad* main_subpad = gPad;
4209 main_subpad->SetPad(x_low, y_low, x_up, y_up);
4211 h_empty_bid->DrawCopy(
"COL");
4212 ViewDeeSCNumberingPad(DeeNumber);
4217 h_empty_bid->SetStats(b_true);
4219 h_empty_bid->Delete(); h_empty_bid = 0; fCdeleteRoot++;
4223 delete [] f_in_mat_tit; f_in_mat_tit = 0; fCdelete++;
4227 cout <<
"!TEcnaHistos::DeeSCNumbering(...)> Dee = " << DeeNumber
4228 <<
". Out of range ( range = [1," << fEcal->MaxDeeInEE() <<
"] )" << fTTBELL << endl;
4237 gStyle->SetTitleW(0.4);
4238 gStyle->SetTitleH(0.08);
4240 ViewDeeGrid(DeeNumber,
" ");
4244 char* f_in =
new char[fgMaxCar]; fCnew++;
4245 gStyle->SetTextSize(0.0325);
4248 Int_t x_channel = 0;
4249 TText *text_DSSC_num =
new TText(); fCnewRoot++;
4250 TText *text_DeeSCCons_num =
new TText(); fCnewRoot++;
4252 for (Int_t n1DeeSCEcna = 1; n1DeeSCEcna <= fEcal->MaxSCEcnaInDee(); n1DeeSCEcna++)
4254 TString DeeDir = fEcalNumbering->GetDeeDirViewedFromIP(DeeNumber);
4255 TString SCQuadType = fEcalNumbering->GetSCQuadFrom1DeeSCEcna(n1DeeSCEcna);
4256 if( SCQuadType ==
"top" && DeeDir ==
"right"){x_channel = 13;}
4257 if( SCQuadType ==
"top" && DeeDir ==
"left" ){x_channel = 7;}
4258 if( SCQuadType ==
"bottom" && DeeDir ==
"left" ){x_channel = 11;}
4259 if( SCQuadType ==
"bottom" && DeeDir ==
"right"){x_channel = 17;}
4260 Int_t i_SCEcha = (Int_t)x_channel;
4262 Double_t x_from_IX = (Double_t)GetXCrysInStex(DeeNumber, n1DeeSCEcna, i_SCEcha);
4263 Double_t y_from_IY = (Double_t)GetYCrysInStex(DeeNumber, n1DeeSCEcna, i_SCEcha);
4264 Double_t y_from_IYp = y_from_IY + (Double_t)1.;
4265 Double_t y_from_IYm = y_from_IY - (Double_t)1.;
4267 TString DeeEndcap = fEcalNumbering->GetEEDeeEndcap(DeeNumber);
4268 Color_t couleur_SC = GetSCColor(DeeEndcap, DeeDir, SCQuadType);
4269 text_DSSC_num->SetTextColor(couleur_SC);
4270 text_DeeSCCons_num->SetTextColor((Color_t)1);
4272 Int_t i_DSSC = fEcalNumbering->GetDSSCFrom1DeeSCEcna(DeeNumber, n1DeeSCEcna);
4273 Int_t i_DeeSCCons = fEcalNumbering->GetDeeSCConsFrom1DeeSCEcna(DeeNumber, n1DeeSCEcna);
4278 !(i_DeeSCCons == 33 && n1DeeSCEcna == 60) &&
4279 !(i_DeeSCCons == 33 && n1DeeSCEcna == 119) &&
4281 !(i_DeeSCCons == 29 && n1DeeSCEcna == 32) &&
4282 !(i_DeeSCCons == 29 && n1DeeSCEcna == 138) &&
4283 !(i_DeeSCCons == 29 && n1DeeSCEcna == 157) &&
4284 !(i_DeeSCCons == 58 && n1DeeSCEcna == 176) &&
4285 !(i_DeeSCCons == 58 && n1DeeSCEcna == 193) &&
4287 !(i_DeeSCCons == 149 && n1DeeSCEcna == 188) &&
4289 !(i_DeeSCCons == 112 && n1DeeSCEcna == 29) &&
4290 !(i_DeeSCCons == 112 && n1DeeSCEcna == 144) &&
4291 !(i_DeeSCCons == 112 && n1DeeSCEcna == 165) &&
4292 !(i_DeeSCCons == 119 && n1DeeSCEcna == 102) &&
4293 !(i_DeeSCCons == 119 && n1DeeSCEcna == 123) &&
4295 !(i_DeeSCCons == 132 && n1DeeSCEcna == 41) &&
4298 !(i_DeeSCCons == 182 && n1DeeSCEcna == 60) &&
4299 !(i_DeeSCCons == 182 && n1DeeSCEcna == 119) &&
4301 !(i_DeeSCCons == 178 && n1DeeSCEcna == 32) &&
4302 !(i_DeeSCCons == 178 && n1DeeSCEcna == 138) &&
4303 !(i_DeeSCCons == 178 && n1DeeSCEcna == 157) &&
4304 !(i_DeeSCCons == 207 && n1DeeSCEcna == 176) &&
4305 !(i_DeeSCCons == 207 && n1DeeSCEcna == 193) &&
4307 !(i_DeeSCCons == 298 && n1DeeSCEcna == 188) &&
4309 !(i_DeeSCCons == 261 && n1DeeSCEcna == 29) &&
4310 !(i_DeeSCCons == 261 && n1DeeSCEcna == 144) &&
4311 !(i_DeeSCCons == 261 && n1DeeSCEcna == 165) &&
4312 !(i_DeeSCCons == 268 && n1DeeSCEcna == 102) &&
4313 !(i_DeeSCCons == 268 && n1DeeSCEcna == 123) &&
4315 !(i_DeeSCCons == 281 && n1DeeSCEcna == 41)
4318 sprintf(f_in,
"%d", i_DSSC);
4319 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4320 sprintf(f_in,
"%d", i_DeeSCCons);
4321 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4326 if( i_DeeSCCons == 33 && n1DeeSCEcna == 60 )
4328 sprintf(f_in,
"30a");
4329 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4330 sprintf(f_in,
"33a");
4331 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4333 if( i_DeeSCCons == 33 && n1DeeSCEcna == 119 )
4335 sprintf(f_in,
"30b");
4336 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4337 sprintf(f_in,
"33b");
4338 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4341 if( i_DeeSCCons == 29 && n1DeeSCEcna == 32 )
4343 sprintf(f_in,
" 3c-25c");
4344 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4345 sprintf(f_in,
"29c-58c");
4346 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4348 if( i_DeeSCCons == 29 && n1DeeSCEcna == 138 )
4350 sprintf(f_in,
"3a");
4351 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4352 sprintf(f_in,
"29a");
4353 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4355 if( i_DeeSCCons == 29 && n1DeeSCEcna == 157 )
4357 sprintf(f_in,
"3b");
4358 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4359 sprintf(f_in,
"29b");
4360 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4363 if( i_DeeSCCons == 58 && n1DeeSCEcna == 176 )
4365 sprintf(f_in,
"25a");
4366 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4367 sprintf(f_in,
"58a");
4368 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4370 if( i_DeeSCCons == 58 && n1DeeSCEcna == 193 )
4372 sprintf(f_in,
"25b");
4373 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4374 sprintf(f_in,
"58b");
4375 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4378 if( i_DeeSCCons == 149 && n1DeeSCEcna == 188 )
4380 sprintf(f_in,
"34a");
4381 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4382 sprintf(f_in,
"149a");
4383 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4386 if( i_DeeSCCons == 112 && n1DeeSCEcna == 29 )
4388 sprintf(f_in,
" 14a-21a");
4389 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4390 sprintf(f_in,
"112a-119a");
4391 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4393 if( i_DeeSCCons == 112 && n1DeeSCEcna == 144 )
4395 sprintf(f_in,
"14c");
4396 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4397 sprintf(f_in,
"112c");
4398 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4400 if( i_DeeSCCons == 112 && n1DeeSCEcna == 165 )
4402 sprintf(f_in,
"14b");
4403 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4404 sprintf(f_in,
"112b");
4405 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4408 if( i_DeeSCCons == 119 && n1DeeSCEcna == 102 )
4410 sprintf(f_in,
"21c");
4411 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4412 sprintf(f_in,
"119c");
4413 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4415 if( i_DeeSCCons == 119 && n1DeeSCEcna == 123 )
4417 sprintf(f_in,
"21b");
4418 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4419 sprintf(f_in,
"119b");
4420 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4423 if( i_DeeSCCons == 132 && n1DeeSCEcna == 41 )
4425 sprintf(f_in,
"3a");
4426 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4427 sprintf(f_in,
"132a");
4428 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4432 if( i_DeeSCCons == 182 && n1DeeSCEcna == 60 )
4434 sprintf(f_in,
"30a");
4435 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4436 sprintf(f_in,
"182a");
4437 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4439 if( i_DeeSCCons == 182 && n1DeeSCEcna == 119 )
4441 sprintf(f_in,
"30b");
4442 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4443 sprintf(f_in,
"182b");
4444 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4447 if( i_DeeSCCons == 178 && n1DeeSCEcna == 32 )
4449 sprintf(f_in,
" 3c-25c");
4450 text_DSSC_num->DrawText(x_from_IX-6, y_from_IYp, f_in);
4451 sprintf(f_in,
"178c-207c");
4452 text_DeeSCCons_num->DrawText(x_from_IX-6, y_from_IYm, f_in);
4454 if( i_DeeSCCons == 178 && n1DeeSCEcna == 138 )
4456 sprintf(f_in,
"3a");
4457 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4458 sprintf(f_in,
"178a");
4459 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4461 if( i_DeeSCCons == 178 && n1DeeSCEcna == 157 )
4463 sprintf(f_in,
"3b");
4464 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4465 sprintf(f_in,
"178b");
4466 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4469 if( i_DeeSCCons == 207 && n1DeeSCEcna == 176 )
4471 sprintf(f_in,
"25a");
4472 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4473 sprintf(f_in,
"207a");
4474 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4476 if( i_DeeSCCons == 207 && n1DeeSCEcna == 193 )
4478 sprintf(f_in,
"25b");
4479 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4480 sprintf(f_in,
"207b");
4481 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4484 if( i_DeeSCCons == 298 && n1DeeSCEcna == 188 )
4486 sprintf(f_in,
"34a");
4487 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4488 sprintf(f_in,
"298a");
4489 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4492 if( i_DeeSCCons == 261 && n1DeeSCEcna == 29 )
4494 sprintf(f_in,
" 14a-21a");
4495 text_DSSC_num->DrawText(x_from_IX-6, y_from_IYp, f_in);
4496 sprintf(f_in,
"261a-268a");
4497 text_DeeSCCons_num->DrawText(x_from_IX-6, y_from_IYm, f_in);
4499 if( i_DeeSCCons == 261 && n1DeeSCEcna == 144 )
4501 sprintf(f_in,
"14c");
4502 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4503 sprintf(f_in,
"261c");
4504 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4506 if( i_DeeSCCons == 261 && n1DeeSCEcna == 165 )
4508 sprintf(f_in,
"14b");
4509 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4510 sprintf(f_in,
"261b");
4511 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4514 if( i_DeeSCCons == 268 && n1DeeSCEcna == 102 )
4516 sprintf(f_in,
"21c");
4517 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4518 sprintf(f_in,
"268c");
4519 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4521 if( i_DeeSCCons == 268 && n1DeeSCEcna == 123 )
4523 sprintf(f_in,
"21b");
4524 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4525 sprintf(f_in,
"268b");
4526 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4529 if( i_DeeSCCons == 281 && n1DeeSCEcna == 41 )
4531 sprintf(f_in,
"20a");
4532 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4533 sprintf(f_in,
"281a");
4534 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4542 Color_t coul_textcolors = fCnaParHistos->ColorDefinition(
"noir");
4543 sprintf( f_in,
"color: nb in Data Sector, black: nb for construction");
4545 Int_t y_colors = -14;
4547 TText *text_colors =
new TText(x_colors, y_colors, f_in); fCnewRoot++;
4548 text_colors->SetTextSize(0.03);
4549 text_colors->SetTextColor(coul_textcolors);
4550 text_colors->Draw();
4552 delete [] f_in; f_in = 0; fCdelete++;
4554 Color_t couleur_noir = fCnaParHistos->ColorDefinition(
"noir");
4555 gStyle->SetTextColor(couleur_noir);
4563 Int_t GeoBidSizeIX = fEcal->MaxSCIXInDee()*fEcal->MaxCrysIXInSC();
4564 Int_t GeoBidSizeIY = fEcal->MaxSCIYInDee()*fEcal->MaxCrysIYInSC();
4566 if ( c_option ==
"corcc")
4568 GeoBidSizeIX = fEcal->MaxSCIXInDee()*fEcal->MaxCrysInSC();
4569 GeoBidSizeIY = fEcal->MaxSCIYInDee()*fEcal->MaxCrysInSC();
4572 Int_t nb_binx = GeoBidSizeIX;
4573 Int_t nb_biny = GeoBidSizeIY;
4574 Axis_t xinf_bid = (Axis_t)0.;
4575 Axis_t xsup_bid = (Axis_t)GeoBidSizeIX;
4577 Axis_t yinf_bid = (Axis_t)0.;
4578 Axis_t ysup_bid = (Axis_t)GeoBidSizeIY;
4579 Double_t ymid_bid = (Double_t)(ysup_bid-yinf_bid)/2.;
4583 Int_t size_IX = fEcal->MaxCrysIXInSC();
4584 Int_t size_IY = fEcal->MaxCrysIYInSC();
4586 if ( c_option ==
"corcc"){size_IX = fEcal->MaxCrysInSC(); size_IY = fEcal->MaxCrysInSC();}
4588 Int_t max_x = nb_binx/size_IX;
4589 Int_t max_y = nb_biny/size_IY;
4590 Int_t max_yd = max_y/2;
4596 if ( c_option ==
"corcc"){coefcc_x = fEcal->MaxCrysIXInSC(); coefcc_y = fEcal->MaxCrysIYInSC();}
4599 Double_t yline = (Double_t)yinf_bid - (Double_t)size_IY;
4601 Double_t xline_beg = (Double_t)xinf_bid;
4602 Double_t xline_end = (Double_t)xsup_bid;
4605 Int_t x_min[11] = {11,11, 7, 0, 0, 0, 0, 0, 0, 0, 0};
4606 Int_t x_max[11] = {50,50,47,45,45,42,37,35,30,15,50};
4607 for(Int_t
i=0;
i<11;
i++){x_min[
i] = coefcc_x*x_min[
i]; x_max[
i] = coefcc_x*x_max[
i];}
4609 for( Int_t
j = 0 ;
j < max_y ;
j++)
4613 if( DeeNumber == 1 || DeeNumber == 3 )
4615 xline_beg = xinf_bid + (Double_t)x_min[10-
j];
4616 xline_end = xinf_bid + (Double_t)x_max[10-
j];
4618 if( DeeNumber == 2 || DeeNumber == 4 )
4620 xline_beg = xsup_bid - (Double_t)x_max[10-
j];
4621 xline_end = xsup_bid - (Double_t)x_min[10-
j];
4627 if( DeeNumber == 1 || DeeNumber == 3 )
4629 xline_beg = xinf_bid + (Double_t)x_min[0];
4630 xline_end = xinf_bid + (Double_t)x_max[0];
4632 if( DeeNumber == 2 || DeeNumber == 4 )
4634 xline_beg = xsup_bid - (Double_t)x_max[0];
4635 xline_end = xsup_bid - (Double_t)x_min[0];
4641 if( DeeNumber == 1 || DeeNumber == 3 )
4643 xline_beg = xinf_bid + (Double_t)x_min[
j-10];
4644 xline_end = xinf_bid + (Double_t)x_max[
j-10];
4646 if( DeeNumber == 2 || DeeNumber == 4 )
4648 xline_beg = xsup_bid - (Double_t)x_max[
j-10];
4649 xline_end = xsup_bid - (Double_t)x_min[
j-10];
4653 yline = yline + (Double_t)size_IY;
4655 lin =
new TLine(xline_beg, yline, xline_end, yline); fCnewRoot++;
4662 Double_t xline = (Double_t)xinf_bid - (Double_t)size_IX;
4664 Double_t yline_haut_bot = (Double_t)ymid_bid;
4665 Double_t yline_haut_top = (Double_t)ysup_bid;
4667 Double_t yline_bas_bot = (Double_t)yinf_bid;
4668 Double_t yline_bas_top = (Double_t)ymid_bid;
4672 Int_t y_min[11] = { 0,11, 7, 0, 0, 0, 0, 0, 0, 0, 0};
4673 Int_t y_max[11] = {50,50,47,45,45,42,38,35,30,15,10};
4674 for(Int_t
i=0;
i<11;
i++){y_min[
i] = coefcc_y*y_min[
i]; y_max[
i] = coefcc_y*y_max[
i];}
4676 gStyle->SetTextSize(0.075);
4678 for( Int_t
i = 0 ;
i <= max_x ;
i++)
4680 if( DeeNumber == 1 || DeeNumber == 3 )
4682 yline_haut_bot = ymid_bid + (Double_t)y_min[
i];
4683 yline_haut_top = ymid_bid + (Double_t)y_max[
i];
4685 if( DeeNumber == 2 || DeeNumber == 4 )
4687 yline_haut_bot = ymid_bid + (Double_t)y_min[10-
i];
4688 yline_haut_top = ymid_bid + (Double_t)y_max[10-
i];
4690 yline_bas_bot = ysup_bid - yline_haut_top;
4691 yline_bas_top = ysup_bid - yline_haut_bot;
4693 xline = xline + (Double_t)size_IX;
4695 lin_haut =
new TLine(xline, yline_haut_bot, xline, yline_haut_top); fCnewRoot++;
4699 lin_bas =
new TLine(xline, yline_bas_bot, xline, yline_bas_top); fCnewRoot++;
4704 EEDataSectors(coefcc_x, coefcc_y, DeeNumber,
"Dee");
4705 EEGridAxis(coefcc_x, coefcc_y, DeeNumber,
"Dee", c_option);
4718 Int_t nb_niv2 = (nb_niv+1)/2;
4720 for (Int_t num_niv = 0; num_niv < nb_niv2; num_niv++)
4722 Int_t ind_niv = num_niv + nb_niv2 - 1;
4723 if ( ind_niv < 0 || ind_niv > nb_niv )
4725 cout <<
"!TEcnaHistos::ContourLevels(...)> *** ERROR *** "
4726 <<
"wrong contour levels for correlation matrix"
4732 (Double_t)(num_niv*num_niv)/
4733 ((Double_t)((nb_niv2-1)*(nb_niv2-1)));
4736 for (Int_t num_niv = -1; num_niv > -nb_niv2; num_niv--)
4738 Int_t ind_niv = num_niv + nb_niv2 - 1;
4739 if ( ind_niv < 0 || ind_niv > nb_niv )
4741 cout <<
"!TEcnaHistos::ContourLevels(...)> *** ERROR *** "
4742 <<
"wrong contour levels for correlation matrix"
4748 -(Double_t)(num_niv*num_niv)/
4749 ((Double_t)((nb_niv2-1)*(nb_niv2-1)));
4761 TString xname =
" ";
4763 if ( fFlagSubDet ==
"EB" ){xname = GetEtaPhiAxisTitle(chcode);}
4764 if ( fFlagSubDet ==
"EE" ){xname = GetIXIYAxisTitle(chcode);}
4771 TString xname =
" ";
4773 if ( chcode ==
"ietaEB" ){xname =
"i#eta Xtal ";}
4774 if ( chcode ==
"ietaSM" ){xname =
"i#eta Xtal ";}
4775 if ( chcode ==
"ietaTow"){xname =
"i#eta Xtal ";}
4777 if ( chcode ==
"iphiEB" ){xname =
" i#varphi Xtal";}
4778 if ( chcode ==
"jphiEB+" ){xname =
" i#varphi Xtal";}
4779 if ( chcode ==
"jphiEB-" ){xname =
" i#varphi Xtal";}
4780 if ( chcode ==
"jphiSMB+" ){xname =
" i#varphi Xtal";}
4781 if ( chcode ==
"jphiSMB-" ){xname =
"i#varphi Xtal ";}
4782 if ( chcode ==
"jphiTow" ){xname =
"i#varphi Xtal in SM ";}
4783 if ( chcode ==
"phi" ){xname =
"i#varphi Xtal in EB ";}
4790 TString xname =
" ";
4792 if ( chcode ==
"iIXDee" ){xname =
"IX(SC)";}
4794 if ( chcode ==
"iIXDee1" ){xname =
" -IX Xtal";}
4795 if ( chcode ==
"iIXDee2" ){xname =
" IX Xtal ";}
4796 if ( chcode ==
"iIXDee3" ){xname =
" IX Xtal";}
4797 if ( chcode ==
"iIXDee4" ){xname =
"-IX Xtal ";}
4799 if ( chcode ==
"iIXEE" ){xname =
" IX Xtal";}
4801 if ( chcode ==
"iIXSC" ){xname =
"IX Xtal";}
4803 if ( chcode ==
"jIYDee" ){xname =
"IY Xtal";}
4804 if ( chcode ==
"jIYSC" ){xname =
"IY Xtal";}
4805 if ( chcode ==
"IY" ){xname =
"IY";}
4819 const TString& HistoCode)
4824 char* f_in_mat_tit =
new char[fgMaxCar]; fCnew++;
4826 if (HistoCode ==
"D_NOE_ChNb"){sprintf(f_in_mat_tit,
"Number of Events");}
4827 if (HistoCode ==
"D_Ped_ChNb"){sprintf(f_in_mat_tit,
"Pedestals");}
4828 if (HistoCode ==
"D_TNo_ChNb"){sprintf(f_in_mat_tit,
"Total noise");}
4829 if (HistoCode ==
"D_MCs_ChNb"){sprintf(f_in_mat_tit,
"Mean cor(s,s')");}
4830 if (HistoCode ==
"D_LFN_ChNb"){sprintf(f_in_mat_tit,
"Low frequency noise");}
4831 if (HistoCode ==
"D_HFN_ChNb"){sprintf(f_in_mat_tit,
"High frequency noise");}
4832 if (HistoCode ==
"D_SCs_ChNb"){sprintf(f_in_mat_tit,
"Sigma of cor(s,s')");}
4835 Int_t GeoBidSizeHoco = fEcal->MaxStinVecoInStas();
4836 Int_t GeoBidSizeVeco = fEcal->MaxStinHocoInStas();
4838 Int_t vertic_empty_strips = 3;
4839 Int_t vertic_empty_strip_1 = 1;
4841 if ( fFlagSubDet ==
"EE" )
4844 GeoBidSizeHoco = fEcal->MaxStinHocoInStas() + vertic_empty_strips;
4845 GeoBidSizeVeco = fEcal->MaxStinVecoInStas();
4848 Int_t nb_binx = GeoBidSizeHoco;
4849 Int_t nb_biny = GeoBidSizeVeco;
4850 Axis_t xinf_bid = (Axis_t)0.;
4851 Axis_t xsup_bid = (Axis_t)GeoBidSizeHoco;
4852 Axis_t yinf_bid = (Axis_t)0.;
4853 Axis_t ysup_bid = (Axis_t)GeoBidSizeVeco;
4855 TString axis_x_var_name =
" #Hoco ";
4856 TString axis_y_var_name =
" #varVeco ";
4860 TH2D* h_geo_bid =
new TH2D(
"geobidim_ViewStas", f_in_mat_tit,
4861 nb_binx, xinf_bid, xsup_bid,
4862 nb_biny, yinf_bid, ysup_bid); fCnewRoot++;
4865 Int_t CounterExistingFile = 0;
4866 Int_t CounterDataExist = 0;
4868 Int_t* xFapNbOfEvts =
new Int_t[fEcal->MaxStexInStas()]; fCnew++;
4869 for(Int_t
i=0;
i<fEcal->MaxStexInStas();
i++){xFapNbOfEvts[
i]=0;}
4874 for(Int_t iStasStex=0; iStasStex<fEcal->MaxStexInStas(); iStasStex++)
4876 TVectorD partial_histp(fEcal->MaxStinEcnaInStex());
4877 for(Int_t
i=0;
i<fEcal->MaxStinEcnaInStex();
i++){partial_histp(
i)=(Double_t)0.;}
4879 Bool_t OKFileExists = kFALSE;
4880 Bool_t OKDataExist = kFALSE;
4882 if( arg_AlreadyRead == fTobeRead )
4884 fMyRootFile->PrintNoComment();
4885 Int_t n1StasStex = iStasStex+1;
4886 fMyRootFile->FileParameters(fFapAnaType, fFapNbOfSamples,
4887 fFapRunNumber, fFapFirstReqEvtNumber,
4888 fFapLastReqEvtNumber, fFapReqNbOfEvts,
4889 n1StasStex, fCfgResultsRootFilePath.Data());
4891 if ( fMyRootFile->LookAtRootFile() == kTRUE ){OKFileExists = kTRUE;}
4893 if( OKFileExists == kTRUE )
4895 xFapNbOfEvts[iStasStex] = fMyRootFile->GetNumberOfEvents(fFapReqNbOfEvts, n1StasStex);
4896 TString fp_name_short = fMyRootFile->GetRootFileNameShort();
4901 if( iStasStex == 0 )
4903 fStartTime = fMyRootFile->GetStartTime();
4904 fStopTime = fMyRootFile->GetStopTime();
4905 fStartDate = fMyRootFile->GetStartDate();
4906 fStopDate = fMyRootFile->GetStopDate();
4909 time_t xStartTime = fMyRootFile->GetStartTime();
4910 time_t xStopTime = fMyRootFile->GetStopTime();
4911 TString xStartDate = fMyRootFile->GetStartDate();
4912 TString xStopDate = fMyRootFile->GetStopDate();
4914 if( xStartTime < fStartTime ){fStartTime = xStartTime; fStartDate = xStartDate;}
4915 if( xStopTime > fStopTime ){fStopTime = xStopTime; fStopDate = xStopDate;}
4917 fRunType = fMyRootFile->GetRunType();
4920 if( HistoCode ==
"D_NOE_ChNb" ){
4921 partial_histp = fMyRootFile->ReadAverageNumberOfEvents(fEcal->MaxStinEcnaInStex());}
4922 if( HistoCode ==
"D_Ped_ChNb" ){
4923 partial_histp = fMyRootFile->ReadAveragePedestals(fEcal->MaxStinEcnaInStex());}
4924 if (HistoCode ==
"D_TNo_ChNb" ){
4925 partial_histp = fMyRootFile->ReadAverageTotalNoise(fEcal->MaxStinEcnaInStex());}
4926 if( HistoCode ==
"D_MCs_ChNb" ){
4927 partial_histp = fMyRootFile->ReadAverageMeanCorrelationsBetweenSamples(fEcal->MaxStinEcnaInStex());}
4928 if( HistoCode ==
"D_LFN_ChNb" ){
4929 partial_histp = fMyRootFile->ReadAverageLowFrequencyNoise(fEcal->MaxStinEcnaInStex());}
4930 if( HistoCode ==
"D_HFN_ChNb" ){
4931 partial_histp = fMyRootFile->ReadAverageHighFrequencyNoise(fEcal->MaxStinEcnaInStex());}
4932 if( HistoCode ==
"D_SCs_ChNb" ){
4933 partial_histp = fMyRootFile->ReadAverageSigmaOfCorrelationsBetweenSamples(fEcal->MaxStinEcnaInStex());}
4935 if ( fMyRootFile->DataExist() == kTRUE ){OKDataExist = kTRUE;}
4939 fStatusFileFound = kFALSE;
4940 cout <<
"!TEcnaHistos::ViewStas(...)> *ERROR* =====> "
4941 <<
" ROOT file not found" << fTTBELL << endl;
4945 if( arg_AlreadyRead == 1 )
4947 OKDataExist = kTRUE;
4948 for(Int_t i0Stin=0; i0Stin<fEcal->MaxStinEcnaInStex(); i0Stin++)
4950 partial_histp(i0Stin) = arg_read_histo(fEcal->MaxStinEcnaInStex()*iStasStex+i0Stin);
4954 if( OKDataExist == kTRUE)
4956 fStatusFileFound = kTRUE;
4957 CounterExistingFile++;
4960 TMatrixD read_matrix(nb_binx, nb_biny);
4961 for(Int_t
i=0;
i<nb_binx;
i++)
4962 {
for(Int_t
j=0;
j<nb_biny;
j++){read_matrix(
i,
j)=(Double_t)0.;}}
4964 if ( OKDataExist == kTRUE )
4966 fStatusDataExist = kTRUE;
4969 for(Int_t i0StexStinEcna=0; i0StexStinEcna<fEcal->MaxStinEcnaInStex(); i0StexStinEcna++)
4972 Int_t i_xgeo = GetXStinInStas(iStasStex, i0StexStinEcna, vertic_empty_strip_1);
4973 Int_t i_ygeo = GetYStinInStas(iStasStex, i0StexStinEcna);
4975 if(i_xgeo >=0 && i_xgeo < nb_binx && i_ygeo >=0 && i_ygeo < nb_biny)
4977 Int_t n1StexStinEcna = i0StexStinEcna+1;
4979 if( fFlagSubDet ==
"EB" )
4981 read_matrix(i_xgeo, i_ygeo) = partial_histp(i0StexStinEcna);
4982 h_geo_bid->Fill((Double_t)i_xgeo, (Double_t)i_ygeo,
4983 (Double_t)read_matrix(i_xgeo, i_ygeo));
4986 if( fFlagSubDet ==
"EE" )
4989 if( !( (n1StexStinEcna == 10 || n1StexStinEcna == 11 ||
4990 n1StexStinEcna == 29 || n1StexStinEcna == 32) ) )
4992 read_matrix(i_xgeo, i_ygeo) = partial_histp(i0StexStinEcna);
4993 h_geo_bid->Fill((Double_t)i_xgeo, (Double_t)i_ygeo,
4994 (Double_t)read_matrix(i_xgeo, i_ygeo));
4996 if( n1StexStinEcna == 29 )
5009 read_matrix(i_xgeo, i_ygeo) =
5010 partial_histp(i0StexStinEcna)*(Double_t)(5./6.) + partial_histp(9)/(Double_t)6.;
5011 h_geo_bid->Fill((Double_t)i_xgeo, (Double_t)i_ygeo,
5012 (Double_t)read_matrix(i_xgeo, i_ygeo));
5015 if( n1StexStinEcna == 32 )
5019 read_matrix(i_xgeo, i_ygeo) =
5020 partial_histp(i0StexStinEcna)*(Double_t)(5./6.) + partial_histp(10)/(Double_t)6.;
5021 h_geo_bid->Fill((Double_t)i_xgeo, (Double_t)i_ygeo,
5022 (Double_t)read_matrix(i_xgeo, i_ygeo));
5030 fStatusDataExist = kFALSE;
5032 cout <<
"!TEcnaHistos::ViewStas(...)> "
5033 <<
" Data not available for " << fFapStexName <<
" " << iStasStex+1
5034 <<
" (Quantity not present in the ROOT file)" << fTTBELL << endl;
5039 fStatusFileFound = kFALSE;
5041 cout <<
"!TEcnaHistos::ViewStas(...)> "
5042 <<
" Data not available for " << fFapStexName <<
" " << iStasStex+1
5043 <<
" (ROOT file not found)" << fTTBELL << endl;
5046 if( fFapNbOfEvts <= xFapNbOfEvts[iStasStex] ){fFapNbOfEvts = xFapNbOfEvts[iStasStex];}
5051 delete [] xFapNbOfEvts; xFapNbOfEvts = 0; fCdelete++;
5053 if( CounterExistingFile > 0 && CounterDataExist > 0 )
5058 SetYminMemoFromValue(HistoCode.Data(), fCnaParHistos->GetYminDefaultValue(HistoCode.Data()));
5059 SetYmaxMemoFromValue(HistoCode.Data(), fCnaParHistos->GetYmaxDefaultValue(HistoCode.Data()));
5061 if( fUserHistoMin == fUserHistoMax ){fFlagUserHistoMin =
"AUTO"; fFlagUserHistoMax =
"AUTO";}
5063 if( fFlagUserHistoMin ==
"ON" )
5064 {SetYminMemoFromValue(HistoCode.Data(), fUserHistoMin); fFlagUserHistoMin =
"OFF";}
5065 if( fFlagUserHistoMax ==
"ON" )
5066 {SetYmaxMemoFromValue(HistoCode.Data(), fUserHistoMax); fFlagUserHistoMax =
"OFF";}
5068 if( fFlagUserHistoMin ==
"AUTO" )
5069 {SetYminMemoFromValue(HistoCode.Data(), h_geo_bid->GetMinimum()); fFlagUserHistoMin =
"OFF";}
5070 if( fFlagUserHistoMax ==
"AUTO" )
5071 {SetYmaxMemoFromValue(HistoCode.Data(), h_geo_bid->GetMaximum()); fFlagUserHistoMax =
"OFF";}
5073 SetHistoFrameYminYmaxFromMemo((TH1D*)h_geo_bid, HistoCode);
5089 char* f_in =
new char[fgMaxCar]; fCnew++;
5092 UInt_t canv_h = fCnaParHistos->CanvasFormatH(
"petit");
5093 UInt_t canv_w = fCnaParHistos->CanvasFormatW(
"petit");
5095 if( fFlagSubDet ==
"EB")
5096 {canv_w = fCnaParHistos->CanvasFormatW(
"phietaEB");
5097 canv_h = fCnaParHistos->CanvasFormatH(
"phietaEB");}
5098 if( fFlagSubDet ==
"EE")
5099 {canv_w = fCnaParHistos->CanvasFormatW(
"IYIXEE");
5100 canv_h = fCnaParHistos->CanvasFormatH(
"IYIXEE");}
5103 SetAllPavesViewStas();
5106 TString name_cov_cor;
5107 Int_t MaxCar = fgMaxCar;
5108 name_cov_cor.Resize(MaxCar);
5111 if( HistoCode ==
"D_NOE_ChNb"){name_cov_cor =
"Number_of_Events";}
5112 if( HistoCode ==
"D_Ped_ChNb"){name_cov_cor =
"Pedestals";}
5113 if( HistoCode ==
"D_TNo_ChNb"){name_cov_cor =
"Total_noise";}
5114 if( HistoCode ==
"D_MCs_ChNb"){name_cov_cor =
"Mean_Corss";}
5115 if( HistoCode ==
"D_LFN_ChNb"){name_cov_cor =
"Low_Fq_Noise";}
5116 if( HistoCode ==
"D_HFN_ChNb"){name_cov_cor =
"High_Fq_Noise";}
5117 if( HistoCode ==
"D_SCs_ChNb"){name_cov_cor =
"Sigma_Corss";}
5121 name_visu.Resize(MaxCar);
5124 sprintf(f_in,
"%s_%s_S1_%d_R%d_%d_%d_%s_%s_HocoVeco_R%d",
5125 name_cov_cor.Data(), fFapAnaType.Data(), fFapNbOfSamples, fFapRunNumber,
5126 fFapFirstReqEvtNumber, fFapLastReqEvtNumber, fFlagSubDet.Data(),
5127 name_visu.Data(), arg_AlreadyRead);
5129 if( fFlagSubDet ==
"EB" ){SetHistoPresentation((TH1D*)h_geo_bid,
"Stas2DEB");}
5130 if( fFlagSubDet ==
"EE" ){SetHistoPresentation((TH1D*)h_geo_bid,
"Stas2DEE");}
5132 TCanvas *MainCanvas =
new TCanvas(f_in, f_in, canv_w, canv_h); fCnewRoot++;
5133 fCurrentCanvas = MainCanvas; fCurrentCanvasName = f_in;
5137 delete [] f_in; f_in = 0; fCdelete++;
5140 if( fPavComGeneralTitle != 0 ){fPavComGeneralTitle->Draw();}
5142 fPavComStas->Draw();
5143 fPavComAnaRun->Draw();
5144 fPavComNbOfEvts->Draw();
5147 Double_t x_low = fCnaParHistos->BoxLeftX(
"bottom_left_box") - 0.005;
5148 Double_t y_low = fCnaParHistos->BoxTopY(
"bottom_left_box") + 0.005;
5149 Double_t x_margin = x_low;
5150 Double_t y_margin = y_low;
5151 MainCanvas->Divide( 1, 1, x_margin, y_margin);
5155 if( fFlagSubDet ==
"EE" ){
5156 Double_t x_up = fCnaParHistos->BoxRightX(
"bottom_right_box") + 0.005;
5157 Double_t y_up = fCnaParHistos->BoxBottomY(
"top_left_box_EE") - 0.005;
5158 TVirtualPad* main_subpad = gPad;
5159 main_subpad->SetPad(x_low, y_low, x_up, y_up);}
5162 h_geo_bid->GetXaxis()->SetTitle(axis_x_var_name);
5163 h_geo_bid->GetYaxis()->SetTitle(axis_y_var_name);
5165 h_geo_bid->DrawCopy(
"COLZ");
5168 ViewStasGrid(vertic_empty_strips);
5177 h_geo_bid->SetStats(b_true);
5178 h_geo_bid->Delete(); h_geo_bid = 0; fCdeleteRoot++;
5180 delete [] f_in_mat_tit; f_in_mat_tit = 0; fCdelete++;
5190 const Int_t& vertic_empty_strip_1)
5196 Int_t n1StasStex = iStasStex+1;
5197 TString ctype = fEcalNumbering->GetStexHalfStas(n1StasStex);
5199 if( fFlagSubDet ==
"EB")
5203 ix_geo = (iStasStex - fEcal->MaxStexInStasMinus())*fEcal->MaxStinVecoInStex()
5204 + StexStinEcna%fEcal->MaxStinVecoInStex();
5208 ix_geo = iStasStex*fEcal->MaxStinVecoInStex()
5209 + fEcal->MaxStinVecoInStex()- 1 - StexStinEcna%fEcal->MaxStinVecoInStex();
5213 if( fFlagSubDet ==
"EE")
5215 TString LeftRightFromIP = fEcalNumbering->GetDeeDirViewedFromIP(n1StasStex);
5217 if( ctype ==
"EE-" && LeftRightFromIP ==
"left" )
5219 ix_geo = fEcal->MaxStinHocoInStex() - StexStinEcna/fEcal->MaxStinVecoInStex() - 1 + vertic_empty_strip_1;
5221 if( ctype ==
"EE-" && LeftRightFromIP ==
"right" )
5223 ix_geo = fEcal->MaxStinHocoInStex() + StexStinEcna/fEcal->MaxStinVecoInStex() + vertic_empty_strip_1;
5225 if( ctype ==
"EE+" && LeftRightFromIP ==
"left" )
5227 ix_geo = (Int_t)fCnaParHistos->DeeOffsetX(fFlagSubDet, n1StasStex)
5228 + fEcal->MaxStinHocoInStex() - StexStinEcna/fEcal->MaxStinVecoInStex() - 1;
5230 if( ctype ==
"EE+" && LeftRightFromIP ==
"right" )
5232 ix_geo = (Int_t)fCnaParHistos->DeeOffsetX(fFlagSubDet, n1StasStex)
5233 + StexStinEcna/fEcal->MaxStinVecoInStex();
5246 if( fFlagSubDet ==
"EB")
5248 Int_t n1StasStex = iStasStex+1;
5249 TString ctype = fEcalNumbering->GetStexHalfStas(n1StasStex);
5251 {iy_geo = StexStinEcna/fEcal->MaxStinVecoInStex() + fEcal->MaxStinHocoInStex(); }
5253 {iy_geo = fEcal->MaxStinHocoInStex() - 1 - StexStinEcna/fEcal->MaxStinVecoInStex();}
5256 if( fFlagSubDet ==
"EE")
5257 {iy_geo = StexStinEcna%fEcal->MaxStinVecoInStex();}
5271 if( fFlagSubDet ==
"EB"){ViewEBGrid();}
5272 if( fFlagSubDet ==
"EE"){ViewEEGrid(vertic_empty_strips);}
5280 Int_t GeoBidSizeEta = fEcal->MaxSMEtaInEB()*fEcal->MaxTowEtaInSM();
5281 Int_t GeoBidSizePhi = fEcal->MaxSMPhiInEB()*fEcal->MaxTowPhiInSM();
5283 Int_t size_y = fEcal->MaxTowEtaInSM();
5284 Int_t size_x = fEcal->MaxTowPhiInSM();
5286 Int_t nb_binx = GeoBidSizePhi;
5287 Int_t nb_biny = GeoBidSizeEta;
5288 Axis_t xinf_bid = (Axis_t)0.;
5289 Axis_t xsup_bid = (Axis_t)nb_binx;
5290 Axis_t yinf_bid = (Axis_t)0.;
5291 Axis_t ysup_bid = (Axis_t)nb_biny;
5295 Int_t max_x = nb_binx/size_x;
5296 Int_t max_y = nb_biny/size_y;
5299 Double_t yline = (Double_t)yinf_bid;
5301 Double_t xline_left = (Double_t)xinf_bid;
5302 Double_t xline_right = (Double_t)xsup_bid;
5304 for( Int_t
j = 0 ;
j < max_y ;
j++)
5306 yline = yline + (Double_t)size_y;
5308 lin =
new TLine(xline_left, yline, xline_right, yline); fCnewRoot++;
5314 Double_t xline = (Double_t)xinf_bid - (Double_t)size_x;
5316 Double_t yline_bot = (Double_t)yinf_bid;
5317 Double_t yline_top = (Double_t)ysup_bid;
5319 for( Int_t
i = 0 ;
i < max_x ;
i++)
5321 xline = xline + (Double_t)size_x;
5323 lin =
new TLine(xline, yline_bot, xline, yline_top); fCnewRoot++;
5328 Double_t yTextBot = yline_bot - (yline_top - yline_bot)/25.;
5329 Double_t yTextTop = yline_top + (yline_top - yline_bot)/120.;
5330 xline = (Double_t)xinf_bid - (Double_t)size_x;
5332 char* f_in =
new char[fgMaxCar]; fCnew++;
5333 TText *text_SM =
new TText(); fCnewRoot++;
5334 for( Int_t
i = 0 ;
i < max_x ;
i++)
5336 xline = xline + (Double_t)size_x;
5337 text_SM->SetTextColor(fCnaParHistos->ColorDefinition(
"bleu_fonce"));
5338 text_SM->SetTextSize((Double_t)0.03);
5339 sprintf( f_in,
" +%d",
i+1 );
5340 text_SM->DrawText(xline, yTextTop, f_in);
5341 sprintf( f_in,
" %d", -
i-1 );
5342 text_SM->DrawText(xline, yTextBot, f_in);
5344 delete [] f_in; fCdelete++;
5351 Int_t MatSize = fEcal->MaxTowPhiInSM();
5352 Int_t size_x_eb = fEcal->MaxSMPhiInEB();
5353 Double_t phi_min = 0;
5354 Double_t phi_max = 360;
5356 TString x_var_name = GetHocoVecoAxisTitle(
"iphiEB");;
5357 TString x_direction = fEcalNumbering->GetXDirectionEB(SMNumber);
5359 new TF1(
"f1", x_direction.Data(), phi_min, phi_max); fCnewRoot++;
5360 TGaxis* sup_axis_x = 0;
5362 if( x_direction ==
"-x" )
5363 {sup_axis_x =
new TGaxis( (Float_t)0., (Float_t)0., (Float_t)(size_x_eb*MatSize), (Float_t)0.,
5364 "f1", size_x_eb,
"SC" , 0.); fCnewRoot++;}
5366 if( x_direction ==
"x" )
5367 {sup_axis_x =
new TGaxis( (Float_t)0., (Float_t)0., (Float_t)(size_x_eb*MatSize), (Float_t)0.,
5368 "f1", size_x_eb,
"SC" , 0.); fCnewRoot++;}
5370 Float_t tit_siz_x = fCnaParHistos->AxisTitleSize();
5371 Float_t lab_siz_x = fCnaParHistos->AxisLabelSize(
"EBx");
5372 Float_t tic_siz_x = fCnaParHistos->AxisTickSize(
"SMx");
5373 Float_t tit_off_x = fCnaParHistos->AxisTitleOffset(
"EBx");
5374 Float_t lab_off_x = fCnaParHistos->AxisLabelOffset(
"EBx");
5376 sup_axis_x->SetTitle(x_var_name);
5377 sup_axis_x->SetTitleSize(tit_siz_x);
5378 sup_axis_x->SetTitleOffset(tit_off_x);
5379 sup_axis_x->SetLabelSize(lab_siz_x);
5380 sup_axis_x->SetLabelOffset(lab_off_x);
5381 sup_axis_x->SetTickSize(tic_siz_x);
5382 sup_axis_x->Draw(
"SAME");
5385 MatSize = fEcal->MaxTowEtaInSM();
5386 Int_t size_y_eb = fEcal->MaxSMEtaInEB();
5388 Double_t eta_min = (Double_t)(-85.);
5389 Double_t eta_max = (Double_t)85.;
5391 TString y_var_name = GetHocoVecoAxisTitle(
"ietaEB");
5393 TGaxis* sup_axis_y = 0;
5394 sup_axis_y =
new TGaxis((Float_t)0., (Float_t)0.,
5395 (Float_t)0., (Float_t)(size_y_eb*MatSize),
5396 eta_min, eta_max, MatSize/2,
"SC", 0.); fCnewRoot++;
5398 Float_t tit_siz_y = fCnaParHistos->AxisTitleSize();
5399 Float_t lab_siz_y = fCnaParHistos->AxisLabelSize(
"EBy");
5400 Float_t tic_siz_y = fCnaParHistos->AxisTickSize(
"SMy");
5401 Float_t tit_off_y = fCnaParHistos->AxisTitleOffset(
"EBy");
5402 Float_t lab_off_y = fCnaParHistos->AxisLabelOffset(
"EBy");
5404 sup_axis_y->SetTitle(y_var_name);
5405 sup_axis_y->SetTitleSize(tit_siz_y);
5406 sup_axis_y->SetTitleOffset(tit_off_y);
5407 sup_axis_y->SetLabelColor(1);
5408 sup_axis_y->SetLabelSize(lab_siz_y);
5409 sup_axis_y->SetLabelOffset(lab_off_y);
5410 sup_axis_y->SetTickSize(tic_siz_y);
5411 sup_axis_y->Draw(
"SAME");
5415 gStyle->SetTextColor(fCnaParHistos->ColorDefinition(
"noir"));
5423 Float_t coefcc_x = (Float_t)1./(Float_t)5.;
5424 Float_t coefcc_y = (Float_t)1./(Float_t)5.;
5426 for( Int_t DeeNumber = 1; DeeNumber <= 4; DeeNumber++)
5428 EEDataSectors(coefcc_x, coefcc_y, DeeNumber,
"EE");
5429 EEGridAxis(coefcc_x, coefcc_y, DeeNumber,
"EE",
" ");
5433 Double_t xline = coefcc_x*( 2*fEcal->MaxCrysIXInDee()
5434 + ((Double_t)vertic_empty_strips)/2.*fEcal->MaxCrysIXInSC() );
5436 Double_t yline_bot = coefcc_y*(Double_t)0.;
5437 Double_t yline_top = coefcc_y*(Double_t)fEcal->MaxCrysIYInDee();
5440 lin =
new TLine(xline, yline_bot, xline, yline_top); fCnewRoot++;
5445 xline = coefcc_x*(3*fEcal->MaxCrysIXInDee()
5446 + ((Double_t)vertic_empty_strips-1.)*fEcal->MaxCrysIXInSC() );
5448 lin12 =
new TLine(xline, yline_bot, xline, yline_top); fCnewRoot++;
5449 lin12->SetLineStyle(2);
5452 xline = coefcc_x*(fEcal->MaxCrysIXInDee()
5453 + ((Double_t)vertic_empty_strips)/3.*fEcal->MaxCrysIXInSC() );
5455 lin34 =
new TLine(xline, yline_bot, xline, yline_top); fCnewRoot++;
5456 lin34->SetLineStyle(2);
5460 Double_t xline_end = coefcc_x*( 4*fEcal->MaxCrysIXInDee() + vertic_empty_strips*fEcal->MaxCrysIXInSC());
5461 Double_t yline_mid = coefcc_x*fEcal->MaxCrysIYInDee()/2;
5464 linh =
new TLine( 0., yline_mid, xline_end, yline_mid); fCnewRoot++;
5465 linh->SetLineStyle(2);
5472 const Int_t& DeeNumber,
const TString& opt_plot)
5477 Int_t LineWidth = 2;
5478 if( opt_plot ==
"Dee" ){LineWidth = 3;}
5483 Float_t xg_dee_int_bot[13] = { 0, 5, 5, 7, 7, 8, 8, 9, 9,10,10,11,11};
5484 Float_t yg_dee_int_bot[13] = {39,39,40,40,41,41,42,42,43,43,45,45,50};
5485 for(Int_t
i=0;
i<ngmax;
i++){
5486 xg_dee_int_bot[
i] = coefcc_x*xg_dee_int_bot[
i];
5487 yg_dee_int_bot[
i] = coefcc_y*yg_dee_int_bot[
i];}
5489 Float_t XgDeeIntBotRight[13]; Float_t YgDeeIntBotRight[13];
5490 Float_t XgDeeIntTopRight[13]; Float_t YgDeeIntTopRight[13];
5492 for( Int_t
i=0;
i<ngmax;
i++)
5494 XgDeeIntBotRight[
i] = xg_dee_int_bot[
i];
5495 YgDeeIntBotRight[
i] = yg_dee_int_bot[
i];
5496 XgDeeIntTopRight[
i] = XgDeeIntBotRight[
i];
5497 YgDeeIntTopRight[
i] = coefcc_y*fEcal->MaxCrysIYInDee() - YgDeeIntBotRight[
i];
5498 if ( DeeNumber == 2 || DeeNumber == 4 )
5500 XgDeeIntBotRight[
i] = -XgDeeIntBotRight[
i] + coefcc_x*fEcal->MaxCrysIXInDee();
5501 XgDeeIntTopRight[
i] = -XgDeeIntTopRight[
i] + coefcc_x*fEcal->MaxCrysIXInDee();
5503 XgDeeIntBotRight[
i] += fCnaParHistos->DeeOffsetX(opt_plot, DeeNumber);
5504 XgDeeIntTopRight[
i] += fCnaParHistos->DeeOffsetX(opt_plot, DeeNumber);
5507 TGraph *BDeeIntBotRight =
new TGraph(ngmax, XgDeeIntBotRight, YgDeeIntBotRight);
5508 BDeeIntBotRight->SetLineWidth(LineWidth);
5509 BDeeIntBotRight->Draw();
5511 TGraph *BDeeIntTopRight =
new TGraph(ngmax, XgDeeIntTopRight, YgDeeIntTopRight);
5512 BDeeIntTopRight->SetLineWidth(LineWidth);
5513 BDeeIntTopRight->Draw();
5517 Float_t xg_dee_ext_bot[21] = {0,10,10,15,15,25,25,30,30,35,35,37,37,42,42,45,45,47,47,50,50};
5518 Float_t yg_dee_ext_bot[21] = {0, 0, 3, 3, 5, 5, 8, 8,13,13,15,15,20,20,25,25,35,35,40,40,50};
5519 for(Int_t
i=0;
i<ngmax;
i++){
5520 xg_dee_ext_bot[
i] = coefcc_x*xg_dee_ext_bot[
i];
5521 yg_dee_ext_bot[
i] = coefcc_y*yg_dee_ext_bot[
i];}
5523 Float_t XgDeeExtBotRight[21]; Float_t YgDeeExtBotRight[21];
5524 Float_t XgDeeExtTopRight[21]; Float_t YgDeeExtTopRight[21];
5526 for( Int_t
i=0;
i<ngmax;
i++)
5528 XgDeeExtBotRight[
i] = xg_dee_ext_bot[
i];
5529 YgDeeExtBotRight[
i] = yg_dee_ext_bot[
i];
5530 XgDeeExtTopRight[
i] = XgDeeExtBotRight[
i];
5531 YgDeeExtTopRight[
i] = coefcc_y*fEcal->MaxCrysIYInDee() - YgDeeExtBotRight[
i];
5532 if ( DeeNumber == 2 || DeeNumber == 4 )
5534 XgDeeExtBotRight[
i] = -XgDeeExtBotRight[
i] + coefcc_x*fEcal->MaxCrysIXInDee();
5535 XgDeeExtTopRight[
i] = -XgDeeExtTopRight[
i] + coefcc_x*fEcal->MaxCrysIXInDee();
5537 XgDeeExtBotRight[
i] += fCnaParHistos->DeeOffsetX(opt_plot, DeeNumber);
5538 XgDeeExtTopRight[
i] += fCnaParHistos->DeeOffsetX(opt_plot, DeeNumber);
5541 TGraph *BDeeExtBotRight =
new TGraph(ngmax, XgDeeExtBotRight, YgDeeExtBotRight);
5542 BDeeExtBotRight->SetLineWidth(LineWidth);
5543 BDeeExtBotRight->Draw();
5545 TGraph *BDeeExtTopRight =
new TGraph(ngmax, XgDeeExtTopRight, YgDeeExtTopRight);
5546 BDeeExtTopRight->SetLineWidth(LineWidth);
5547 BDeeExtTopRight->Draw();
5549 char* f_in =
new char[fgMaxCar]; fCnew++;
5554 if( opt_plot ==
"EE" )
5557 Float_t xg_dee_data_sec9[2] = { 0, 0};
5558 Float_t yg_dee_data_sec9[2] = {61,100};
5559 for(Int_t
i=0;
i<ngmax;
i++){
5560 xg_dee_data_sec9[
i] = coefcc_x*xg_dee_data_sec9[
i];
5561 yg_dee_data_sec9[
i] = coefcc_y*yg_dee_data_sec9[
i];}
5563 Float_t XgDeeDataSec9[11]; Float_t YgDeeDataSec9[11];
5564 for( Int_t
i=0;
i<ngmax;
i++)
5566 XgDeeDataSec9[
i] = xg_dee_data_sec9[
i]; YgDeeDataSec9[
i] = yg_dee_data_sec9[
i];
5567 if ( DeeNumber == 2 || DeeNumber == 4 )
5569 XgDeeDataSec9[
i] = -XgDeeDataSec9[
i] + coefcc_x*fEcal->MaxCrysIXInDee();
5571 XgDeeDataSec9[
i] += fCnaParHistos->DeeOffsetX(opt_plot, DeeNumber);
5573 TGraph *BDeeDataSec9 =
new TGraph(ngmax, XgDeeDataSec9, YgDeeDataSec9);
5574 BDeeDataSec9->SetLineWidth(LineWidth);
5575 BDeeDataSec9->Draw();
5580 Float_t xg_dee_data_sec1[11] = { 7,10,10,15,15,20,20,25,25,30,30};
5581 Float_t yg_dee_data_sec1[11] = {60,60,65,65,70,70,75,75,85,85,87};
5582 for(Int_t
i=0;
i<ngmax;
i++){
5583 xg_dee_data_sec1[
i] = coefcc_x*xg_dee_data_sec1[
i];
5584 yg_dee_data_sec1[
i] = coefcc_y*yg_dee_data_sec1[
i];}
5586 Float_t XgDeeDataSec1[11]; Float_t YgDeeDataSec1[11];
5587 for( Int_t
i=0;
i<ngmax;
i++)
5589 XgDeeDataSec1[
i] = xg_dee_data_sec1[
i]; YgDeeDataSec1[
i] = yg_dee_data_sec1[
i];
5590 if ( DeeNumber == 2 || DeeNumber == 4 )
5592 XgDeeDataSec1[
i] = -XgDeeDataSec1[
i] + coefcc_x*fEcal->MaxCrysIXInDee();
5594 XgDeeDataSec1[
i] += fCnaParHistos->DeeOffsetX(opt_plot, DeeNumber);
5597 TGraph *BDeeDataSec1 =
new TGraph(ngmax, XgDeeDataSec1, YgDeeDataSec1);
5598 BDeeDataSec1->SetLineWidth(LineWidth);
5599 BDeeDataSec1->Draw();
5603 Float_t xg_dee_data_sec2[6] = {11,15,15,40,40,47};
5604 Float_t yg_dee_data_sec2[6] = {50,50,55,55,60,60};
5605 for(Int_t
i=0;
i<ngmax;
i++){
5606 xg_dee_data_sec2[
i] = coefcc_x*xg_dee_data_sec2[
i];
5607 yg_dee_data_sec2[
i] = coefcc_y*yg_dee_data_sec2[
i];}
5609 Float_t XgDeeDataSec2[6]; Float_t YgDeeDataSec2[6];
5610 for( Int_t
i=0;
i<ngmax;
i++)
5612 XgDeeDataSec2[
i] = xg_dee_data_sec2[
i]; YgDeeDataSec2[
i] = yg_dee_data_sec2[
i];
5613 if ( DeeNumber == 2 || DeeNumber == 4 )
5615 XgDeeDataSec2[
i] = -XgDeeDataSec2[
i] + coefcc_x*fEcal->MaxCrysIXInDee();
5617 XgDeeDataSec2[
i] += fCnaParHistos->DeeOffsetX(opt_plot, DeeNumber);
5619 TGraph *BDeeDataSec2 =
new TGraph(ngmax, XgDeeDataSec2, YgDeeDataSec2);
5620 BDeeDataSec2->SetLineWidth(LineWidth);
5621 BDeeDataSec2->Draw();
5625 Float_t xg_dee_data_sec3[10] = {10,15,15,20,20,30,30,40,40,42};
5626 Float_t yg_dee_data_sec3[10] = {45,45,40,40,35,35,30,30,25,25};
5627 for(Int_t
i=0;
i<ngmax;
i++){
5628 xg_dee_data_sec3[
i] = coefcc_x*xg_dee_data_sec3[
i];
5629 yg_dee_data_sec3[
i] = coefcc_y*yg_dee_data_sec3[
i];}
5631 Float_t XgDeeDataSec3[10]; Float_t YgDeeDataSec3[10];
5632 for( Int_t
i=0;
i<ngmax;
i++)
5634 XgDeeDataSec3[
i] = xg_dee_data_sec3[
i]; YgDeeDataSec3[
i] = yg_dee_data_sec3[
i];
5635 if ( DeeNumber == 2 || DeeNumber == 4 )
5637 XgDeeDataSec3[
i] = -XgDeeDataSec3[
i] + coefcc_x*fEcal->MaxCrysIXInDee();
5639 XgDeeDataSec3[
i] += fCnaParHistos->DeeOffsetX(opt_plot, DeeNumber);
5641 TGraph *BDeeDataSec3 =
new TGraph(ngmax, XgDeeDataSec3, YgDeeDataSec3);
5642 BDeeDataSec3->SetLineWidth(LineWidth);
5643 BDeeDataSec3->Draw();
5647 Float_t xg_dee_data_sec4[6] = { 5, 5,10,10,15,15};
5648 Float_t yg_dee_data_sec4[6] = {40,30,30,15,15, 5};
5649 for(Int_t
i=0;
i<ngmax;
i++){
5650 xg_dee_data_sec4[
i] = coefcc_x*xg_dee_data_sec4[
i];
5651 yg_dee_data_sec4[
i] = coefcc_y*yg_dee_data_sec4[
i];}
5653 Float_t XgDeeDataSec4[6]; Float_t YgDeeDataSec4[6];
5654 for( Int_t
i=0;
i<ngmax;
i++)
5656 XgDeeDataSec4[
i] = xg_dee_data_sec4[
i]; YgDeeDataSec4[
i] = yg_dee_data_sec4[
i];
5657 if ( DeeNumber == 2 || DeeNumber == 4 )
5659 XgDeeDataSec4[
i] = -XgDeeDataSec4[
i] + coefcc_x*fEcal->MaxCrysIXInDee();
5661 XgDeeDataSec4[
i] += fCnaParHistos->DeeOffsetX(opt_plot, DeeNumber);
5663 TGraph *BDeeDataSec4 =
new TGraph(ngmax, XgDeeDataSec4, YgDeeDataSec4);
5664 BDeeDataSec4->SetLineWidth(LineWidth);
5665 BDeeDataSec4->Draw();
5669 if( opt_plot ==
"Dee" || opt_plot ==
"EE" )
5673 Float_t xg_coord_sector[5] = { 16, 41, 45, 33, -2};
5674 Float_t yg_coord_sector[5] = { 96, 83, 30, 5, -8};
5677 if(opt_plot ==
"Dee" && (DeeNumber == 1) ){xg_coord_sector[2] += 0.5;}
5678 if(opt_plot ==
"Dee" && (DeeNumber == 2) ){xg_coord_sector[2] -= 1. ;}
5679 if(opt_plot ==
"Dee" && (DeeNumber == 3) ){xg_coord_sector[2] += 0.7;}
5680 if(opt_plot ==
"Dee" && (DeeNumber == 4) ){xg_coord_sector[2] -= 1.2;}
5682 if(opt_plot ==
"EE" && (DeeNumber == 2 || DeeNumber == 3) ){xg_coord_sector[2] += 0.55;}
5683 if(opt_plot ==
"EE" && (DeeNumber == 4 ) ){xg_coord_sector[2] -= 0.2;}
5685 for(Int_t
i=0;
i<ngmax;
i++){
5686 xg_coord_sector[
i] = coefcc_x*xg_coord_sector[
i];
5687 yg_coord_sector[
i] = coefcc_y*yg_coord_sector[
i];}
5689 Float_t xg_sector[9];
5690 Float_t yg_sector[9];
5693 Float_t xinv_d2d4 = coefcc_x*44;
5695 if( DeeNumber == 1 )
5698 xg_sector[1-ns1] = xg_coord_sector[1-ns1]; yg_sector[1-ns1] = yg_coord_sector[1-ns1];
5699 xg_sector[2-ns1] = xg_coord_sector[2-ns1]; yg_sector[2-ns1] = yg_coord_sector[2-ns1];
5700 xg_sector[3-ns1] = xg_coord_sector[3-ns1]; yg_sector[3-ns1] = yg_coord_sector[3-ns1];
5701 xg_sector[4-ns1] = xg_coord_sector[4-ns1]; yg_sector[4-ns1] = yg_coord_sector[4-ns1];
5702 xg_sector[5-ns1] = xg_coord_sector[5-ns1]; yg_sector[5-ns1] = yg_coord_sector[5-ns1];
5705 if( DeeNumber == 2 )
5708 xg_sector[ns2-1] = xinv_d2d4-xg_coord_sector[1-1]; yg_sector[ns2-1] = yg_coord_sector[1-1];
5709 xg_sector[ns2-2] = xinv_d2d4-xg_coord_sector[2-1]; yg_sector[ns2-2] = yg_coord_sector[2-1];
5710 xg_sector[ns2-3] = xinv_d2d4-xg_coord_sector[3-1]; yg_sector[ns2-3] = yg_coord_sector[3-1];
5711 xg_sector[ns2-4] = xinv_d2d4-xg_coord_sector[4-1]; yg_sector[ns2-4] = yg_coord_sector[4-1];
5712 xg_sector[ns2-5] = xinv_d2d4-xg_coord_sector[5-1]; yg_sector[ns2-5] = yg_coord_sector[5-1];
5714 if( DeeNumber == 3 )
5717 xg_sector[ns2-1]= xg_coord_sector[1-1]; yg_sector[ns2-1] = yg_coord_sector[1-1];
5718 xg_sector[ns2-2]= xg_coord_sector[2-1]; yg_sector[ns2-2] = yg_coord_sector[2-1];
5719 xg_sector[ns2-3]= xg_coord_sector[3-1]; yg_sector[ns2-3] = yg_coord_sector[3-1];
5720 xg_sector[ns2-4]= xg_coord_sector[4-1]; yg_sector[ns2-4] = yg_coord_sector[4-1];
5721 xg_sector[ns2-5]= xg_coord_sector[5-1]; yg_sector[ns2-5] = yg_coord_sector[5-1];
5723 if( DeeNumber == 4 )
5726 xg_sector[1-ns1]= xinv_d2d4-xg_coord_sector[1-ns1]; yg_sector[1-ns1] = yg_coord_sector[1-ns1];
5727 xg_sector[2-ns1]= xinv_d2d4-xg_coord_sector[2-ns1]; yg_sector[2-ns1] = yg_coord_sector[2-ns1];
5728 xg_sector[3-ns1]= xinv_d2d4-xg_coord_sector[3-ns1]; yg_sector[3-ns1] = yg_coord_sector[3-ns1];
5729 xg_sector[4-ns1]= xinv_d2d4-xg_coord_sector[4-ns1]; yg_sector[4-ns1] = yg_coord_sector[4-ns1];
5730 xg_sector[5-ns1]= xinv_d2d4-xg_coord_sector[5-ns1]; yg_sector[5-ns1] = yg_coord_sector[5-ns1];
5733 Color_t coul_textsector = fCnaParHistos->ColorDefinition(
"vert37");
5734 for(Int_t ns=ns1; ns<= ns2; ns++)
5736 xg_sector[ns-1] += fCnaParHistos->DeeOffsetX(opt_plot, DeeNumber);
5737 if( DeeNumber == 1 || DeeNumber == 2 ){sprintf( f_in,
"+%d", ns);}
5738 if( DeeNumber == 3 || DeeNumber == 4 ){sprintf( f_in,
"-%d", ns);}
5739 TText *text_num_module =
new TText(xg_sector[ns-1], yg_sector[ns-1], f_in); fCnewRoot++;
5740 if(opt_plot ==
"Dee"){text_num_module->SetTextSize(0.065);}
5741 if(opt_plot ==
"EE" ){text_num_module->SetTextSize(0.045);}
5742 text_num_module->SetTextColor(coul_textsector);
5743 if( opt_plot ==
"Dee" ||
5744 ( opt_plot ==
"EE" && !( (DeeNumber == 3 && ns == 5) || (DeeNumber == 1 && ns == 5) ) ) )
5745 {text_num_module->Draw();}
5752 Float_t xg_coord_dee[4] = { 0, 0, 0, 0};
5753 Float_t yg_coord_dee[4] = {48, 48, 48, 48};
5755 xg_coord_dee[DeeNumber-1] = coefcc_x*xg_coord_dee[DeeNumber-1];
5756 yg_coord_dee[DeeNumber-1] = coefcc_y*yg_coord_dee[DeeNumber-1];
5758 Float_t xg_dee = xg_coord_dee[DeeNumber-1];
5759 Float_t yg_dee = yg_coord_dee[DeeNumber-1];
5761 Color_t coul_textdee = fCnaParHistos->ColorDefinition(
"noir");
5763 xg_dee += fCnaParHistos->DeeOffsetX(opt_plot, DeeNumber)
5764 + fCnaParHistos->DeeNumberOffsetX(opt_plot, DeeNumber);
5766 if( DeeNumber == 1 ){sprintf( f_in,
"D1");}
5767 if( DeeNumber == 2 ){sprintf( f_in,
"D2");}
5768 if( DeeNumber == 3 ){sprintf( f_in,
"D3");}
5769 if( DeeNumber == 4 ){sprintf( f_in,
"D4");}
5771 TText *text_num_module =
new TText(xg_dee, yg_dee, f_in); fCnewRoot++;
5772 if( opt_plot ==
"EE" ){text_num_module->SetTextSize(0.045);}
5773 if( opt_plot ==
"Dee"){text_num_module->SetTextSize(0.085);}
5774 text_num_module->SetTextColor(coul_textdee);
5775 text_num_module->Draw();
5779 if( opt_plot ==
"EE" )
5783 Float_t xg_coord_eepm[4] = { 0, 0, 0, 0};
5784 Float_t yg_coord_eepm[4] = {95, 95, 95, 95};
5786 xg_coord_eepm[DeeNumber-1] = coefcc_x*xg_coord_eepm[DeeNumber-1];
5787 yg_coord_eepm[DeeNumber-1] = coefcc_y*yg_coord_eepm[DeeNumber-1];
5789 Float_t xg_eepm = xg_coord_eepm[DeeNumber-1];
5790 Float_t yg_eepm = yg_coord_eepm[DeeNumber-1];
5792 Color_t coul_texteepm = fCnaParHistos->ColorDefinition(
"noir");
5794 xg_eepm += fCnaParHistos->DeeOffsetX(opt_plot, DeeNumber)
5795 + fCnaParHistos->DeeNameOffsetX(DeeNumber);
5797 if( DeeNumber == 1 ){sprintf( f_in,
"EE+F");}
5798 if( DeeNumber == 2 ){sprintf( f_in,
"EE+N");}
5799 if( DeeNumber == 3 ){sprintf( f_in,
"EE-N");}
5800 if( DeeNumber == 4 ){sprintf( f_in,
"EE-F");}
5802 TText *text_num_eepm =
new TText(xg_eepm, yg_eepm, f_in); fCnewRoot++;
5803 text_num_eepm->SetTextSize(0.04);
5804 text_num_eepm->SetTextColor(coul_texteepm);
5805 text_num_eepm->Draw();
5809 Color_t coul_textfromIP = fCnaParHistos->ColorDefinition(
"rouge49");
5810 sprintf( f_in,
"viewed from IP");
5811 Float_t x_from_ip = 15.;
5812 Float_t y_from_ip = -10.;
5813 if( opt_plot ==
"EE" ){y_from_ip = -16.;}
5814 x_from_ip = coefcc_x*x_from_ip;
5815 y_from_ip = coefcc_x*y_from_ip;
5816 if( opt_plot ==
"EE" && DeeNumber == 3 ){x_from_ip += 1.4*fCnaParHistos->DeeOffsetX(opt_plot, DeeNumber);}
5817 TText *text_from_ip =
new TText(x_from_ip, y_from_ip, f_in); fCnewRoot++;
5818 text_from_ip->SetTextSize(0.045);
5819 if( opt_plot ==
"EE" ){text_from_ip->SetTextSize(0.035);}
5820 text_from_ip->SetTextColor(coul_textfromIP);
5821 if( opt_plot ==
"Dee" || (opt_plot ==
"EE" && DeeNumber == 3) ){text_from_ip->Draw();}
5823 delete [] f_in; f_in = 0; fCdelete++;
5830 const Int_t& DeeNumber,
const TString& opt_plot,
const TString& c_option)
5834 Int_t size_IX_dee = fEcal->MaxSCIXInDee();
5836 Double_t IX_min = fEcalNumbering->GetIIXMin(1) - 0.5;
5837 Double_t IX_max = fEcalNumbering->GetIIXMax()*fEcal->MaxCrysIXInSC() + 0.5;
5840 if( opt_plot ==
"Dee" && c_option ==
"corcc" )
5842 MatSize = fEcal->MaxCrysInSC();
5843 IX_min = fEcalNumbering->GetIIXMin() - 0.5;
5844 IX_max = fEcalNumbering->GetIIXMax() + 0.5;
5846 if( opt_plot ==
"EE" && c_option ==
"corcc" ){
return;}
5848 if( opt_plot ==
"Dee" && c_option !=
"corcc" ){MatSize = fEcal->MaxCrysIXInSC();}
5849 if( opt_plot ==
"EE" && c_option !=
"corcc" ){MatSize = 1;}
5851 TString x_var_name =
" ";
5853 Float_t axis_x_inf = 0;
5854 Float_t axis_x_sup = 0;
5855 Float_t axis_y_inf = 0;
5856 Float_t axis_y_sup = 0;
5857 Int_t axis_nb_div = 205;
5858 Double_t IX_values_min = 0;
5859 Double_t IX_values_max = 0;
5860 Option_t* chopt =
"C";
5863 if( DeeNumber == 1 )
5866 axis_x_inf = size_IX_dee*MatSize;
5870 IX_values_min = -IX_max;
5871 IX_values_max = -IX_min;
5872 if( opt_plot ==
"Dee" ){x_var_name = GetIXIYAxisTitle(
"iIXDee1");}
5873 if( opt_plot ==
"EE" ){x_var_name = GetIXIYAxisTitle(
"iIXEE");}
5874 if( opt_plot ==
"Dee" ){axis_nb_div = size_IX_dee;}
5877 if( DeeNumber == 2 )
5880 axis_x_inf = size_IX_dee*MatSize;
5884 IX_values_min = IX_min;
5885 IX_values_max = IX_max;
5886 if( opt_plot ==
"Dee" ){x_var_name = GetIXIYAxisTitle(
"iIXDee2");}
5887 if( opt_plot ==
"EE" ){x_var_name =
" ";}
5888 if( opt_plot ==
"Dee" ){axis_nb_div = size_IX_dee;}
5891 if( DeeNumber == 3 )
5894 axis_x_sup = size_IX_dee*MatSize;
5897 IX_values_min = IX_min;
5898 IX_values_max = IX_max;
5899 if( opt_plot ==
"Dee" ){x_var_name = GetIXIYAxisTitle(
"iIXDee3");}
5900 if( opt_plot ==
"EE" ){x_var_name =
" ";}
5901 if( opt_plot ==
"Dee" ){axis_nb_div = size_IX_dee;}
5904 if( DeeNumber == 4 )
5907 axis_x_sup = size_IX_dee*MatSize;
5910 IX_values_min = -IX_max;
5911 IX_values_max = -IX_min;
5912 if( opt_plot ==
"Dee" ){x_var_name = GetIXIYAxisTitle(
"iIXDee4");}
5913 if( opt_plot ==
"EE" ){x_var_name =
" ";}
5914 if( opt_plot ==
"Dee" ){axis_nb_div = size_IX_dee;}
5919 axis_x_inf += fCnaParHistos->DeeOffsetX(opt_plot, DeeNumber);
5920 axis_x_sup += fCnaParHistos->DeeOffsetX(opt_plot, DeeNumber);
5922 TGaxis* sup_axis_x = 0;
5923 sup_axis_x =
new TGaxis(axis_x_inf, axis_y_inf, axis_x_sup, axis_y_sup,
5924 IX_values_min, IX_values_max, axis_nb_div, chopt, 0.); fCnewRoot++;
5926 Float_t tit_siz_x = fCnaParHistos->AxisTitleSize();
5927 Float_t lab_siz_x = fCnaParHistos->AxisLabelSize();
5929 Float_t tic_siz_x = fCnaParHistos->AxisTickSize(
"Deex");
5930 if(opt_plot ==
"EE"){tic_siz_x = fCnaParHistos->AxisTickSize(
"EEx");}
5932 Float_t tit_off_x = fCnaParHistos->AxisTitleOffset(
"Deex");
5933 if(opt_plot ==
"EE"){tit_off_x = fCnaParHistos->AxisTitleOffset(
"EEx");}
5935 Float_t lab_off_x = fCnaParHistos->AxisLabelOffset(
"Deex");
5936 if(opt_plot ==
"EE"){lab_off_x = fCnaParHistos->AxisLabelOffset(
"EEx");}
5938 sup_axis_x->SetTitle(x_var_name);
5939 sup_axis_x->SetTitleSize(tit_siz_x);
5940 sup_axis_x->SetTitleOffset(tit_off_x);
5941 sup_axis_x->SetLabelSize(lab_siz_x);
5942 sup_axis_x->SetLabelOffset(lab_off_x);
5943 sup_axis_x->SetTickSize(tic_siz_x);
5944 sup_axis_x->Draw(
"SAME");
5947 if( DeeNumber == 1 || DeeNumber == 2 )
5950 TGaxis* sup_axis_x_bis = 0;
5951 sup_axis_x_bis =
new TGaxis(axis_x_inf, axis_y_inf, axis_x_sup, axis_y_sup,
5952 IX_values_min, IX_values_max, axis_nb_div, chopt, 0.); fCnewRoot++;
5953 sup_axis_x_bis->SetTickSize(0.);
5954 lab_siz_x = sup_axis_x->GetLabelSize();
5955 sup_axis_x_bis->SetLabelSize(lab_siz_x);
5956 lab_off_x = sup_axis_x->GetLabelOffset();
5957 sup_axis_x_bis->SetLabelOffset(-lab_off_x);
5958 sup_axis_x_bis->Draw(
"SAME");
5963 if( opt_plot ==
"Dee" || (opt_plot ==
"EE" && DeeNumber == 4) )
5965 Int_t size_IY_dee = fEcal->MaxSCIYInDee();
5966 Int_t size_IY_axis = size_IY_dee;
5968 if( opt_plot ==
"Dee" ){axis_nb_div = size_IY_axis;}
5969 if( opt_plot ==
"EE" ){axis_nb_div = 210;}
5971 Double_t jIY_min = fEcalNumbering->GetJIYMin(DeeNumber, 1) - 0.5;
5972 Double_t jIY_max = fEcalNumbering->GetJIYMax(DeeNumber)*fEcal->MaxCrysIYInSC() + 0.5;
5974 TString jy_var_name =
" ";
5975 TString jy_direction =
"x";
5977 Float_t tit_siz_y = fCnaParHistos->AxisTitleSize();
5978 Float_t lab_siz_y = fCnaParHistos->AxisLabelSize();
5980 Float_t tic_siz_y = fCnaParHistos->AxisTickSize(
"Deey");
5981 if(opt_plot ==
"EE"){tic_siz_y = fCnaParHistos->AxisTickSize(
"EEy");}
5983 Float_t tit_off_y = fCnaParHistos->AxisTitleOffset(
"Deey");
5984 if(opt_plot ==
"EE"){tit_off_y = fCnaParHistos->AxisTitleOffset(
"EEy");}
5986 Float_t lab_off_y = fCnaParHistos->AxisLabelOffset(
"Deey");
5987 if(opt_plot ==
"EE"){lab_off_y = fCnaParHistos->AxisLabelOffset(
"EEy");}
5989 TGaxis* axis_jy_plus = 0;
5990 axis_jy_plus =
new TGaxis((Float_t)0., (Float_t)0.,
5991 (Float_t)0., (Float_t)(size_IY_axis*MatSize),
5992 jIY_min, jIY_max, axis_nb_div,
"SC", 0.); fCnewRoot++;
5994 jy_var_name = GetIXIYAxisTitle(
"jIYDee");
5995 axis_jy_plus->SetTitle(jy_var_name);
5996 axis_jy_plus->SetTitleSize(tit_siz_y);
5997 axis_jy_plus->SetTitleOffset(tit_off_y);
5998 axis_jy_plus->SetLabelSize(lab_siz_y);
5999 axis_jy_plus->SetLabelOffset(lab_off_y);
6000 axis_jy_plus->SetTickSize(tic_siz_y);
6001 axis_jy_plus->Draw(
"SAME");
6007 if( opt_plot ==
"Dee" || (opt_plot ==
"EE" && DeeNumber == 4) )
6009 Int_t size_IY_dee = fEcal->MaxSCIYInDee();
6010 Int_t size_IY_axis = size_IY_dee/2;
6012 if( opt_plot ==
"Dee" ){axis_nb_div = (Int_t)size_IY_axis;}
6013 if( opt_plot ==
"EE" ){axis_nb_div = 5;}
6015 Double_t jIY_min = fEcalNumbering->GetJIYMin(DeeNumber, 1) - 0.5;
6016 Double_t jIY_max = (fEcalNumbering->GetJIYMax(DeeNumber)/2)*fEcal->MaxCrysIYInSC() + 0.5;
6018 TString jy_var_name =
" ";
6019 TString jy_direction =
"x";
6021 Float_t tit_siz_y = fCnaParHistos->AxisTitleSize();
6022 Float_t lab_siz_y = fCnaParHistos->AxisLabelSize();
6024 Float_t tic_siz_y = fCnaParHistos->AxisTickSize(
"Deey");
6025 if(opt_plot ==
"EE"){tic_siz_y = fCnaParHistos->AxisTickSize(
"EEy");}
6027 Float_t tit_off_y = fCnaParHistos->AxisTitleOffset(
"Deey");
6028 if(opt_plot ==
"EE"){tit_off_y = fCnaParHistos->AxisTitleOffset(
"EEy");}
6030 Float_t lab_off_y = fCnaParHistos->AxisLabelOffset(
"Deey");
6031 if(opt_plot ==
"EE"){lab_off_y = fCnaParHistos->AxisLabelOffset(
"EEy");}
6033 TGaxis* axis_jy_plus = 0;
6034 axis_jy_plus =
new TGaxis((Float_t)0., (Float_t)(size_IY_dee*MatSize/2),
6035 (Float_t)0., (Float_t)(2*size_IY_dee*MatSize/2),
6036 jIY_min, jIY_max, axis_nb_div,
"SC", 0.); fCnewRoot++;
6038 jy_var_name = GetIXIYAxisTitle(
"jIYDee");
6039 axis_jy_plus->SetTitle(jy_var_name);
6040 axis_jy_plus->SetTitleSize(tit_siz_y);
6041 axis_jy_plus->SetTitleOffset(tit_off_y);
6042 axis_jy_plus->SetLabelSize(lab_siz_y);
6043 axis_jy_plus->SetLabelOffset(lab_off_y);
6044 axis_jy_plus->SetTickSize(tic_siz_y);
6045 axis_jy_plus->Draw(
"SAME");
6047 TGaxis* axis_jy_minus = 0;
6048 axis_jy_minus =
new TGaxis((Float_t)0., (Float_t)(size_IY_dee*MatSize/2),
6049 (Float_t)0., (Float_t)0.,
6050 -jIY_min, -jIY_max, axis_nb_div,
"-SC", 0.); fCnewRoot++;
6052 jy_var_name = GetIXIYAxisTitle(
"jIYDee");
6053 axis_jy_minus->SetTitle(jy_var_name);
6054 axis_jy_minus->SetTitleSize(tit_siz_y);
6055 axis_jy_minus->SetTitleOffset(tit_off_y);
6056 axis_jy_minus->SetLabelSize(lab_siz_y);
6057 axis_jy_minus->SetLabelOffset(lab_off_y);
6058 axis_jy_minus->SetTickSize(tic_siz_y);
6059 axis_jy_minus->Draw(
"SAME");
6072 const Int_t& n1StexStin,
const Int_t& i0StinEcha)
6073 {XtalSamplesEv(arg_read_histo, arg_AlreadyRead, n1StexStin, i0StinEcha,
"ONLYONE");}
6075 const Int_t& n1StexStin,
const Int_t& i0StinEcha,
6076 const TString& PlotOption)
6078 if( fFapStexNumber > 0 )
6080 if( PlotOption == fAllXtalsInStinPlot )
6082 Int_t StexStin_A = n1StexStin;
6083 if( fFlagSubDet ==
"EE" )
6084 {StexStin_A = fEcalNumbering->Get1DeeSCEcnaFromDeeSCCons(fFapStexNumber, n1StexStin);}
6086 Bool_t aOKData = kFALSE;
6087 TVectorD read_histo(fEcal->MaxCrysInStin()*fEcal->MaxSampADC());
6089 if( arg_AlreadyRead == fTobeRead )
6091 fMyRootFile->PrintNoComment();
6092 fMyRootFile->FileParameters(fFapAnaType, fFapNbOfSamples,
6093 fFapRunNumber, fFapFirstReqEvtNumber,
6094 fFapLastReqEvtNumber, fFapReqNbOfEvts,
6095 fFapStexNumber, fCfgResultsRootFilePath.Data());
6097 if ( fMyRootFile->LookAtRootFile() == kTRUE )
6099 fStatusFileFound = kTRUE;
6100 read_histo = fMyRootFile->ReadSampleMeans(StexStin_A, fEcal->MaxCrysInStin()*fEcal->MaxSampADC());
6101 if( fMyRootFile->DataExist() == kTRUE ){fStatusDataExist = kTRUE;}
6105 fStatusFileFound = kFALSE;
6106 cout <<
"!TEcnaHistos::XtalSamplesEv(...)> Data not available (ROOT file not found)." << endl;
6108 if( fStatusFileFound == kTRUE && fStatusDataExist == kTRUE ){aOKData = kTRUE;}
6110 if( arg_AlreadyRead >= 1 )
6112 for(Int_t
i=0;
i<fEcal->MaxCrysInStin()*fEcal->MaxSampADC();
i++){read_histo[
i] = arg_read_histo[
i];}
6113 fStatusDataExist = kTRUE;
6117 if( aOKData == kTRUE )
6119 TVectorD read_histo_samps(fFapNbOfSamples);
6121 Int_t xAlreadyRead = 1;
6122 for( Int_t i0_stin_echa=0; i0_stin_echa<fEcal->MaxCrysInStin(); i0_stin_echa++)
6124 if( fFapStexName ==
"SM" )
6125 {
cout <<
"*TEcnaHistos::XtalSamplesEv(...)> channel " << setw(2) << i0_stin_echa <<
": ";}
6126 if( fFapStexName ==
"Dee" )
6127 {
cout <<
"*TEcnaHistos::XtalSamplesEv(...)> Xtal " << setw(2) << i0_stin_echa+1 <<
": ";}
6129 for( Int_t i0_samp=0; i0_samp<fFapNbOfSamples; i0_samp++ )
6131 read_histo_samps(i0_samp) = read_histo(i0_stin_echa*fFapNbOfSamples+i0_samp);
6132 cout << setprecision(4) << setw(8) << read_histo_samps(i0_samp) <<
", " ;
6135 ViewHisto(read_histo_samps, xAlreadyRead,
6136 StexStin_A, i0_stin_echa, fZerv,
"D_MSp_SpNb", fAllXtalsInStinPlot);
6143 cout <<
"!TEcnaHistos::XtalSamplesEv(...)> Data not available." << endl;
6147 if( !(PlotOption == fAllXtalsInStinPlot) )
6149 Int_t StexStin_A = n1StexStin;
6150 if( fFlagSubDet ==
"EE" )
6151 {StexStin_A = fEcalNumbering->Get1DeeSCEcnaFromDeeSCCons(fFapStexNumber, n1StexStin);}
6152 ViewHisto(fReadHistoDummy, fTobeRead, StexStin_A, i0StinEcha, fZerv,
"D_MSp_SpNb", PlotOption);
6157 cout <<
"!TEcnaHistos::XtalSamplesEv(...)> " << fFapStexName.Data() <<
" number = " << fFapStexNumber
6158 <<
" out of range (range = [1," << fEcal->MaxStexInStas() <<
"])" << fTTBELL << endl;
6164 const Int_t& n1StexStin,
const Int_t& i0StinEcha)
6165 {EvSamplesXtals(arg_read_histo, arg_AlreadyRead, n1StexStin, i0StinEcha,
"ONLYONE");}
6167 const Int_t& n1StexStin,
const Int_t& i0StinEcha,
6168 const TString& PlotOption)
6170 if( fFapStexNumber > 0 )
6172 if( PlotOption == fAllXtalsInStinPlot )
6174 Int_t StexStin_A = n1StexStin;
6175 if( fFlagSubDet ==
"EE" )
6176 {StexStin_A = fEcalNumbering->Get1DeeSCEcnaFromDeeSCCons(fFapStexNumber, n1StexStin);}
6178 Bool_t aOKData = kFALSE;
6179 TVectorD read_histo(fEcal->MaxCrysInStin()*fEcal->MaxSampADC());
6181 if( arg_AlreadyRead == fTobeRead )
6183 fMyRootFile->PrintNoComment();
6184 fMyRootFile->FileParameters(fFapAnaType, fFapNbOfSamples,
6185 fFapRunNumber, fFapFirstReqEvtNumber,
6186 fFapLastReqEvtNumber, fFapReqNbOfEvts,
6187 fFapStexNumber, fCfgResultsRootFilePath.Data());
6189 if ( fMyRootFile->LookAtRootFile() == kTRUE )
6191 fStatusFileFound = kTRUE;
6192 read_histo = fMyRootFile->ReadSampleMeans(StexStin_A, fEcal->MaxCrysInStin()*fEcal->MaxSampADC());
6193 if( fMyRootFile->DataExist() == kTRUE ){fStatusDataExist = kTRUE;}
6197 fStatusFileFound = kFALSE;
6198 cout <<
"!TEcnaHistos::EvSamplesXtals(...)> Data not available (ROOT file not found)." << endl;
6200 if( fStatusFileFound == kTRUE && fStatusDataExist == kTRUE ){aOKData = kTRUE;}
6202 if( arg_AlreadyRead >= 1 )
6204 for(Int_t
i=0;
i<fEcal->MaxCrysInStin()*fEcal->MaxSampADC();
i++){read_histo[
i] = arg_read_histo[
i];}
6205 fStatusDataExist = kTRUE;
6208 if( aOKData == kTRUE )
6210 TVectorD read_histo_samps(fFapNbOfSamples);
6212 Int_t xAlreadyRead = 1;
6213 for( Int_t i0_stin_echa=0; i0_stin_echa<fEcal->MaxCrysInStin(); i0_stin_echa++)
6215 if( fFapStexName ==
"SM" )
6216 {
cout <<
"*TEcnaHistos::EvSamplesXtals(...)> channel " << setw(2) << i0_stin_echa <<
": ";}
6217 if( fFapStexName ==
"Dee" )
6218 {
cout <<
"*TEcnaHistos::EvSamplesXtals(...)> Xtal " << setw(2) << i0_stin_echa+1 <<
": ";}
6220 for( Int_t i0_samp=0; i0_samp<fFapNbOfSamples; i0_samp++ )
6222 read_histo_samps(i0_samp) = read_histo(i0_stin_echa*fFapNbOfSamples+i0_samp);
6223 cout << setprecision(4) << setw(8) << read_histo_samps(i0_samp) <<
", " ;
6226 ViewHisto(read_histo_samps, xAlreadyRead,
6227 StexStin_A, i0_stin_echa, fZerv,
"D_MSp_SpDs", fAllXtalsInStinPlot);
6234 cout <<
"!TEcnaHistos::EvSamplesXtals(...)> Data not available." << endl;
6238 if( !(PlotOption == fAllXtalsInStinPlot) )
6240 Int_t StexStin_A = n1StexStin;
6241 if( fFlagSubDet ==
"EE" )
6242 {StexStin_A = fEcalNumbering->Get1DeeSCEcnaFromDeeSCCons(fFapStexNumber, n1StexStin);}
6243 ViewHisto(fReadHistoDummy, fTobeRead, StexStin_A, i0StinEcha, fZerv,
"D_MSp_SpDs", PlotOption);
6248 cout <<
"!TEcnaHistos::EvSamplesXtals(...)> " << fFapStexName.Data() <<
" number = " << fFapStexNumber
6249 <<
" out of range (range = [1," << fEcal->MaxStexInStas() <<
"])" << fTTBELL << endl;
6255 const Int_t& n1StexStin,
const Int_t& i0StinEcha)
6256 {XtalSamplesSigma(arg_read_histo, arg_AlreadyRead, n1StexStin, i0StinEcha,
"ONLYONE");}
6258 const Int_t& n1StexStin,
const Int_t& i0StinEcha,
6259 const TString& PlotOption)
6261 if( fFapStexNumber > 0 )
6263 if( PlotOption == fAllXtalsInStinPlot )
6265 Int_t StexStin_A = n1StexStin;
6266 if( fFlagSubDet ==
"EE" )
6267 {StexStin_A = fEcalNumbering->Get1DeeSCEcnaFromDeeSCCons(fFapStexNumber, n1StexStin);}
6269 Bool_t aOKData = kFALSE;
6270 TVectorD read_histo(fEcal->MaxCrysInStin()*fEcal->MaxSampADC());
6272 if( arg_AlreadyRead == fTobeRead )
6274 fMyRootFile->PrintNoComment();
6275 fMyRootFile->FileParameters(fFapAnaType, fFapNbOfSamples,
6276 fFapRunNumber, fFapFirstReqEvtNumber,
6277 fFapLastReqEvtNumber, fFapReqNbOfEvts,
6278 fFapStexNumber, fCfgResultsRootFilePath.Data());
6280 if ( fMyRootFile->LookAtRootFile() == kTRUE )
6282 fStatusFileFound = kTRUE;
6283 read_histo = fMyRootFile->ReadSampleSigmas(StexStin_A, fEcal->MaxCrysInStin()*fEcal->MaxSampADC());
6284 if( fMyRootFile->DataExist() == kTRUE ){fStatusDataExist = kTRUE;}
6288 fStatusFileFound = kFALSE;
6289 cout <<
"!TEcnaHistos::XtalSamplesSigma(...)> Data not available (ROOT file not found)." << endl;
6291 if( fStatusFileFound == kTRUE && fStatusDataExist == kTRUE ){aOKData = kTRUE;}
6293 if( arg_AlreadyRead >= 1 )
6295 for(Int_t
i=0;
i<fEcal->MaxCrysInStin()*fEcal->MaxSampADC();
i++){read_histo[
i] = arg_read_histo[
i];}
6296 fStatusDataExist = kTRUE;
6299 if( aOKData == kTRUE )
6301 TVectorD read_histo_samps(fFapNbOfSamples);
6303 Int_t xAlreadyRead = 1;
6304 for( Int_t i0_stin_echa=0; i0_stin_echa<fEcal->MaxCrysInStin(); i0_stin_echa++)
6306 if( fFapStexName ==
"SM" )
6307 {
cout <<
"*TEcnaHistos::XtalSamplesSigma(...)> channel " << setw(2) << i0_stin_echa <<
": ";}
6308 if( fFapStexName ==
"Dee" )
6309 {
cout <<
"*TEcnaHistos::XtalSamplesSigma(...)> Xtal " << setw(2) << i0_stin_echa+1 <<
": ";}
6311 for( Int_t i0_samp=0; i0_samp<fFapNbOfSamples; i0_samp++ )
6313 read_histo_samps(i0_samp) = read_histo(i0_stin_echa*fFapNbOfSamples+i0_samp);
6314 cout << setprecision(3) << setw(6) << read_histo_samps(i0_samp) <<
", " ;
6317 ViewHisto(read_histo_samps, xAlreadyRead,
6318 StexStin_A, i0StinEcha, fZerv,
"D_SSp_SpNb", fAllXtalsInStinPlot);
6325 cout <<
"!TEcnaHistos::XtalSamplesSigma(...)> Data not available." << endl;
6329 if( !(PlotOption == fAllXtalsInStinPlot) )
6331 Int_t StexStin_A = n1StexStin;
6332 if( fFlagSubDet ==
"EE" )
6333 {StexStin_A = fEcalNumbering->Get1DeeSCEcnaFromDeeSCCons(fFapStexNumber, n1StexStin);}
6334 ViewHisto(fReadHistoDummy, fTobeRead, StexStin_A, i0StinEcha, fZerv,
"D_SSp_SpNb", PlotOption);
6339 cout <<
"!TEcnaHistos::XtalSamplesSigma(...)> " << fFapStexName.Data() <<
" number = " << fFapStexNumber
6340 <<
" out of range (range = [1," << fEcal->MaxStexInStas() <<
"])" << fTTBELL << endl;
6347 const Int_t& n1StexStin,
const Int_t& i0StinEcha)
6348 {SigmaSamplesXtals(arg_read_histo, arg_AlreadyRead, n1StexStin, i0StinEcha,
"ONLYONE");}
6350 const Int_t& n1StexStin,
const Int_t& i0StinEcha,
6351 const TString& PlotOption)
6353 if( fFapStexNumber > 0 )
6355 if( PlotOption == fAllXtalsInStinPlot )
6357 Int_t StexStin_A = n1StexStin;
6358 if( fFlagSubDet ==
"EE" )
6359 {StexStin_A = fEcalNumbering->Get1DeeSCEcnaFromDeeSCCons(fFapStexNumber, n1StexStin);}
6361 Bool_t aOKData = kFALSE;
6362 TVectorD read_histo(fEcal->MaxCrysInStin()*fEcal->MaxSampADC());
6364 if( arg_AlreadyRead == fTobeRead )
6366 fMyRootFile->PrintNoComment();
6367 fMyRootFile->FileParameters(fFapAnaType, fFapNbOfSamples,
6368 fFapRunNumber, fFapFirstReqEvtNumber,
6369 fFapLastReqEvtNumber, fFapReqNbOfEvts,
6370 fFapStexNumber, fCfgResultsRootFilePath.Data());
6371 if ( fMyRootFile->LookAtRootFile() == kTRUE )
6373 fStatusFileFound = kTRUE;
6374 read_histo = fMyRootFile->ReadSampleSigmas(StexStin_A, fEcal->MaxCrysInStin()*fEcal->MaxSampADC());
6375 if( fMyRootFile->DataExist() == kTRUE ){fStatusDataExist = kTRUE;}
6379 fStatusFileFound = kFALSE;
6380 cout <<
"!TEcnaHistos::SigmaSamplesXtals(...)> Data not available (ROOT file not found)." << endl;
6382 if( fStatusFileFound == kTRUE && fStatusDataExist == kTRUE ){aOKData = kTRUE;}
6385 if( arg_AlreadyRead >= 1 )
6387 for(Int_t
i=0;
i<fEcal->MaxCrysInStin()*fEcal->MaxSampADC();
i++){read_histo[
i] = arg_read_histo[
i];}
6388 fStatusDataExist = kTRUE;
6391 if( aOKData == kTRUE )
6393 TVectorD read_histo_samps(fFapNbOfSamples);
6395 Int_t xAlreadyRead = 1;
6396 for( Int_t i0_stin_echa=0; i0_stin_echa<fEcal->MaxCrysInStin(); i0_stin_echa++)
6398 if( fFapStexName ==
"SM" )
6399 {
cout <<
"*TEcnaHistos::SigmaSamplesXtals(...)> channel " << setw(2) << i0_stin_echa <<
": ";}
6400 if( fFapStexName ==
"Dee" )
6401 {
cout <<
"*TEcnaHistos::SigmaSamplesXtals(...)> Xtal " << setw(2) << i0_stin_echa+1 <<
": ";}
6403 for( Int_t i0_samp=0; i0_samp<fFapNbOfSamples; i0_samp++ )
6405 read_histo_samps(i0_samp) = read_histo(i0_stin_echa*fFapNbOfSamples+i0_samp);
6406 cout << setprecision(3) << setw(6) << read_histo_samps(i0_samp) <<
", " ;
6409 ViewHisto(read_histo_samps, xAlreadyRead,
6410 StexStin_A, i0StinEcha, fZerv,
"D_SSp_SpDs", fAllXtalsInStinPlot);
6417 cout <<
"!TEcnaHistos::SigmaSamplesXtals(...)> Data not available." << endl;
6421 if( !(PlotOption == fAllXtalsInStinPlot) )
6423 Int_t StexStin_A = n1StexStin;
6424 if( fFlagSubDet ==
"EE" )
6425 {StexStin_A = fEcalNumbering->Get1DeeSCEcnaFromDeeSCCons(fFapStexNumber, n1StexStin);}
6426 ViewHisto(fReadHistoDummy, fTobeRead, StexStin_A, i0StinEcha, fZerv,
"D_SSp_SpDs", PlotOption);
6431 cout <<
"!TEcnaHistos::SigmaSamplesXtals(...)> " << fFapStexName.Data() <<
" number = " << fFapStexNumber
6432 <<
" out of range (range = [1," << fEcal->MaxStexInStas() <<
"])" << fTTBELL << endl;
6452 const Int_t& StexStin_A,
const Int_t& i0StinEcha,
6453 const Int_t& i0Sample,
const TString& HistoCode,
6454 const TString& opt_plot_arg)
6458 TString opt_plot = opt_plot_arg;
6459 fPlotAllXtalsInStin = 0;
6461 if( opt_plot_arg == fAllXtalsInStinPlot ){opt_plot = fOnlyOnePlot; fPlotAllXtalsInStin = 1;}
6463 TString
HistoType = fCnaParHistos->GetHistoType(HistoCode.Data());
6468 Int_t xCanvasExists = 1;
6469 if( opt_plot != fOnlyOnePlot && GetMemoFlag(HistoCode, opt_plot) ==
"Busy" )
6471 TVirtualPad* main_subpad = 0;
6473 main_subpad = ActivePad(HistoCode.Data(), opt_plot.Data());
6474 if( main_subpad == 0 )
6476 cout <<
"*TEcnaHistos::ViewHisto(...)> WARNING ===> Canvas has been closed in option SAME or SAME n."
6478 <<
" Please, restart with a new canvas."
6481 ReInitCanvas(HistoCode, opt_plot);
6488 Int_t SameXVarMemo = 1;
6489 if( !(HistoType ==
"Proj" || HistoType ==
"SampProj" || HistoType ==
"EvolProj") &&
6490 !(arg_AlreadyRead >= 1) )
6492 TString XVarHisto = fCnaParHistos->GetXVarHisto(HistoCode.Data(), fFlagSubDet.Data(), fFapStexNumber);
6493 TString YVarHisto = fCnaParHistos->GetYVarHisto(HistoCode.Data(), fFlagSubDet.Data(), fFapStexNumber);
6494 if( (opt_plot == fSameOnePlot ) && GetMemoFlag(HistoCode, opt_plot) ==
"Free" )
6496 SetXVarMemo(HistoCode, opt_plot, XVarHisto); SetYVarMemo(HistoCode, opt_plot, YVarHisto); SameXVarMemo = 1;
6498 if( (opt_plot == fSameOnePlot ) && GetMemoFlag(HistoCode, opt_plot) ==
"Busy" )
6500 TString XVariableMemo = GetXVarFromMemo(HistoCode, opt_plot);
6501 TString YVariableMemo = GetYVarFromMemo(HistoCode, opt_plot);
6503 if( XVarHisto != XVariableMemo )
6505 cout <<
"!TEcnaHistos::ViewHisto(...)> *** ERROR *** ===> X coordinate changed in option SAME n." << endl
6506 <<
" Present X = " << XVarHisto << endl
6507 <<
" Present Y = " << YVarHisto << endl
6508 <<
" Previous X = " << XVariableMemo << endl
6509 <<
" Previous Y = " << YVariableMemo
6514 {SetYVarMemo(HistoCode, opt_plot, YVarHisto);}
6520 Int_t SameYVarMemo = 1;
6521 if( (HistoType ==
"Proj" || HistoType ==
"SampProj" || HistoType ==
"EvolProj") &&
6522 !(arg_AlreadyRead >= 1) )
6524 TString XVarHisto = fCnaParHistos->GetXVarHisto(HistoCode.Data(), fFlagSubDet.Data(), fFapStexNumber);
6525 TString YVarHisto = fCnaParHistos->GetYVarHisto(HistoCode.Data(), fFlagSubDet.Data(), fFapStexNumber);
6526 if( (opt_plot == fSameOnePlot ) && GetMemoFlag(HistoCode, opt_plot) ==
"Free" )
6528 SetYVarMemo(HistoCode, opt_plot, YVarHisto); SetYVarMemo(HistoCode, opt_plot, YVarHisto); SameYVarMemo = 1;
6530 if( (opt_plot == fSameOnePlot ) && GetMemoFlag(HistoCode, opt_plot) ==
"Busy" )
6532 TString XVariableMemo = GetXVarFromMemo(HistoCode, opt_plot);
6533 TString YVariableMemo = GetYVarFromMemo(HistoCode, opt_plot);
6535 if( YVarHisto != YVariableMemo )
6537 cout <<
"!TEcnaHistos::ViewHisto(...)> *** ERROR *** ===> Y coordinate changed in option SAME n." << endl
6538 <<
" Present X = " << XVarHisto << endl
6539 <<
" Present Y = " << YVarHisto << endl
6540 <<
" Previous X = " << XVariableMemo << endl
6541 <<
" Previous Y = " << YVariableMemo
6546 {SetYVarMemo(HistoCode, opt_plot, YVarHisto);}
6552 Int_t OkBinsMemoSameOne = 1;
6554 Int_t SizeForPlot = GetHistoSize(HistoCode.Data(),
"plot");
6555 Int_t xNbBins = GetHistoNumberOfBins(HistoCode.Data(), SizeForPlot);
6557 if( (opt_plot == fSameOnePlot || opt_plot == fSeveralPlot) && GetMemoFlag(HistoCode, opt_plot) ==
"Free" )
6559 SetNbBinsMemo(HistoCode, opt_plot, xNbBins); OkBinsMemoSameOne = 1;
6562 if( (opt_plot == fSameOnePlot || opt_plot == fSeveralPlot) && GetMemoFlag(HistoCode, opt_plot) ==
"Busy" )
6564 Int_t NbBinsMemo = GetNbBinsFromMemo(HistoCode, opt_plot);
6565 if( xNbBins != NbBinsMemo )
6567 cout <<
"!TEcnaHistos::ViewHisto(...)> *** ERROR *** ===> Number of bins changed in option SAME or SAME n."
6568 <<
" Present number = " << xNbBins <<
", requested number = " << NbBinsMemo << fTTBELL << endl;
6569 OkBinsMemoSameOne = 0;
6575 if( xCanvasExists == 1 && SameXVarMemo == 1 && SameYVarMemo == 1 && OkBinsMemoSameOne == 1 ){OKHisto = 1;}
6580 Int_t opt_scale_x = fOptScaleLinx;
6581 if (fFlagScaleX ==
"LIN" ){opt_scale_x = fOptScaleLinx;}
6582 if (fFlagScaleX ==
"LOG" ){opt_scale_x = fOptScaleLogx;}
6584 Int_t opt_scale_y = fOptScaleLiny;
6585 if (fFlagScaleY ==
"LIN" ){opt_scale_y = fOptScaleLiny;}
6586 if (fFlagScaleY ==
"LOG" ){opt_scale_y = fOptScaleLogy;}
6588 fCnaParHistos->SetColorPalette(fFlagColPal);
6589 TString fp_name_short =
" ";
6592 Int_t SizeForRead = GetHistoSize(HistoCode.Data(),
"read");
6595 TVectorD histo_for_plot(SizeForPlot);
6596 for(Int_t
i=0;
i<SizeForPlot;
i++){histo_for_plot[
i]=(Double_t)0;}
6598 TVectorD histo_for_plot_memo(SizeForPlot);
6599 for(Int_t
i=0;
i<SizeForPlot;
i++){histo_for_plot_memo[
i]=(Double_t)0;}
6601 Int_t i_data_exist = 0;
6605 if( HistoType ==
"Global" || HistoType ==
"Proj" || HistoType ==
"SampGlobal" ||
6606 HistoType ==
"SampProj" )
6608 if( fFapStexNumber == 0 )
6610 Bool_t ok_view_histo = kFALSE;
6613 Int_t CounterExistingFile = 0;
6614 Int_t CounterDataExist = 0;
6616 Int_t* xFapNbOfEvts =
new Int_t[fEcal->MaxStexInStas()]; fCnew++;
6617 for(Int_t
i=0;
i<fEcal->MaxStexInStas();
i++){xFapNbOfEvts[
i]=0;}
6621 for(Int_t iStasStex=0; iStasStex<fEcal->MaxStexInStas(); iStasStex++)
6623 Bool_t OKFileExists = kFALSE;
6624 Bool_t ok_data_exists = kFALSE;
6626 TVectorD read_histo(fEcal->MaxStinEcnaInStex());
6627 for(Int_t
i=0;
i<fEcal->MaxStinEcnaInStex();
i++){read_histo(
i)=(Double_t)0.;}
6629 if( arg_AlreadyRead == 0 )
6632 fMyRootFile->PrintNoComment();
6633 Int_t n1StasStex = iStasStex+1;
6634 fMyRootFile->FileParameters(fFapAnaType, fFapNbOfSamples,
6635 fFapRunNumber, fFapFirstReqEvtNumber,
6636 fFapLastReqEvtNumber, fFapReqNbOfEvts,
6637 n1StasStex, fCfgResultsRootFilePath.Data());
6639 if( fMyRootFile->LookAtRootFile() == kTRUE ){OKFileExists = kTRUE;}
6640 if( OKFileExists == kTRUE )
6642 xFapNbOfEvts[iStasStex] = fMyRootFile->GetNumberOfEvents(fFapReqNbOfEvts, n1StasStex);
6643 fp_name_short = fMyRootFile->GetRootFileNameShort();
6647 if( iStasStex == 0 )
6649 fStartTime = fMyRootFile->GetStartTime();
6650 fStopTime = fMyRootFile->GetStopTime();
6651 fStartDate = fMyRootFile->GetStartDate();
6652 fStopDate = fMyRootFile->GetStopDate();
6655 time_t xStartTime = fMyRootFile->GetStartTime();
6656 time_t xStopTime = fMyRootFile->GetStopTime();
6657 TString xStartDate = fMyRootFile->GetStartDate();
6658 TString xStopDate = fMyRootFile->GetStopDate();
6660 if( xStartTime < fStartTime ){fStartTime = xStartTime; fStartDate = xStartDate;}
6661 if( xStopTime > fStopTime ){fStopTime = xStopTime; fStopDate = xStopDate;}
6663 fRunType = fMyRootFile->GetRunType();
6665 GetOkViewHisto(fMyRootFile, StexStin_A, i0StinEcha, i0Sample, HistoCode.Data());
6667 if( ok_view_histo == kTRUE )
6670 if( HistoCode ==
"D_NOE_ChNb" || HistoCode ==
"D_NOE_ChDs" ){
6671 read_histo = fMyRootFile->ReadAverageNumberOfEvents(fEcal->MaxStinEcnaInStex());}
6672 if( HistoCode ==
"D_Ped_ChNb" || HistoCode ==
"D_Ped_ChDs" ){
6673 read_histo = fMyRootFile->ReadAveragePedestals(fEcal->MaxStinEcnaInStex());}
6674 if( HistoCode ==
"D_TNo_ChNb" || HistoCode ==
"D_TNo_ChDs" ){
6675 read_histo = fMyRootFile->ReadAverageTotalNoise(fEcal->MaxStinEcnaInStex());}
6676 if( HistoCode ==
"D_MCs_ChNb" || HistoCode ==
"D_MCs_ChDs" ){
6677 read_histo = fMyRootFile->ReadAverageMeanCorrelationsBetweenSamples(fEcal->MaxStinEcnaInStex());}
6678 if( HistoCode ==
"D_LFN_ChNb" || HistoCode ==
"D_LFN_ChDs" ){
6679 read_histo = fMyRootFile->ReadAverageLowFrequencyNoise(fEcal->MaxStinEcnaInStex());}
6680 if( HistoCode ==
"D_HFN_ChNb" || HistoCode ==
"D_HFN_ChDs" ){
6681 read_histo = fMyRootFile->ReadAverageHighFrequencyNoise(fEcal->MaxStinEcnaInStex());}
6682 if( HistoCode ==
"D_SCs_ChNb" || HistoCode ==
"D_SCs_ChDs" ){
6683 read_histo = fMyRootFile->ReadAverageSigmaOfCorrelationsBetweenSamples(fEcal->MaxStinEcnaInStex());}
6684 if( fMyRootFile->DataExist() == kTRUE ){ok_data_exists = kTRUE;}
6689 if( arg_AlreadyRead >= 1 )
6691 ok_data_exists = kTRUE;
6692 for(Int_t i0Stin=0; i0Stin<fEcal->MaxStinEcnaInStex(); i0Stin++ )
6693 {read_histo(i0Stin) = arg_read_histo(fEcal->MaxStinEcnaInStex()*iStasStex+i0Stin);}
6696 if( ok_data_exists == kTRUE )
6698 fStatusFileFound = kTRUE;
6699 CounterExistingFile++;
6703 if( ok_data_exists == kTRUE )
6705 fStatusDataExist = kTRUE;
6708 for(Int_t i0StexStinEcna=0; i0StexStinEcna<fEcal->MaxStinEcnaInStex(); i0StexStinEcna++)
6714 if( fFlagSubDet ==
"EB" )
6716 i_xgeo = iStasStex*fEcal->MaxStinEcnaInStex() + i0StexStinEcna;
6717 if( i_xgeo >= 0 && i_xgeo < SizeForPlot )
6719 histo_for_plot[i_xgeo] = read_histo[i0StexStinEcna];
6723 cout <<
"!TEcnaHistos::ViewHisto(...)> <EB> i_xgeo = " << i_xgeo
6724 <<
". OUT OF RANGE ( range = [0,"<< SizeForPlot <<
"] " << endl;
6729 if( fFlagSubDet ==
"EE" )
6731 Int_t DeeOffset = 0;
6734 Int_t DeeNumber = iStasStex+1;
6735 Int_t n1DeeSCEcna = i0StexStinEcna+1;
6738 if( DeeNumber == 3 ){DeeOffset += fEcal->MaxSCForConsInDee();}
6739 if( DeeNumber == 2 ){DeeOffset += 3*fEcal->MaxSCForConsInDee()-1;}
6740 if( DeeNumber == 1 ){DeeOffset += 4*fEcal->MaxSCForConsInDee()-1;}
6743 Int_t StexDataSector = fEcalNumbering->GetDSFrom1DeeSCEcna(DeeNumber, n1DeeSCEcna);
6747 Int_t StexDSStin = fEcalNumbering->GetDSSCFrom1DeeSCEcna(DeeNumber, n1DeeSCEcna);
6752 if( StexDataSector >= 1 && StexDataSector <= 9 )
6754 if( DeeNumber == 4 )
6756 for(Int_t is=2; is<=5; is++)
6757 {
if( StexDataSector >= is )
6758 {Int_t
ism = is-1; DSOffset += fEcalNumbering->GetMaxSCInDS(ism);}}
6761 if( DeeNumber == 3 )
6763 if( StexDataSector >= 6 )
6764 {DSOffset += fEcalNumbering->GetMaxSCInDS(5)/2;}
6765 for(Int_t is=7; is<=9; is++)
6766 {
if( StexDataSector >= is )
6767 {Int_t
ism = is-1; DSOffset += fEcalNumbering->GetMaxSCInDS(ism);}}
6770 if( DeeNumber == 2 )
6772 if( StexDataSector >= 6 )
6773 {DSOffset -= fEcalNumbering->GetMaxSCInDS(5)/2;}
6774 for(Int_t is=7; is<=9; is++)
6775 {
if( StexDataSector >= is )
6776 {Int_t
ism = is-1; DSOffset -= fEcalNumbering->GetMaxSCInDS(ism);}}
6779 if( DeeNumber == 1 )
6781 for(Int_t is=2; is<=5; is++)
6782 {
if( StexDataSector >= is )
6783 {Int_t
ism = is-1; DSOffset -= fEcalNumbering->GetMaxSCInDS(ism);}}
6786 if( StexDSStin >=1 && StexDSStin <= fEcalNumbering->GetMaxSCInDS(StexDataSector) )
6788 if( DeeNumber == 4 )
6790 if(StexDataSector != 5)
6791 {i_xgeo = DeeOffset + DSOffset + (StexDSStin - 1);}
6792 if( StexDataSector == 5)
6793 {i_xgeo = DeeOffset + DSOffset + (StexDSStin - 1);}
6795 if( DeeNumber == 3 )
6797 if(StexDataSector != 5)
6798 {i_xgeo = DeeOffset + DSOffset + (StexDSStin - 1);}
6799 if( StexDataSector == 5)
6800 {i_xgeo = DeeOffset + DSOffset + (StexDSStin-17) - 1;}
6802 if( DeeNumber == 2 )
6804 if(StexDataSector != 5)
6805 {i_xgeo = DeeOffset + DSOffset
6806 - fEcalNumbering->GetMaxSCInDS(StexDataSector) + StexDSStin;}
6807 if( StexDataSector == 5)
6808 {i_xgeo = DeeOffset + DSOffset
6809 - fEcalNumbering->GetMaxSCInDS(StexDataSector)/2 + StexDSStin;}
6811 if( DeeNumber == 1 )
6813 if(StexDataSector != 5)
6814 {i_xgeo = DeeOffset + DSOffset
6815 - fEcalNumbering->GetMaxSCInDS(StexDataSector) + StexDSStin;}
6816 if( StexDataSector == 5)
6817 {i_xgeo = DeeOffset + DSOffset
6818 - fEcalNumbering->GetMaxSCInDS(StexDataSector)/2 +(StexDSStin-17);}
6824 cout <<
"!TEcnaHistos::ViewHisto(...)> <EE> StexDSStin = " << StexDSStin
6825 <<
". OUT OF RANGE ( range = [1,"
6826 << fEcalNumbering->GetMaxSCInDS(StexDataSector)
6827 <<
"]. DeeNumber = " << DeeNumber
6828 <<
", n1DeeSCEcna = " << n1DeeSCEcna
6829 <<
", StexDataSector = " << StexDataSector
6830 <<
", i_xgeo = " << i_xgeo << endl;
6841 if( i_xgeo >= -1 && i_xgeo < SizeForPlot )
6844 if( n1DeeSCEcna == 29 || n1DeeSCEcna == 32 ||
6846 n1DeeSCEcna == 144 || n1DeeSCEcna == 165 ||
6847 n1DeeSCEcna == 176 || n1DeeSCEcna == 193 ||
6848 n1DeeSCEcna == 60 || n1DeeSCEcna == 119 ||
6849 n1DeeSCEcna == 102 || n1DeeSCEcna == 123 ||
6850 n1DeeSCEcna == 138 || n1DeeSCEcna == 157 )
6853 if( n1DeeSCEcna == 29 && i_xgeo >= 0 )
6854 {histo_for_plot[i_xgeo] += read_histo[i0StexStinEcna]/(Double_t)5.;}
6855 if( (n1DeeSCEcna == 144 || n1DeeSCEcna == 165) && i_xgeo >= 0 )
6856 {histo_for_plot[i_xgeo] +=
6857 read_histo[i0StexStinEcna]*(Double_t)10./(Double_t)25.;}
6860 if( n1DeeSCEcna == 32 && i_xgeo >= 0 )
6861 {histo_for_plot[i_xgeo] += read_histo[i0StexStinEcna]/(Double_t)5.;}
6862 if( (n1DeeSCEcna == 176 || n1DeeSCEcna == 193) && i_xgeo >= 0 )
6863 {histo_for_plot[i_xgeo] +=
6864 read_histo[i0StexStinEcna]*(Double_t)10./(Double_t)25.;}
6867 if( (n1DeeSCEcna == 60 || n1DeeSCEcna == 119) && i_xgeo >= 0 )
6868 {histo_for_plot[i_xgeo] += read_histo[i0StexStinEcna]/(Double_t)2.;}
6871 if( n1DeeSCEcna == 102 )
6872 {histo_for_plot[i_xgeo] += read_histo[9]/(Double_t)21.
6873 + read_histo[i0StexStinEcna]*(Double_t)10./(Double_t)21.;}
6874 if( n1DeeSCEcna == 123 && i_xgeo >= 0 )
6875 {histo_for_plot[i_xgeo] +=
6876 read_histo[i0StexStinEcna]*(Double_t)10./(Double_t)21.;}
6879 if( n1DeeSCEcna == 138 )
6880 {histo_for_plot[i_xgeo] += read_histo[10]/(Double_t)21.
6881 + read_histo[i0StexStinEcna]*(Double_t)10./(Double_t)21.;}
6882 if( n1DeeSCEcna == 157 && i_xgeo >= 0 )
6883 {histo_for_plot[i_xgeo] +=
6884 read_histo[i0StexStinEcna]*(Double_t)10./(Double_t)21.;}
6889 {histo_for_plot[i_xgeo] += read_histo[i0StexStinEcna];}
6902 cout <<
"!TEcnaHistos::ViewHisto(...)> "
6903 <<
" Data not available for " << fFapStexName <<
" " << iStasStex+1
6904 <<
" (Quantity not present in the ROOT file)" << endl;
6909 fStatusFileFound = kFALSE;
6911 cout <<
"!TEcnaHistos::ViewHisto(...)> "
6912 <<
" Data not available for " << fFapStexName <<
" " << iStasStex+1
6913 <<
" (ROOT file not found)" << endl;
6916 if( fFapNbOfEvts <= xFapNbOfEvts[iStasStex] ){fFapNbOfEvts = xFapNbOfEvts[iStasStex];}
6921 delete [] xFapNbOfEvts; xFapNbOfEvts = 0; fCdelete++;
6923 if( CounterExistingFile > 0 && CounterDataExist > 0 ){OKPlot = 1;}
6929 if( fFapStexNumber > 0 )
6931 Bool_t OKFileExists = kFALSE ;
6932 Bool_t ok_view_histo = kFALSE;
6934 if( arg_AlreadyRead == 0 )
6936 fMyRootFile->PrintNoComment();
6937 fMyRootFile->FileParameters(fFapAnaType, fFapNbOfSamples,
6938 fFapRunNumber, fFapFirstReqEvtNumber,
6939 fFapLastReqEvtNumber, fFapReqNbOfEvts,
6940 fFapStexNumber, fCfgResultsRootFilePath.Data());
6942 if ( fMyRootFile->LookAtRootFile() == kTRUE ){OKFileExists = kTRUE;}
6944 if( OKFileExists == kTRUE )
6946 fFapNbOfEvts = fMyRootFile->GetNumberOfEvents(fFapReqNbOfEvts, fFapStexNumber);
6947 fp_name_short = fMyRootFile->GetRootFileNameShort();
6951 fStartDate = fMyRootFile->GetStartDate();
6952 fStopDate = fMyRootFile->GetStopDate();
6953 fRunType = fMyRootFile->GetRunType();
6956 GetOkViewHisto(fMyRootFile, StexStin_A, i0StinEcha, i0Sample, HistoCode.Data());
6960 if( arg_AlreadyRead >= 1 )
6962 OKFileExists = kTRUE; ok_view_histo = kTRUE;
6965 if( OKFileExists == kTRUE )
6967 fStatusFileFound = kTRUE;
6970 if( ok_view_histo == kTRUE )
6973 if( fFlagSubDet ==
"EB" ||
6974 ( fFlagSubDet ==
"EE" && ( HistoType ==
"SampGlobal" || HistoType ==
"SampProj" ) ) )
6976 histo_for_plot = GetHistoValues(arg_read_histo, arg_AlreadyRead, fMyRootFile, HistoCode.Data(),
6977 SizeForPlot, SizeForRead,
6978 StexStin_A, i0StinEcha, i0Sample, i_data_exist);
6979 if( i_data_exist > 0 ){OKPlot = 1;}
6980 if( OKPlot == 1 && opt_plot ==
"ASCII" && ( HistoType ==
"Global" || HistoType ==
"Proj" ) )
6981 {WriteHistoAscii(HistoCode.Data(), SizeForPlot, histo_for_plot);}
6985 if( fFlagSubDet ==
"EE" && !( HistoType ==
"SampGlobal" || HistoType ==
"SampProj" ) )
6987 TVectorD read_histo(SizeForRead);
6988 for(Int_t
i=0;
i<SizeForRead;
i++){read_histo(
i)=(Double_t)0.;}
6990 read_histo = GetHistoValues(arg_read_histo, arg_AlreadyRead, fMyRootFile, HistoCode.Data(),
6991 SizeForRead, SizeForRead,
6992 StexStin_A, i0StinEcha, i0Sample, i_data_exist);
6993 if( i_data_exist > 0 ){OKPlot = 1;}
6994 if( OKPlot == 1 && opt_plot ==
"ASCII" )
6996 WriteHistoAscii(HistoCode.Data(), fEcal->MaxCrysEcnaInDee(), read_histo);
6998 if( OKPlot == 1 && opt_plot !=
"ASCII" )
7001 Int_t DeeNumber = fFapStexNumber;
7002 TString DeeDir = fEcalNumbering->GetDeeDirViewedFromIP(DeeNumber);
7005 for(Int_t i0DeeEcha=0; i0DeeEcha<fEcal->MaxCrysEcnaInDee(); i0DeeEcha++)
7007 Int_t n1SCEcha = fEcalNumbering->Get1SCEchaFrom0DeeEcha(i0DeeEcha);
7008 Int_t n1DeeSCEcna = i0DeeEcha/fEcal->MaxCrysInSC()+1;
7010 Int_t DataSector = fEcalNumbering->GetDSFrom1DeeSCEcna(DeeNumber, n1DeeSCEcna);
7011 Int_t SC_in_DS = fEcalNumbering->GetDSSCFrom1DeeSCEcna(DeeNumber, n1DeeSCEcna, n1SCEcha);
7015 if( n1SCEcha >= 1 && n1SCEcha <= fEcal->MaxCrysInSC() )
7017 if( n1DeeSCEcna >= 1 && n1DeeSCEcna <= fEcal->MaxSCEcnaInDee() )
7019 if( DataSector >= 1 && DataSector <= 9 )
7021 if( SC_in_DS >= 1 && SC_in_DS <= fEcalNumbering->GetMaxSCInDS(DataSector) )
7023 if( read_histo[i0DeeEcha] != 0 )
7026 Int_t DSOffset = GetDSOffset(DeeNumber, DataSector);
7029 Int_t SCOffset = GetSCOffset(DeeNumber, DataSector, SC_in_DS);
7032 Int_t nSCCons = fEcalNumbering->
7033 GetDeeSCConsFrom1DeeSCEcna(DeeNumber, n1DeeSCEcna, n1SCEcha);
7035 Int_t n1FinalSCEcha = n1SCEcha;
7037 if( fEcalNumbering->GetSCType(nSCCons) ==
"NotConnected" ||
7038 fEcalNumbering->GetSCType(nSCCons) ==
"NotComplete" )
7041 if( !( (SC_in_DS == 14 || SC_in_DS == 25 ) && n1SCEcha == 11 ) )
7044 ModifiedSCEchaForNotConnectedSCs(DeeNumber, nSCCons, SC_in_DS,
7045 n1DeeSCEcna, n1SCEcha);
7046 i_xgeo = DSOffset + SCOffset + (n1FinalSCEcha-1);
7049 if( SC_in_DS == 14 && n1SCEcha == 11 )
7051 SCOffset = GetSCOffset(DeeNumber, DataSector, 21);
7053 i_xgeo = DSOffset + SCOffset + (n1FinalSCEcha-1);
7056 if( SC_in_DS == 25 && n1SCEcha == 11 )
7058 SCOffset = GetSCOffset(DeeNumber, DataSector, 3);
7060 i_xgeo = DSOffset + SCOffset + (n1FinalSCEcha-1);
7065 i_xgeo = DSOffset + SCOffset + (n1FinalSCEcha-1);
7068 histo_for_plot_memo[i_xgeo]++;
7069 if( histo_for_plot_memo[i_xgeo] >= 2 )
7071 cout <<
"! histo_memo[" << i_xgeo
7072 <<
"] = " << histo_for_plot_memo[i_xgeo]
7073 <<
", nSCCons = " << nSCCons
7074 <<
", SC_in_DS = " << SC_in_DS
7075 <<
", DSOffset = " << DSOffset
7076 <<
", SCOffset = " << SCOffset
7077 <<
", n1DeeSCEcna = " << n1DeeSCEcna
7078 <<
", n1SCEcha = " << n1SCEcha
7079 <<
", n1FinalSCEcha = " << n1FinalSCEcha << endl;
7082 if( i_xgeo >= 0 && i_xgeo < SizeForPlot )
7084 if( n1FinalSCEcha > 0 )
7085 {histo_for_plot[i_xgeo] += read_histo[i0DeeEcha];}
7089 cout <<
"!TEcnaHistos::ViewHisto(...)> <EE> i_xgeo = " << i_xgeo
7090 <<
". OUT OF RANGE ( range = [0,"<< SizeForPlot <<
"] " << endl;
7096 cout <<
"!TEcnaHistos::ViewHisto(...)> <EE> SC_in_DS = " << SC_in_DS
7097 <<
". OUT OF RANGE ( range = [1,"
7098 << fEcalNumbering->GetMaxSCInDS(DataSector) <<
"] "
7099 <<
", DataSector = " << DataSector
7100 <<
", n1DeeSCEcna = " << n1DeeSCEcna
7101 <<
", n1SCEcha = " << n1SCEcha
7102 <<
", i0DeeEcha = " << i0DeeEcha
7108 if( DataSector != 0 )
7110 cout <<
"!TEcnaHistos::ViewHisto(...)> <EE> DataSector = " << DataSector
7111 <<
". OUT OF RANGE ( range = [1,9] "
7112 <<
", n1DeeSCEcna = " << n1DeeSCEcna
7113 <<
", n1SCEcha = " << n1SCEcha
7114 <<
", i0DeeEcha = " << i0DeeEcha
7121 cout <<
"!TEcnaHistos::ViewHisto(...)> <EE> n1DeeSCEcna = " << n1DeeSCEcna
7122 <<
". OUT OF RANGE ( range = [1,"<< fEcal->MaxSCEcnaInDee() <<
"] "
7123 <<
", n1SCEcha = " << n1SCEcha
7124 <<
", i0DeeEcha = " << i0DeeEcha
7130 cout <<
"!TEcnaHistos::ViewHisto(...)> <EE> n1SCEcha = " << n1SCEcha
7131 <<
". OUT OF RANGE ( range = [1,"<< fEcal->MaxCrysInSC() <<
"] "
7132 <<
", i0DeeEcha = " << i0DeeEcha
7141 cout <<
"!TEcnaHistos::ViewHisto(...)> *ERROR* =====> "
7142 <<
" ok_view_histo != kTRUE " << fTTBELL << endl;
7147 fStatusFileFound = kFALSE;
7149 cout <<
"!TEcnaHistos::ViewHisto(...)> *ERROR* =====> "
7150 <<
" ROOT file not found" << fTTBELL << endl;
7157 if( (fFapStexNumber > 0) && (fFapStexNumber <= fEcal->MaxStexInStas()) )
7159 Bool_t OKFileExists = kFALSE;
7161 if( !(arg_AlreadyRead > 1) )
7163 fMyRootFile->PrintNoComment();
7164 fMyRootFile->FileParameters(fFapAnaType, fFapNbOfSamples,
7165 fFapRunNumber, fFapFirstReqEvtNumber,
7166 fFapLastReqEvtNumber, fFapReqNbOfEvts,
7167 fFapStexNumber, fCfgResultsRootFilePath.Data());
7168 OKFileExists = fMyRootFile->LookAtRootFile();
7169 if( OKFileExists == kTRUE ){fFapNbOfEvts = fMyRootFile->GetNumberOfEvents(fFapReqNbOfEvts, fFapStexNumber);}
7173 OKFileExists = kTRUE;
7176 if( OKFileExists == kTRUE )
7178 fStatusFileFound = kTRUE;
7180 for(Int_t
i=0;
i<SizeForPlot;
i++){histo_for_plot[
i]=(Double_t)0;}
7182 histo_for_plot = GetHistoValues(arg_read_histo, arg_AlreadyRead, fMyRootFile, HistoCode.Data(),
7183 SizeForPlot, SizeForRead,
7184 StexStin_A, i0StinEcha, i0Sample, i_data_exist);
7186 fFapNbOfEvts = fMyRootFile->GetNumberOfEvents(fFapReqNbOfEvts, fFapStexNumber);
7187 fStartDate = fMyRootFile->GetStartDate();
7188 fStopDate = fMyRootFile->GetStopDate();
7189 fRunType = fMyRootFile->GetRunType();
7191 if( i_data_exist > 0 ){OKPlot = 1;}
7195 cout <<
"!TEcnaHistos::ViewHisto(...)> *ERROR* =====> "
7196 <<
" ROOT file not found" << fTTBELL << endl;
7201 cout <<
"!TEcnaHistos::ViewHisto(...)> " << fFapStexName.Data()
7202 <<
" = " << fFapStexNumber <<
". Out of range (range = [1,"
7203 << fEcal->MaxStexInStas() <<
"]) " << fTTBELL << endl;
7209 if( ( HistoType ==
"Global" || HistoType ==
"Proj" ||
7210 HistoType ==
"SampGlobal" || HistoType ==
"SampProj" ||
7211 HistoType ==
"H1Basic" || HistoType ==
"H1BasicProj" ) ||
7212 ( !( HistoType ==
"Global" || HistoType ==
"Proj" ||
7213 HistoType ==
"SampGlobal" || HistoType ==
"SampProj" ||
7214 HistoType ==
"H1Basic" || HistoType ==
"H1BasicProj" ) &&
7215 ( (fFapStexNumber > 0) && (fFapStexNumber <= fEcal->MaxStexInStas()) ) ) )
7217 if( opt_plot !=
"ASCII" )
7223 if( (opt_plot == fOnlyOnePlot && ( arg_AlreadyRead == 0 || arg_AlreadyRead == 1 ) ) ||
7224 (opt_plot == fSeveralPlot && GetMemoFlag(HistoCode, opt_plot) ==
"Free") ||
7225 (opt_plot == fSameOnePlot && GetMemoFlag(HistoCode, opt_plot) ==
"Free") )
7227 SetYminMemoFromValue(HistoCode.Data(), fCnaParHistos->GetYminDefaultValue(HistoCode.Data()));
7228 SetYmaxMemoFromValue(HistoCode.Data(), fCnaParHistos->GetYmaxDefaultValue(HistoCode.Data()));
7243 if( HistoType ==
"Proj" || HistoType ==
"SampProj" || HistoType ==
"H1BasicProj" )
7245 TString HistoCodi = HistoCode;
7247 if( HistoCode ==
"D_NOE_ChDs" ){HistoCodi =
"D_NOE_ChNb";}
7248 if( HistoCode ==
"D_Ped_ChDs" ){HistoCodi =
"D_Ped_ChNb";}
7249 if( HistoCode ==
"D_TNo_ChDs" ){HistoCodi =
"D_TNo_ChNb";}
7250 if( HistoCode ==
"D_MCs_ChDs" ){HistoCodi =
"D_MCs_ChNb";}
7251 if( HistoCode ==
"D_LFN_ChDs" ){HistoCodi =
"D_LFN_ChNb";}
7252 if( HistoCode ==
"D_HFN_ChDs" ){HistoCodi =
"D_HFN_ChNb";}
7253 if( HistoCode ==
"D_SCs_ChDs" ){HistoCodi =
"D_SCs_ChNb";}
7254 if( HistoCode ==
"D_MSp_SpDs" ){HistoCodi =
"D_MSp_SpNb";}
7255 if( HistoCode ==
"D_SSp_SpDs" ){HistoCodi =
"D_SSp_SpNb";}
7256 if( HistoCode ==
"D_Adc_EvDs" ){HistoCodi =
"D_Adc_EvNb";}
7258 TString TitleHisto =
";";
7259 if( opt_plot != fSameOnePlot )
7260 {TitleHisto = fCnaParHistos->GetQuantityName(HistoCodi);}
7262 if( fUserHistoMin >= fUserHistoMax ){fFlagUserHistoMin =
"AUTO"; fFlagUserHistoMax =
"AUTO";}
7271 if( (opt_plot == fOnlyOnePlot && ( arg_AlreadyRead == 0 || arg_AlreadyRead == 1 ) ) ||
7272 (opt_plot == fSeveralPlot && GetMemoFlag(HistoCode, fSeveralPlot) ==
"Free" ) ||
7273 (opt_plot == fSameOnePlot && GetMemoFlag(HistoCode, fSameOnePlot) ==
"Free" ) )
7275 Double_t XinfProj =(Double_t)0;
7276 Double_t XsupProj =(Double_t)0;
7279 if( fFlagUserHistoMin ==
"AUTO" || fFlagUserHistoMax ==
"AUTO" )
7281 Int_t HisSiza = GetHistoSize(HistoCodi.Data(),
"plot");
7282 Int_t ReadHisSiza = HisSiza;
7284 Axis_t xinf_hisa = GetHistoXinf(HistoCodi.Data(), HisSiza, opt_plot);
7285 Axis_t xsup_hisa = GetHistoXsup(HistoCodi.Data(), HisSiza, opt_plot);
7286 Int_t nb_binxa = GetHistoNumberOfBins(HistoCodi.Data(), HisSiza);
7289 new TH1D(
"histoa", TitleHisto.Data(), nb_binxa, xinf_hisa, xsup_hisa); fCnewRoot++;
7292 FillHisto(h_hisa, histo_for_plot, HistoCodi.Data(), ReadHisSiza);
7295 XinfProj = fUserHistoMin;
7296 XsupProj = fUserHistoMax;
7297 if( fFlagUserHistoMin ==
"AUTO" ){XinfProj = h_hisa->GetMinimum();}
7298 if( fFlagUserHistoMax ==
"AUTO" ){XsupProj = h_hisa->GetMaximum();}
7299 XsupProj += (XsupProj-XinfProj)*fCnaParHistos->GetMarginAutoMinMax();
7300 h_hisa->Delete(); h_hisa = 0; fCdeleteRoot++;
7304 if( fFlagUserHistoMin ==
"OFF" )
7306 SetYminMemoFromValue(HistoCode.Data(),
7307 fCnaParHistos->GetYminDefaultValue(HistoCode.Data()));
7308 XinfProj = GetYminValueFromMemo(HistoCode.Data());
7311 if( fFlagUserHistoMax ==
"OFF" )
7313 SetYmaxMemoFromValue(HistoCode.Data(),
7314 fCnaParHistos->GetYmaxDefaultValue(HistoCode.Data()));
7315 XsupProj = GetYmaxValueFromMemo(HistoCode.Data());
7317 if( fFlagUserHistoMin ==
"ON" ){XinfProj = fUserHistoMin;}
7318 if( fFlagUserHistoMax ==
"ON" ){XsupProj = fUserHistoMax;}
7321 if( opt_plot == fOnlyOnePlot || opt_plot == fSeveralPlot )
7323 SetXinfMemoFromValue(HistoCode.Data(), XinfProj);
7324 SetXsupMemoFromValue(HistoCode.Data(), XsupProj);
7328 SetXinfMemoFromValue(XinfProj);
7329 SetXsupMemoFromValue(XsupProj);
7340 Int_t xNbBins = GetHistoNumberOfBins(HistoCode.Data(), SizeForPlot);
7342 Double_t cXinf = (Double_t)0.;
7343 Double_t cXsup = (Double_t)0.;
7346 if( HistoType ==
"Proj" || HistoType ==
"SampProj" || HistoType ==
"H1BasicProj")
7348 if( opt_plot == fOnlyOnePlot || opt_plot == fSeveralPlot )
7350 cXinf = GetXinfValueFromMemo(HistoCode.Data());
7351 cXsup = GetXsupValueFromMemo(HistoCode.Data());
7355 cXinf = GetXinfValueFromMemo();
7356 cXsup = GetXsupValueFromMemo();
7361 cXinf = GetHistoXinf(HistoCode.Data(), SizeForPlot, opt_plot);
7362 cXsup = GetHistoXsup(HistoCode.Data(), SizeForPlot, opt_plot);
7366 Axis_t xinf_his = cXinf;
7367 Axis_t xsup_his = cXsup;
7368 Int_t nb_binx = xNbBins;
7370 TString TitleHisto =
";";
7371 if( opt_plot != fSameOnePlot )
7372 {TitleHisto = fCnaParHistos->GetQuantityName(HistoCode.Data());}
7373 TH1D* h_his0 =
new TH1D(
"histo", TitleHisto.Data(), nb_binx, xinf_his, xsup_his); fCnewRoot++;
7376 FillHisto(h_his0, histo_for_plot, HistoCode.Data(), SizeForPlot);
7379 if( opt_plot == fOnlyOnePlot ||
7380 (opt_plot == fSeveralPlot && GetMemoFlag(HistoCode, opt_plot) ==
"Free") ||
7381 (opt_plot == fSameOnePlot && GetMemoFlag(HistoCode, opt_plot) ==
"Free") )
7383 if( opt_plot == fSameOnePlot ){fHistoCodeFirst = HistoCode;}
7385 if( HistoType !=
"Proj" && HistoType !=
"SampProj" && HistoType !=
"H1BasicProj" )
7387 if( fUserHistoMin >= fUserHistoMax ){fFlagUserHistoMin =
"AUTO"; fFlagUserHistoMax =
"AUTO";}
7389 if( fFlagUserHistoMin ==
"ON" )
7390 {SetYminMemoFromValue(HistoCode.Data(), fUserHistoMin); fFlagUserHistoMin =
"OFF";}
7391 if( fFlagUserHistoMax ==
"ON" )
7392 {SetYmaxMemoFromValue(HistoCode.Data(), fUserHistoMax); fFlagUserHistoMax =
"OFF";}
7394 if( fFlagUserHistoMin ==
"AUTO" )
7397 Double_t
ymin = GetYminFromHistoFrameAndMarginValue(h_his0, (Double_t)0.);
7398 if( ymin != (Double_t)0. )
7400 GetYminFromHistoFrameAndMarginValue(h_his0, fCnaParHistos->GetMarginAutoMinMax());}
7401 SetYminMemoFromValue(HistoCode.Data(),
ymin);
7402 fFlagUserHistoMin =
"OFF";
7404 if( fFlagUserHistoMax ==
"AUTO" )
7407 GetYmaxFromHistoFrameAndMarginValue(h_his0,fCnaParHistos->GetMarginAutoMinMax());
7408 SetYmaxMemoFromValue(HistoCode.Data(),
ymax);
7409 fFlagUserHistoMax =
"OFF";
7412 SetYminMemoFromPreviousMemo(HistoCode);
7413 SetYmaxMemoFromPreviousMemo(HistoCode);
7417 if( ( HistoType ==
"Proj" || HistoType ==
"SampProj" ||
7418 HistoType ==
"H1BasicProj" ) && fFlagScaleY ==
"LIN" )
7420 SetYmaxMemoFromValue
7422 GetYmaxFromHistoFrameAndMarginValue(h_his0, fCnaParHistos->GetMarginAutoMinMax()));
7429 if( opt_plot == fSameOnePlot && GetMemoFlag(HistoCode, opt_plot) ==
"Busy" )
7431 Double_t
ymin = GetYminValueFromMemo(fHistoCodeFirst.Data());
7432 SetYminMemoFromValue(HistoCode.Data(),
ymin);
7434 Double_t
ymax = GetYmaxValueFromMemo(fHistoCodeFirst.Data());
7435 SetYmaxMemoFromValue(HistoCode.Data(),
ymax);
7439 Int_t xFlagAutoYsupMargin = SetHistoFrameYminYmaxFromMemo(h_his0, HistoCode);
7442 HistoPlot(h_his0, SizeForPlot, xinf_his, xsup_his,
7443 HistoCode.Data(), HistoType.Data(),
7444 StexStin_A, i0StinEcha, i0Sample,
7445 opt_scale_x, opt_scale_y, opt_plot, arg_AlreadyRead,
7446 xFlagAutoYsupMargin);
7447 h_his0->Delete(); h_his0 = 0; fCdeleteRoot++;
7451 if( (opt_plot == fSameOnePlot && GetMemoFlag(HistoCode, opt_plot) ==
"Busy") )
7453 SetYminMemoFromValue(HistoCode.Data(), fUserHistoMin);
7454 SetYmaxMemoFromValue(HistoCode.Data(), fUserHistoMax);
7459 cout <<
"!TEcnaHistos::ViewHisto(...)> Histo not available."
7475 if( DeeNumber == 4 )
7477 if( DataSector >= 1 ){}
7478 if( DataSector >= 2 ){DSOffset += fEcalNumbering->GetMaxSCInDS(1)*fEcal->MaxCrysInSC();}
7479 if( DataSector >= 3 ){DSOffset += fEcalNumbering->GetMaxSCInDS(2)*fEcal->MaxCrysInSC();}
7480 if( DataSector >= 4 ){DSOffset += fEcalNumbering->GetMaxSCInDS(3)*fEcal->MaxCrysInSC();}
7481 if( DataSector >= 5 ){DSOffset += fEcalNumbering->GetMaxSCInDS(4)*fEcal->MaxCrysInSC();}
7483 if( DeeNumber == 3 )
7485 if( DataSector >= 5 ){}
7486 if( DataSector >= 6 ){DSOffset += (fEcalNumbering->GetMaxSCInDS(5)/2)*fEcal->MaxCrysInSC();}
7487 if( DataSector >= 7 ){DSOffset += fEcalNumbering->GetMaxSCInDS(6)*fEcal->MaxCrysInSC();}
7488 if( DataSector >= 8 ){DSOffset += fEcalNumbering->GetMaxSCInDS(7)*fEcal->MaxCrysInSC();}
7489 if( DataSector >= 9 ){DSOffset += fEcalNumbering->GetMaxSCInDS(8)*fEcal->MaxCrysInSC();}
7491 if( DeeNumber == 2 )
7493 if( DataSector <= 9 ){}
7494 if( DataSector <= 8 ){DSOffset += fEcalNumbering->GetMaxSCInDS(9)*fEcal->MaxCrysInSC();}
7495 if( DataSector <= 7 ){DSOffset += fEcalNumbering->GetMaxSCInDS(8)*fEcal->MaxCrysInSC();}
7496 if( DataSector <= 6 ){DSOffset += fEcalNumbering->GetMaxSCInDS(7)*fEcal->MaxCrysInSC();}
7497 if( DataSector <= 5 ){DSOffset += fEcalNumbering->GetMaxSCInDS(6)*fEcal->MaxCrysInSC();}
7499 if( DeeNumber == 1 )
7501 if( DataSector <= 5 ){}
7502 if( DataSector <= 4 ){DSOffset += (fEcalNumbering->GetMaxSCInDS(5)/2)*fEcal->MaxCrysInSC();}
7503 if( DataSector <= 3 ){DSOffset += fEcalNumbering->GetMaxSCInDS(4)*fEcal->MaxCrysInSC();}
7504 if( DataSector <= 2 ){DSOffset += fEcalNumbering->GetMaxSCInDS(3)*fEcal->MaxCrysInSC();}
7505 if( DataSector <= 1 ){DSOffset += fEcalNumbering->GetMaxSCInDS(2)*fEcal->MaxCrysInSC();}
7516 if( DeeNumber == 1 || DeeNumber == 3 )
7518 if( DataSector == 5 ){SCOffset += ((SC_in_DS-17)-1)*fEcal->MaxCrysInSC();}
7519 if( DataSector != 5 ){SCOffset += (SC_in_DS-1)*fEcal->MaxCrysInSC();}
7522 if( DeeNumber == 2 || DeeNumber == 4 ){SCOffset += (SC_in_DS-1)*fEcal->MaxCrysInSC();}
7528 const Int_t& nSCCons,
const Int_t& SC_in_DS,
7529 const Int_t& n1DeeSCEcna,
const Int_t& n1SCEcha)
7533 Int_t ModifiedSCEcha = -1;
7534 TString SCQuad = fEcalNumbering->GetSCQuadFrom1DeeSCEcna(n1DeeSCEcna);
7535 TString DeeDir = fEcalNumbering->GetDeeDirViewedFromIP(n1DeeNumber);
7537 TString TypQuad =
"?";
7538 if( SCQuad ==
"top" && DeeDir ==
"right" ){TypQuad =
"TR";}
7539 if( SCQuad ==
"top" && DeeDir ==
"left" ){TypQuad =
"TL";}
7540 if( SCQuad ==
"bottom" && DeeDir ==
"left" ){TypQuad =
"BL";}
7541 if( SCQuad ==
"bottom" && DeeDir ==
"right" ){TypQuad =
"BR";}
7547 if( (SC_in_DS == 30 && n1DeeSCEcna == 60 && TypQuad ==
"TR") ||
7548 (SC_in_DS == 3 && n1DeeSCEcna == 138 && TypQuad ==
"TR") ){
if(n1SCEcha > 15){ModifiedSCEcha = n1SCEcha - 15;}}
7552 if( (SC_in_DS == 30 && n1DeeSCEcna == 60 && TypQuad ==
"TL") ||
7553 (SC_in_DS == 3 && n1DeeSCEcna == 138 && TypQuad ==
"TL") )
7555 if(n1SCEcha == 4){ModifiedSCEcha = 1;}
7556 if(n1SCEcha == 5){ModifiedSCEcha = 2;}
7557 if(n1SCEcha == 9){ModifiedSCEcha = 3;}
7558 if(n1SCEcha == 10){ModifiedSCEcha = 4;}
7559 if(n1SCEcha == 14){ModifiedSCEcha = 5;}
7560 if(n1SCEcha == 15){ModifiedSCEcha = 6;}
7561 if(n1SCEcha == 19){ModifiedSCEcha = 7;}
7562 if(n1SCEcha == 20){ModifiedSCEcha = 8;}
7563 if(n1SCEcha == 24){ModifiedSCEcha = 9;}
7564 if(n1SCEcha == 25){ModifiedSCEcha = 10;}
7568 if( SC_in_DS == 30 && n1DeeSCEcna == 119 && TypQuad ==
"TR" ){
if(n1SCEcha > 5){ModifiedSCEcha = n1SCEcha - 5;}}
7571 if( SC_in_DS == 30 && n1DeeSCEcna == 119 && TypQuad ==
"TL" )
7573 if(n1SCEcha == 4){ModifiedSCEcha = 11;}
7574 if(n1SCEcha == 5){ModifiedSCEcha = 12;}
7575 if(n1SCEcha == 9){ModifiedSCEcha = 13;}
7576 if(n1SCEcha == 10){ModifiedSCEcha = 14;}
7577 if(n1SCEcha == 14){ModifiedSCEcha = 15;}
7578 if(n1SCEcha == 15){ModifiedSCEcha = 16;}
7579 if(n1SCEcha == 19){ModifiedSCEcha = 17;}
7580 if(n1SCEcha == 20){ModifiedSCEcha = 18;}
7581 if(n1SCEcha == 24){ModifiedSCEcha = 19;}
7582 if(n1SCEcha == 25){ModifiedSCEcha = 20;}
7587 if( SC_in_DS == 12 && n1DeeSCEcna == 13 && TypQuad ==
"TR" )
7589 ModifiedSCEcha = n1SCEcha;
7591 if( SC_in_DS == 12 && n1DeeSCEcna == 13 && TypQuad ==
"TL" )
7593 if( n1SCEcha >= 1 && n1SCEcha <= 4 ){ModifiedSCEcha = n1SCEcha;}
7594 if( n1SCEcha >= 6 && n1SCEcha <= 9 ){ModifiedSCEcha = n1SCEcha-1;}
7595 if( n1SCEcha >= 11 && n1SCEcha <= 14 ){ModifiedSCEcha = n1SCEcha-2;}
7596 if( n1SCEcha >= 16 && n1SCEcha <= 19 ){ModifiedSCEcha = n1SCEcha-3;}
7597 if( n1SCEcha >= 21 && n1SCEcha <= 24 ){ModifiedSCEcha = n1SCEcha-4;}
7601 if( SC_in_DS == 25 && n1DeeSCEcna == 176 && TypQuad ==
"TR" )
7603 if(n1SCEcha == 4){ModifiedSCEcha = 1;}
7604 if(n1SCEcha == 5){ModifiedSCEcha = 2;}
7605 if(n1SCEcha == 9){ModifiedSCEcha = 3;}
7606 if(n1SCEcha == 10){ModifiedSCEcha = 4;}
7607 if(n1SCEcha == 14){ModifiedSCEcha = 5;}
7608 if(n1SCEcha == 15){ModifiedSCEcha = 6;}
7609 if(n1SCEcha == 19){ModifiedSCEcha = 7;}
7610 if(n1SCEcha == 20){ModifiedSCEcha = 8;}
7611 if(n1SCEcha == 24){ModifiedSCEcha = 9;}
7612 if(n1SCEcha == 25){ModifiedSCEcha = 10;}
7616 if( SC_in_DS == 25 && n1DeeSCEcna == 176 && TypQuad ==
"TL" )
7618 if(n1SCEcha == 16){ModifiedSCEcha = 1;}
7619 if(n1SCEcha == 21){ModifiedSCEcha = 2;}
7620 if(n1SCEcha == 17){ModifiedSCEcha = 3;}
7621 if(n1SCEcha == 22){ModifiedSCEcha = 4;}
7622 if(n1SCEcha == 18){ModifiedSCEcha = 5;}
7623 if(n1SCEcha == 23){ModifiedSCEcha = 6;}
7624 if(n1SCEcha == 19){ModifiedSCEcha = 7;}
7625 if(n1SCEcha == 24){ModifiedSCEcha = 8;}
7626 if(n1SCEcha == 20){ModifiedSCEcha = 9;}
7627 if(n1SCEcha == 25){ModifiedSCEcha = 10;}
7632 if( (SC_in_DS == 3 && n1DeeSCEcna == 157 && TypQuad ==
"TR") ||
7633 (SC_in_DS == 25 && n1DeeSCEcna == 193 && TypQuad ==
"TR") )
7635 if(n1SCEcha == 4){ModifiedSCEcha = 11;}
7636 if(n1SCEcha == 5){ModifiedSCEcha = 12;}
7637 if(n1SCEcha == 9){ModifiedSCEcha = 13;}
7638 if(n1SCEcha == 10){ModifiedSCEcha = 14;}
7639 if(n1SCEcha == 14){ModifiedSCEcha = 15;}
7640 if(n1SCEcha == 15){ModifiedSCEcha = 16;}
7641 if(n1SCEcha == 19){ModifiedSCEcha = 17;}
7642 if(n1SCEcha == 20){ModifiedSCEcha = 18;}
7643 if(n1SCEcha == 24){ModifiedSCEcha = 19;}
7644 if(n1SCEcha == 25){ModifiedSCEcha = 20;}
7649 if( (SC_in_DS == 3 && n1DeeSCEcna == 157 && TypQuad ==
"TL") ||
7650 (SC_in_DS == 25 && n1DeeSCEcna == 193 && TypQuad ==
"TL") )
7652 if(n1SCEcha == 16){ModifiedSCEcha = 11;}
7653 if(n1SCEcha == 21){ModifiedSCEcha = 12;}
7654 if(n1SCEcha == 17){ModifiedSCEcha = 13;}
7655 if(n1SCEcha == 22){ModifiedSCEcha = 14;}
7656 if(n1SCEcha == 18){ModifiedSCEcha = 15;}
7657 if(n1SCEcha == 23){ModifiedSCEcha = 16;}
7658 if(n1SCEcha == 19){ModifiedSCEcha = 17;}
7659 if(n1SCEcha == 24){ModifiedSCEcha = 18;}
7660 if(n1SCEcha == 20){ModifiedSCEcha = 19;}
7661 if(n1SCEcha == 25){ModifiedSCEcha = 20;}
7665 if( SC_in_DS == 32 && n1DeeSCEcna == 51 && TypQuad ==
"TR" )
7667 if( n1SCEcha >= 1 && n1SCEcha <= 4 ){ModifiedSCEcha = n1SCEcha;}
7668 if( n1SCEcha >= 6 && n1SCEcha <= 9 ){ModifiedSCEcha = n1SCEcha-1;}
7669 if( n1SCEcha >= 11 && n1SCEcha <= 14 ){ModifiedSCEcha = n1SCEcha-2;}
7670 if( n1SCEcha >= 16 && n1SCEcha <= 19 ){ModifiedSCEcha = n1SCEcha-3;}
7671 if( n1SCEcha >= 21 && n1SCEcha <= 24 ){ModifiedSCEcha = n1SCEcha-4;}
7675 if( SC_in_DS == 32 && n1DeeSCEcna == 51 && TypQuad ==
"TL" )
7677 ModifiedSCEcha = n1SCEcha;
7688 if( n1DeeSCEcna == 32 && TypQuad ==
"TR" )
7690 if( nSCCons == 207 )
7692 if(n1SCEcha == 1){ModifiedSCEcha = 21;}
7693 if(n1SCEcha == 2){ModifiedSCEcha = 22;}
7694 if(n1SCEcha == 3){ModifiedSCEcha = 23;}
7695 if(n1SCEcha == 6){ModifiedSCEcha = 24;}
7696 if(n1SCEcha == 7){ModifiedSCEcha = 25;}
7698 if( nSCCons == 178 )
7700 if(n1SCEcha == 11){ModifiedSCEcha = 21;}
7711 if( n1DeeSCEcna == 32 && TypQuad ==
"TL" )
7715 if(n1SCEcha == 1){ModifiedSCEcha = 21;}
7716 if(n1SCEcha == 2){ModifiedSCEcha = 22;}
7717 if(n1SCEcha == 3){ModifiedSCEcha = 23;}
7718 if(n1SCEcha == 6){ModifiedSCEcha = 24;}
7719 if(n1SCEcha == 7){ModifiedSCEcha = 25;}
7723 if(n1SCEcha == 11){ModifiedSCEcha = 21;}
7738 if( n1DeeSCEcna == 29 && TypQuad ==
"BR" )
7740 if( nSCCons == 261 )
7742 if(n1SCEcha == 1){ModifiedSCEcha = 21;}
7743 if(n1SCEcha == 2){ModifiedSCEcha = 22;}
7744 if(n1SCEcha == 3){ModifiedSCEcha = 23;}
7745 if(n1SCEcha == 6){ModifiedSCEcha = 24;}
7746 if(n1SCEcha == 7){ModifiedSCEcha = 25;}
7748 if( nSCCons == 268 )
7750 if(n1SCEcha == 11){ModifiedSCEcha = 21;}
7761 if( n1DeeSCEcna == 29 && TypQuad ==
"BL" )
7763 if( nSCCons == 119 )
7765 if(n1SCEcha == 11){ModifiedSCEcha = 21;}
7767 if( nSCCons == 112 )
7769 if(n1SCEcha == 1){ModifiedSCEcha = 21;}
7770 if(n1SCEcha == 2){ModifiedSCEcha = 22;}
7771 if(n1SCEcha == 3){ModifiedSCEcha = 23;}
7772 if(n1SCEcha == 6){ModifiedSCEcha = 24;}
7773 if(n1SCEcha == 7){ModifiedSCEcha = 25;}
7781 if( (SC_in_DS == 34 && n1DeeSCEcna == 188 && TypQuad ==
"BR") ||
7782 (SC_in_DS == 14 && n1DeeSCEcna == 165 && TypQuad ==
"BR") ){
if(n1SCEcha > 15){ModifiedSCEcha = n1SCEcha - 15;}}
7786 if( (SC_in_DS == 34 && n1DeeSCEcna == 188 && TypQuad ==
"BL") ||
7787 (SC_in_DS == 14 && n1DeeSCEcna == 165 && TypQuad ==
"BL") )
7789 if(n1SCEcha == 4){ModifiedSCEcha = 1;}
7790 if(n1SCEcha == 5){ModifiedSCEcha = 2;}
7791 if(n1SCEcha == 9){ModifiedSCEcha = 3;}
7792 if(n1SCEcha == 10){ModifiedSCEcha = 4;}
7793 if(n1SCEcha == 14){ModifiedSCEcha = 5;}
7794 if(n1SCEcha == 15){ModifiedSCEcha = 6;}
7795 if(n1SCEcha == 19){ModifiedSCEcha = 7;}
7796 if(n1SCEcha == 20){ModifiedSCEcha = 8;}
7797 if(n1SCEcha == 24){ModifiedSCEcha = 9;}
7798 if(n1SCEcha == 25){ModifiedSCEcha = 10;}
7802 if( SC_in_DS == 10 && n1DeeSCEcna == 50 && TypQuad ==
"BR" )
7804 ModifiedSCEcha = n1SCEcha;
7808 if( SC_in_DS == 10 && n1DeeSCEcna == 50 && TypQuad ==
"BL")
7810 if( n1SCEcha >= 1 && n1SCEcha <= 4 ){ModifiedSCEcha = n1SCEcha;}
7811 if( n1SCEcha >= 6 && n1SCEcha <= 9 ){ModifiedSCEcha = n1SCEcha-1;}
7812 if( n1SCEcha >= 11 && n1SCEcha <= 14 ){ModifiedSCEcha = n1SCEcha-2;}
7813 if( n1SCEcha >= 16 && n1SCEcha <= 19 ){ModifiedSCEcha = n1SCEcha-3;}
7814 if( n1SCEcha >= 21 && n1SCEcha <= 24 ){ModifiedSCEcha = n1SCEcha-4;}
7818 if( SC_in_DS == 14 && n1DeeSCEcna == 144 && TypQuad ==
"BR" ){
if(n1SCEcha > 5){ModifiedSCEcha = n1SCEcha - 5;}}
7821 if( SC_in_DS == 14 && n1DeeSCEcna == 144 && TypQuad ==
"BL" )
7823 if(n1SCEcha == 4){ModifiedSCEcha = 11;}
7824 if(n1SCEcha == 5){ModifiedSCEcha = 12;}
7825 if(n1SCEcha == 9){ModifiedSCEcha = 13;}
7826 if(n1SCEcha == 10){ModifiedSCEcha = 14;}
7827 if(n1SCEcha == 14){ModifiedSCEcha = 15;}
7828 if(n1SCEcha == 15){ModifiedSCEcha = 16;}
7829 if(n1SCEcha == 19){ModifiedSCEcha = 17;}
7830 if(n1SCEcha == 20){ModifiedSCEcha = 18;}
7831 if(n1SCEcha == 24){ModifiedSCEcha = 19;}
7832 if(n1SCEcha == 25){ModifiedSCEcha = 20;}
7837 if( (SC_in_DS == 21 && n1DeeSCEcna == 123 && TypQuad ==
"BR") ||
7838 (SC_in_DS == 20 && n1DeeSCEcna == 41 && TypQuad ==
"BR") )
7840 if(n1SCEcha == 4){ModifiedSCEcha = 1;}
7841 if(n1SCEcha == 5){ModifiedSCEcha = 2;}
7842 if(n1SCEcha == 9){ModifiedSCEcha = 3;}
7843 if(n1SCEcha == 10){ModifiedSCEcha = 4;}
7844 if(n1SCEcha == 14){ModifiedSCEcha = 5;}
7845 if(n1SCEcha == 15){ModifiedSCEcha = 6;}
7846 if(n1SCEcha == 19){ModifiedSCEcha = 7;}
7847 if(n1SCEcha == 20){ModifiedSCEcha = 8;}
7848 if(n1SCEcha == 24){ModifiedSCEcha = 9;}
7849 if(n1SCEcha == 25){ModifiedSCEcha = 10;}
7854 if( (SC_in_DS == 21 && n1DeeSCEcna == 123 && TypQuad ==
"BL") ||
7855 (SC_in_DS == 3 && n1DeeSCEcna == 41 && TypQuad ==
"BL") ){
if(n1SCEcha > 15){ModifiedSCEcha = n1SCEcha - 15;}}
7859 if( SC_in_DS == 21 && n1DeeSCEcna == 102 && TypQuad ==
"BR" )
7861 if(n1SCEcha == 4){ModifiedSCEcha = 11;}
7862 if(n1SCEcha == 5){ModifiedSCEcha = 12;}
7863 if(n1SCEcha == 9){ModifiedSCEcha = 13;}
7864 if(n1SCEcha == 10){ModifiedSCEcha = 14;}
7865 if(n1SCEcha == 14){ModifiedSCEcha = 15;}
7866 if(n1SCEcha == 15){ModifiedSCEcha = 16;}
7867 if(n1SCEcha == 19){ModifiedSCEcha = 17;}
7868 if(n1SCEcha == 20){ModifiedSCEcha = 18;}
7869 if(n1SCEcha == 24){ModifiedSCEcha = 19;}
7870 if(n1SCEcha == 25){ModifiedSCEcha = 20;}
7874 if( SC_in_DS == 21 && n1DeeSCEcna == 102 && TypQuad ==
"BL" )
7876 if(n1SCEcha == 16){ModifiedSCEcha = 11;}
7877 if(n1SCEcha == 21){ModifiedSCEcha = 12;}
7878 if(n1SCEcha == 17){ModifiedSCEcha = 13;}
7879 if(n1SCEcha == 22){ModifiedSCEcha = 14;}
7880 if(n1SCEcha == 18){ModifiedSCEcha = 15;}
7881 if(n1SCEcha == 23){ModifiedSCEcha = 16;}
7882 if(n1SCEcha == 19){ModifiedSCEcha = 17;}
7883 if(n1SCEcha == 24){ModifiedSCEcha = 18;}
7884 if(n1SCEcha == 20){ModifiedSCEcha = 19;}
7885 if(n1SCEcha == 25){ModifiedSCEcha = 20;}
7889 if( SC_in_DS == 23 && n1DeeSCEcna == 8 && TypQuad ==
"BR" )
7891 if( n1SCEcha >= 1 && n1SCEcha <= 4 ){ModifiedSCEcha = n1SCEcha;}
7892 if( n1SCEcha >= 6 && n1SCEcha <= 9 ){ModifiedSCEcha = n1SCEcha-1;}
7893 if( n1SCEcha >= 11 && n1SCEcha <= 14 ){ModifiedSCEcha = n1SCEcha-2;}
7894 if( n1SCEcha >= 16 && n1SCEcha <= 19 ){ModifiedSCEcha = n1SCEcha-3;}
7895 if( n1SCEcha >= 21 && n1SCEcha <= 24 ){ModifiedSCEcha = n1SCEcha-4;}
7899 if( SC_in_DS == 6 && n1DeeSCEcna == 8 && TypQuad ==
"BL" )
7901 ModifiedSCEcha = n1SCEcha;
7905 if( ModifiedSCEcha < 1 || ModifiedSCEcha > fEcal->MaxCrysInSC() )
7907 cout <<
"! *** ERROR *** > ModifiedSCEcha = " << ModifiedSCEcha
7908 <<
", SC_in_DS = " << SC_in_DS
7909 <<
", nSCCons = " << nSCCons
7910 <<
", n1DeeSCEcna = " << n1DeeSCEcna
7911 <<
", n1SCEcha = " << n1SCEcha
7912 <<
", ModifiedSCEcha = " << ModifiedSCEcha
7913 <<
", TypQuad = " << TypQuad
7918 return ModifiedSCEcha;
7934 const Int_t& StexStin_A,
const Int_t& i0StinEcha,
7935 const TString& HistoCode,
const TString& opt_plot_arg)
7939 TString opt_plot = opt_plot_arg;
7940 TString
HistoType = fCnaParHistos->GetHistoType(HistoCode);
7942 if( opt_plot_arg ==
"ONLYONE" ){opt_plot = fOnlyOnePlot;}
7943 if( opt_plot_arg ==
"SEVERAL" ){opt_plot = fSeveralPlot;}
7944 if( opt_plot_arg ==
"SAMEONE" ){opt_plot = fSameOnePlot;}
7949 Int_t xCanvasExists = 1;
7950 if( opt_plot != fOnlyOnePlot && GetMemoFlag(HistoCode, opt_plot) ==
"Busy" )
7952 TVirtualPad* main_subpad = 0;
7954 main_subpad = ActivePad(HistoCode.Data(), opt_plot.Data());
7955 if( main_subpad == 0 )
7957 cout <<
"*TEcnaHistos::ViewHistime(...)> WARNING ===> Canvas has been closed in option SAME or SAME n."
7959 <<
" Please, restart with a new canvas."
7962 ReInitCanvas(HistoCode, opt_plot);
7969 Int_t SameXVarMemo = 1;
7970 if( !( HistoType ==
"Proj" || HistoType ==
"SampProj" || HistoType ==
"H1BasicProj" || HistoType ==
"EvolProj" ) )
7972 TString XVarHisto = fCnaParHistos->GetXVarHisto(HistoCode.Data(), fFlagSubDet.Data(), fFapStexNumber);
7973 TString YVarHisto = fCnaParHistos->GetYVarHisto(HistoCode.Data(), fFlagSubDet.Data(), fFapStexNumber);
7975 if( (opt_plot == fSameOnePlot ) && GetMemoFlag(HistoCode, opt_plot) ==
"Free" )
7977 SetXVarMemo(HistoCode, opt_plot, XVarHisto); SetYVarMemo(HistoCode, opt_plot, YVarHisto); SameXVarMemo = 1;
7979 if( (opt_plot == fSameOnePlot ) && GetMemoFlag(HistoCode, opt_plot) ==
"Busy" )
7981 TString XVariableMemo = GetXVarFromMemo(HistoCode, opt_plot);
7982 TString YVariableMemo = GetYVarFromMemo(HistoCode, opt_plot);
7984 if( XVarHisto != XVariableMemo )
7986 cout <<
"!TEcnaHistos::ViewHistime(...)> *** ERROR *** ===> X coordinate changed in option SAME n." << endl
7987 <<
" Present X = " << XVarHisto << endl
7988 <<
" Present Y = " << YVarHisto << endl
7989 <<
" Previous X = " << XVariableMemo << endl
7990 <<
" Previous Y = " << YVariableMemo
7995 {SetYVarMemo(HistoCode, opt_plot, YVarHisto);}
8001 Int_t SameYVarMemo = 1;
8002 if( HistoType ==
"Proj" || HistoType ==
"SampProj" || HistoType ==
"H1BasicProj" || HistoType ==
"EvolProj" )
8004 TString XVarHisto = fCnaParHistos->GetXVarHisto(HistoCode.Data(), fFlagSubDet.Data(), fFapStexNumber);
8005 TString YVarHisto = fCnaParHistos->GetYVarHisto(HistoCode.Data(), fFlagSubDet.Data(), fFapStexNumber);
8007 if( (opt_plot == fSameOnePlot ) && GetMemoFlag(HistoCode, opt_plot) ==
"Free" )
8009 SetYVarMemo(HistoCode, opt_plot, YVarHisto); SetYVarMemo(HistoCode, opt_plot, YVarHisto); SameYVarMemo = 1;
8011 if( (opt_plot == fSameOnePlot ) && GetMemoFlag(HistoCode, opt_plot) ==
"Busy" )
8013 TString XVariableMemo = GetXVarFromMemo(HistoCode, opt_plot);
8014 TString YVariableMemo = GetYVarFromMemo(HistoCode, opt_plot);
8016 if( YVarHisto != YVariableMemo )
8018 cout <<
"!TEcnaHistos::ViewHistime(...)> *** ERROR *** ===> Y coordinate changed in option SAME n." << endl
8019 <<
" Present X = " << XVarHisto << endl
8020 <<
" Present Y = " << YVarHisto << endl
8021 <<
" Previous X = " << XVariableMemo << endl
8022 <<
" Previous Y = " << YVariableMemo
8027 {SetYVarMemo(HistoCode, opt_plot, YVarHisto);}
8031 if( xCanvasExists == 1 && SameXVarMemo == 1 && SameYVarMemo == 1 ){OKHisto = 1;}
8038 fCnaParHistos->SetColorPalette(fFlagColPal);
8041 if((opt_plot == fOnlyOnePlot) ||
8042 (opt_plot == fSeveralPlot && GetMemoFlag(HistoCode, opt_plot) ==
"Free") ||
8043 (opt_plot == fSameOnePlot && GetMemoFlag(HistoCode, opt_plot) ==
"Free"))
8044 {SetYminMemoFromPreviousMemo(HistoCode); SetYmaxMemoFromPreviousMemo(HistoCode);}
8053 Int_t nb_of_runs_in_list = GetHistoryRunListParameters(list_of_run_file_name.Data(), HistoCode);
8055 if( nb_of_runs_in_list > 0 )
8059 Double_t margin_frame_xaxis = (Double_t)25.;
8061 Double_t thstart_evol = (Double_t)0.;
8062 Double_t thstop_evol = (Double_t)0.;
8064 Int_t* exist_indic =
new Int_t[nb_of_runs_in_list]; fCnew++;
8074 fNbOfExistingRuns = (Int_t)0;
8076 if( fFapStexNumber > 0 )
8078 for(Int_t i_run = 0; i_run < nb_of_runs_in_list; i_run++)
8080 exist_indic[i_run] = 0;
8082 SetRunNumberFromList(i_run, nb_of_runs_in_list);
8084 fMyRootFile->PrintNoComment();
8085 fMyRootFile->FileParameters(fFapAnaType.Data(), fFapNbOfSamples,
8086 fT1DRunNumber[i_run], fFapFirstReqEvtNumber,
8087 fFapLastReqEvtNumber, fFapReqNbOfEvts,
8088 fFapStexNumber, fCfgResultsRootFilePath.Data());
8090 if ( fMyRootFile->LookAtRootFile() == kTRUE )
8092 fStatusFileFound = kTRUE;
8095 if( GetListFileNumber(HistoCode) == 1 )
8097 if( fNbOfExistingRuns == 0 )
8100 fStartEvolTime = fMyRootFile->GetStartTime();
8101 fStartEvolDate = fMyRootFile->GetStartDate();
8102 fStartEvolRun = fT1DRunNumber[i_run];
8105 fStopEvolTime = fMyRootFile->GetStartTime();
8106 fStopEvolDate = fMyRootFile->GetStartDate();
8107 fStopEvolRun = fT1DRunNumber[i_run];
8112 fStopEvolTime = fMyRootFile->GetStartTime();
8113 fStopEvolDate = fMyRootFile->GetStartDate();
8114 fStopEvolRun = fT1DRunNumber[i_run];
8119 exist_indic[i_run] = 1;
8120 fNbOfExistingRuns++;
8124 fStatusFileFound = kFALSE;
8126 cout <<
"!TEcnaHistos::ViewHistime(...)> *ERROR* =====> "
8127 <<
" ROOT file not found for run " << fT1DRunNumber[i_run]
8128 << fTTBELL << endl << endl;
8133 if( fNbOfExistingRuns > 0 )
8136 Int_t i_existing_run = (Int_t)0;
8138 for( Int_t i_run = 0; i_run < nb_of_runs_in_list; i_run++)
8140 if( exist_indic[i_run] == 1 )
8142 fT1DRunNumber[i_existing_run] = fT1DRunNumber[i_run];
8149 thstart_evol = (Double_t)fStartEvolTime;
8150 thstop_evol = (Double_t)fStopEvolTime;
8152 Double_t xinf_lim = thstart_evol-(thstop_evol-thstart_evol)/margin_frame_xaxis;
8153 Double_t xsup_lim = thstop_evol +(thstop_evol-thstart_evol)/margin_frame_xaxis;
8155 Axis_t xinf_his = (Axis_t)(xinf_lim);
8156 Axis_t xsup_his = (Axis_t)(xsup_lim);
8159 Int_t i0StexEcha = fEcalNumbering->Get0StexEchaFrom1StexStinAnd0StinEcha(StexStin_A, i0StinEcha);
8162 Double_t* time_coordx =
new Double_t[fNbOfExistingRuns]; fCnew++;
8163 Double_t* hval_coordy =
new Double_t[fNbOfExistingRuns]; fCnew++;
8167 for( Int_t i_run = 0; i_run < fNbOfExistingRuns; i_run++)
8169 time_coordx[i_run] = (Double_t)(-1);
8170 hval_coordy[i_run] = (Double_t)(-1);
8179 for (Int_t i_run = 0; i_run < fNbOfExistingRuns; i_run++)
8182 SetRunNumberFromList(i_run, fNbOfExistingRuns);
8184 fMyRootFile->PrintNoComment();
8185 fMyRootFile->FileParameters(fFapAnaType.Data(), fFapNbOfSamples,
8186 fT1DRunNumber[i_run], fFapFirstReqEvtNumber,
8187 fFapLastReqEvtNumber, fFapReqNbOfEvts,
8188 fFapStexNumber, fCfgResultsRootFilePath.Data());
8190 if ( fMyRootFile->LookAtRootFile() == kTRUE )
8192 fStatusFileFound = kTRUE;
8194 Bool_t ok_view_histo = GetOkViewHisto(fMyRootFile, StexStin_A, i0StinEcha, i0Sample, HistoCode);
8197 if( ok_view_histo == kTRUE )
8200 time_t xStartTime = fMyRootFile->GetStartTime();
8201 Double_t thstart = (Double_t)xStartTime;
8202 time_coordx[i_run] = (Double_t)(thstart - xinf_lim);
8204 TVectorD read_histo(fEcal->MaxCrysEcnaInStex());
8205 for(Int_t
i=0;
i<fEcal->MaxCrysEcnaInStex();
i++){read_histo(
i)=(Double_t)0.;}
8207 if(HistoCode ==
"H_Ped_Date" || HistoCode ==
"H_Ped_RuDs")
8208 {read_histo = fMyRootFile->ReadPedestals(fEcal->MaxCrysEcnaInStex());}
8209 if(HistoCode ==
"H_TNo_Date" || HistoCode ==
"H_TNo_RuDs")
8210 {read_histo = fMyRootFile->ReadTotalNoise(fEcal->MaxCrysEcnaInStex());}
8211 if(HistoCode ==
"H_MCs_Date" || HistoCode ==
"H_MCs_RuDs")
8212 {read_histo = fMyRootFile->ReadMeanCorrelationsBetweenSamples(fEcal->MaxCrysEcnaInStex());}
8214 if(HistoCode ==
"H_LFN_Date" || HistoCode ==
"H_LFN_RuDs")
8215 {read_histo = fMyRootFile->ReadLowFrequencyNoise(fEcal->MaxCrysEcnaInStex());}
8216 if(HistoCode ==
"H_HFN_Date" || HistoCode ==
"H_HFN_RuDs")
8217 {read_histo = fMyRootFile->ReadHighFrequencyNoise(fEcal->MaxCrysEcnaInStex());}
8218 if(HistoCode ==
"H_SCs_Date" || HistoCode ==
"H_SCs_RuDs")
8219 {read_histo = fMyRootFile->ReadSigmaOfCorrelationsBetweenSamples(fEcal->MaxCrysEcnaInStex());}
8220 hval_coordy[i_run] = (Double_t)read_histo(i0StexEcha);
8224 cout <<
"!TEcnaHistos::ViewHistime(...)> Histo not available. "
8230 fStatusFileFound = kFALSE;
8236 Int_t opt_scale_x = fOptScaleLinx;
8237 if (fFlagScaleX ==
"LIN" ){opt_scale_x = fOptScaleLinx;}
8238 if (fFlagScaleX ==
"LOG" ){opt_scale_x = fOptScaleLogx;}
8240 Int_t opt_scale_y = fOptScaleLiny;
8241 if (fFlagScaleY ==
"LIN" ){opt_scale_y = fOptScaleLiny;}
8242 if (fFlagScaleY ==
"LOG" ){opt_scale_y = fOptScaleLogy;}
8245 TGraph* g_graph0 =
new TGraph(fNbOfExistingRuns, time_coordx, hval_coordy); fCnewRoot++;
8246 if( opt_plot == fOnlyOnePlot || opt_plot == fSeveralPlot)
8247 {g_graph0->SetTitle(fCnaParHistos->GetQuantityName(HistoCode));}
8248 if( opt_plot == fSameOnePlot )
8249 {g_graph0->SetTitle(
";");}
8253 if((opt_plot == fOnlyOnePlot) ||
8254 (opt_plot == fSeveralPlot && GetMemoFlag(HistoCode, opt_plot) ==
"Free") ||
8255 (opt_plot == fSameOnePlot && GetMemoFlag(HistoCode, opt_plot) ==
"Free") )
8257 SetYminMemoFromValue(HistoCode.Data(), fCnaParHistos->GetYminDefaultValue(HistoCode.Data()));
8258 SetYmaxMemoFromValue(HistoCode.Data(), fCnaParHistos->GetYmaxDefaultValue(HistoCode.Data()));
8266 g_graph0->Set(fNbOfExistingRuns);
8267 Double_t graph_ymin =
8268 GetYminFromGraphFrameAndMarginValue(g_graph0, fCnaParHistos->GetMarginAutoMinMax());
8269 Double_t graph_ymax =
8270 GetYmaxFromGraphFrameAndMarginValue(g_graph0, fCnaParHistos->GetMarginAutoMinMax());
8273 if( HistoType ==
"Evol" )
8276 if((opt_plot == fOnlyOnePlot) ||
8277 (opt_plot == fSeveralPlot && GetMemoFlag(HistoCode, opt_plot) ==
"Free") ||
8278 (opt_plot == fSameOnePlot && GetMemoFlag(HistoCode, opt_plot) ==
"Free") )
8280 if( opt_plot == fSameOnePlot ){fHistoCodeFirst = HistoCode;}
8282 if( fUserHistoMin >= fUserHistoMax ){fFlagUserHistoMin =
"AUTO"; fFlagUserHistoMax =
"AUTO";}
8284 if( fFlagUserHistoMin ==
"ON" )
8285 {SetYminMemoFromValue(HistoCode.Data(), fUserHistoMin); fFlagUserHistoMin =
"OFF";}
8286 if( fFlagUserHistoMax ==
"ON" )
8287 {SetYmaxMemoFromValue(HistoCode.Data(), fUserHistoMax); fFlagUserHistoMax =
"OFF";}
8289 if( fFlagUserHistoMin ==
"AUTO" )
8290 {SetYminMemoFromValue(HistoCode.Data(), graph_ymin); fFlagUserHistoMin =
"OFF";}
8291 if( fFlagUserHistoMax ==
"AUTO" )
8292 {SetYmaxMemoFromValue(HistoCode.Data(), graph_ymax); fFlagUserHistoMax =
"OFF";}
8295 SetYminMemoFromPreviousMemo(HistoCode);
8296 SetYmaxMemoFromPreviousMemo(HistoCode);
8299 if( opt_plot == fSameOnePlot && GetMemoFlag(HistoCode, opt_plot) ==
"Busy" )
8301 Double_t
ymin = GetYminValueFromMemo(fHistoCodeFirst.Data());
8302 SetYminMemoFromValue(HistoCode.Data(),
ymin);
8304 Double_t
ymax = GetYmaxValueFromMemo(fHistoCodeFirst.Data());
8305 SetYmaxMemoFromValue(HistoCode.Data(),
ymax);
8309 Int_t xFlagAutoYsupMargin = SetGraphFrameYminYmaxFromMemo(g_graph0, HistoCode);
8311 HistimePlot(g_graph0, xinf_his, xsup_his,
8312 HistoCode.Data(), HistoType.Data(),
8313 StexStin_A, i0StinEcha, i0Sample,
8314 opt_scale_x, opt_scale_y, opt_plot, xFlagAutoYsupMargin);
8318 if( opt_plot == fSameOnePlot && GetMemoFlag(HistoCode, opt_plot) ==
"Busy" )
8320 SetYminMemoFromValue(HistoCode.Data(), fUserHistoMin);
8321 SetYmaxMemoFromValue(HistoCode.Data(), fUserHistoMax);
8340 if( HistoType ==
"EvolProj" )
8342 Int_t HisSizeEvolProj = fNbBinsProj;
8343 TVectorD histo_for_plot(HisSizeEvolProj);
8344 for(Int_t
i=0;
i<HisSizeEvolProj;
i++){histo_for_plot[
i]=(Double_t)0.;}
8349 TString HistoCodi = HistoCode;
8351 if( HistoCode ==
"H_Ped_RuDs" ){HistoCodi =
"H_Ped_Date";}
8352 if( HistoCode ==
"H_TNo_RuDs" ){HistoCodi =
"H_TNo_Date";}
8353 if( HistoCode ==
"H_LFN_RuDs" ){HistoCodi =
"H_LFN_Date";}
8354 if( HistoCode ==
"H_HFN_RuDs" ){HistoCodi =
"H_HFN_Date";}
8355 if( HistoCode ==
"H_MCs_RuDs" ){HistoCodi =
"H_MCs_Date";}
8356 if( HistoCode ==
"H_SCs_RuDs" ){HistoCodi =
"H_SCs_Date";}
8358 if( fUserHistoMin >= fUserHistoMax ){fFlagUserHistoMin =
"AUTO"; fFlagUserHistoMax =
"AUTO";}
8367 if( (opt_plot == fOnlyOnePlot) ||
8368 ( (opt_plot == fSeveralPlot && GetMemoFlag(HistoCode, fSeveralPlot) ==
"Free" ) ||
8369 (opt_plot == fSameOnePlot && GetMemoFlag(HistoCode, fSameOnePlot) ==
"Free" ) ) )
8371 Double_t XinfProj =(Double_t)0;
8372 Double_t XsupProj =(Double_t)0;
8375 if( fFlagUserHistoMin ==
"AUTO" || fFlagUserHistoMax ==
"AUTO" )
8379 XinfProj = fUserHistoMin;
8380 XsupProj = fUserHistoMax;
8381 if( fFlagUserHistoMin ==
"AUTO" ){XinfProj = GetYminValueFromMemo(HistoCodi.Data());}
8382 if( fFlagUserHistoMax ==
"AUTO" ){XsupProj = GetYmaxValueFromMemo(HistoCodi.Data());}
8386 if( fFlagUserHistoMin ==
"OFF" )
8388 SetYminMemoFromValue(HistoCode.Data(),
8389 fCnaParHistos->GetYminDefaultValue(HistoCode.Data()));
8390 XinfProj = GetYminValueFromMemo(HistoCode.Data());
8393 if( fFlagUserHistoMax ==
"OFF" )
8395 SetYmaxMemoFromValue(HistoCode.Data(),
8396 fCnaParHistos->GetYmaxDefaultValue(HistoCode.Data()));
8397 XsupProj = GetYmaxValueFromMemo(HistoCode.Data());
8399 if( fFlagUserHistoMin ==
"ON" ){XinfProj = fUserHistoMin;}
8400 if( fFlagUserHistoMax ==
"ON" ){XsupProj = fUserHistoMax;}
8403 if( opt_plot == fOnlyOnePlot || opt_plot == fSeveralPlot )
8405 SetXinfMemoFromValue(HistoCode.Data(), XinfProj);
8406 SetXsupMemoFromValue(HistoCode.Data(), XsupProj);
8410 SetXinfMemoFromValue(XinfProj);
8411 SetXsupMemoFromValue(XsupProj);
8417 Double_t cXinf = (Double_t)0.;
8418 Double_t cXsup = (Double_t)0.;
8421 if( opt_plot == fOnlyOnePlot || opt_plot == fSeveralPlot )
8423 cXinf = GetXinfValueFromMemo(HistoCode.Data());
8424 cXsup = GetXsupValueFromMemo(HistoCode.Data());
8428 cXinf = GetXinfValueFromMemo();
8429 cXsup = GetXsupValueFromMemo();
8432 if( cXinf >= cXsup ){cXinf -= 1.; cXsup +=1.;}
8435 Axis_t xinf_his = cXinf;
8436 Axis_t xsup_his = cXsup;
8438 TString TitleHisto =
";";
8439 if( opt_plot != fSameOnePlot )
8440 {TitleHisto = fCnaParHistos->GetQuantityName(HistoCode.Data());}
8443 for(Int_t i_run=0; i_run<fNbOfExistingRuns; i_run++)
8445 Double_t XFromYGraph = hval_coordy[i_run];
8446 Double_t binXProjY = (Double_t)HisSizeEvolProj*(XFromYGraph - cXinf)/(cXsup - cXinf);
8447 Int_t ibinXProjY = (Int_t)binXProjY;
8448 if( ibinXProjY >= 0 && ibinXProjY<HisSizeEvolProj ){histo_for_plot[ibinXProjY]++;}
8451 TH1D* h_his_evol_proj =
new TH1D(
"histevolproj", TitleHisto.Data(),
8452 HisSizeEvolProj, xinf_his, xsup_his); fCnewRoot++;
8454 h_his_evol_proj->Reset();
8457 for(Int_t
i=0;
i<HisSizeEvolProj;
i++)
8459 Double_t yi = (Double_t)
i/(Double_t)HisSizeEvolProj*(cXsup-cXinf) + cXinf;
8460 Double_t his_val = (Double_t)histo_for_plot[
i];
8461 h_his_evol_proj->Fill(yi, his_val);
8465 if( fUserHistoMin >= fUserHistoMax ){fFlagUserHistoMin =
"AUTO"; fFlagUserHistoMax =
"AUTO";}
8467 if( fFlagUserHistoMin ==
"ON" )
8468 {SetYminMemoFromValue(HistoCode.Data(), fUserHistoMin); fFlagUserHistoMin =
"OFF";}
8469 if( fFlagUserHistoMax ==
"ON" )
8470 {SetYmaxMemoFromValue(HistoCode.Data(), fUserHistoMax); fFlagUserHistoMax =
"OFF";}
8472 if( fFlagUserHistoMin ==
"AUTO" )
8473 {SetYminMemoFromValue(HistoCode.Data(), graph_ymin); fFlagUserHistoMin =
"OFF";}
8474 if( fFlagUserHistoMax ==
"AUTO" )
8475 {SetYmaxMemoFromValue(HistoCode.Data(), graph_ymax); fFlagUserHistoMax =
"OFF";}
8478 SetYminMemoFromPreviousMemo(HistoCode);
8479 SetYmaxMemoFromPreviousMemo(HistoCode);
8483 if( fFlagScaleY ==
"LIN" )
8485 SetYmaxMemoFromValue
8487 GetYmaxFromHistoFrameAndMarginValue(h_his_evol_proj, fCnaParHistos->GetMarginAutoMinMax()));
8491 if( opt_plot == fSameOnePlot && GetMemoFlag(HistoCode, opt_plot) ==
"Busy" )
8493 Double_t
ymin = GetYminValueFromMemo(fHistoCodeFirst.Data());
8494 SetYminMemoFromValue(HistoCode.Data(),
ymin);
8496 Double_t
ymax = GetYmaxValueFromMemo(fHistoCodeFirst.Data());
8497 SetYmaxMemoFromValue(HistoCode.Data(),
ymax);
8502 Int_t xFlagAutoYsupMargin = SetGraphFrameYminYmaxFromMemo(g_graph0, HistoCode);
8503 Int_t arg_AlreadyRead = 0;
8505 HistoPlot(h_his_evol_proj, HisSizeEvolProj,
8507 HistoCode.Data(), HistoType.Data(),
8508 StexStin_A, i0StinEcha, i0Sample,
8509 opt_scale_x, opt_scale_y, opt_plot, arg_AlreadyRead,
8510 xFlagAutoYsupMargin);
8512 h_his_evol_proj->Delete(); h_his_evol_proj = 0; fCdeleteRoot++;
8518 delete [] time_coordx; time_coordx = 0; fCdelete++;
8519 delete [] hval_coordy; hval_coordy = 0; fCdelete++;
8523 cout <<
"!TEcnaHistos::ViewHistime(...)> The list of runs in file: " << list_of_run_file_name
8524 <<
" has " << nb_of_runs_in_list <<
" run numbers" << endl
8525 <<
" but none of them correspond to an existing ROOT file."
8531 cout <<
"!TEcnaHistos::ViewHistime(...)> *ERROR* =====> "
8532 << fFapStexName <<
" number = " << fFapStexNumber <<
". "
8533 << fFapStexName <<
" number must be in range [1," << fEcal->MaxStexInStas() <<
"] ";
8534 if( fFlagSubDet ==
"EB" ){
cout <<
" (or [-18,+18])";}
8535 cout << fTTBELL << endl;
8537 delete [] exist_indic; exist_indic = 0; fCdelete++;
8541 if( nb_of_runs_in_list == 0 )
8543 cout <<
"!TEcnaHistos::ViewHistime(...)> The list of runs in file: " << list_of_run_file_name
8544 <<
" is empty !" << fTTBELL << endl;
8546 if( nb_of_runs_in_list < 0 )
8548 cout <<
"!TEcnaHistos::ViewHistime(...)> " << list_of_run_file_name
8549 <<
": file not found in directory: " << fCfgHistoryRunListFilePath.Data() << fTTBELL << endl;
8587 Int_t nb_of_runs_in_list = 0;
8590 if( list_of_run_file_name.Data() ==
'\0' )
8592 cout <<
"!TEcnaHistos::GetHistoryRunListParameters(...)> *** ERROR *** =====> "
8593 <<
" EMPTY STRING for list of run file name." << fTTBELL << endl;
8598 if ( HistoCode ==
"H_Ped_Date" ){fNbOfListFileH_Ped_Date++;}
8599 if ( HistoCode ==
"H_TNo_Date" ){fNbOfListFileH_TNo_Date++;}
8600 if ( HistoCode ==
"H_MCs_Date" ){fNbOfListFileH_MCs_Date++;}
8601 if ( HistoCode ==
"H_LFN_Date" ){fNbOfListFileH_LFN_Date++;}
8602 if ( HistoCode ==
"H_HFN_Date" ){fNbOfListFileH_HFN_Date++;}
8603 if ( HistoCode ==
"H_SCs_Date" ){fNbOfListFileH_SCs_Date++;}
8605 if ( HistoCode ==
"H_Ped_RuDs" ){fNbOfListFileH_Ped_RuDs++;}
8606 if ( HistoCode ==
"H_TNo_RuDs" ){fNbOfListFileH_TNo_RuDs++;}
8607 if ( HistoCode ==
"H_MCs_RuDs" ){fNbOfListFileH_MCs_RuDs++;}
8608 if ( HistoCode ==
"H_LFN_RuDs" ){fNbOfListFileH_LFN_RuDs++;}
8609 if ( HistoCode ==
"H_HFN_RuDs" ){fNbOfListFileH_HFN_RuDs++;}
8610 if ( HistoCode ==
"H_SCs_RuDs" ){fNbOfListFileH_SCs_RuDs++;}
8612 fFapFileRuns = list_of_run_file_name.Data();
8615 TString xFileNameRunList = list_of_run_file_name.Data();
8616 const Text_t *t_file_name = (
const Text_t *)xFileNameRunList.Data();
8619 if(fCfgHistoryRunListFilePath.BeginsWith(
"$HOME"))
8621 fCfgHistoryRunListFilePath.Remove(0,5);
8622 const Text_t *t_file_nohome = (
const Text_t *)fCfgHistoryRunListFilePath.Data();
8624 TString home_path = gSystem->Getenv(
"HOME");
8625 fCfgHistoryRunListFilePath = home_path;
8626 fCfgHistoryRunListFilePath.Append(t_file_nohome);
8629 xFileNameRunList = fCfgHistoryRunListFilePath.Data();
8631 xFileNameRunList.Append(
'/');
8632 xFileNameRunList.Append(t_file_name);
8634 fFcin_f.open(xFileNameRunList.Data());
8637 if( fFcin_f.fail() == kFALSE )
8641 string xHeadComment;
8642 fFcin_f >> xHeadComment;
8644 Int_t list_size_read = 0;
8646 while( !fFcin_f.eof() ){fFcin_f >> cRunNumber; list_size_read++;}
8647 fFapNbOfRuns = list_size_read - 1;
8653 fFcin_f.seekg(0, ios::beg);
8656 string yHeadComment;
8657 fFcin_f >> yHeadComment;
8666 if( (HistoCode ==
"H_Ped_Date" && fNbOfListFileH_Ped_Date == 1) ||
8667 (HistoCode ==
"H_TNo_Date" && fNbOfListFileH_TNo_Date == 1) ||
8668 (HistoCode ==
"H_MCs_Date" && fNbOfListFileH_MCs_Date == 1) ||
8669 (HistoCode ==
"H_LFN_Date" && fNbOfListFileH_LFN_Date == 1) ||
8670 (HistoCode ==
"H_HFN_Date" && fNbOfListFileH_HFN_Date == 1) ||
8671 (HistoCode ==
"H_SCs_Date" && fNbOfListFileH_SCs_Date == 1) ||
8672 (HistoCode ==
"H_Ped_RuDs" && fNbOfListFileH_Ped_RuDs == 1) ||
8673 (HistoCode ==
"H_TNo_RuDs" && fNbOfListFileH_TNo_RuDs == 1) ||
8674 (HistoCode ==
"H_MCs_RuDs" && fNbOfListFileH_MCs_RuDs == 1) ||
8675 (HistoCode ==
"H_LFN_RuDs" && fNbOfListFileH_LFN_RuDs == 1) ||
8676 (HistoCode ==
"H_HFN_RuDs" && fNbOfListFileH_HFN_RuDs == 1) ||
8677 (HistoCode ==
"H_SCs_RuDs" && fNbOfListFileH_SCs_RuDs == 1)){fFapMaxNbOfRuns = -1;}
8680 if( fFapMaxNbOfRuns == -1 ){fFapMaxNbOfRuns = fFapNbOfRuns;}
8682 else{
if( fFapNbOfRuns > fFapMaxNbOfRuns ){fFapNbOfRuns = fFapMaxNbOfRuns;}}
8686 if( fFapMaxNbOfRuns > fCnaParHistos->MaxNbOfRunsInLists() )
8688 cout <<
"TEcnaHistos::GetHistoryRunListParameters(...)> Max number of runs in HistoryRunList = "
8690 <<
" too large, forced to parameter TEcnaParHistos->fMaxNbOfRunsInLists value (= "
8691 << fCnaParHistos->MaxNbOfRunsInLists()
8692 <<
"). Please, set this parameter to a larger value than " << fFapMaxNbOfRuns
8694 fFapMaxNbOfRuns = fCnaParHistos->MaxNbOfRunsInLists();
8697 if( fT1DRunNumber == 0 )
8699 if( fFapMaxNbOfRuns > 0 )
8701 fT1DRunNumber =
new Int_t[fFapMaxNbOfRuns]; fCnew++;
8705 cout <<
"!TEcnaHistos::GetHistoryRunListParameters(...)> *** ERROR *** =====> fFapMaxNbOfRuns = "
8706 << fFapMaxNbOfRuns <<
". Forced to 1." << fTTBELL << endl;
8707 fFapMaxNbOfRuns = 1;
8708 fT1DRunNumber =
new Int_t[fFapMaxNbOfRuns]; fCnew++;
8714 for ( Int_t i_run = 0; i_run < fFapMaxNbOfRuns; i_run++ ){fT1DRunNumber[i_run] = -1;}
8716 for (Int_t i_list = 0; i_list < fFapNbOfRuns; i_list++)
8718 fFcin_f >> cRunNumber;
8719 fT1DRunNumber[i_list] = cRunNumber;
8722 nb_of_runs_in_list = fFapNbOfRuns;
8728 cout <<
"!TEcnaHistos::GetHistoryRunListParameters(...)> *** ERROR *** =====> "
8729 << xFileNameRunList.Data() <<
" : file not found." << fTTBELL << endl;
8730 nb_of_runs_in_list = -1;
8733 return nb_of_runs_in_list;
8745 if ( HistoCode ==
"H_Ped_Date"){number = fNbOfListFileH_Ped_Date;}
8746 if ( HistoCode ==
"H_TNo_Date"){number = fNbOfListFileH_TNo_Date;}
8747 if ( HistoCode ==
"H_MCs_Date"){number = fNbOfListFileH_MCs_Date;}
8748 if ( HistoCode ==
"H_LFN_Date"){number = fNbOfListFileH_LFN_Date;}
8749 if ( HistoCode ==
"H_HFN_Date"){number = fNbOfListFileH_HFN_Date;}
8750 if ( HistoCode ==
"H_SCs_Date"){number = fNbOfListFileH_SCs_Date;}
8751 if ( HistoCode ==
"H_Ped_RuDs"){number = fNbOfListFileH_Ped_RuDs;}
8752 if ( HistoCode ==
"H_TNo_RuDs"){number = fNbOfListFileH_TNo_RuDs;}
8753 if ( HistoCode ==
"H_MCs_RuDs"){number = fNbOfListFileH_MCs_RuDs;}
8754 if ( HistoCode ==
"H_LFN_RuDs"){number = fNbOfListFileH_LFN_RuDs;}
8755 if ( HistoCode ==
"H_HFN_RuDs"){number = fNbOfListFileH_HFN_RuDs;}
8756 if ( HistoCode ==
"H_SCs_RuDs"){number = fNbOfListFileH_SCs_RuDs;}
8767 if( xArgIndexRun >= 0 && xArgIndexRun < MaxNbOfRuns)
8769 fFapRunNumber = fT1DRunNumber[xArgIndexRun];
8770 if( xArgIndexRun == 0 ){InitSpecParBeforeFileReading();}
8774 cout <<
"!TEcnaHistos::SetRunNumberFromList(...)> **** ERROR **** Run index out of range in list of runs. xArgIndexRun = "
8775 << xArgIndexRun <<
" (MaxNbOfRuns = "<< MaxNbOfRuns <<
")" << endl;
8785 Int_t MaxCar = fgMaxCar;
8786 fStartDate.Resize(MaxCar);
8787 fStartDate =
"(date not found)";
8790 fStopDate.Resize(MaxCar);
8791 fStopDate =
"(date not found)";
8793 fStartTime = (time_t)0;
8794 fStopTime = (time_t)0;
8796 fRunType =
"(run type not found)";
8807 const Int_t& StexStin_A,
const Int_t& i0StinEcha,
const Int_t& i0Sample,
8808 const TString& HistoCode)
8812 Bool_t ok_view_histo = kFALSE;
8814 TString
HistoType = fCnaParHistos->GetHistoType(HistoCode);
8818 TVectorD vStin(fEcal->MaxStinEcnaInStex());
8819 for(Int_t
i=0;
i<fEcal->MaxStinEcnaInStex() ;
i++){vStin(
i)=(Double_t)0.;}
8824 fStatusDataExist = kTRUE;
8827 for (Int_t index_Stin = 0; index_Stin < fEcal->MaxStinEcnaInStex(); index_Stin++)
8829 if ( vStin(index_Stin) == StexStin_A ){Stin_ok++;};
8835 if( !( HistoType ==
"Global" || HistoType ==
"Proj" ) )
8839 Int_t StinNumber = StexStin_A;
8840 if( fFlagSubDet ==
"EE" )
8841 {StinNumber = fEcalNumbering->GetDeeSCConsFrom1DeeSCEcna(fFapStexNumber, StexStin_A);}
8842 cout <<
"!TEcnaHistos::GetOkViewHisto(...)> *ERROR* =====> " <<
"File: " << root_file_name
8843 <<
", " << fFapStinName.Data() <<
" "
8845 <<
" not found. Available numbers = ";
8846 for(Int_t
i = 0;
i < fEcal->MaxStinEcnaInStex();
i++)
8850 if( fFlagSubDet ==
"EB" ){
cout << vStin(
i) <<
", ";}
8851 if( fFlagSubDet ==
"EE" )
8852 {
cout << fEcalNumbering->GetDeeSCConsFrom1DeeSCEcna(fFapStexNumber, (Int_t)vStin(
i)) <<
", ";}
8855 cout << fTTBELL << endl;
8865 Int_t ok_max_elt = 1;
8867 if( ( ( (HistoType ==
"H1Basic") || (HistoType ==
"Evol") || (HistoType ==
"EvolProj") )
8868 && (i0StinEcha >= 0) && (i0StinEcha<fEcal->MaxCrysInStin())
8869 && (i0Sample >= 0) && (i0Sample <fFapNbOfSamples ) ) ||
8870 !( (HistoType ==
"H1Basic") || (HistoType ==
"Evol") || (HistoType ==
"EvolProj") ))
8875 if( fFlagSubDet ==
"EE" ){Choffset = 1;}
8876 if( ( (HistoType ==
"H1Basic") || (HistoType ==
"Evol") || (HistoType ==
"EvolProj") )
8877 && !( (i0StinEcha >= 0) && (i0StinEcha<fEcal->MaxCrysInStin()) ) )
8878 {
cout <<
"!TEcnaHistos::GetOkViewHisto(...)> *ERROR* =====> " <<
"File: " << root_file_name
8879 <<
". Wrong channel number. Value = " << i0StinEcha <<
" (required range: [" << Choffset <<
", "
8880 << fEcal->MaxCrysInStin()-1+Choffset <<
"] )"
8881 << fTTBELL << endl;}
8882 if( (HistoCode ==
"D_Adc_EvDs" || HistoCode ==
"D_Adc_EvNb") &&
8883 !((i0Sample >= 0) && (i0Sample <fFapNbOfSamples)) )
8884 {
cout <<
"!TEcnaHistos::GetOkViewHisto(...)> *ERROR* =====> " <<
"File: " << root_file_name
8885 <<
". Wrong sample index. Value = " << i0Sample <<
" (required range: [0, "
8886 << fFapNbOfSamples-1 <<
"] )"
8887 << fTTBELL << endl;}
8891 if( (ok_view == 1) && (ok_max_elt == 1) )
8893 ok_view_histo = kTRUE;
8897 cout <<
"!TEcnaHistos::GetOkViewHisto(...)> At least one ERROR has been detected. ok_view = " << ok_view
8898 <<
", ok_max_elt = " << ok_max_elt << fTTBELL << endl;
8903 fStatusDataExist = kFALSE;
8905 cout <<
"!TEcnaHistos::GetOkViewHisto(...)> No data in ROOT file "
8906 <<
", aMyRootFile->DataExist() = " << aMyRootFile->
DataExist() << fTTBELL << endl;
8908 return ok_view_histo;
8922 Int_t xFlagAutoYsupMargin = 1;
8924 if(HistoCode ==
"D_NOE_ChNb"){
8925 if(fD_NOE_ChNbYmin < fD_NOE_ChNbYmax){xFlagAutoYsupMargin = 0;
8926 h_his0->SetMinimum(fD_NOE_ChNbYmin); h_his0->SetMaximum(fD_NOE_ChNbYmax);}}
8928 if(HistoCode ==
"D_NOE_ChDs"){
8929 if(fD_NOE_ChDsYmin < fD_NOE_ChDsYmax){xFlagAutoYsupMargin = 0;
8930 h_his0->SetMinimum(fD_NOE_ChDsYmin); h_his0->SetMaximum(fD_NOE_ChDsYmax);}}
8932 if(HistoCode ==
"D_Ped_ChNb"){
8933 if(fD_Ped_ChNbYmin < fD_Ped_ChNbYmax){xFlagAutoYsupMargin = 0;
8934 h_his0->SetMinimum(fD_Ped_ChNbYmin); h_his0->SetMaximum(fD_Ped_ChNbYmax);}}
8936 if(HistoCode ==
"D_Ped_ChDs"){
8937 if(fD_Ped_ChDsYmin < fD_Ped_ChDsYmax){xFlagAutoYsupMargin = 0;
8938 h_his0->SetMinimum(fD_Ped_ChDsYmin); h_his0->SetMaximum(fD_Ped_ChDsYmax);}}
8940 if(HistoCode ==
"D_TNo_ChNb"){
8941 if(fD_TNo_ChNbYmin < fD_TNo_ChNbYmax){xFlagAutoYsupMargin = 0;
8942 h_his0->SetMinimum(fD_TNo_ChNbYmin); h_his0->SetMaximum(fD_TNo_ChNbYmax);}}
8944 if(HistoCode ==
"D_TNo_ChDs"){
8945 if(fD_TNo_ChDsYmin < fD_TNo_ChDsYmax){xFlagAutoYsupMargin = 0;
8946 h_his0->SetMinimum(fD_TNo_ChDsYmin); h_his0->SetMaximum(fD_TNo_ChDsYmax);}}
8948 if(HistoCode ==
"D_MCs_ChNb"){
8949 if(fD_MCs_ChNbYmin < fD_MCs_ChNbYmax){xFlagAutoYsupMargin = 0;
8950 h_his0->SetMinimum(fD_MCs_ChNbYmin); h_his0->SetMaximum(fD_MCs_ChNbYmax);}}
8952 if(HistoCode ==
"D_MCs_ChDs"){
8953 if(fD_MCs_ChDsYmin < fD_MCs_ChDsYmax){xFlagAutoYsupMargin = 0;
8954 h_his0->SetMinimum(fD_MCs_ChDsYmin); h_his0->SetMaximum(fD_MCs_ChDsYmax);}}
8956 if(HistoCode ==
"D_LFN_ChNb"){
8957 if(fD_LFN_ChNbYmin < fD_LFN_ChNbYmax){xFlagAutoYsupMargin = 0;
8958 h_his0->SetMinimum(fD_LFN_ChNbYmin); h_his0->SetMaximum(fD_LFN_ChNbYmax);}}
8960 if(HistoCode ==
"D_LFN_ChDs"){
8961 if(fD_LFN_ChDsYmin < fD_LFN_ChDsYmax){xFlagAutoYsupMargin = 0;
8962 h_his0->SetMinimum(fD_LFN_ChDsYmin); h_his0->SetMaximum(fD_LFN_ChDsYmax);}}
8964 if(HistoCode ==
"D_HFN_ChNb"){
8965 if(fD_HFN_ChNbYmin < fD_HFN_ChNbYmax){xFlagAutoYsupMargin = 0;
8966 h_his0->SetMinimum(fD_HFN_ChNbYmin); h_his0->SetMaximum(fD_HFN_ChNbYmax);}}
8968 if(HistoCode ==
"D_HFN_ChDs"){
8969 if(fD_HFN_ChDsYmin < fD_HFN_ChDsYmax){xFlagAutoYsupMargin = 0;
8970 h_his0->SetMinimum(fD_HFN_ChDsYmin); h_his0->SetMaximum(fD_HFN_ChDsYmax);}}
8972 if(HistoCode ==
"D_SCs_ChNb"){
8973 if(fD_SCs_ChNbYmin < fD_SCs_ChNbYmax){xFlagAutoYsupMargin = 0;
8974 h_his0->SetMinimum(fD_SCs_ChNbYmin); h_his0->SetMaximum(fD_SCs_ChNbYmax);}}
8976 if(HistoCode ==
"D_SCs_ChDs"){
8977 if(fD_SCs_ChDsYmin < fD_SCs_ChDsYmax){xFlagAutoYsupMargin = 0;
8978 h_his0->SetMinimum(fD_SCs_ChDsYmin); h_his0->SetMaximum(fD_SCs_ChDsYmax);}}
8980 if(HistoCode ==
"D_MSp_SpNb"){
8981 if(fD_MSp_SpNbYmin < fD_MSp_SpNbYmax){xFlagAutoYsupMargin = 0;
8982 h_his0->SetMinimum(fD_MSp_SpNbYmin); h_his0->SetMaximum(fD_MSp_SpNbYmax);}}
8984 if(HistoCode ==
"D_MSp_SpDs"){
8985 if(fD_MSp_SpDsYmin < fD_MSp_SpDsYmax){xFlagAutoYsupMargin = 0;
8986 h_his0->SetMinimum(fD_MSp_SpDsYmin); h_his0->SetMaximum(fD_MSp_SpDsYmax);}}
8988 if(HistoCode ==
"D_SSp_SpNb"){
8989 if(fD_SSp_SpNbYmin < fD_SSp_SpNbYmax){xFlagAutoYsupMargin = 0;
8990 h_his0->SetMinimum(fD_SSp_SpNbYmin); h_his0->SetMaximum(fD_SSp_SpNbYmax);}}
8992 if(HistoCode ==
"D_SSp_SpDs"){
8993 if(fD_SSp_SpDsYmin < fD_SSp_SpDsYmax){xFlagAutoYsupMargin = 0;
8994 h_his0->SetMinimum(fD_SSp_SpDsYmin); h_his0->SetMaximum(fD_SSp_SpDsYmax);}}
8996 if(HistoCode ==
"D_Adc_EvNb"){
8997 if(fD_Adc_EvNbYmin < fD_Adc_EvNbYmax){xFlagAutoYsupMargin = 0;
8998 h_his0->SetMinimum(fD_Adc_EvNbYmin); h_his0->SetMaximum(fD_Adc_EvNbYmax);}}
9000 if(HistoCode ==
"D_Adc_EvDs"){
9001 if(fD_Adc_EvDsYmin < fD_Adc_EvDsYmax){xFlagAutoYsupMargin = 0;
9002 h_his0->SetMinimum(fD_Adc_EvDsYmin); h_his0->SetMaximum(fD_Adc_EvDsYmax);}}
9004 if(HistoCode ==
"H2CorccInStins"){
9005 if(fH2CorccInStinsYmin < fH2CorccInStinsYmax){xFlagAutoYsupMargin = 0;
9006 h_his0->SetMinimum(fH2CorccInStinsYmin); h_his0->SetMaximum(fH2CorccInStinsYmax);}}
9008 if(HistoCode ==
"H2LFccMosMatrix"){
9009 if(fH2LFccMosMatrixYmin < fH2LFccMosMatrixYmax){xFlagAutoYsupMargin = 0;
9010 h_his0->SetMinimum(fH2LFccMosMatrixYmin); h_his0->SetMaximum(fH2LFccMosMatrixYmax);}}
9012 if(HistoCode ==
"H2HFccMosMatrix"){
9013 if(fH2HFccMosMatrixYmin < fH2HFccMosMatrixYmax){xFlagAutoYsupMargin = 0;
9014 h_his0->SetMinimum(fH2HFccMosMatrixYmin); h_his0->SetMaximum(fH2HFccMosMatrixYmax);}}
9016 if(HistoCode ==
"H_Ped_RuDs"){
9017 if(fH_Ped_RuDsYmin < fH_Ped_RuDsYmax){xFlagAutoYsupMargin = 0;
9018 h_his0->SetMinimum(fH_Ped_RuDsYmin); h_his0->SetMaximum(fH_Ped_RuDsYmax);}}
9020 if(HistoCode ==
"H_TNo_RuDs"){
9021 if(fH_TNo_RuDsYmin < fH_TNo_RuDsYmax){xFlagAutoYsupMargin = 0;
9022 h_his0->SetMinimum(fH_TNo_RuDsYmin); h_his0->SetMaximum(fH_TNo_RuDsYmax);}}
9024 if(HistoCode ==
"H_MCs_RuDs"){
9025 if(fH_MCs_RuDsYmin < fH_MCs_RuDsYmax){xFlagAutoYsupMargin = 0;
9026 h_his0->SetMinimum(fH_MCs_RuDsYmin); h_his0->SetMaximum(fH_MCs_RuDsYmax);}}
9028 if(HistoCode ==
"H_LFN_RuDs"){
9029 if(fH_LFN_RuDsYmin < fH_LFN_RuDsYmax){xFlagAutoYsupMargin = 0;
9030 h_his0->SetMinimum(fH_LFN_RuDsYmin); h_his0->SetMaximum(fH_LFN_RuDsYmax);}}
9032 if(HistoCode ==
"H_HFN_RuDs"){
9033 if(fH_HFN_RuDsYmin < fH_HFN_RuDsYmax){xFlagAutoYsupMargin = 0;
9034 h_his0->SetMinimum(fH_HFN_RuDsYmin); h_his0->SetMaximum(fH_HFN_RuDsYmax);}}
9036 if(HistoCode ==
"H_SCs_RuDs"){
9037 if(fH_SCs_RuDsYmin < fH_SCs_RuDsYmax){xFlagAutoYsupMargin = 0;
9038 h_his0->SetMinimum(fH_SCs_RuDsYmin); h_his0->SetMaximum(fH_SCs_RuDsYmax);}}
9040 return xFlagAutoYsupMargin;
9047 Int_t xFlagAutoYsupMargin = 1;
9049 if(HistoCode ==
"H_Ped_Date"){
9050 if(fH_Ped_DateYmin < fH_Ped_DateYmax){xFlagAutoYsupMargin = 0;
9051 g_graph0->SetMinimum(fH_Ped_DateYmin); g_graph0->SetMaximum(fH_Ped_DateYmax);}}
9053 if(HistoCode ==
"H_TNo_Date"){
9054 if(fH_TNo_DateYmin < fH_TNo_DateYmax){xFlagAutoYsupMargin = 0;
9055 g_graph0->SetMinimum(fH_TNo_DateYmin); g_graph0->SetMaximum(fH_TNo_DateYmax);}}
9057 if(HistoCode ==
"H_MCs_Date"){
9058 if(fH_MCs_DateYmin < fH_MCs_DateYmax){xFlagAutoYsupMargin = 0;
9059 g_graph0->SetMinimum(fH_MCs_DateYmin); g_graph0->SetMaximum(fH_MCs_DateYmax);}}
9061 if(HistoCode ==
"H_LFN_Date"){
9062 if(fH_LFN_DateYmin < fH_LFN_DateYmax){xFlagAutoYsupMargin = 0;
9063 g_graph0->SetMinimum(fH_LFN_DateYmin); g_graph0->SetMaximum(fH_LFN_DateYmax);}}
9065 if(HistoCode ==
"H_HFN_Date"){
9066 if(fH_HFN_DateYmin < fH_HFN_DateYmax){xFlagAutoYsupMargin = 0;
9067 g_graph0->SetMinimum(fH_HFN_DateYmin); g_graph0->SetMaximum(fH_HFN_DateYmax);}}
9069 if(HistoCode ==
"H_SCs_Date"){
9070 if(fH_SCs_DateYmin < fH_SCs_DateYmax){xFlagAutoYsupMargin = 0;
9071 g_graph0->SetMinimum(fH_SCs_DateYmin); g_graph0->SetMaximum(fH_SCs_DateYmax);}}
9073 return xFlagAutoYsupMargin;
9080 Double_t minproj = h_his0->GetMinimum();
9081 Double_t maxproj = h_his0->GetMaximum();
9082 minproj = minproj - (maxproj-minproj)*margin_factor;
9089 Double_t minproj = h_his0->GetMinimum();
9090 Double_t maxproj = h_his0->GetMaximum();
9091 maxproj = maxproj + (maxproj-minproj)*margin_factor;
9098 Double_t graph_ymin = g_graph0->GetY()[0];
9099 for(Int_t
i=1;
i<g_graph0->GetN();
i++)
9100 {
if( g_graph0->GetY()[
i] < graph_ymin ){graph_ymin = g_graph0->GetY()[
i];}}
9102 Double_t graph_ymax = g_graph0->GetY()[0];
9103 for(Int_t
i=1;
i<g_graph0->GetN();
i++)
9104 {
if( g_graph0->GetY()[
i] > graph_ymax ){graph_ymax = g_graph0->GetY()[
i];}}
9106 graph_ymin = graph_ymin - (graph_ymax-graph_ymin)*margin_factor;
9112 Double_t graph_ymin = g_graph0->GetY()[0];
9113 for(Int_t
i=1;
i<g_graph0->GetN();
i++)
9114 {
if( g_graph0->GetY()[
i] < graph_ymin ){graph_ymin = g_graph0->GetY()[
i];}}
9116 Double_t graph_ymax = g_graph0->GetY()[0];
9117 for(Int_t
i=1;
i<g_graph0->GetN();
i++)
9118 {
if( g_graph0->GetY()[
i] > graph_ymax ){graph_ymax = g_graph0->GetY()[
i];}}
9120 graph_ymax = graph_ymax + (graph_ymax-graph_ymin)*margin_factor;
9126 const Axis_t& xinf_his,
const Axis_t& xsup_his,
9127 const TString& HistoCode,
const TString&
HistoType,
9128 const Int_t& StexStin_A,
const Int_t& i0StinEcha,
const Int_t& i0Sample,
9129 const Int_t& opt_scale_x,
const Int_t& opt_scale_y,
9130 const TString& opt_plot,
const Int_t& arg_AlreadyRead,
9131 const Int_t& xFlagAutoYsupMargin)
9135 UInt_t canv_w = fCnaParHistos->SetCanvasWidth(HistoCode.Data(), opt_plot);
9136 UInt_t canv_h = fCnaParHistos->SetCanvasHeight(HistoCode.Data(), opt_plot);
9138 TString QuantityName =
" ";
9139 Int_t MaxCar = fgMaxCar;
9140 QuantityName.Resize(MaxCar);
9141 QuantityName = fCnaParHistos->GetQuantityName(HistoCode.Data());
9144 if( arg_AlreadyRead == 0 || arg_AlreadyRead == 1 )
9146 SetHistoPresentation(h_his0, HistoType.Data(), opt_plot);
9148 SetAllPavesViewHisto(HistoCode.Data(), StexStin_A, i0StinEcha, i0Sample, opt_plot.Data(), arg_AlreadyRead);
9152 TString canvas_name = SetCanvasName(HistoCode.Data(), opt_scale_x, opt_scale_y,
9153 opt_plot.Data(), arg_AlreadyRead,
9154 StexStin_A, i0StinEcha, i0Sample);
9156 TCanvas* MainCanvas = 0;
9158 if(opt_plot == fOnlyOnePlot && (arg_AlreadyRead == 0 || arg_AlreadyRead == 1 ) )
9160 MainCanvas =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w , canv_h); fCnewRoot++;
9161 fCurrentPad = gPad; fCurrentCanvas = MainCanvas; fCurrentCanvasName = canvas_name.Data();
9164 if( opt_plot == fSeveralPlot || opt_plot == fSameOnePlot)
9165 {
if(GetMemoFlag(HistoCode, opt_plot) ==
"Free")
9166 {MainCanvas = CreateCanvas(HistoCode, opt_plot, canvas_name, canv_w, canv_h);
9167 fCurrentPad = gPad; fCurrentCanvas = MainCanvas; fCurrentCanvasName = canvas_name.Data();}}
9172 Int_t Stex_StinCons = StexStin_A;
9173 Int_t n1StexCrys = i0StinEcha+1;
9175 if( StexStin_A >= 1 && StexStin_A <= fEcal->MaxStinEcnaInStex() )
9177 if( fFlagSubDet ==
"EB" )
9178 {n1StexCrys = fEcalNumbering->Get1StexCrysFrom1StexStinAnd0StinEcha(StexStin_A, i0StinEcha, fFapStexNumber);}
9179 if( fFlagSubDet ==
"EE" )
9180 {Stex_StinCons = fEcalNumbering->GetDeeSCConsFrom1DeeSCEcna(fFapStexNumber, StexStin_A);}
9184 TString sFapStexNumber = StexNumberToString(fFapStexNumber);
9194 TVirtualPad* main_subpad = 0;
9195 TPaveText* main_pavtxt = 0;
9197 Int_t xMemoPlotSame = 1;
9200 if( opt_plot == fOnlyOnePlot )
9202 if( arg_AlreadyRead == 0 || arg_AlreadyRead == 1 )
9205 if( fPavComGeneralTitle != 0 ){fPavComGeneralTitle->Draw();}
9206 fPavComStex->Draw();
9207 if( !( HistoType ==
"Global" || HistoType ==
"Proj" ) ){fPavComStin->Draw(); fPavComXtal->Draw();}
9209 if( HistoType ==
"EvolProj" )
9211 fPavComEvolRuns->Draw();
9212 fPavComEvolNbOfEvtsAna->Draw();
9216 fPavComAnaRun->Draw();
9217 fPavComNbOfEvts->Draw();
9220 Double_t x_low = fCnaParHistos->BoxLeftX(
"bottom_left_box") - 0.005;
9221 Double_t x_up = fCnaParHistos->BoxRightX(
"bottom_right_box") + 0.005;
9222 Double_t y_low = fCnaParHistos->BoxTopY(
"bottom_right_box") + 0.005;
9223 Double_t y_up = fCnaParHistos->BoxBottomY(
"top_right_box_EB") - 0.005;
9224 Color_t fond_pad = fCnaParHistos->ColorDefinition(
"blanc");
9226 Double_t x_margin = x_low;
9227 Double_t y_margin = y_low;
9228 MainCanvas->Divide( 1, 1, x_margin, y_margin, fond_pad);
9233 main_subpad->SetPad(x_low, y_low, x_up, y_up);
9237 if (arg_AlreadyRead > 1 )
9238 {main_subpad = fCurrentPad;}
9243 if( (opt_plot == fSeveralPlot) || (opt_plot == fSameOnePlot) )
9246 if( GetMemoFlag(HistoCode, opt_plot) ==
"Free" )
9250 SetParametersPavTxt(HistoCode, opt_plot);
9254 main_pavtxt = ActivePavTxt(HistoCode.Data(), opt_plot.Data());
9257 if( fPavComGeneralTitle != 0 ){fPavComGeneralTitle->Draw();}
9259 main_pavtxt->SetTextAlign(fTextPaveAlign);
9260 main_pavtxt->SetTextFont(fTextPaveFont);
9261 main_pavtxt->SetBorderSize(fTextBorderSize);
9262 Float_t cTextPaveSize = 0.025;
9263 if( HistoType ==
"H1Basic" || HistoType ==
"SampProj" || HistoType ==
"H1BasicProj" ||
9264 HistoType ==
"Proj" || HistoType ==
"EvolProj" )
9265 {cTextPaveSize = 0.025;}
9266 main_pavtxt->SetTextSize(cTextPaveSize);
9268 char* f_in =
new char[fgMaxCar]; fCnew++;
9271 TString DecalStexName =
"";
9272 if( fFlagSubDet ==
"EB" ){DecalStexName =
" ";}
9273 TString DecalStinName =
"";
9274 if( fFlagSubDet ==
"EE" ){DecalStinName =
" ";}
9276 TString sStexOrStasName =
"";
9277 if( fFapStexNumber == 0 ){sStexOrStasName =
" ";}
9278 if( fFapStexNumber != 0 ){sStexOrStasName = fFapStexName;}
9280 if( opt_plot == fSeveralPlot || opt_plot == fSameOnePlot )
9282 if( HistoType ==
"SampGlobal" )
9283 {sprintf(f_in,
"Analysis Samp RUN# (run type ) Evts range Nb Evts %s%s %s%s %s %s Sample",
9284 DecalStexName.Data(), sStexOrStasName.Data(),
9285 DecalStinName.Data(), fFapStinName.Data(), fFapXtalName.Data(), fFapEchaName.Data());}
9286 if( HistoType ==
"SampProj" )
9287 {sprintf(f_in,
"Analysis Samp RUN# (run type ) Evts range Nb Evts %s%s %s%s %s %s Sample",
9288 DecalStexName.Data(), sStexOrStasName.Data(),
9289 DecalStinName.Data(), fFapStinName.Data(), fFapXtalName.Data(), fFapEchaName.Data());}
9290 if( HistoType ==
"H1Basic" || HistoType ==
"H1BasicProj" )
9291 {sprintf(f_in,
"Analysis Samp RUN# (run type ) Evts range Nb Evts %s%s %s%s %s %s",
9292 DecalStexName.Data(), sStexOrStasName.Data(),
9293 DecalStinName.Data(), fFapStinName.Data(), fFapXtalName.Data(), fFapEchaName.Data());}
9294 if((HistoType ==
"Global") || (HistoType ==
"Proj") )
9295 {sprintf(f_in,
"Analysis Samp RUN# (run type ) Evts range Nb Evts %s%s",
9296 DecalStexName.Data(), sStexOrStasName.Data());}
9298 if( HistoType ==
"EvolProj" )
9299 {sprintf(f_in,
"Analysis Samp Evts range Nb Evts %s%s %s%s %s %s",
9300 DecalStexName.Data(), sStexOrStasName.Data(),
9301 DecalStinName.Data(), fFapStinName.Data(), fFapXtalName.Data(), fFapEchaName.Data());}
9304 TText* ttit = main_pavtxt->AddText(f_in);
9305 ttit->SetTextColor(fCnaParHistos->ColorDefinition(
"noir"));
9310 if( opt_plot == fSameOnePlot)
9312 if( (HistoType ==
"Global") || (HistoType ==
"Proj") || (HistoType ==
"H1BasicProj") )
9314 sprintf(f_in,
"%-10s 1-%2d%7d (%-20s) %5d-%5d %7d %4s %-25s",
9315 fFapAnaType.Data(), fFapNbOfSamples, fFapRunNumber, fRunType.Data(),
9316 fFapFirstReqEvtNumber, fFapLastReqEvtNumber, fFapReqNbOfEvts,
9317 sFapStexNumber.Data(), QuantityName.Data());
9320 if( HistoType ==
"EvolProj" )
9322 sprintf(f_in,
"%-10s 1-%2d %5d-%5d %7d %5s%6d%7d%7d %-25s",
9323 fFapAnaType.Data(), fFapNbOfSamples, fFapFirstReqEvtNumber, fFapLastReqEvtNumber, fFapReqNbOfEvts,
9324 sFapStexNumber.Data(), Stex_StinCons, n1StexCrys, i0StinEcha, QuantityName.Data());
9330 if( opt_plot == fSeveralPlot )
9332 Int_t kSample = i0Sample+1;
9334 if( HistoType ==
"SampGlobal" )
9336 sprintf(f_in,
"%-10s 1-%2d%7d (%-20s) %5d-%5d %7d %4s%6d%5d%5d%6d",
9337 fFapAnaType.Data(), fFapNbOfSamples, fFapRunNumber, fRunType.Data(),
9338 fFapFirstReqEvtNumber, fFapLastReqEvtNumber, fFapReqNbOfEvts,sFapStexNumber.Data(),
9339 Stex_StinCons, n1StexCrys, i0StinEcha, kSample);
9341 if( HistoType ==
"SampProj" )
9343 sprintf(f_in,
"%-10s 1-%2d%7d (%-20s) %5d-%5d %7d %4s%6d%5d%5d%6d",
9344 fFapAnaType.Data(), fFapNbOfSamples, fFapRunNumber, fRunType.Data(),
9345 fFapFirstReqEvtNumber, fFapLastReqEvtNumber, fFapReqNbOfEvts, sFapStexNumber.Data(),
9346 Stex_StinCons, n1StexCrys, i0StinEcha, kSample);
9348 if( HistoType ==
"H1Basic" || HistoType ==
"H1BasicProj" )
9350 sprintf(f_in,
"%-10s 1-%2d%7d (%-20s) %5d-%5d %7d %4s%6d%5d%5d",
9351 fFapAnaType.Data(), fFapNbOfSamples, fFapRunNumber, fRunType.Data(),
9352 fFapFirstReqEvtNumber, fFapLastReqEvtNumber, fFapReqNbOfEvts, sFapStexNumber.Data(),
9353 Stex_StinCons, n1StexCrys, i0StinEcha);
9355 if( (HistoType ==
"Global") || (HistoType ==
"Proj") )
9357 sprintf(f_in,
"%-10s 1-%2d%7d (%-20s) %5d-%5d %7d %4s",
9358 fFapAnaType.Data(), fFapNbOfSamples, fFapRunNumber, fRunType.Data(),
9359 fFapFirstReqEvtNumber, fFapLastReqEvtNumber, fFapReqNbOfEvts, sFapStexNumber.Data());
9362 if( HistoType ==
"EvolProj" )
9364 sprintf(f_in,
"%-10s 1-%2d %5d-%5d %7d %4s%7d%5d%5d",
9365 fFapAnaType.Data(), fFapNbOfSamples,
9366 fFapFirstReqEvtNumber, fFapLastReqEvtNumber, fFapReqNbOfEvts, sFapStexNumber.Data(),
9367 Stex_StinCons, n1StexCrys, i0StinEcha);
9371 TText*
tt = main_pavtxt->AddText(f_in);
9372 tt->SetTextColor(GetViewHistoColor(HistoCode, opt_plot));
9374 delete [] f_in; f_in = 0; fCdelete++;
9377 main_pavtxt->Draw();
9379 if( HistoType ==
"EvolProj" ){fPavComEvolRuns->Draw();}
9387 SetParametersCanvas(HistoCode, opt_plot);
9394 if(GetMemoFlag(HistoCode, opt_plot) ==
"Busy")
9398 main_pavtxt = ActivePavTxt(HistoCode.Data(), opt_plot.Data());
9401 main_subpad = ActivePad(HistoCode.Data(), opt_plot.Data());
9404 MainCanvas = GetCurrentCanvas(HistoCode.Data(), opt_plot.Data());
9415 if(main_subpad != 0)
9417 if( (opt_plot == fSeveralPlot) || (opt_plot == fSameOnePlot) )
9420 if(xMemoPlotSame != 0)
9423 main_pavtxt->SetTextAlign(fTextPaveAlign);
9424 main_pavtxt->SetTextFont(fTextPaveFont);
9425 main_pavtxt->SetBorderSize(fTextBorderSize);
9426 Float_t cTextPaveSize = 0.025;
9427 if( HistoType ==
"H1Basic" || HistoType ==
"SampProj"
9428 || HistoType ==
"Proj" || HistoType ==
"EvolProj" || HistoType ==
"H1BasicProj" )
9429 {cTextPaveSize = 0.025;}
9430 main_pavtxt->SetTextSize(cTextPaveSize);
9432 char* f_in =
new char[fgMaxCar]; fCnew++;
9434 if( opt_plot == fSameOnePlot )
9436 if( (HistoType ==
"Global") || (HistoType ==
"Proj") )
9438 sprintf(f_in,
"%-10s 1-%2d%7d (%-20s) %5d-%5d %7d %4s %-25s",
9439 fFapAnaType.Data(), fFapNbOfSamples, fFapRunNumber, fRunType.Data(),
9440 fFapFirstReqEvtNumber, fFapLastReqEvtNumber, fFapReqNbOfEvts,
9441 sFapStexNumber.Data(), QuantityName.Data());
9444 if( HistoType ==
"EvolProj" )
9446 sprintf(f_in,
"%-10s 1-%2d %5d-%5d %7d %5s%6d%7d%7d %-25s",
9447 fFapAnaType.Data(), fFapNbOfSamples,
9448 fFapFirstReqEvtNumber, fFapLastReqEvtNumber, fFapReqNbOfEvts, sFapStexNumber.Data(),
9449 Stex_StinCons, n1StexCrys, i0StinEcha, QuantityName.Data());
9453 if( opt_plot == fOnlyOnePlot || opt_plot == fSeveralPlot )
9455 Int_t kSample = i0Sample+1;
9457 if(HistoType ==
"SampGlobal" )
9459 sprintf(f_in,
"%-10s 1-%2d%7d (%-20s) %5d-%5d %7d %4s%6d%5d%5d%6d",
9460 fFapAnaType.Data(), fFapNbOfSamples, fFapRunNumber, fRunType.Data(),
9461 fFapFirstReqEvtNumber, fFapLastReqEvtNumber, fFapReqNbOfEvts, sFapStexNumber.Data(),
9462 Stex_StinCons, n1StexCrys, i0StinEcha, kSample);
9464 if( HistoType ==
"SampProj" )
9466 sprintf(f_in,
"%-10s 1-%2d%7d (%-20s) %5d-%5d %7d %4s%6d%5d%5d%6d",
9467 fFapAnaType.Data(), fFapNbOfSamples, fFapRunNumber, fRunType.Data(),
9468 fFapFirstReqEvtNumber, fFapLastReqEvtNumber, fFapReqNbOfEvts, sFapStexNumber.Data(),
9469 Stex_StinCons, n1StexCrys, i0StinEcha, kSample);
9471 if( HistoType ==
"H1Basic" || HistoType ==
"H1BasicProj")
9473 sprintf(f_in,
"%-10s 1-%2d%7d (%-20s) %5d-%5d %7d %4s%6d%5d%5d",
9474 fFapAnaType.Data(), fFapNbOfSamples, fFapRunNumber, fRunType.Data(),
9475 fFapFirstReqEvtNumber, fFapLastReqEvtNumber, fFapReqNbOfEvts, sFapStexNumber.Data(),
9476 Stex_StinCons, n1StexCrys, i0StinEcha);
9478 if( (HistoType ==
"Global") || (HistoType ==
"Proj") )
9480 sprintf(f_in,
"%-10s 1-%2d%7d (%-20s) %5d-%5d %7d %4s",
9481 fFapAnaType.Data(), fFapNbOfSamples, fFapRunNumber, fRunType.Data(),
9482 fFapFirstReqEvtNumber, fFapLastReqEvtNumber, fFapReqNbOfEvts, sFapStexNumber.Data());
9485 if( HistoType ==
"EvolProj" )
9487 sprintf(f_in,
"%-10s 1-%2d %5d-%5d %7d %4s%7d%5d%5d",
9488 fFapAnaType.Data(), fFapNbOfSamples,
9489 fFapFirstReqEvtNumber, fFapLastReqEvtNumber, fFapReqNbOfEvts,
9490 sFapStexNumber.Data(), Stex_StinCons, n1StexCrys, i0StinEcha);
9494 TText *
tt = main_pavtxt->AddText(f_in);
9495 tt->SetTextColor(GetViewHistoColor(HistoCode, opt_plot));
9496 MainCanvas->cd(); gStyle->SetOptDate(0);
9497 main_pavtxt->Draw();
9499 delete [] f_in; f_in = 0; fCdelete++;
9503 Double_t x_low = fCnaParHistos->BoxLeftX(
"bottom_left_box") - 0.005;
9504 Double_t x_up = fCnaParHistos->BoxRightX(
"bottom_right_box") + 0.005;
9505 Double_t y_low = fCnaParHistos->BoxTopY(
"several_plots_box") + 0.005;
9506 Double_t y_up = fCnaParHistos->BoxBottomY(
"general_comment") - 0.005;
9507 if( opt_plot == fSameOnePlot && HistoType ==
"EvolProj" )
9508 {y_up = fCnaParHistos->BoxBottomY(
"top_left_box_EB") - 0.005;}
9509 main_subpad->SetPad(x_low, y_low, x_up, y_up);
9513 SetViewHistoColors(h_his0, HistoCode.Data(), opt_plot, arg_AlreadyRead);
9516 TString axis_x_var_name = SetHistoXAxisTitle(HistoCode);
9517 TString axis_y_var_name = SetHistoYAxisTitle(HistoCode);
9518 h_his0->GetXaxis()->SetTitle(axis_x_var_name);
9519 h_his0->GetYaxis()->SetTitle(axis_y_var_name);
9521 Int_t lin_scale = 0;
9522 Int_t log_scale = 1;
9524 if(opt_scale_x == fOptScaleLinx){gPad->SetLogx(lin_scale);}
9525 if(opt_scale_x == fOptScaleLogx){gPad->SetLogx(log_scale);}
9526 if(opt_scale_y == fOptScaleLiny){gPad->SetLogy(lin_scale);}
9527 if(opt_scale_y == fOptScaleLogy){gPad->SetLogy(log_scale);}
9530 if(opt_plot == fOnlyOnePlot && arg_AlreadyRead == 0 ){h_his0->DrawCopy();}
9531 if(opt_plot == fOnlyOnePlot && arg_AlreadyRead == 1 ){h_his0->DrawCopy();}
9532 if(opt_plot == fOnlyOnePlot && arg_AlreadyRead > 1 ){h_his0->DrawCopy(
"AHSAME");}
9534 if(opt_plot == fSeveralPlot || opt_plot == fSameOnePlot)
9536 if(xMemoPlotSame == 0){h_his0->DrawCopy();}
9537 if(xMemoPlotSame != 0){h_his0->DrawCopy(
"SAME");}
9542 if( !( HistoCode ==
"D_Adc_EvDs" || HistoCode ==
"D_Adc_EvNb" ||
9543 HistoType ==
"Proj" || HistoType ==
"SampProj" ||
9544 HistoType ==
"EvolProj" || HistoType ==
"H1BasicProj" ) &&
9545 !( HistoType ==
"H1Basic" && arg_AlreadyRead == 0 ) )
9547 Double_t yinf = h_his0->GetMinimum();
9548 Double_t ysup = h_his0->GetMaximum();
9549 if( yinf <= (Double_t)0. && ysup >= (Double_t)0. )
9550 {TLine* lin =
new TLine(0.,0.,(Double_t)HisSize, 0.); fCnewRoot++;
9554 if( ( opt_plot == fOnlyOnePlot )
9555 || ( (opt_plot == fSeveralPlot || opt_plot == fSameOnePlot) && xMemoPlotSame == 0 ) )
9557 Double_t yinf = (Double_t)h_his0->GetMinimum();
9558 Double_t ysup = (Double_t)h_his0->GetMaximum();
9560 if(xFlagAutoYsupMargin == 1)
9562 if( yinf >= ysup ){yinf = (Double_t)0.; ysup += ysup;}
9563 Double_t MaxMarginFactor = (Double_t)0.05;
9564 ysup += (ysup-yinf)*MaxMarginFactor;
9567 char* f_in =
new char[fgMaxCar]; fCnew++;
9570 if( fFlagSubDet ==
"EE" && fFapStexNumber == 0 )
9573 Color_t coul_DS = fCnaParHistos->ColorDefinition(
"noir");
9574 Int_t DeeOffset = 0;
9575 for(Int_t n1Dee=1; n1Dee<=4; n1Dee++)
9577 if( n1Dee == 4 ){DeeOffset = 0;}
9578 if( n1Dee == 3 ){DeeOffset = fEcal->MaxSCForConsInDee();}
9579 if( n1Dee == 2 ){DeeOffset = 2*fEcal->MaxSCForConsInDee();}
9580 if( n1Dee == 1 ){DeeOffset = 3*fEcal->MaxSCForConsInDee();}
9582 Double_t ydee = ysup + (ysup-yinf)/(Double_t)15.;
9583 Double_t xBinDee = DeeOffset + fEcal->MaxSCForConsInDee()/(Double_t)2.;
9584 sprintf( f_in,
"D%d", n1Dee );
9585 TText *text_Dee =
new TText(xBinDee, ydee, f_in); fCnewRoot++;
9586 text_Dee->SetTextColor(coul_DS);
9587 text_Dee->SetTextSize((Double_t)0.04);
9588 text_Dee->Draw(
"SAME");
9590 Double_t DSLabelOffset = (Double_t)12;
9592 for(Int_t
i=1;
i<5;
i++)
9595 if( n1Dee == 1 ){iDS =
i;}
9596 if( n1Dee == 2 ){iDS =
i+4;}
9597 if( n1Dee == 3 ){iDS =
i+5;}
9598 if( n1Dee == 4 ){iDS =
i+1;}
9600 Double_t xBinDS = DeeOffset + (Double_t)GetDSOffset(n1Dee, iDS)/fEcal->MaxCrysInSC();
9601 TLine* lin_DS =
new TLine(xBinDS, yinf, xBinDS, ysup); fCnewRoot++;
9602 lin_DS->SetLineColor(coul_DS);
9603 lin_DS->SetLineWidth(1);
9604 lin_DS->SetLineStyle(2);
9607 if( n1Dee == 2 &&
i == 4 )
9609 TLine* lin_DSp =
new TLine(DeeOffset, yinf, DeeOffset, ysup); fCnewRoot++;
9610 lin_DSp->SetLineColor(coul_DS);
9611 lin_DSp->SetLineWidth(1);
9612 lin_DSp->SetLineStyle(2);
9616 Double_t yds = ysup + (ysup-yinf)/(Double_t)50.;
9617 Double_t xBinDSp = xBinDS + DSLabelOffset;
9620 sprintf( f_in,
"S%d", nDS );
9621 TText *text_DS =
new TText(xBinDSp, yds, f_in); fCnewRoot++;
9622 text_DS->SetTextColor(coul_DS);
9623 text_DS->SetTextSize((Double_t)0.03);
9624 text_DS->Draw(
"SAME");
9625 if( (n1Dee == 4 &&
i == 1) || (n1Dee == 2 &&
i == 4) )
9627 if(n1Dee == 4){nDS = iDS-1;}
9628 if(n1Dee == 2){nDS = iDS+1;}
9629 sprintf( f_in,
"S%d", nDS );
9630 TText *text_DS =
new TText(xBinDS-1.75*DSLabelOffset, yds, f_in); fCnewRoot++;
9631 text_DS->SetTextColor(coul_DS);
9632 text_DS->SetTextSize((Double_t)0.03);
9633 text_DS->Draw(
"SAME");
9640 if( fFlagSubDet ==
"EE" && fFapStexNumber > 0 )
9642 if( HistoType ==
"Global" )
9644 Double_t ytext = yinf - (ysup-yinf)/8.5;
9646 Color_t coul_DS = fCnaParHistos->ColorDefinition(
"noir");
9647 for(Int_t
i=1;
i<5;
i++)
9650 if( fFapStexNumber == 1 ){iDS =
i;}
9651 if( fFapStexNumber == 2 ){iDS =
i+4;}
9652 if( fFapStexNumber == 3 ){iDS =
i+5;}
9653 if( fFapStexNumber == 4 ){iDS =
i+1;}
9655 Double_t xBinDS = (Double_t)GetDSOffset(fFapStexNumber, iDS);
9656 TLine* lin_DS =
new TLine(xBinDS, yinf, xBinDS, ysup); fCnewRoot++;
9657 lin_DS->SetLineColor(coul_DS);
9658 lin_DS->SetLineWidth(2);
9659 lin_DS->SetLineStyle(2);
9661 Double_t ytextds = ysup + (ysup-yinf)/30.;
9662 Double_t xBinDSNumber =
9663 xBinDS + fEcalNumbering->GetMaxSCInDS(iDS)*fEcal->MaxCrysInSC()/(Double_t)2.25;
9664 sprintf( f_in,
"S%d", iDS );
9665 TText *text_DS =
new TText(xBinDSNumber, ytextds, f_in); fCnewRoot++;
9666 text_DS->SetTextColor(coul_DS);
9667 text_DS->SetTextSize((Double_t)0.04);
9668 text_DS->Draw(
"SAME");
9669 if( ( (fFapStexNumber == 1 || fFapStexNumber == 2 ) &&
i == 4 ) ||
9670 ( (fFapStexNumber == 3 || fFapStexNumber == 4 ) &&
i == 1 ) )
9673 if(
i == 4 ){iDSp = iDS+1;}
9674 if(
i == 1 ){iDSp = iDS-1;}
9675 sprintf( f_in,
"S%d", iDSp);
9676 Double_t xBinpDSNumber =
9677 xBinDSNumber - fEcalNumbering->GetMaxSCInDS(iDS)*fEcal->MaxCrysInSC();
9678 TText *text_DSp =
new TText(xBinpDSNumber, ytextds, f_in); fCnewRoot++;
9679 text_DSp->SetTextColor(coul_DS);
9680 text_DSp->SetTextSize((Double_t)0.04);
9681 text_DSp->Draw(
"SAME");
9695 Color_t coul_notconnected = fCnaParHistos->ColorDefinition(
"bleu_fonce");
9696 for(Int_t
i=1;
i<=fEcal->NumberOfNotConnectedSCs();
i++)
9699 if( fFapStexNumber == 1 || fFapStexNumber == 3 ){index = 2*
i - 1;}
9700 if( fFapStexNumber == 2 || fFapStexNumber == 4 ){index = 2*
i;}
9702 Double_t xBinNotConnectedSC = NotConnectedSCH1DBin(index);
9703 TLine* lin_notconnected =
9704 new TLine(xBinNotConnectedSC, yinf, xBinNotConnectedSC, ysup); fCnewRoot++;
9705 lin_notconnected->SetLineColor(coul_notconnected);
9706 lin_notconnected->SetLineStyle(3);
9707 lin_notconnected->Draw();
9709 Double_t xBinNotConnectedSCEnd = NotConnectedSCH1DBin(index)+fEcal->MaxCrysInSC();
9710 TLine* lin_notconnected_end =
9711 new TLine(xBinNotConnectedSCEnd, yinf, xBinNotConnectedSCEnd, ysup); fCnewRoot++;
9712 lin_notconnected_end->SetLineColor(coul_notconnected);
9713 lin_notconnected_end->SetLineStyle(3);
9714 lin_notconnected_end->Draw();
9717 sprintf( f_in,
"%d", GetNotConnectedDSSCFromIndex(index) );
9718 TText *text_SC_NotConnected =
new TText(xBinNotConnectedSC, ytext, f_in); fCnewRoot++;
9719 text_SC_NotConnected->SetTextAngle((Double_t)45.);
9720 text_SC_NotConnected->SetTextColor(coul_notconnected);
9721 text_SC_NotConnected->SetTextFont(42);
9722 text_SC_NotConnected->SetTextSize((Double_t)0.03);
9723 text_SC_NotConnected->Draw(
"SAME");
9734 Color_t coul_notcomplete = fCnaParHistos->ColorDefinition(
"rouge40");
9735 for(Int_t
i=1;
i<=fEcal->NumberOfNotCompleteSCs();
i++)
9738 if( fFapStexNumber == 1 || fFapStexNumber == 3 ){index = 2*
i - 1;}
9739 if( fFapStexNumber == 2 || fFapStexNumber == 4 ){index = 2*
i;}
9741 Double_t xBinNotCompleteSC = NotCompleteSCH1DBin(index);
9742 TLine* lin_notcomplete =
9743 new TLine(xBinNotCompleteSC, yinf, xBinNotCompleteSC, ysup); fCnewRoot++;
9744 lin_notcomplete->SetLineColor(coul_notcomplete);
9745 lin_notcomplete->SetLineStyle(3);
9746 lin_notcomplete->Draw();
9748 Double_t xBinNotCompleteSCEnd = NotCompleteSCH1DBin(index)+fEcal->MaxCrysInSC();;
9749 TLine* lin_notcomplete_end =
9750 new TLine(xBinNotCompleteSCEnd, yinf, xBinNotCompleteSCEnd, ysup); fCnewRoot++;
9751 lin_notcomplete_end->SetLineColor(coul_notcomplete);
9752 lin_notcomplete_end->SetLineStyle(3);
9753 lin_notcomplete_end->Draw();
9755 sprintf( f_in,
"%d", GetNotCompleteDSSCFromIndex(index) );
9757 TText *text_SC_NotComplete =
new TText(xBinNotCompleteSC, ytext, f_in); fCnewRoot++;
9758 text_SC_NotComplete->SetTextAngle((Double_t)45.);
9759 text_SC_NotComplete->SetTextColor(coul_notcomplete);
9760 text_SC_NotComplete->SetTextFont(42);
9761 text_SC_NotComplete->SetTextSize((Double_t)0.03);
9762 text_SC_NotComplete->Draw(
"SAME");
9772 delete [] f_in; f_in = 0; fCdelete++;
9777 Int_t min_value = 0;
9778 Int_t max_value = 0;
9779 if(HistoType ==
"Global")
9781 if( fFapStexNumber > 0 )
9784 if( fFlagSubDet ==
"EB" )
9787 max_value = fEcal->MaxStinEcnaInStex() - 1;
9789 if( fFlagSubDet ==
"EE" )
9791 if( fFapStexNumber == 1 ){min_value = 1; max_value = 5;}
9792 if( fFapStexNumber == 2 ){min_value = 5; max_value = 9;}
9793 if( fFapStexNumber == 3 ){min_value = 5; max_value = 9;}
9794 if( fFapStexNumber == 4 ){min_value = 1; max_value = 5;}
9797 if( fFapStexNumber == 0 )
9800 if( fFlagSubDet ==
"EB" )
9803 max_value = fEcal->MaxStexInStas() - 1;
9805 if( fFlagSubDet ==
"EE" )
9808 max_value = fEcal->MaxStexInStas();
9811 TopAxisForHistos(h_his0, opt_plot, xMemoPlotSame, min_value, max_value,
9812 xFlagAutoYsupMargin, HisSize);
9815 if( !( (HistoType ==
"H1Basic" || HistoType ==
"H1BasicProj")
9816 && ( arg_AlreadyRead > 1 && arg_AlreadyRead < fEcal->MaxCrysInStin() ) ) )
9823 cout <<
"*TEcnaHistos::HistoPlot(...)> Canvas not found. Previously closed in option SAME."
9826 ReInitCanvas(HistoCode, opt_plot);
9840 TString sFapStexNumber =
"?";
9841 if( StexNumber == -1 ){sFapStexNumber =
" -1";}
9842 if( StexNumber == -2 ){sFapStexNumber =
" -2";}
9843 if( StexNumber == -3 ){sFapStexNumber =
" -3";}
9844 if( StexNumber == -4 ){sFapStexNumber =
" -4";}
9845 if( StexNumber == -5 ){sFapStexNumber =
" -5";}
9846 if( StexNumber == -6 ){sFapStexNumber =
" -6";}
9847 if( StexNumber == -7 ){sFapStexNumber =
" -7";}
9848 if( StexNumber == -8 ){sFapStexNumber =
" -8";}
9849 if( StexNumber == -9 ){sFapStexNumber =
" -9";}
9850 if( StexNumber == -10 ){sFapStexNumber =
"-10";}
9851 if( StexNumber == -11 ){sFapStexNumber =
"-11";}
9852 if( StexNumber == -12 ){sFapStexNumber =
"-12";}
9853 if( StexNumber == -13 ){sFapStexNumber =
"-13";}
9854 if( StexNumber == -14 ){sFapStexNumber =
"-14";}
9855 if( StexNumber == -15 ){sFapStexNumber =
"-15";}
9856 if( StexNumber == -16 ){sFapStexNumber =
"-16";}
9857 if( StexNumber == -17 ){sFapStexNumber =
"-17";}
9858 if( StexNumber == -18 ){sFapStexNumber =
"-18";}
9859 if( StexNumber == 0 ){sFapStexNumber = fFlagSubDet;}
9860 if( StexNumber == 1 ){sFapStexNumber =
" 1";}
9861 if( StexNumber == 2 ){sFapStexNumber =
" 2";}
9862 if( StexNumber == 3 ){sFapStexNumber =
" 3";}
9863 if( StexNumber == 4 ){sFapStexNumber =
" 4";}
9864 if( StexNumber == 5 ){sFapStexNumber =
" 5";}
9865 if( StexNumber == 6 ){sFapStexNumber =
" 6";}
9866 if( StexNumber == 7 ){sFapStexNumber =
" 7";}
9867 if( StexNumber == 8 ){sFapStexNumber =
" 8";}
9868 if( StexNumber == 9 ){sFapStexNumber =
" 9";}
9869 if( StexNumber == 10 ){sFapStexNumber =
" 10";}
9870 if( StexNumber == 11 ){sFapStexNumber =
" 11";}
9871 if( StexNumber == 12 ){sFapStexNumber =
" 12";}
9872 if( StexNumber == 13 ){sFapStexNumber =
" 13";}
9873 if( StexNumber == 14 ){sFapStexNumber =
" 14";}
9874 if( StexNumber == 15 ){sFapStexNumber =
" 15";}
9875 if( StexNumber == 16 ){sFapStexNumber =
" 16";}
9876 if( StexNumber == 17 ){sFapStexNumber =
" 17";}
9877 if( StexNumber == 18 ){sFapStexNumber =
" 18";}
9878 if( StexNumber == 19 ){sFapStexNumber =
" -1";}
9879 if( StexNumber == 20 ){sFapStexNumber =
" -2";}
9880 if( StexNumber == 21 ){sFapStexNumber =
" -3";}
9881 if( StexNumber == 22 ){sFapStexNumber =
" -4";}
9882 if( StexNumber == 23 ){sFapStexNumber =
" -5";}
9883 if( StexNumber == 24 ){sFapStexNumber =
" -6";}
9884 if( StexNumber == 25 ){sFapStexNumber =
" -7";}
9885 if( StexNumber == 26 ){sFapStexNumber =
" -8";}
9886 if( StexNumber == 27 ){sFapStexNumber =
" -9";}
9887 if( StexNumber == 28 ){sFapStexNumber =
"-10";}
9888 if( StexNumber == 29 ){sFapStexNumber =
"-11";}
9889 if( StexNumber == 30 ){sFapStexNumber =
"-12";}
9890 if( StexNumber == 31 ){sFapStexNumber =
"-13";}
9891 if( StexNumber == 32 ){sFapStexNumber =
"-14";}
9892 if( StexNumber == 33 ){sFapStexNumber =
"-15";}
9893 if( StexNumber == 34 ){sFapStexNumber =
"-16";}
9894 if( StexNumber == 35 ){sFapStexNumber =
"-17";}
9895 if( StexNumber == 36 ){sFapStexNumber =
"-18";}
9896 return sFapStexNumber;
9904 Double_t xbin = (Double_t)(-1);
9906 if( index == 1 ){xbin = GetDSOffset(1,1)+GetSCOffset(1,1, 30);}
9907 if( index == 2 ){xbin = GetDSOffset(2,9)+GetSCOffset(2,9, 30);}
9909 if( index == 3 ){xbin = GetDSOffset(1,2)+GetSCOffset(1,2, 3);}
9910 if( index == 4 ){xbin = GetDSOffset(2,8)+GetSCOffset(2,8, 3);}
9912 if( index == 5 ){xbin = GetDSOffset(1,2)+GetSCOffset(1,2, 25);}
9913 if( index == 6 ){xbin = GetDSOffset(2,8)+GetSCOffset(2,8, 25);}
9915 if( index == 7 ){xbin = GetDSOffset(1,3)+GetSCOffset(1,3, 34);}
9916 if( index == 8 ){xbin = GetDSOffset(2,7)+GetSCOffset(2,7, 34);}
9918 if( index == 9 ){xbin = GetDSOffset(1,4)+GetSCOffset(1,4, 14);}
9919 if( index == 10 ){xbin = GetDSOffset(2,6)+GetSCOffset(2,6, 14);}
9920 if( index == 11 ){xbin = GetDSOffset(1,4)+GetSCOffset(1,4, 21);}
9921 if( index == 12 ){xbin = GetDSOffset(2,6)+GetSCOffset(2,6, 21);}
9923 if( index == 13 ){xbin = GetDSOffset(1,5)+GetSCOffset(1,5, 20);}
9924 if( index == 14 ){xbin = GetDSOffset(2,5)+GetSCOffset(2,5, 3);}
9933 Double_t xbin = (Double_t)(-1);
9935 if( index == 1 ){xbin = GetDSOffset(1,1)+GetSCOffset(1,1, 12);}
9936 if( index == 2 ){xbin = GetDSOffset(2,9)+GetSCOffset(2,9, 12);}
9938 if( index == 3 ){xbin = GetDSOffset(1,2)+GetSCOffset(1,2, 32);}
9939 if( index == 4 ){xbin = GetDSOffset(2,8)+GetSCOffset(2,8, 32);}
9941 if( index == 5 ){xbin = GetDSOffset(1,3)+GetSCOffset(1,3, 10);}
9942 if( index == 6 ){xbin = GetDSOffset(2,7)+GetSCOffset(2,7, 10);}
9944 if( index == 7 ){xbin = GetDSOffset(1,5)+GetSCOffset(1,5, 23);}
9945 if( index == 8 ){xbin = GetDSOffset(2,5)+GetSCOffset(2,5, 6);}
9953 Int_t SCForCons = 0;
9954 if( index == 1 ){SCForCons = 182;}
9955 if( index == 2 ){SCForCons = 33;}
9957 if( index == 3 ){SCForCons = 178;}
9958 if( index == 4 ){SCForCons = 29;}
9959 if( index == 5 ){SCForCons = 207;}
9960 if( index == 6 ){SCForCons = 58;}
9962 if( index == 7 ){SCForCons = 298;}
9963 if( index == 8 ){SCForCons = 149;}
9965 if( index == 9 ){SCForCons = 261;}
9966 if( index == 10 ){SCForCons = 112;}
9967 if( index == 11 ){SCForCons = 268;}
9968 if( index == 12 ){SCForCons = 119;}
9970 if( index == 13 ){SCForCons = 281;}
9971 if( index == 14 ){SCForCons = 132;}
9979 if( index == 1 ){DSSC = 30;}
9980 if( index == 2 ){DSSC = 30;}
9982 if( index == 3 ){DSSC = 3;}
9983 if( index == 4 ){DSSC = 3;}
9984 if( index == 5 ){DSSC = 25;}
9985 if( index == 6 ){DSSC = 25;}
9987 if( index == 7 ){DSSC = 34;}
9988 if( index == 8 ){DSSC = 34;}
9990 if( index == 9 ){DSSC = 14;}
9991 if( index == 10 ){DSSC = 14;}
9992 if( index == 11 ){DSSC = 21;}
9993 if( index == 12 ){DSSC = 21;}
9995 if( index == 13 ){DSSC = 20;}
9996 if( index == 14 ){DSSC = 3;}
10005 if( index == 1 ){DSSC = 161;}
10006 if( index == 2 ){DSSC = 12;}
10008 if( index == 3 ){DSSC = 216;}
10009 if( index == 4 ){DSSC = 67;}
10011 if( index == 5 ){DSSC = 224;}
10012 if( index == 6 ){DSSC = 75;}
10014 if( index == 7 ){DSSC = 286;}
10015 if( index == 8 ){DSSC = 137;}
10023 if( index == 1 ){DSSC = 12;}
10024 if( index == 2 ){DSSC = 12;}
10026 if( index == 3 ){DSSC = 32;}
10027 if( index == 4 ){DSSC = 32;}
10029 if( index == 5 ){DSSC = 10;}
10030 if( index == 6 ){DSSC = 10;}
10032 if( index == 7 ){DSSC = 23;}
10033 if( index == 8 ){DSSC = 6;}
10038 Axis_t xinf, Axis_t xsup,
10039 const TString& HistoCode,
const TString&
HistoType,
10040 const Int_t& StexStin_A,
const Int_t& i0StinEcha,
const Int_t& i0Sample,
10041 const Int_t& opt_scale_x,
const Int_t& opt_scale_y,
10042 const TString& opt_plot,
const Int_t& xFlagAutoYsupMargin)
10046 UInt_t canv_w = fCnaParHistos->SetCanvasWidth(HistoCode, opt_plot);
10047 UInt_t canv_h = fCnaParHistos->SetCanvasHeight(HistoCode, opt_plot);
10049 SetGraphPresentation(g_graph0, HistoType.Data(), opt_plot.Data());
10052 SetAllPavesViewHisto(HistoCode, StexStin_A, i0StinEcha, i0Sample, opt_plot);
10055 Int_t arg_AlreadyRead = 0;
10056 TString canvas_name = SetCanvasName(HistoCode.Data(), opt_scale_x, opt_scale_y, opt_plot, arg_AlreadyRead,
10057 StexStin_A, i0StinEcha, i0Sample);
10061 TCanvas* MainCanvas = 0;
10063 if( opt_plot == fOnlyOnePlot )
10064 {MainCanvas =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w , canv_h); fCnewRoot++;
10065 fCurrentPad = gPad; fCurrentCanvas = MainCanvas; fCurrentCanvasName = canvas_name.Data();}
10067 if( opt_plot == fSeveralPlot )
10069 if(GetMemoFlag(HistoCode, opt_plot) ==
"Free")
10071 MainCanvas = CreateCanvas(HistoCode, opt_plot, canvas_name, canv_w, canv_h);
10072 fCurrentPad = gPad; fCurrentCanvas = MainCanvas; fCurrentCanvasName = canvas_name.Data();
10076 if( opt_plot == fSameOnePlot )
10078 if(GetMemoFlag(HistoCode, opt_plot) ==
"Free")
10080 MainCanvas = CreateCanvas(HistoCode, opt_plot, canvas_name, canv_w, canv_h);
10081 fCurrentPad = gPad; fCurrentCanvas = MainCanvas; fCurrentCanvasName = canvas_name.Data();
10088 Int_t Stex_StinCons = StexStin_A;
10089 Int_t n1StexCrys = i0StinEcha+1;
10091 if( StexStin_A >= 1 && StexStin_A <= fEcal->MaxStinEcnaInStex() )
10093 if( fFlagSubDet ==
"EB" )
10094 {n1StexCrys = fEcalNumbering->Get1StexCrysFrom1StexStinAnd0StinEcha(StexStin_A, i0StinEcha, fFapStexNumber);}
10095 if( fFlagSubDet ==
"EE" )
10096 {Stex_StinCons = fEcalNumbering->GetDeeSCConsFrom1DeeSCEcna(fFapStexNumber, StexStin_A);}
10100 TString sFapStexNumber = StexNumberToString(fFapStexNumber);
10110 TVirtualPad* main_subpad = 0;
10111 TPaveText* main_pavtxt = 0;
10113 Int_t xMemoPlotSame = 1;
10115 TString QuantityName = fCnaParHistos->GetQuantityName(HistoCode.Data());
10118 if( opt_plot == fOnlyOnePlot )
10121 if( fPavComGeneralTitle != 0 ){fPavComGeneralTitle->Draw();}
10122 fPavComStex->Draw();
10124 if( !( HistoType ==
"Global" || HistoType ==
"Proj" ) )
10126 fPavComStin->Draw();
10127 fPavComXtal->Draw();
10129 fPavComEvolNbOfEvtsAna->Draw();
10130 fPavComEvolRuns->Draw();
10132 Double_t x_low = fCnaParHistos->BoxLeftX(
"bottom_left_box") - 0.005;
10133 Double_t x_up = fCnaParHistos->BoxRightX(
"bottom_right_box") + 0.005;
10134 Double_t y_low = fCnaParHistos->BoxTopY(
"bottom_right_box") + 0.005;
10135 Double_t y_up = fCnaParHistos->BoxBottomY(
"top_left_box_EB") - 0.005;
10137 Double_t x_margin = x_low;
10138 Double_t y_margin = y_low;
10140 Color_t fond_pad = fCnaParHistos->ColorDefinition(
"gris18");
10142 MainCanvas->Divide( 1, 1, x_margin, y_margin, fond_pad);
10146 main_subpad = gPad;
10147 main_subpad->SetPad(x_low, y_low, x_up, y_up);
10152 if(opt_plot == fSeveralPlot || opt_plot == fSameOnePlot)
10154 if(GetMemoFlag(HistoCode, opt_plot) ==
"Free")
10156 if( fPavComGeneralTitle != 0 ){fPavComGeneralTitle->Draw();}
10157 fPavComSeveralChanging->Draw();
10159 fPavComEvolRuns->Draw();
10161 if( !( HistoType ==
"Global" || HistoType ==
"Proj" ||
10162 HistoCode ==
"H_Ped_Date" || HistoCode ==
"H_TNo_Date" || HistoCode ==
"H_MCs_Date" ||
10163 HistoCode ==
"H_LFN_Date" || HistoCode ==
"H_HFN_Date" || HistoCode ==
"H_SCs_Date") )
10165 fPavComStin->Draw();
10166 fPavComXtal->Draw();
10169 if( !( HistoCode ==
"H_Ped_Date" || HistoCode ==
"H_TNo_Date" || HistoCode ==
"H_MCs_Date" ||
10170 HistoCode ==
"H_LFN_Date" || HistoCode ==
"H_HFN_Date" || HistoCode ==
"H_SCs_Date" ) )
10172 fPavComXtal->Draw();
10176 SetParametersPavTxt(HistoCode, opt_plot);
10180 main_pavtxt = ActivePavTxt(HistoCode.Data(), opt_plot.Data());
10183 main_pavtxt->SetTextAlign(fTextPaveAlign);
10184 main_pavtxt->SetTextFont(fTextPaveFont);
10185 main_pavtxt->SetTextSize(fTextPaveSize);
10186 main_pavtxt->SetBorderSize(fTextBorderSize);
10188 char* f_in =
new char[fgMaxCar]; fCnew++;
10190 TString DecalStexName =
"";
10191 if( fFlagSubDet ==
"EB" ){DecalStexName =
" ";}
10192 TString DecalStinName =
"";
10193 if( fFlagSubDet ==
"EE" ){DecalStinName =
" ";}
10195 TString sStexOrStasName =
"";
10196 if( fFapStexNumber == 0 ){sStexOrStasName =
" ";}
10197 if( fFapStexNumber != 0 ){sStexOrStasName = fFapStexName;}
10201 if(opt_plot == fSeveralPlot)
10203 sprintf(f_in,
"Analysis Samp Evts range Nb Evts %s%s %s%s %s %s",
10204 DecalStexName.Data(), sStexOrStasName.Data(),
10205 DecalStinName.Data(), fFapStinName.Data(), fFapXtalName.Data(), fFapEchaName.Data());
10207 if(opt_plot == fSameOnePlot)
10209 sprintf(f_in,
"Analysis Samp Evts range Nb Evts %s%s %s%s %s %s",
10210 DecalStexName.Data(), sStexOrStasName.Data(),
10211 DecalStinName.Data(), fFapStinName.Data(), fFapXtalName.Data(), fFapEchaName.Data());
10215 TText* ttit = main_pavtxt->AddText(f_in);
10216 ttit->SetTextColor(fCnaParHistos->ColorDefinition(
"noir"));
10218 if(opt_plot == fSeveralPlot)
10220 sprintf(f_in,
"%-10s 1-%2d %5d-%5d %7d %5s%6d%7d%6d",
10221 fFapAnaType.Data(), fFapNbOfSamples,
10222 fFapFirstReqEvtNumber, fFapLastReqEvtNumber, fFapReqNbOfEvts, sFapStexNumber.Data(),
10223 Stex_StinCons, n1StexCrys, i0StinEcha);
10225 if(opt_plot == fSameOnePlot)
10227 sprintf(f_in,
"%-10s 1-%2d %5d-%5d %7d %5s%6d%7d%6d %-25s",
10228 fFapAnaType.Data(), fFapNbOfSamples,
10229 fFapFirstReqEvtNumber, fFapLastReqEvtNumber, fFapReqNbOfEvts, sFapStexNumber.Data(),
10230 Stex_StinCons, n1StexCrys, i0StinEcha, QuantityName.Data());
10233 TText*
tt = main_pavtxt->AddText(f_in);
10234 tt->SetTextColor(GetViewHistoColor(HistoCode, opt_plot));
10236 delete [] f_in; f_in = 0; fCdelete++;
10239 main_pavtxt->Draw();
10247 SetParametersCanvas(HistoCode, opt_plot);
10254 if(GetMemoFlag(HistoCode, opt_plot) ==
"Busy")
10258 main_pavtxt = ActivePavTxt(HistoCode.Data(), opt_plot.Data());
10261 main_subpad = ActivePad(HistoCode.Data(), opt_plot.Data());
10264 MainCanvas = GetCurrentCanvas(HistoCode.Data(), opt_plot.Data());
10274 if(main_subpad != 0)
10276 if(opt_plot == fSeveralPlot || opt_plot == fSameOnePlot)
10278 if(xMemoPlotSame != 0)
10280 main_pavtxt->SetTextAlign(fTextPaveAlign);
10281 main_pavtxt->SetTextFont(fTextPaveFont);
10282 main_pavtxt->SetTextSize(fTextPaveSize);
10283 main_pavtxt->SetBorderSize(fTextBorderSize);
10285 char* f_in =
new char[fgMaxCar]; fCnew++;
10287 if(opt_plot == fSeveralPlot )
10288 {sprintf(f_in,
"%-10s 1-%2d %5d-%5d %7d %5s%6d%7d%6d",
10289 fFapAnaType.Data(), fFapNbOfSamples, fFapFirstReqEvtNumber, fFapLastReqEvtNumber, fFapReqNbOfEvts,
10290 sFapStexNumber.Data(), Stex_StinCons, n1StexCrys, i0StinEcha);}
10291 if(opt_plot == fSameOnePlot )
10292 {sprintf(f_in,
"%-10s 1-%2d %5d-%5d %7d %5s%6d%7d%6d %-25s",
10293 fFapAnaType.Data(), fFapNbOfSamples, fFapFirstReqEvtNumber, fFapLastReqEvtNumber, fFapReqNbOfEvts,
10294 sFapStexNumber.Data(), Stex_StinCons, n1StexCrys, i0StinEcha, QuantityName.Data());}
10296 TText *
tt = main_pavtxt->AddText(f_in);
10297 tt->SetTextColor(GetViewHistoColor(HistoCode, opt_plot));
10298 MainCanvas->cd(); gStyle->SetOptDate(0);
10299 main_pavtxt->Draw();
10301 delete [] f_in; f_in = 0; fCdelete++;
10304 Double_t x_low = fCnaParHistos->BoxLeftX(
"bottom_left_box") - 0.005;
10305 Double_t x_up = fCnaParHistos->BoxRightX(
"bottom_right_box") + 0.005;
10306 Double_t y_low = fCnaParHistos->BoxTopY(
"several_evol_box") + 0.005;
10307 Double_t y_up = fCnaParHistos->BoxBottomY(
"general_comment") - 0.005;
10308 if( opt_plot == fSameOnePlot ){y_up = fCnaParHistos->BoxBottomY(
"top_left_box_EB") - 0.005;}
10309 main_subpad->SetPad(x_low, y_low, x_up, y_up);
10313 SetViewGraphColors(g_graph0, HistoCode, opt_plot);
10316 TString axis_x_var_name = SetHistoXAxisTitle(HistoCode);
10317 TString axis_y_var_name = SetHistoYAxisTitle(HistoCode);
10318 g_graph0->GetXaxis()->SetTitle(axis_x_var_name);
10319 g_graph0->GetYaxis()->SetTitle(axis_y_var_name);
10322 g_graph0->GetXaxis()->SetTimeDisplay(1);
10323 g_graph0->GetXaxis()->SetTimeFormat(
"%d %b-%Hh");
10325 g_graph0->GetXaxis()->SetTimeOffset(xinf);
10327 Int_t nb_displayed = fCnaParHistos->GetNbOfRunsDisplayed();
10333 if(opt_plot == fOnlyOnePlot)
10335 fXinf = (Double_t)xinf;
10336 fXsup = (Double_t)xsup;
10337 fYinf = (Double_t)GetYminValueFromMemo(HistoCode);
10338 fYsup = (Double_t)GetYmaxValueFromMemo(HistoCode);
10340 gPad->RangeAxis(fXinf, fYinf, fXsup, fYsup);
10343 if(opt_scale_y == fOptScaleLogy){gPad->SetLogy(logy); g_graph0->Draw(
"ALP");}
10345 if(opt_scale_y == fOptScaleLiny)
10347 gPad->SetLogy(liny);
10348 g_graph0->Draw(
"ALP");
10349 Int_t nb_pts = g_graph0->GetN();
10350 Double_t* coord_x = g_graph0->GetX();
10351 Double_t* coord_y = g_graph0->GetY();
10353 char* f_in =
new char[fgMaxCar]; fCnew++;
10356 Double_t interv_displayed = (coord_x[nb_pts-1] - coord_x[0])/(Double_t)nb_displayed;
10357 Double_t last_drawn_coordx = coord_x[0] - 1.5*interv_displayed;
10359 for(Int_t i_run=0; i_run<nb_pts; i_run++)
10361 if ( (coord_x[i_run] - last_drawn_coordx) > interv_displayed )
10363 Double_t joinYinf = fYinf;
10364 Double_t joinYsup = fYsup;
10365 if( joinYsup <= joinYinf )
10368 GetYminFromGraphFrameAndMarginValue(g_graph0, fCnaParHistos->GetMarginAutoMinMax());
10370 GetYmaxFromGraphFrameAndMarginValue(g_graph0, fCnaParHistos->GetMarginAutoMinMax());
10371 joinYsup = joinYsup + (joinYsup-joinYinf)/20.;
10374 sprintf( f_in,
"R%d", fT1DRunNumber[i_run]);
10375 TText *text_run_num =
new TText(coord_x[i_run], joinYsup, f_in); fCnewRoot++;
10376 text_run_num->SetTextAngle((Double_t)45.);
10377 text_run_num->SetTextSize((Double_t)0.035);
10378 text_run_num->Draw(
"SAME");
10382 jointlign =
new TLine(coord_x[i_run], joinYsup, coord_x[i_run], coord_y[i_run]); fCnewRoot++;
10383 jointlign->SetLineWidth(1);
10384 jointlign->SetLineStyle(2);
10385 jointlign->Draw(
"SAME");
10388 last_drawn_coordx = coord_x[i_run];
10392 delete [] f_in; f_in = 0; fCdelete++;
10395 if(opt_scale_y == fOptScaleLogy)
10397 gPad->SetLogy(logy);
10398 g_graph0->Draw(
"ALP");
10403 if(opt_plot == fSeveralPlot || opt_plot == fSameOnePlot)
10405 if(xMemoPlotSame == 0)
10407 if(opt_scale_y == fOptScaleLiny){gPad->SetLogy(liny);}
10408 if(opt_scale_y == fOptScaleLogy){gPad->SetLogy(logy);
10410 g_graph0->Draw(
"ALP");
10412 fXinf = (Double_t)xinf;
10413 fXsup = (Double_t)xsup;
10414 fYinf = (Double_t)GetYminValueFromMemo(HistoCode);
10415 fYsup = (Double_t)GetYmaxValueFromMemo(HistoCode);
10417 gPad->RangeAxis(fXinf, fYinf, fXsup, fYsup);
10420 if(xMemoPlotSame != 0)
10422 if(opt_scale_y == fOptScaleLiny){gPad->SetLogy(liny);}
10423 if(opt_scale_y == fOptScaleLogy){gPad->SetLogy(logy);}
10425 g_graph0->Draw(
"LP");
10432 cout <<
"*TEcnaHistos::HistimePlot(...)> Canvas not found. Previously closed in option SAME."
10433 << fTTBELL << endl;
10435 ReInitCanvas(HistoCode, opt_plot);
10445 const Int_t& xMemoPlotSame,
const Int_t& min_value,
const Int_t& max_value,
10446 const Int_t& xFlagAutoYsupMargin,
const Int_t& HisSize)
10450 if( opt_plot == fOnlyOnePlot ||
10451 ( (opt_plot == fSeveralPlot) && (xMemoPlotSame == 0) ) ||
10452 ( (opt_plot == fSameOnePlot) && (xMemoPlotSame == 0) ) )
10454 Double_t Maxih = (Double_t)h_his0->GetMaximum();
10455 Double_t Minih = (Double_t)h_his0->GetMinimum();
10457 if(xFlagAutoYsupMargin == 1)
10459 if( Minih >= Maxih ){Minih = (Double_t)0.; Maxih += Maxih;}
10460 Double_t MaxMarginFactor = (Double_t)0.05;
10461 Maxih += (Maxih-Minih)*MaxMarginFactor;
10464 Double_t v_min = min_value;
10465 Double_t v_max = max_value+(Double_t)1.;
10466 Double_t v_min_p = v_min+(Double_t)1.;
10467 Double_t v_max_p = v_max+(Double_t)1.;
10469 Int_t ndiv = 50207;
10470 TString opt =
"B-";
10471 Double_t Xbegin = 0.;
10472 Double_t Xend = (Double_t)HisSize;
10473 Double_t
ticks = 0.05;
10475 if( fFapStexNumber == 0 && fFlagSubDet ==
"EE" )
10481 Xbegin = (Double_t)HisSize;
10485 if( fFapStexNumber > 0 && fFlagSubDet ==
"EE" )
10488 if( fFapStexNumber == 1 )
10491 v_max = max_value+0.5;
10492 Xbegin = (Double_t)HisSize;
10496 if( fFapStexNumber == 2 )
10498 v_min = min_value+0.5;
10499 v_max = max_value+1.;
10500 Xbegin = (Double_t)HisSize;
10504 if( fFapStexNumber == 3 )
10506 v_min = min_value+0.5;
10507 v_max = max_value+1.;
10509 Xend = (Double_t)HisSize;
10512 if( fFapStexNumber == 4 )
10515 v_max = max_value+0.5;
10517 Xend = (Double_t)HisSize;
10525 TGaxis* top_axis_x = 0;
10527 top_axis_x =
new TGaxis(Xbegin, Maxih, Xend, Maxih,
10528 v_min, v_max, ndiv, opt, 0.); fCnewRoot++;
10530 top_axis_x->SetTickSize(ticks);
10531 top_axis_x->SetTitleOffset((Float_t)(1.2));
10532 top_axis_x->SetLabelOffset((Float_t)(0.005));
10534 TString x_var_name =
"?";
10535 Int_t MaxCar = fgMaxCar;
10536 x_var_name.Resize(MaxCar);
10537 if( fFapStexNumber > 0 )
10539 if( fFlagSubDet ==
"EB"){x_var_name =
"Tower number";}
10540 if( fFlagSubDet ==
"EE")
10546 if( fFapStexNumber == 0 )
10548 if( fFlagSubDet ==
"EB"){x_var_name =
"SM number";}
10549 if( fFlagSubDet ==
"EE"){x_var_name =
" ";}
10551 top_axis_x->SetTitle(x_var_name);
10552 top_axis_x->Draw(
"SAME");
10554 if( fFlagSubDet ==
"EE" )
10558 if(fFapStexNumber == 1 || fFapStexNumber == 2 ){opt =
"-MS";}
10559 if(fFapStexNumber == 3 || fFapStexNumber == 4 ){opt =
"MS";}
10561 if( fFapStexNumber > 0 ){ndiv = 5;}
10562 TGaxis* top_axis_x_bis = 0;
10563 top_axis_x_bis =
new TGaxis(Xbegin, Maxih, Xend, Maxih,
10564 v_min_p, v_max_p, ndiv, opt, 0.); fCnewRoot++;
10565 top_axis_x_bis->SetTickSize(0.);
10566 Float_t lab_siz_x = top_axis_x->GetLabelSize();
10567 top_axis_x_bis->SetLabelSize(lab_siz_x);
10568 top_axis_x_bis->SetLabelOffset(-0.1);
10570 top_axis_x_bis->SetLabelOffset((Float_t)(9999.));
10575 top_axis_x_bis->Draw(
"SAME");
10582 const Int_t& StexStin_A,
const Int_t& StexStin_B,
10583 const Int_t& i0StinEcha)
10587 fPavComGeneralTitle = fCnaParHistos->SetPaveGeneralComment(fFlagGeneralTitle);
10589 fPavComStex = fCnaParHistos->SetPaveStex(
"standard", fFapStexNumber);
10591 if(BetweenWhat == fLFBetweenChannels || BetweenWhat == fHFBetweenChannels)
10592 {fPavComStin = fCnaParHistos->SetPaveStinsXY(StexStin_A, StexStin_B);}
10593 if(BetweenWhat == fBetweenSamples)
10595 fPavComStin = fCnaParHistos->SetPaveStin(StexStin_A, fFapStexNumber);
10597 if( fFlagSubDet ==
"EB" )
10598 {Int_t n1StexCrys = fEcalNumbering->Get1StexCrysFrom1StexStinAnd0StinEcha(StexStin_A, i0StinEcha, fFapStexNumber);
10599 fPavComXtal = fCnaParHistos->SetPaveCrystal(n1StexCrys, StexStin_A, i0StinEcha);}
10600 if( fFlagSubDet ==
"EE" )
10601 {TString Dir = fEcalNumbering->GetDeeDirViewedFromIP(fFapStexNumber);
10602 Int_t n1StexCrys = fEcalNumbering->Get1StexCrysFrom1StexStinAnd0StinEcha(StexStin_A, i0StinEcha, fFapStexNumber);
10603 fPavComXtal = fCnaParHistos->SetPaveCrystal(n1StexCrys, StexStin_A, i0StinEcha);}
10606 fPavComAnaRun = fCnaParHistos->SetPaveAnalysisRun(fFapAnaType, fFapNbOfSamples, fFapRunNumber, fRunType,
10607 fFapFirstReqEvtNumber, fFapLastReqEvtNumber,
"OneCol");
10608 fPavComNbOfEvts = fCnaParHistos->SetPaveNbOfEvts(fFapNbOfEvts, fStartDate, fStopDate,
"OneCol");
10615 fPavComGeneralTitle = fCnaParHistos->SetPaveGeneralComment(fFlagGeneralTitle);
10616 fPavComStex = fCnaParHistos->SetPaveStex(
"standard", fFapStexNumber);
10618 fPavComStin = fCnaParHistos->SetPaveStin(StexStin_A, fFapStexNumber);
10620 fPavComAnaRun = fCnaParHistos->SetPaveAnalysisRun(fFapAnaType, fFapNbOfSamples, fFapRunNumber, fRunType,
10621 fFapFirstReqEvtNumber, fFapLastReqEvtNumber,
"OneCol");
10622 fPavComNbOfEvts = fCnaParHistos->SetPaveNbOfEvts(fFapNbOfEvts, fStartDate, fStopDate,
"OneCol");
10629 fPavComStex = fCnaParHistos->SetPaveStex(
"standard", StexNumber);
10630 fPavComStin = fCnaParHistos->SetPaveStin(StexStin_A, StexNumber);
10632 if( fFlagSubDet ==
"EB")
10633 {fPavComLVRB = fCnaParHistos->SetPaveLVRB(StexNumber, StexStin_A);}
10634 if( fFlagSubDet ==
"EE")
10635 {fPavComCxyz = fCnaParHistos->SetPaveCxyz(StexNumber);}
10640 if( chopt ==
"Numbering" )
10642 fCnaParHistos->SetViewHistoStyle(
"Stex2DEENb");
10643 gStyle->SetTextColor(fCnaParHistos->ColorDefinition(
"noir"));
10644 fPavComStex = fCnaParHistos->SetPaveStex(
"standStex", StexNumber);
10645 if( fFlagSubDet ==
"EE" ){fPavComCxyz = fCnaParHistos->SetPaveCxyz(StexNumber);}
10649 SetAllPavesViewStex(StexNumber);
10656 gStyle->SetTextColor(fCnaParHistos->ColorDefinition(
"noir"));
10657 fPavComGeneralTitle = fCnaParHistos->SetPaveGeneralComment(fFlagGeneralTitle);
10658 fPavComStex = fCnaParHistos->SetPaveStex(
"standStex", StexNumber);
10660 TString opt_pave_nbcol =
"OneCol";
10661 if( fFapStexName ==
"SM"){opt_pave_nbcol =
"TwoCol";}
10663 fPavComAnaRun = fCnaParHistos->SetPaveAnalysisRun(fFapAnaType, fFapNbOfSamples, fFapRunNumber, fRunType,
10664 fFapFirstReqEvtNumber, fFapLastReqEvtNumber,opt_pave_nbcol);
10665 fPavComNbOfEvts = fCnaParHistos->SetPaveNbOfEvts(fFapNbOfEvts, fStartDate, fStopDate, opt_pave_nbcol);
10671 gStyle->SetTextColor(fCnaParHistos->ColorDefinition(
"noir"));
10672 fPavComGeneralTitle = fCnaParHistos->SetPaveGeneralComment(fFlagGeneralTitle);
10673 fPavComStas = fCnaParHistos->SetPaveStas();
10675 fPavComAnaRun = fCnaParHistos->SetPaveAnalysisRun(fFapAnaType, fFapNbOfSamples, fFapRunNumber, fRunType,
10676 fFapFirstReqEvtNumber, fFapLastReqEvtNumber,
"OneCol");
10677 fPavComNbOfEvts = fCnaParHistos->SetPaveNbOfEvts(fFapNbOfEvts, fStartDate, fStopDate,
"OneCol");
10682 const Int_t& i0StinEcha,
const Int_t& i0Sample,
10683 const TString& opt_plot)
10685 Int_t arg_AlreadyRead = 0;
10686 SetAllPavesViewHisto(HistoCode, StexStin_A, i0StinEcha, i0Sample, opt_plot, arg_AlreadyRead);
10690 const Int_t& i0StinEcha,
const Int_t& i0Sample,
10691 const TString& opt_plot,
const Int_t& arg_AlreadyRead)
10695 gStyle->SetTextColor(fCnaParHistos->ColorDefinition(
"noir"));
10697 TString
HistoType = fCnaParHistos->GetHistoType(HistoCode.Data());
10699 fPavComGeneralTitle = fCnaParHistos->SetPaveGeneralComment(fFlagGeneralTitle);
10701 if(opt_plot == fOnlyOnePlot)
10703 if( !( HistoCode ==
"D_NOE_ChNb" || HistoCode ==
"D_NOE_ChDs" ||
10704 HistoCode ==
"D_Ped_ChNb" || HistoCode ==
"D_Ped_ChDs" ||
10705 HistoCode ==
"D_LFN_ChNb" || HistoCode ==
"D_LFN_ChDs" ||
10706 HistoCode ==
"D_TNo_ChNb" || HistoCode ==
"D_TNo_ChDs" ||
10707 HistoCode ==
"D_HFN_ChNb" || HistoCode ==
"D_HFN_ChDs" ||
10708 HistoCode ==
"D_MCs_ChNb" || HistoCode ==
"D_MCs_ChDs" ||
10709 HistoCode ==
"D_SCs_ChNb" || HistoCode ==
"D_SCs_ChDs" ) )
10711 fPavComStex = fCnaParHistos->SetPaveStex(
"standard", fFapStexNumber);
10712 fPavComStin = fCnaParHistos->SetPaveStin(StexStin_A, fFapStexNumber);
10716 if( HistoCode ==
"D_NOE_ChNb" ||
10717 HistoCode ==
"D_Ped_ChNb" || HistoCode ==
"D_TNo_ChNb" ||
10718 HistoCode ==
"D_MCs_ChNb" || HistoCode ==
"D_LFN_ChNb" ||
10719 HistoCode ==
"D_HFN_ChNb" || HistoCode ==
"D_SCs_ChNb" )
10720 {fPavComStex = fCnaParHistos->SetPaveStex(
"standGH", fFapStexNumber);}
10722 {fPavComStex = fCnaParHistos->SetPaveStex(
"standard", fFapStexNumber);}
10726 if( HistoCode ==
"H_Ped_Date" || HistoCode ==
"H_TNo_Date" || HistoCode ==
"H_MCs_Date" ||
10727 HistoCode ==
"H_LFN_Date" || HistoCode ==
"H_HFN_Date" || HistoCode ==
"H_SCs_Date" ||
10728 HistoCode ==
"H_Ped_RuDs" || HistoCode ==
"H_TNo_RuDs" || HistoCode ==
"H_MCs_RuDs" ||
10729 HistoCode ==
"H_LFN_RuDs" || HistoCode ==
"H_HFN_RuDs" || HistoCode ==
"H_SCs_RuDs" )
10732 fEcalNumbering->Get1StexCrysFrom1StexStinAnd0StinEcha(StexStin_A, i0StinEcha, fFapStexNumber);
10733 fPavComXtal = fCnaParHistos->SetPaveCrystal(n1StexCrys, StexStin_A, i0StinEcha);
10736 if( HistoCode ==
"D_MSp_SpNb" || HistoCode ==
"D_SSp_SpNb" ||
10737 HistoCode ==
"D_MSp_SpDs" || HistoCode ==
"D_SSp_SpDs" )
10740 fEcalNumbering->Get1StexCrysFrom1StexStinAnd0StinEcha(StexStin_A, i0StinEcha, fFapStexNumber);
10742 fCnaParHistos->SetPaveCrystal(n1StexCrys, StexStin_A, i0StinEcha, arg_AlreadyRead, fPlotAllXtalsInStin);
10745 if( HistoCode ==
"D_Adc_EvDs" || HistoCode ==
"D_Adc_EvNb")
10748 fEcalNumbering->Get1StexCrysFrom1StexStinAnd0StinEcha(StexStin_A, i0StinEcha, fFapStexNumber);
10749 fPavComXtal = fCnaParHistos->SetPaveCrystalSample(n1StexCrys, StexStin_A, i0StinEcha, i0Sample);
10752 if( HistoCode ==
"H_Ped_Date" || HistoCode ==
"H_TNo_Date" || HistoCode ==
"H_MCs_Date" ||
10753 HistoCode ==
"H_LFN_Date" || HistoCode ==
"H_HFN_Date" || HistoCode ==
"H_SCs_Date" ||
10754 HistoCode ==
"H_Ped_RuDs" || HistoCode ==
"H_TNo_RuDs" || HistoCode ==
"H_MCs_RuDs" ||
10755 HistoCode ==
"H_LFN_RuDs" || HistoCode ==
"H_HFN_RuDs" || HistoCode ==
"H_SCs_RuDs" )
10757 fPavComEvolNbOfEvtsAna =
10758 fCnaParHistos->SetPaveEvolNbOfEvtsAna(fFapAnaType, fFapNbOfSamples,
10759 fFapFirstReqEvtNumber, fFapLastReqEvtNumber, HistoType);
10760 fPavComEvolRuns = fCnaParHistos->SetPaveEvolRuns(fStartEvolRun, fStartEvolDate,
10761 fStopEvolRun, fStopEvolDate, opt_plot, HistoType);
10765 fPavComAnaRun = fCnaParHistos->SetPaveAnalysisRun(fFapAnaType, fFapNbOfSamples, fFapRunNumber, fRunType,
10766 fFapFirstReqEvtNumber, fFapLastReqEvtNumber,
"OneCol");
10767 fPavComNbOfEvts = fCnaParHistos->SetPaveNbOfEvts(fFapNbOfEvts, fStartDate, fStopDate,
"OneCol");
10773 if( opt_plot == fSeveralPlot && GetMemoFlag(HistoCode, opt_plot) ==
"Free" )
10775 if( HistoCode ==
"H_Ped_Date" || HistoCode ==
"H_TNo_Date" || HistoCode ==
"H_MCs_Date" ||
10776 HistoCode ==
"H_LFN_Date" || HistoCode ==
"H_HFN_Date" || HistoCode ==
"H_SCs_Date" ||
10777 HistoCode ==
"H_Ped_RuDs" || HistoCode ==
"H_TNo_RuDs" || HistoCode ==
"H_MCs_RuDs" ||
10778 HistoCode ==
"H_LFN_RuDs" || HistoCode ==
"H_HFN_RuDs" || HistoCode ==
"H_SCs_RuDs" )
10780 fPavComSeveralChanging = fCnaParHistos->SetOptionSamePaveBorder(
"sevevol", HistoType);
10781 fPavComEvolRuns = fCnaParHistos->SetPaveEvolRuns(fStartEvolRun, fStartEvolDate,
10782 fStopEvolRun, fStopEvolDate, opt_plot, HistoType);
10786 fPavComSeveralChanging = fCnaParHistos->SetOptionSamePaveBorder(
"several", HistoType);
10790 if( opt_plot == fSameOnePlot && GetMemoFlag(HistoCode, opt_plot) ==
"Free" )
10792 fPavComSeveralChanging = fCnaParHistos->SetOptionSamePaveBorder(
"several", HistoType);
10793 fPavComEvolRuns = fCnaParHistos->SetPaveEvolRuns(fStartEvolRun, fStartEvolDate,
10794 fStopEvolRun, fStopEvolDate, opt_plot, HistoType);
10801 const Int_t& opt_scale_x,
const Int_t& opt_scale_y,
10802 const TString& opt_plot,
const Int_t& arg_AlreadyRead,
10803 const Int_t& StexStin_A,
const Int_t& i0StinEcha,
const Int_t& i0Sample)
10808 TString canvas_name;
10809 Int_t MaxCar = fgMaxCar;
10810 canvas_name.Resize(MaxCar);
10813 char* f_in =
new char[fgMaxCar]; fCnew++;
10816 TString name_opt_plot;
10818 name_opt_plot.Resize(MaxCar);
10819 name_opt_plot =
"?";
10825 if( opt_plot == fOnlyOnePlot ){sprintf(f_in,
"P%d", arg_AlreadyRead); name_opt_plot = f_in;}
10827 if(opt_plot == fSeveralPlot)
10829 name_opt_plot =
"SAME_N";
10831 Int_t name_same = -1;
10833 if(HistoCode ==
"D_NOE_ChNb"){name_same = fCanvSameD_NOE_ChNb;}
10834 if(HistoCode ==
"D_NOE_ChDs"){name_same = fCanvSameD_NOE_ChDs;}
10835 if(HistoCode ==
"D_Ped_ChNb"){name_same = fCanvSameD_Ped_ChNb;}
10836 if(HistoCode ==
"D_Ped_ChDs"){name_same = fCanvSameD_Ped_ChDs;}
10837 if(HistoCode ==
"D_TNo_ChNb"){name_same = fCanvSameD_TNo_ChNb;}
10838 if(HistoCode ==
"D_TNo_ChDs"){name_same = fCanvSameD_TNo_ChDs;}
10839 if(HistoCode ==
"D_MCs_ChNb"){name_same = fCanvSameD_MCs_ChNb;}
10840 if(HistoCode ==
"D_MCs_ChDs"){name_same = fCanvSameD_MCs_ChDs;}
10841 if(HistoCode ==
"D_LFN_ChNb"){name_same = fCanvSameD_LFN_ChNb;}
10842 if(HistoCode ==
"D_LFN_ChDs"){name_same = fCanvSameD_LFN_ChDs;}
10843 if(HistoCode ==
"D_HFN_ChNb"){name_same = fCanvSameD_HFN_ChNb;}
10844 if(HistoCode ==
"D_HFN_ChDs"){name_same = fCanvSameD_HFN_ChDs;}
10845 if(HistoCode ==
"D_SCs_ChNb"){name_same = fCanvSameD_SCs_ChNb;}
10846 if(HistoCode ==
"D_SCs_ChDs"){name_same = fCanvSameD_SCs_ChDs;}
10847 if(HistoCode ==
"D_MSp_SpNb"){name_same = fCanvSameD_MSp_SpNb;}
10848 if(HistoCode ==
"D_MSp_SpDs"){name_same = fCanvSameD_MSp_SpDs;}
10849 if(HistoCode ==
"D_SSp_SpNb"){name_same = fCanvSameD_SSp_SpNb;}
10850 if(HistoCode ==
"D_SSp_SpDs"){name_same = fCanvSameD_SSp_SpDs;}
10851 if(HistoCode ==
"D_Adc_EvDs"){name_same = fCanvSameD_Adc_EvDs;}
10852 if(HistoCode ==
"D_Adc_EvNb"){name_same = fCanvSameD_Adc_EvNb;}
10853 if(HistoCode ==
"H_Ped_Date"){name_same = fCanvSameH_Ped_Date;}
10854 if(HistoCode ==
"H_TNo_Date"){name_same = fCanvSameH_TNo_Date;}
10855 if(HistoCode ==
"H_MCs_Date"){name_same = fCanvSameH_MCs_Date;}
10856 if(HistoCode ==
"H_LFN_Date"){name_same = fCanvSameH_LFN_Date;}
10857 if(HistoCode ==
"H_HFN_Date"){name_same = fCanvSameH_HFN_Date;}
10858 if(HistoCode ==
"H_SCs_Date"){name_same = fCanvSameH_SCs_Date;}
10859 if(HistoCode ==
"H_Ped_RuDs"){name_same = fCanvSameH_Ped_RuDs;}
10860 if(HistoCode ==
"H_TNo_RuDs"){name_same = fCanvSameH_TNo_RuDs;}
10861 if(HistoCode ==
"H_MCs_RuDs"){name_same = fCanvSameH_MCs_RuDs;}
10862 if(HistoCode ==
"H_LFN_RuDs"){name_same = fCanvSameH_LFN_RuDs;}
10863 if(HistoCode ==
"H_HFN_RuDs"){name_same = fCanvSameH_HFN_RuDs;}
10864 if(HistoCode ==
"H_SCs_RuDs"){name_same = fCanvSameH_SCs_RuDs;}
10866 sprintf(f_in,
"%d", name_same);
10867 TString s_name_same = f_in;
10868 const Text_t *t_name_same = (
const Text_t *)s_name_same.Data();
10869 name_opt_plot.Append(t_name_same);
10871 if(opt_plot == fSameOnePlot)
10873 name_opt_plot =
"SAME_Plus_N";
10875 Int_t name_same = fCanvSameH1SamePlus;
10876 sprintf(f_in,
"%d", name_same);
10877 TString s_name_same = f_in;
10878 const Text_t *t_name_same = (
const Text_t *)s_name_same.Data();
10879 name_opt_plot.Append(t_name_same);
10885 name_visu.Resize(MaxCar);
10890 name_line.Resize(MaxCar);
10891 name_line =
"Line_";
10892 TString
HistoType = fCnaParHistos->GetHistoType(HistoCode.Data());
10893 if( HistoType ==
"Global" && (opt_plot == fSeveralPlot || opt_plot == fSameOnePlot) ){name_line =
"Polm_";}
10898 const Text_t *t_line = (
const Text_t *)name_line.Data();
10899 name_visu.Append(t_line);
10901 TString name_scale_x;
10903 name_scale_x.Resize(MaxCar);
10904 name_scale_x =
"?";
10905 if(opt_scale_x == fOptScaleLinx){name_scale_x =
"LinX_";}
10906 if(opt_scale_x == fOptScaleLogx){name_scale_x =
"LogX_";}
10907 const Text_t *t_scale_x = (
const Text_t *)name_scale_x.Data();
10908 name_visu.Append(t_scale_x);
10910 TString name_scale_y;
10912 name_scale_y.Resize(MaxCar);
10913 name_scale_y =
"?";
10914 if(opt_scale_y == fOptScaleLiny){name_scale_y =
"LinY";}
10915 if(opt_scale_y == fOptScaleLogy){name_scale_y =
"LogY";}
10916 const Text_t *t_scale_y = (
const Text_t *)name_scale_y.Data();
10917 name_visu.Append(t_scale_y);
10920 TString name_quantity;
10922 name_quantity.Resize(MaxCar);
10923 name_quantity =
"?";
10925 if(HistoCode ==
"D_NOE_ChNb"){name_quantity =
"Nb_of_evts_as_func_of_Xtal";}
10926 if(HistoCode ==
"D_NOE_ChDs"){name_quantity =
"Nb_of_evts_Xtal_distrib";}
10927 if(HistoCode ==
"D_Ped_ChNb"){name_quantity =
"Pedestals_as_func_of_Xtal";}
10928 if(HistoCode ==
"D_Ped_ChDs"){name_quantity =
"Pedestals_Xtal_distrib";}
10929 if(HistoCode ==
"D_TNo_ChNb"){name_quantity =
"Total_Noise_as_func_of_Xtal";}
10930 if(HistoCode ==
"D_TNo_ChDs"){name_quantity =
"Total_Noise_Xtal_distrib";}
10931 if(HistoCode ==
"D_MCs_ChNb"){name_quantity =
"Mean_Corss_as_func_of_Xtal";}
10932 if(HistoCode ==
"D_MCs_ChDs"){name_quantity =
"Mean_Corss_Xtal_distrib";}
10933 if(HistoCode ==
"D_LFN_ChNb"){name_quantity =
"Low_Fq_Noise_as_func_of_Xtal";}
10934 if(HistoCode ==
"D_LFN_ChDs"){name_quantity =
"Low_Fq_Noise_Xtal_distrib";}
10935 if(HistoCode ==
"D_HFN_ChNb"){name_quantity =
"High_Fq_Noise_as_func_of_Xtal";}
10936 if(HistoCode ==
"D_HFN_ChDs"){name_quantity =
"High_Fq_Noise_Xtal_distrib";}
10937 if(HistoCode ==
"D_SCs_ChNb"){name_quantity =
"Sigma_Corss_as_func_of_Xtal";}
10938 if(HistoCode ==
"D_SCs_ChDs"){name_quantity =
"Sigma_Corss_Xtal_distrib";}
10939 if(HistoCode ==
"D_MSp_SpNb"){name_quantity =
"ExpValue_of_samples";}
10940 if(HistoCode ==
"D_MSp_SpDs"){name_quantity =
"ExpValue_of_samples_distrib";}
10941 if(HistoCode ==
"D_SSp_SpNb"){name_quantity =
"Sigma_of_samples";}
10942 if(HistoCode ==
"D_SSp_SpDs"){name_quantity =
"Sigma_of_samples_distrib";}
10943 if(HistoCode ==
"D_Adc_EvDs"){name_quantity =
"hevt";}
10944 if(HistoCode ==
"D_Adc_EvNb"){name_quantity =
"ADC_as_func_of_Event";}
10945 if(HistoCode ==
"H_Ped_Date"){name_quantity =
"Pedestal_history";}
10946 if(HistoCode ==
"H_TNo_Date"){name_quantity =
"Total_Noise_history";}
10947 if(HistoCode ==
"H_MCs_Date"){name_quantity =
"Mean_Corss_history";}
10948 if(HistoCode ==
"H_LFN_Date"){name_quantity =
"Low_Fq_Noise_history";}
10949 if(HistoCode ==
"H_HFN_Date"){name_quantity =
"High_Fq_Noise_history";}
10950 if(HistoCode ==
"H_SCs_Date"){name_quantity =
"Sigma_Corss_history";}
10951 if(HistoCode ==
"H_Ped_RuDs"){name_quantity =
"Pedestal_run_distribution";}
10952 if(HistoCode ==
"H_TNo_RuDs"){name_quantity =
"Total_Noise_run_distribution";}
10953 if(HistoCode ==
"H_MCs_RuDs"){name_quantity =
"Mean_Corss_run_distribution";}
10954 if(HistoCode ==
"H_LFN_RuDs"){name_quantity =
"Low_Fq_Noise_run_distribution";}
10955 if(HistoCode ==
"H_HFN_RuDs"){name_quantity =
"High_Fq_Noise_run_distribution";}
10956 if(HistoCode ==
"H_SCs_RuDs"){name_quantity =
"Sigma_Corss_run_distribution";}
10958 Int_t num_crys = -1;
10959 if(HistoCode ==
"D_MSp_SpNb"){num_crys = i0StinEcha;}
10960 if(HistoCode ==
"D_MSp_SpDs"){num_crys = i0StinEcha;}
10961 if(HistoCode ==
"D_SSp_SpNb"){num_crys = i0StinEcha;}
10962 if(HistoCode ==
"D_SSp_SpDs"){num_crys = i0StinEcha;}
10963 if(HistoCode ==
"D_Adc_EvDs"){num_crys = i0StinEcha;}
10964 if(HistoCode ==
"D_Adc_EvNb"){num_crys = i0StinEcha;}
10965 if(HistoCode ==
"H_Ped_Date"){num_crys = i0StinEcha;}
10966 if(HistoCode ==
"H_TNo_Date"){num_crys = i0StinEcha;}
10967 if(HistoCode ==
"H_MCs_Date"){num_crys = i0StinEcha;}
10968 if(HistoCode ==
"H_LFN_Date"){num_crys = i0StinEcha;}
10969 if(HistoCode ==
"H_HFN_Date"){num_crys = i0StinEcha;}
10970 if(HistoCode ==
"H_SCs_Date"){num_crys = i0StinEcha;}
10971 if(HistoCode ==
"H_Ped_RuDs"){num_crys = i0StinEcha;}
10972 if(HistoCode ==
"H_TNo_RuDs"){num_crys = i0StinEcha;}
10973 if(HistoCode ==
"H_MCs_RuDs"){num_crys = i0StinEcha;}
10974 if(HistoCode ==
"H_LFN_RuDs"){num_crys = i0StinEcha;}
10975 if(HistoCode ==
"H_HFN_RuDs"){num_crys = i0StinEcha;}
10976 if(HistoCode ==
"H_SCs_RuDs"){num_crys = i0StinEcha;}
10978 Int_t num_samp = -1;
10979 if(HistoCode ==
"D_Adc_EvDs"){num_samp = i0Sample;}
10980 if(HistoCode ==
"D_Adc_EvNb"){num_samp = i0Sample;}
10984 if (HistoCode ==
"D_NOE_ChNb" || HistoCode ==
"D_NOE_ChDs" ||
10985 HistoCode ==
"D_Ped_ChNb" || HistoCode ==
"D_Ped_ChDs" ||
10986 HistoCode ==
"D_TNo_ChNb" || HistoCode ==
"D_TNo_ChDs" ||
10987 HistoCode ==
"D_MCs_ChNb" || HistoCode ==
"D_MCs_ChDs" ||
10988 HistoCode ==
"D_LFN_ChNb" || HistoCode ==
"D_LFN_ChDs" ||
10989 HistoCode ==
"D_HFN_ChNb" || HistoCode ==
"D_HFN_ChDs" ||
10990 HistoCode ==
"D_SCs_ChNb" || HistoCode ==
"D_SCs_ChDs" )
10992 sprintf(f_in,
"%s_%s_S1_%d_R%d_%d_%d_%d_%s%d_%s_%s",
10993 name_quantity.Data(), fFapAnaType.Data(),
10994 fFapNbOfSamples, fFapRunNumber, fFapFirstReqEvtNumber, fFapLastReqEvtNumber, fFapReqNbOfEvts,
10995 fFapStexName.Data(), fFapStexNumber,
10996 name_opt_plot.Data(), name_visu.Data());
10999 if (HistoCode ==
"D_MSp_SpNb" || HistoCode ==
"D_SSp_SpNb" ||
11000 HistoCode ==
"H_Ped_Date" || HistoCode ==
"H_TNo_Date" || HistoCode ==
"H_MCs_Date" ||
11001 HistoCode ==
"H_LFN_Date" || HistoCode ==
"H_HFN_Date" || HistoCode ==
"H_SCs_Date" ||
11002 HistoCode ==
"D_MSp_SpDs" || HistoCode ==
"D_SSp_SpDs" ||
11003 HistoCode ==
"H_Ped_RuDs" || HistoCode ==
"H_TNo_RuDs" || HistoCode ==
"H_MCs_RuDs" ||
11004 HistoCode ==
"H_LFN_RuDs" || HistoCode ==
"H_HFN_RuDs" || HistoCode ==
"H_SCs_RuDs")
11006 sprintf(f_in,
"%s_%s_S1_%d_R%d_%d_%d_%d_%s%d_%s%d_Xtal%d_%s_%s",
11007 name_quantity.Data(), fFapAnaType.Data(),
11008 fFapNbOfSamples, fFapRunNumber, fFapFirstReqEvtNumber, fFapLastReqEvtNumber, fFapReqNbOfEvts,
11009 fFapStexName.Data(), fFapStexNumber, fFapStinName.Data(), StexStin_A, num_crys,
11010 name_opt_plot.Data(), name_visu.Data());
11013 if (HistoCode ==
"D_Adc_EvNb" || HistoCode ==
"D_Adc_EvDs")
11015 sprintf(f_in,
"%s_%s_S1_%d_R%d_%d_%d_%d_%s%d_%s%d_Xtal%d_Samp%d_%s_%s",
11016 name_quantity.Data(), fFapAnaType.Data(),
11017 fFapNbOfSamples, fFapRunNumber, fFapFirstReqEvtNumber, fFapLastReqEvtNumber, fFapReqNbOfEvts,
11018 fFapStexName.Data(), fFapStexNumber, fFapStinName.Data(), StexStin_A, num_crys, num_samp,
11019 name_opt_plot.Data(), name_visu.Data());
11022 canvas_name = f_in;
11023 delete [] f_in; f_in = 0; fCdelete++;
11024 return canvas_name.Data();
11049 Int_t HisSize = fNbBinsProj;
11053 if( chqcode ==
"D_MSp_SpNb" || chqcode ==
"D_SSp_SpNb" ||
11054 chqcode ==
"D_MSp_SpDs" || chqcode ==
"D_SSp_SpDs" )
11056 if( opt_plot_read ==
"read" ){HisSize = fFapNbOfSamples;}
11057 if( opt_plot_read ==
"plot" ){HisSize = fEcal->MaxSampADC();}
11061 if(chqcode ==
"D_Adc_EvNb" || chqcode ==
"D_Adc_EvDs"){HisSize = fFapReqNbOfEvts;}
11064 if(chqcode ==
"D_NOE_ChNb" ||
11065 chqcode ==
"D_Ped_ChNb" || chqcode ==
"D_TNo_ChNb" || chqcode ==
"D_MCs_ChNb" ||
11066 chqcode ==
"D_LFN_ChNb" || chqcode ==
"D_HFN_ChNb" || chqcode ==
"D_SCs_ChNb" ||
11067 chqcode ==
"D_NOE_ChDs" ||
11068 chqcode ==
"D_Ped_ChDs" || chqcode ==
"D_TNo_ChDs" || chqcode ==
"D_MCs_ChDs" ||
11069 chqcode ==
"D_LFN_ChDs" || chqcode ==
"D_HFN_ChDs" || chqcode ==
"D_SCs_ChDs" )
11071 if( fFlagSubDet ==
"EB" )
11073 if( fFapStexNumber > 0 ){HisSize = fEcal->MaxCrysEcnaInStex();}
11074 if( fFapStexNumber == 0 ){HisSize = fEcal->MaxSMInEB()*fEcal->MaxTowInSM();}
11076 if( fFlagSubDet ==
"EE" )
11078 if( fFapStexNumber > 0 )
11080 if( opt_plot_read ==
"read" ){HisSize = fEcal->MaxCrysEcnaInDee();}
11081 if( opt_plot_read ==
"plot" ){HisSize = fEcal->MaxCrysForConsInDee();}
11083 if( fFapStexNumber == 0 )
11084 {HisSize = fEcal->MaxDeeInEE()*fEcal->MaxSCForConsInDee();}
11088 if( chqcode ==
"H_Ped_RuDs" || chqcode ==
"H_TNo_RuDs" || chqcode ==
"H_MCs_RuDs" ||
11089 chqcode ==
"H_LFN_RuDs" || chqcode ==
"H_HFN_RuDs" || chqcode ==
"H_SCs_RuDs" )
11091 HisSize = fNbBinsProj;
11098 TEcnaRead* aMyRootFile,
const TString& HistoCode,
11099 const Int_t& HisSizePlot,
const Int_t& HisSizeRead,
11100 const Int_t& StexStin_A,
const Int_t& i0StinEcha,
11101 const Int_t& i0Sample, Int_t& i_data_exist)
11105 TVectorD plot_histo(HisSizePlot);
for(Int_t
i=0;
i<HisSizePlot;
i++){plot_histo(
i)=(Double_t)0.;}
11107 fStatusDataExist = kFALSE;
11109 if( arg_AlreadyRead >= 1 )
11112 for(Int_t
i=0;
i<HisSizeRead;
i++){plot_histo(
i)=arg_read_histo(
i);}
11113 fStatusDataExist = kTRUE; i_data_exist++;
11116 if( arg_AlreadyRead == 0 )
11119 TVectorD read_histo(HisSizeRead);
for(Int_t
i=0;
i<HisSizeRead;
i++){read_histo(
i)=(Double_t)0.;}
11121 if( HistoCode ==
"D_MSp_SpNb" || HistoCode ==
"D_MSp_SpDs" ||
11122 HistoCode ==
"D_SSp_SpNb" || HistoCode ==
"D_SSp_SpDs" )
11125 if( HisSizeRead <= HisSizePlot )
11127 if (HistoCode ==
"D_MSp_SpNb" || HistoCode ==
"D_MSp_SpDs" )
11129 read_histo = aMyRootFile->
ReadSampleMeans(StexStin_A, i0StinEcha, HisSizeRead);
11130 if( aMyRootFile->
DataExist() == kTRUE ){fStatusDataExist = kTRUE; i_data_exist++;}
11131 for(Int_t
i=0;
i<HisSizeRead;
i++){plot_histo(
i)=read_histo(
i);}
11134 if (HistoCode ==
"D_SSp_SpNb" || HistoCode ==
"D_SSp_SpDs" )
11136 read_histo = aMyRootFile->
ReadSampleSigmas(StexStin_A, i0StinEcha, HisSizeRead);
11137 if( aMyRootFile->
DataExist() == kTRUE ){fStatusDataExist = kTRUE; i_data_exist++;}
11138 for(Int_t
i=0;
i<HisSizeRead;
i++){plot_histo(
i)=read_histo(
i);}
11143 cout <<
"!TEcnaHistos::GetHistoValues(...)> *** ERROR *** > HisSizeRead greater than HisSizePlot"
11144 <<
" for plot as a function of sample#. HisSizeRead = " << HisSizeRead
11145 <<
", HisSizePlot = " << HisSizePlot << fTTBELL << endl;
11150 if( !(HistoCode ==
"D_MSp_SpNb" || HistoCode ==
"D_SSp_SpNb" ||
11151 HistoCode ==
"D_MSp_SpDs" || HistoCode ==
"D_SSp_SpDs" ) )
11154 if( HisSizeRead == HisSizePlot )
11159 if( HistoCode ==
"D_Adc_EvNb" || HistoCode ==
"D_Adc_EvDs" )
11161 read_histo = aMyRootFile->
ReadSampleAdcValues(StexStin_A, i0StinEcha, i0Sample, HisSizeRead);
11162 if( aMyRootFile->
DataExist() == kTRUE ){fStatusDataExist = kTRUE; i_data_exist++;}
11165 if( HistoCode ==
"D_NOE_ChNb" || HistoCode ==
"D_NOE_ChDs" )
11168 if( aMyRootFile->
DataExist() == kTRUE ){fStatusDataExist = kTRUE; i_data_exist++;}
11171 if( HistoCode ==
"D_Ped_ChNb" || HistoCode ==
"D_Ped_ChDs" )
11174 if( aMyRootFile->
DataExist() == kTRUE ){fStatusDataExist = kTRUE; i_data_exist++;}
11178 if( HistoCode ==
"D_TNo_ChNb" || HistoCode ==
"D_TNo_ChDs")
11181 if( aMyRootFile->
DataExist() == kTRUE ){fStatusDataExist = kTRUE; i_data_exist++;}
11184 if( HistoCode ==
"D_LFN_ChNb" || HistoCode ==
"D_LFN_ChDs" )
11187 if( aMyRootFile->
DataExist() == kTRUE ){fStatusDataExist = kTRUE; i_data_exist++;}
11191 if( HistoCode ==
"D_HFN_ChNb" || HistoCode ==
"D_HFN_ChDs" )
11194 if( aMyRootFile->
DataExist() == kTRUE ){fStatusDataExist = kTRUE; i_data_exist++;}
11198 if( HistoCode ==
"D_MCs_ChNb" || HistoCode ==
"D_MCs_ChDs" )
11201 if( aMyRootFile->
DataExist() == kTRUE ){fStatusDataExist = kTRUE; i_data_exist++;}
11204 if( HistoCode ==
"D_SCs_ChNb" || HistoCode ==
"D_SCs_ChDs" )
11207 if( aMyRootFile->
DataExist() == kTRUE ){fStatusDataExist = kTRUE; i_data_exist++;}
11210 for(Int_t
i=0;
i<HisSizeRead;
i++){plot_histo(
i)=read_histo(
i);}
11215 cout <<
"!TEcnaHistos::GetHistoValues(...)> *** ERROR *** > HisSizeRead not equal to HisSizePlot."
11216 <<
" HisSizeRead = " << HisSizeRead
11217 <<
", HisSizePlot = " << HisSizePlot << fTTBELL << endl;
11222 if( i_data_exist == 0 )
11224 cout <<
"!TEcnaHistos::GetHistoValues(...)> Histo not found." << fTTBELL << endl;
11235 TString axis_x_var_name;
11237 if(HistoCode ==
"D_NOE_ChNb" || HistoCode ==
"D_Ped_ChNb" ||
11238 HistoCode ==
"D_TNo_ChNb" || HistoCode ==
"D_MCs_ChNb" ||
11239 HistoCode ==
"D_LFN_ChNb" || HistoCode ==
"D_HFN_ChNb" ||
11240 HistoCode ==
"D_SCs_ChNb" )
11242 if( fFapStexNumber > 0 )
11244 if( fFlagSubDet ==
"EB" ){axis_x_var_name =
"Xtal (electronic channel number)";}
11245 if( fFlagSubDet ==
"EE" ){axis_x_var_name =
"Xtal";}
11247 if( fFapStexNumber == 0 )
11249 if( fFlagSubDet ==
"EB" ){axis_x_var_name =
"Tower number";}
11250 if( fFlagSubDet ==
"EE" ){axis_x_var_name =
"SC number";}
11254 if(HistoCode ==
"D_NOE_ChDs"){axis_x_var_name =
"Number of events";}
11255 if(HistoCode ==
"D_Ped_ChDs"){axis_x_var_name =
"Pedestal";}
11256 if(HistoCode ==
"D_TNo_ChDs"){axis_x_var_name =
"Total noise";}
11257 if(HistoCode ==
"D_MCs_ChDs"){axis_x_var_name =
"Mean cor(s,s')";}
11258 if(HistoCode ==
"D_LFN_ChDs"){axis_x_var_name =
"Low frequency noise";}
11259 if(HistoCode ==
"D_HFN_ChDs"){axis_x_var_name =
"High frequency noise";}
11260 if(HistoCode ==
"D_SCs_ChDs"){axis_x_var_name =
"Sigmas cor(s,s')";}
11261 if(HistoCode ==
"D_MSp_SpNb"){axis_x_var_name =
"Sample";}
11262 if(HistoCode ==
"D_MSp_SpDs"){axis_x_var_name =
"Pedestal";}
11263 if(HistoCode ==
"D_SSp_SpNb"){axis_x_var_name =
"Sample";}
11264 if(HistoCode ==
"D_SSp_SpDs"){axis_x_var_name =
"Total noise";}
11265 if(HistoCode ==
"D_Adc_EvDs"){axis_x_var_name =
"ADC";}
11266 if(HistoCode ==
"D_Adc_EvNb"){axis_x_var_name =
"Event number";}
11267 if(HistoCode ==
"H_Ped_Date" || HistoCode ==
"H_TNo_Date" || HistoCode ==
"H_MCs_Date" ||
11268 HistoCode ==
"H_LFN_Date" || HistoCode ==
"H_HFN_Date" || HistoCode ==
"H_SCs_Date")
11269 {axis_x_var_name =
"Time";}
11270 if(HistoCode ==
"H_Ped_RuDs"){axis_x_var_name =
"Pedestal";}
11271 if(HistoCode ==
"H_TNo_RuDs"){axis_x_var_name =
"Total noise";}
11272 if(HistoCode ==
"H_MCs_RuDs"){axis_x_var_name =
"Mean cor(s,s')";}
11273 if(HistoCode ==
"H_LFN_RuDs"){axis_x_var_name =
"Low frequency noise";}
11274 if(HistoCode ==
"H_HFN_RuDs"){axis_x_var_name =
"High frequency noise";}
11275 if(HistoCode ==
"H_SCs_RuDs"){axis_x_var_name =
"Sigmas cor(s,s')";}
11277 return axis_x_var_name;
11284 TString axis_y_var_name;
11286 if(HistoCode ==
"D_NOE_ChNb"){axis_y_var_name =
"Number of events";}
11287 if(HistoCode ==
"D_Ped_ChNb"){axis_y_var_name =
"Pedestal";}
11288 if(HistoCode ==
"D_TNo_ChNb"){axis_y_var_name =
"Total noise";}
11289 if(HistoCode ==
"D_MCs_ChNb"){axis_y_var_name =
"Mean cor(s,s')";}
11290 if(HistoCode ==
"D_LFN_ChNb"){axis_y_var_name =
"Low frequency noise";}
11291 if(HistoCode ==
"D_HFN_ChNb"){axis_y_var_name =
"High frequency noise";}
11292 if(HistoCode ==
"D_SCs_ChNb"){axis_y_var_name =
"Sigma of cor(s,s')";}
11294 if(HistoCode ==
"D_NOE_ChDs" ||
11295 HistoCode ==
"D_Ped_ChDs" || HistoCode ==
"D_TNo_ChDs" || HistoCode ==
"D_MCs_ChDs" ||
11296 HistoCode ==
"D_LFN_ChDs" || HistoCode ==
"D_HFN_ChDs" || HistoCode ==
"D_SCs_ChDs" )
11298 if( fFapStexNumber > 0 ){axis_y_var_name =
"number of crystals";}
11299 if( fFapStexNumber == 0 )
11301 if( fFlagSubDet ==
"EB" ){axis_y_var_name =
"number of towers";}
11302 if( fFlagSubDet ==
"EE" ){axis_y_var_name =
"number of SC's";}
11306 if(HistoCode ==
"D_MSp_SpNb"){axis_y_var_name =
"Sample mean";}
11307 if(HistoCode ==
"D_MSp_SpDs"){axis_y_var_name =
"Number of samples";}
11308 if(HistoCode ==
"D_SSp_SpNb"){axis_y_var_name =
"Sample sigma";}
11309 if(HistoCode ==
"D_SSp_SpDs"){axis_y_var_name =
"Number of samples";}
11310 if(HistoCode ==
"D_Adc_EvNb"){axis_y_var_name =
"Sample ADC value";}
11311 if(HistoCode ==
"D_Adc_EvDs"){axis_y_var_name =
"Number of events";}
11312 if(HistoCode ==
"H_Ped_Date"){axis_y_var_name =
"Pedestal";}
11313 if(HistoCode ==
"H_TNo_Date"){axis_y_var_name =
"Total noise";}
11314 if(HistoCode ==
"H_MCs_Date"){axis_y_var_name =
"Mean cor(s,s')";}
11315 if(HistoCode ==
"H_LFN_Date"){axis_y_var_name =
"Low frequency noise";}
11316 if(HistoCode ==
"H_HFN_Date"){axis_y_var_name =
"High frequency noise";}
11317 if(HistoCode ==
"H_SCs_Date"){axis_y_var_name =
"Sigma cor(s,s')";}
11319 if(HistoCode ==
"H_Ped_RuDs" || HistoCode ==
"H_TNo_RuDs" || HistoCode ==
"H_MCs_RuDs" ||
11320 HistoCode ==
"H_LFN_RuDs" || HistoCode ==
"H_HFN_RuDs" || HistoCode ==
"H_SCs_RuDs" )
11321 {axis_y_var_name =
"number of runs";}
11323 return axis_y_var_name;
11330 Axis_t xinf_his = (Axis_t)0;
11332 if(HistoCode ==
"D_NOE_ChNb"){xinf_his = (Axis_t)0.;}
11333 if(HistoCode ==
"D_Ped_ChNb"){xinf_his = (Axis_t)0.;}
11334 if(HistoCode ==
"D_TNo_ChNb"){xinf_his = (Axis_t)0.;}
11335 if(HistoCode ==
"D_MCs_ChNb"){xinf_his = (Axis_t)0.;}
11336 if(HistoCode ==
"D_LFN_ChNb"){xinf_his = (Axis_t)0.;}
11337 if(HistoCode ==
"D_HFN_ChNb"){xinf_his = (Axis_t)0.;}
11338 if(HistoCode ==
"D_SCs_ChNb"){xinf_his = (Axis_t)0.;}
11339 if(HistoCode ==
"D_MSp_SpNb"){xinf_his = (Axis_t)0.;}
11340 if(HistoCode ==
"D_SSp_SpNb"){xinf_his = (Axis_t)0.;}
11341 if(HistoCode ==
"D_Adc_EvNb"){xinf_his = (Axis_t)0.;}
11343 if(HistoCode ==
"D_NOE_ChDs"){xinf_his = (Axis_t)fD_NOE_ChNbYmin;}
11344 if(HistoCode ==
"D_Ped_ChDs"){xinf_his = (Axis_t)fD_Ped_ChNbYmin;}
11345 if(HistoCode ==
"D_TNo_ChDs"){xinf_his = (Axis_t)fD_TNo_ChNbYmin;}
11346 if(HistoCode ==
"D_MCs_ChDs"){xinf_his = (Axis_t)fD_MCs_ChNbYmin;}
11347 if(HistoCode ==
"D_LFN_ChDs"){xinf_his = (Axis_t)fD_LFN_ChNbYmin;}
11348 if(HistoCode ==
"D_HFN_ChDs"){xinf_his = (Axis_t)fD_HFN_ChNbYmin;}
11349 if(HistoCode ==
"D_SCs_ChDs"){xinf_his = (Axis_t)fD_SCs_ChNbYmin;}
11350 if(HistoCode ==
"D_MSp_SpDs"){xinf_his = (Axis_t)fD_MSp_SpNbYmin;}
11351 if(HistoCode ==
"D_SSp_SpDs"){xinf_his = (Axis_t)fD_SSp_SpNbYmin;}
11352 if(HistoCode ==
"D_Adc_EvDs"){xinf_his = (Axis_t)fD_Adc_EvNbYmin;}
11354 if(HistoCode ==
"H_Ped_Date"){xinf_his = (Axis_t)0.;}
11355 if(HistoCode ==
"H_TNo_Date"){xinf_his = (Axis_t)0.;}
11356 if(HistoCode ==
"H_MCs_Date"){xinf_his = (Axis_t)0.;}
11357 if(HistoCode ==
"H_LFN_Date"){xinf_his = (Axis_t)0.;}
11358 if(HistoCode ==
"H_HFN_Date"){xinf_his = (Axis_t)0.;}
11359 if(HistoCode ==
"H_SCs_Date"){xinf_his = (Axis_t)0.;}
11361 if(HistoCode ==
"H_Ped_RuDs"){xinf_his = (Axis_t)fH_Ped_RuDsYmin;}
11362 if(HistoCode ==
"H_TNo_RuDs"){xinf_his = (Axis_t)fH_TNo_RuDsYmin;}
11363 if(HistoCode ==
"H_MCs_RuDs"){xinf_his = (Axis_t)fH_MCs_RuDsYmin;}
11364 if(HistoCode ==
"H_LFN_RuDs"){xinf_his = (Axis_t)fH_LFN_RuDsYmin;}
11365 if(HistoCode ==
"H_HFN_RuDs"){xinf_his = (Axis_t)fH_HFN_RuDsYmin;}
11366 if(HistoCode ==
"H_SCs_RuDs"){xinf_his = (Axis_t)fH_SCs_RuDsYmin;}
11375 Axis_t xsup_his = (Axis_t)0;
11377 if(HistoCode ==
"D_NOE_ChNb"){xsup_his = (Axis_t)HisSize;}
11378 if(HistoCode ==
"D_Ped_ChNb"){xsup_his = (Axis_t)HisSize;}
11379 if(HistoCode ==
"D_TNo_ChNb"){xsup_his = (Axis_t)HisSize;}
11380 if(HistoCode ==
"D_MCs_ChNb"){xsup_his = (Axis_t)HisSize;}
11381 if(HistoCode ==
"D_LFN_ChNb"){xsup_his = (Axis_t)HisSize;}
11382 if(HistoCode ==
"D_HFN_ChNb"){xsup_his = (Axis_t)HisSize;}
11383 if(HistoCode ==
"D_SCs_ChNb"){xsup_his = (Axis_t)HisSize;}
11384 if(HistoCode ==
"D_MSp_SpNb"){xsup_his = (Axis_t)HisSize;}
11385 if(HistoCode ==
"D_SSp_SpNb"){xsup_his = (Axis_t)HisSize;}
11386 if(HistoCode ==
"D_Adc_EvNb"){xsup_his = (Axis_t)(fFapReqNbOfEvts);}
11388 if(HistoCode ==
"D_NOE_ChDs"){xsup_his = (Axis_t)fD_NOE_ChNbYmax;}
11389 if(HistoCode ==
"D_Ped_ChDs"){xsup_his = (Axis_t)fD_Ped_ChNbYmax;}
11390 if(HistoCode ==
"D_TNo_ChDs"){xsup_his = (Axis_t)fD_TNo_ChNbYmax;}
11391 if(HistoCode ==
"D_MCs_ChDs"){xsup_his = (Axis_t)fD_MCs_ChNbYmax;}
11392 if(HistoCode ==
"D_LFN_ChDs"){xsup_his = (Axis_t)fD_LFN_ChNbYmax;}
11393 if(HistoCode ==
"D_HFN_ChDs"){xsup_his = (Axis_t)fD_HFN_ChNbYmax;}
11394 if(HistoCode ==
"D_SCs_ChDs"){xsup_his = (Axis_t)fD_SCs_ChNbYmax;}
11395 if(HistoCode ==
"D_MSp_SpDs"){xsup_his = (Axis_t)fD_MSp_SpNbYmax;}
11396 if(HistoCode ==
"D_SSp_SpDs"){xsup_his = (Axis_t)fD_SSp_SpNbYmax;}
11397 if(HistoCode ==
"D_Adc_EvDs"){xsup_his = (Axis_t)fD_Adc_EvNbYmax;}
11399 if(HistoCode ==
"H_Ped_Date"){xsup_his = (Axis_t)0.;}
11400 if(HistoCode ==
"H_TNo_Date"){xsup_his = (Axis_t)0.;}
11401 if(HistoCode ==
"H_MCs_Date"){xsup_his = (Axis_t)0.;}
11402 if(HistoCode ==
"H_LFN_Date"){xsup_his = (Axis_t)0.;}
11403 if(HistoCode ==
"H_HFN_Date"){xsup_his = (Axis_t)0.;}
11404 if(HistoCode ==
"H_SCs_Date"){xsup_his = (Axis_t)0.;}
11406 if(HistoCode ==
"H_Ped_RuDs"){xsup_his = (Axis_t)fH_Ped_RuDsYmax;}
11407 if(HistoCode ==
"H_TNo_RuDs"){xsup_his = (Axis_t)fH_TNo_RuDsYmax;}
11408 if(HistoCode ==
"H_MCs_RuDs"){xsup_his = (Axis_t)fH_MCs_RuDsYmax;}
11409 if(HistoCode ==
"H_LFN_RuDs"){xsup_his = (Axis_t)fH_LFN_RuDsYmax;}
11410 if(HistoCode ==
"H_HFN_RuDs"){xsup_his = (Axis_t)fH_HFN_RuDsYmax;}
11411 if(HistoCode ==
"H_SCs_RuDs"){xsup_his = (Axis_t)fH_SCs_RuDsYmax;}
11420 Int_t nb_binx = HisSize;
11421 TString
HistoType = fCnaParHistos->GetHistoType(HistoCode.Data());
11422 if ( HistoType ==
"Proj" || HistoType ==
"SampProj" ||
11423 HistoType ==
"EvolProj" || HistoType ==
"H1BasicProj" )
11424 {nb_binx = fNbBinsProj;}
11430 const Int_t& HisSize)
11436 for(Int_t
i=0;
i<HisSize;
i++)
11438 Double_t his_val = (Double_t)0;
11439 Double_t xi = (Double_t)0;
11441 if (HistoCode ==
"D_NOE_ChNb" || HistoCode ==
"D_Ped_ChNb" ||
11442 HistoCode ==
"D_LFN_ChNb" || HistoCode ==
"D_TNo_ChNb" ||
11443 HistoCode ==
"D_HFN_ChNb" || HistoCode ==
"D_MCs_ChNb" ||
11444 HistoCode ==
"D_SCs_ChNb" || HistoCode ==
"D_MSp_SpNb" || HistoCode ==
"D_SSp_SpNb" )
11447 his_val = (Double_t)read_histo[
i];
11448 h_his0->Fill(xi, his_val);
11452 if (HistoCode ==
"D_Adc_EvNb" )
11455 his_val = (Double_t)read_histo[
i];
11456 h_his0->Fill(xi, his_val);
11459 if (HistoCode ==
"D_NOE_ChDs" ||
11460 HistoCode ==
"D_Ped_ChDs" || HistoCode ==
"D_LFN_ChDs" ||
11461 HistoCode ==
"D_TNo_ChDs" || HistoCode ==
"D_HFN_ChDs" ||
11462 HistoCode ==
"D_MCs_ChDs" || HistoCode ==
"D_SCs_ChDs" ||
11463 HistoCode ==
"D_MSp_SpDs" || HistoCode ==
"D_SSp_SpDs" ||
11464 HistoCode ==
"D_Adc_EvDs" )
11466 his_val = (Double_t)read_histo[
i];
11467 Double_t increment = (Double_t)1;
11468 h_his0->Fill(his_val, increment);
11486 if( HistoCode ==
"D_NOE_ChNb"){fD_NOE_ChNbXinf =
value;}
11487 if( HistoCode ==
"D_NOE_ChDs"){fD_NOE_ChDsXinf =
value;}
11488 if( HistoCode ==
"D_Ped_ChNb"){fD_Ped_ChNbXinf =
value;}
11489 if( HistoCode ==
"D_Ped_ChDs"){fD_Ped_ChDsXinf =
value;}
11490 if( HistoCode ==
"D_TNo_ChNb"){fD_TNo_ChNbXinf =
value;}
11491 if( HistoCode ==
"D_TNo_ChDs"){fD_TNo_ChDsXinf =
value;}
11492 if( HistoCode ==
"D_MCs_ChNb"){fD_MCs_ChNbXinf =
value;}
11493 if( HistoCode ==
"D_MCs_ChDs"){fD_MCs_ChDsXinf =
value;}
11494 if( HistoCode ==
"D_LFN_ChNb"){fD_LFN_ChNbXinf =
value;}
11495 if( HistoCode ==
"D_LFN_ChDs"){fD_LFN_ChDsXinf =
value;}
11496 if( HistoCode ==
"D_HFN_ChNb"){fD_HFN_ChNbXinf =
value;}
11497 if( HistoCode ==
"D_HFN_ChDs"){fD_HFN_ChDsXinf =
value;}
11498 if( HistoCode ==
"D_SCs_ChNb"){fD_SCs_ChNbXinf =
value;}
11499 if( HistoCode ==
"D_SCs_ChDs"){fD_SCs_ChDsXinf =
value;}
11500 if( HistoCode ==
"D_MSp_SpNb"){fD_Ped_ChNbXinf =
value;}
11501 if( HistoCode ==
"D_MSp_SpDs"){fD_Ped_ChDsXinf =
value;}
11502 if( HistoCode ==
"D_SSp_SpNb"){fD_TNo_ChNbXinf =
value;}
11503 if( HistoCode ==
"D_SSp_SpDs"){fD_TNo_ChDsXinf =
value;}
11504 if( HistoCode ==
"D_Adc_EvNb"){fD_Ped_ChNbXinf =
value;}
11505 if( HistoCode ==
"D_Adc_EvDs"){fD_Adc_EvDsXinf =
value;}
11506 if( HistoCode ==
"H_Ped_Date"){fH_Ped_DateXinf =
value;}
11507 if( HistoCode ==
"H_TNo_Date"){fH_TNo_DateXinf =
value;}
11508 if( HistoCode ==
"H_MCs_Date"){fH_MCs_DateXinf =
value;}
11509 if( HistoCode ==
"H_LFN_Date"){fH_LFN_DateXinf =
value;}
11510 if( HistoCode ==
"H_HFN_Date"){fH_HFN_DateXinf =
value;}
11511 if( HistoCode ==
"H_SCs_Date"){fH_SCs_DateXinf =
value;}
11512 if( HistoCode ==
"H_Ped_RuDs"){fH_Ped_RuDsXinf =
value;}
11513 if( HistoCode ==
"H_TNo_RuDs"){fH_TNo_RuDsXinf =
value;}
11514 if( HistoCode ==
"H_MCs_RuDs"){fH_MCs_RuDsXinf =
value;}
11515 if( HistoCode ==
"H_LFN_RuDs"){fH_LFN_RuDsXinf =
value;}
11516 if( HistoCode ==
"H_HFN_RuDs"){fH_HFN_RuDsXinf =
value;}
11517 if( HistoCode ==
"H_SCs_RuDs"){fH_SCs_RuDsXinf =
value;}
11521 {fH1SameOnePlotXinf =
value;}
11525 if( HistoCode ==
"D_NOE_ChNb"){fD_NOE_ChNbXsup =
value;}
11526 if( HistoCode ==
"D_NOE_ChDs"){fD_NOE_ChDsXsup =
value;}
11527 if( HistoCode ==
"D_Ped_ChNb"){fD_Ped_ChNbXsup =
value;}
11528 if( HistoCode ==
"D_Ped_ChDs"){fD_Ped_ChDsXsup =
value;}
11529 if( HistoCode ==
"D_TNo_ChNb"){fD_TNo_ChNbXsup =
value;}
11530 if( HistoCode ==
"D_TNo_ChDs"){fD_TNo_ChDsXsup =
value;}
11531 if( HistoCode ==
"D_MCs_ChNb"){fD_MCs_ChNbXsup =
value;}
11532 if( HistoCode ==
"D_MCs_ChDs"){fD_MCs_ChDsXsup =
value;}
11533 if( HistoCode ==
"D_LFN_ChNb"){fD_LFN_ChNbXsup =
value;}
11534 if( HistoCode ==
"D_LFN_ChDs"){fD_LFN_ChDsXsup =
value;}
11535 if( HistoCode ==
"D_HFN_ChNb"){fD_HFN_ChNbXsup =
value;}
11536 if( HistoCode ==
"D_HFN_ChDs"){fD_HFN_ChDsXsup =
value;}
11537 if( HistoCode ==
"D_SCs_ChNb"){fD_SCs_ChNbXsup =
value;}
11538 if( HistoCode ==
"D_SCs_ChDs"){fD_SCs_ChDsXsup =
value;}
11539 if( HistoCode ==
"D_MSp_SpNb"){fD_Ped_ChNbXsup =
value;}
11540 if( HistoCode ==
"D_MSp_SpDs"){fD_Ped_ChDsXsup =
value;}
11541 if( HistoCode ==
"D_SSp_SpNb"){fD_TNo_ChNbXsup =
value;}
11542 if( HistoCode ==
"D_SSp_SpDs"){fD_TNo_ChDsXsup =
value;}
11543 if( HistoCode ==
"D_Adc_EvNb"){fD_Ped_ChNbXsup =
value;}
11544 if( HistoCode ==
"D_Adc_EvDs"){fD_Adc_EvDsXsup =
value;}
11545 if( HistoCode ==
"H_Ped_Date"){fH_Ped_DateXsup =
value;}
11546 if( HistoCode ==
"H_TNo_Date"){fH_TNo_DateXsup =
value;}
11547 if( HistoCode ==
"H_MCs_Date"){fH_MCs_DateXsup =
value;}
11548 if( HistoCode ==
"H_LFN_Date"){fH_LFN_DateXsup =
value;}
11549 if( HistoCode ==
"H_HFN_Date"){fH_HFN_DateXsup =
value;}
11550 if( HistoCode ==
"H_SCs_Date"){fH_SCs_DateXsup =
value;}
11551 if( HistoCode ==
"H_Ped_RuDs"){fH_Ped_RuDsXsup =
value;}
11552 if( HistoCode ==
"H_TNo_RuDs"){fH_TNo_RuDsXsup =
value;}
11553 if( HistoCode ==
"H_MCs_RuDs"){fH_MCs_RuDsXsup =
value;}
11554 if( HistoCode ==
"H_LFN_RuDs"){fH_LFN_RuDsXsup =
value;}
11555 if( HistoCode ==
"H_HFN_RuDs"){fH_HFN_RuDsXsup =
value;}
11556 if( HistoCode ==
"H_SCs_RuDs"){fH_SCs_RuDsXsup =
value;}
11560 {fH1SameOnePlotXsup =
value;}
11564 Double_t val_inf = (Double_t)0.;
11566 if( HistoCode ==
"D_NOE_ChNb"){val_inf = fD_NOE_ChNbXinf;}
11567 if( HistoCode ==
"D_NOE_ChDs"){val_inf = fD_NOE_ChDsXinf;}
11568 if( HistoCode ==
"D_Ped_ChNb"){val_inf = fD_Ped_ChNbXinf;}
11569 if( HistoCode ==
"D_Ped_ChDs"){val_inf = fD_Ped_ChDsXinf;}
11570 if( HistoCode ==
"D_TNo_ChNb"){val_inf = fD_TNo_ChNbXinf;}
11571 if( HistoCode ==
"D_TNo_ChDs"){val_inf = fD_TNo_ChDsXinf;}
11572 if( HistoCode ==
"D_MCs_ChNb"){val_inf = fD_MCs_ChNbXinf;}
11573 if( HistoCode ==
"D_MCs_ChDs"){val_inf = fD_MCs_ChDsXinf;}
11574 if( HistoCode ==
"D_LFN_ChNb"){val_inf = fD_LFN_ChNbXinf;}
11575 if( HistoCode ==
"D_LFN_ChDs"){val_inf = fD_LFN_ChDsXinf;}
11576 if( HistoCode ==
"D_HFN_ChNb"){val_inf = fD_HFN_ChNbXinf;}
11577 if( HistoCode ==
"D_HFN_ChDs"){val_inf = fD_HFN_ChDsXinf;}
11578 if( HistoCode ==
"D_SCs_ChNb"){val_inf = fD_SCs_ChNbXinf;}
11579 if( HistoCode ==
"D_SCs_ChDs"){val_inf = fD_SCs_ChDsXinf;}
11580 if( HistoCode ==
"D_MSp_SpNb"){val_inf = fD_Ped_ChNbXinf;}
11581 if( HistoCode ==
"D_MSp_SpDs"){val_inf = fD_Ped_ChDsXinf;}
11582 if( HistoCode ==
"D_SSp_SpNb"){val_inf = fD_TNo_ChNbXinf;}
11583 if( HistoCode ==
"D_SSp_SpDs"){val_inf = fD_TNo_ChDsXinf;}
11584 if( HistoCode ==
"D_Adc_EvNb"){val_inf = fD_Adc_EvNbXinf;}
11585 if( HistoCode ==
"D_Adc_EvDs"){val_inf = fD_Adc_EvDsXinf;}
11586 if( HistoCode ==
"H_Ped_Date"){val_inf = fH_Ped_DateXinf;}
11587 if( HistoCode ==
"H_TNo_Date"){val_inf = fH_TNo_DateXinf;}
11588 if( HistoCode ==
"H_MCs_Date"){val_inf = fH_MCs_DateXinf;}
11589 if( HistoCode ==
"H_LFN_Date"){val_inf = fH_LFN_DateXinf;}
11590 if( HistoCode ==
"H_HFN_Date"){val_inf = fH_HFN_DateXinf;}
11591 if( HistoCode ==
"H_SCs_Date"){val_inf = fH_SCs_DateXinf;}
11592 if( HistoCode ==
"H_Ped_RuDs"){val_inf = fH_Ped_RuDsXinf;}
11593 if( HistoCode ==
"H_TNo_RuDs"){val_inf = fH_TNo_RuDsXinf;}
11594 if( HistoCode ==
"H_MCs_RuDs"){val_inf = fH_MCs_RuDsXinf;}
11595 if( HistoCode ==
"H_LFN_RuDs"){val_inf = fH_LFN_RuDsXinf;}
11596 if( HistoCode ==
"H_HFN_RuDs"){val_inf = fH_HFN_RuDsXinf;}
11597 if( HistoCode ==
"H_SCs_RuDs"){val_inf = fH_SCs_RuDsXinf;}
11602 {
return fH1SameOnePlotXinf;}
11606 Double_t val_sup = (Double_t)0.;
11608 if( HistoCode ==
"D_NOE_ChNb"){val_sup = fD_NOE_ChNbXsup;}
11609 if( HistoCode ==
"D_NOE_ChDs"){val_sup = fD_NOE_ChDsXsup;}
11610 if( HistoCode ==
"D_Ped_ChNb"){val_sup = fD_Ped_ChNbXsup;}
11611 if( HistoCode ==
"D_Ped_ChDs"){val_sup = fD_Ped_ChDsXsup;}
11612 if( HistoCode ==
"D_TNo_ChNb"){val_sup = fD_TNo_ChNbXsup;}
11613 if( HistoCode ==
"D_TNo_ChDs"){val_sup = fD_TNo_ChDsXsup;}
11614 if( HistoCode ==
"D_MCs_ChNb"){val_sup = fD_MCs_ChNbXsup;}
11615 if( HistoCode ==
"D_MCs_ChDs"){val_sup = fD_MCs_ChDsXsup;}
11616 if( HistoCode ==
"D_LFN_ChNb"){val_sup = fD_LFN_ChNbXsup;}
11617 if( HistoCode ==
"D_LFN_ChDs"){val_sup = fD_LFN_ChDsXsup;}
11618 if( HistoCode ==
"D_HFN_ChNb"){val_sup = fD_HFN_ChNbXsup;}
11619 if( HistoCode ==
"D_HFN_ChDs"){val_sup = fD_HFN_ChDsXsup;}
11620 if( HistoCode ==
"D_SCs_ChNb"){val_sup = fD_SCs_ChNbXsup;}
11621 if( HistoCode ==
"D_SCs_ChDs"){val_sup = fD_SCs_ChDsXsup;}
11622 if( HistoCode ==
"D_MSp_SpNb"){val_sup = fD_Ped_ChNbXsup;}
11623 if( HistoCode ==
"D_MSp_SpDs"){val_sup = fD_Ped_ChDsXsup;}
11624 if( HistoCode ==
"D_SSp_SpNb"){val_sup = fD_TNo_ChNbXsup;}
11625 if( HistoCode ==
"D_SSp_SpDs"){val_sup = fD_TNo_ChDsXsup;}
11626 if( HistoCode ==
"D_Adc_EvNb"){val_sup = fD_Adc_EvNbXsup;}
11627 if( HistoCode ==
"D_Adc_EvDs"){val_sup = fD_Adc_EvDsXsup;}
11628 if( HistoCode ==
"H_Ped_Date"){val_sup = fH_Ped_DateXsup;}
11629 if( HistoCode ==
"H_TNo_Date"){val_sup = fH_TNo_DateXsup;}
11630 if( HistoCode ==
"H_MCs_Date"){val_sup = fH_MCs_DateXsup;}
11631 if( HistoCode ==
"H_LFN_Date"){val_sup = fH_LFN_DateXsup;}
11632 if( HistoCode ==
"H_HFN_Date"){val_sup = fH_HFN_DateXsup;}
11633 if( HistoCode ==
"H_SCs_Date"){val_sup = fH_SCs_DateXsup;}
11634 if( HistoCode ==
"H_Ped_RuDs"){val_sup = fH_Ped_RuDsXsup;}
11635 if( HistoCode ==
"H_TNo_RuDs"){val_sup = fH_TNo_RuDsXsup;}
11636 if( HistoCode ==
"H_MCs_RuDs"){val_sup = fH_MCs_RuDsXsup;}
11637 if( HistoCode ==
"H_LFN_RuDs"){val_sup = fH_LFN_RuDsXsup;}
11638 if( HistoCode ==
"H_HFN_RuDs"){val_sup = fH_HFN_RuDsXsup;}
11639 if( HistoCode ==
"H_SCs_RuDs"){val_sup = fH_SCs_RuDsXsup;}
11644 {
return fH1SameOnePlotXsup;}
11661 SetYminMemoFromValue(
"D_NOE_ChNb", fCnaParHistos->GetYminDefaultValue(
"D_NOE_ChNb"));
11662 SetYmaxMemoFromValue(
"D_NOE_ChNb", fCnaParHistos->GetYmaxDefaultValue(
"D_NOE_ChNb"));
11664 SetYminMemoFromValue(
"D_NOE_ChDs", fCnaParHistos->GetYminDefaultValue(
"D_NOE_ChDs"));
11665 SetYmaxMemoFromValue(
"D_NOE_ChDs", fCnaParHistos->GetYmaxDefaultValue(
"D_NOE_ChDs"));
11667 SetYminMemoFromValue(
"D_Ped_ChNb", fCnaParHistos->GetYminDefaultValue(
"D_Ped_ChNb"));
11668 SetYmaxMemoFromValue(
"D_Ped_ChNb", fCnaParHistos->GetYmaxDefaultValue(
"D_Ped_ChNb"));
11670 SetYminMemoFromValue(
"D_Ped_ChDs", fCnaParHistos->GetYminDefaultValue(
"D_Ped_ChDs"));
11671 SetYmaxMemoFromValue(
"D_Ped_ChDs", fCnaParHistos->GetYmaxDefaultValue(
"D_Ped_ChDs"));
11673 SetYminMemoFromValue(
"D_TNo_ChNb", fCnaParHistos->GetYminDefaultValue(
"D_TNo_ChNb"));
11674 SetYmaxMemoFromValue(
"D_TNo_ChNb", fCnaParHistos->GetYmaxDefaultValue(
"D_TNo_ChNb"));
11676 SetYminMemoFromValue(
"D_TNo_ChDs", fCnaParHistos->GetYminDefaultValue(
"D_TNo_ChDs"));
11677 SetYmaxMemoFromValue(
"D_TNo_ChDs", fCnaParHistos->GetYmaxDefaultValue(
"D_TNo_ChDs"));
11679 SetYminMemoFromValue(
"D_MCs_ChNb", fCnaParHistos->GetYminDefaultValue(
"D_MCs_ChNb"));
11680 SetYmaxMemoFromValue(
"D_MCs_ChNb", fCnaParHistos->GetYmaxDefaultValue(
"D_MCs_ChNb"));
11682 SetYminMemoFromValue(
"D_MCs_ChDs", fCnaParHistos->GetYminDefaultValue(
"D_MCs_ChDs"));
11683 SetYmaxMemoFromValue(
"D_MCs_ChDs", fCnaParHistos->GetYmaxDefaultValue(
"D_MCs_ChDs"));
11685 SetYminMemoFromValue(
"D_LFN_ChNb", fCnaParHistos->GetYminDefaultValue(
"D_LFN_ChNb"));
11686 SetYmaxMemoFromValue(
"D_LFN_ChNb", fCnaParHistos->GetYmaxDefaultValue(
"D_LFN_ChNb"));
11688 SetYminMemoFromValue(
"D_LFN_ChDs", fCnaParHistos->GetYminDefaultValue(
"D_LFN_ChDs"));
11689 SetYmaxMemoFromValue(
"D_LFN_ChDs", fCnaParHistos->GetYmaxDefaultValue(
"D_LFN_ChDs"));
11691 SetYminMemoFromValue(
"D_HFN_ChNb", fCnaParHistos->GetYminDefaultValue(
"D_HFN_ChNb"));
11692 SetYmaxMemoFromValue(
"D_HFN_ChNb", fCnaParHistos->GetYmaxDefaultValue(
"D_HFN_ChNb"));
11694 SetYminMemoFromValue(
"D_HFN_ChDs", fCnaParHistos->GetYminDefaultValue(
"D_HFN_ChDs"));
11695 SetYmaxMemoFromValue(
"D_HFN_ChDs", fCnaParHistos->GetYmaxDefaultValue(
"D_HFN_ChDs"));
11697 SetYminMemoFromValue(
"D_SCs_ChNb", fCnaParHistos->GetYminDefaultValue(
"D_SCs_ChNb"));
11698 SetYmaxMemoFromValue(
"D_SCs_ChNb", fCnaParHistos->GetYmaxDefaultValue(
"D_SCs_ChNb"));
11700 SetYminMemoFromValue(
"D_SCs_ChDs", fCnaParHistos->GetYminDefaultValue(
"D_SCs_ChDs"));
11701 SetYmaxMemoFromValue(
"D_SCs_ChDs", fCnaParHistos->GetYmaxDefaultValue(
"D_SCs_ChDs"));
11703 SetYminMemoFromValue(
"D_MSp_SpNb", fCnaParHistos->GetYminDefaultValue(
"D_MSp_SpNb"));
11704 SetYmaxMemoFromValue(
"D_MSp_SpNb", fCnaParHistos->GetYmaxDefaultValue(
"D_MSp_SpNb"));
11706 SetYminMemoFromValue(
"D_MSp_SpDs", fCnaParHistos->GetYminDefaultValue(
"D_MSp_SpDs"));
11707 SetYmaxMemoFromValue(
"D_MSp_SpDs", fCnaParHistos->GetYmaxDefaultValue(
"D_MSp_SpDs"));
11709 SetYminMemoFromValue(
"D_SSp_SpNb", fCnaParHistos->GetYminDefaultValue(
"D_SSp_SpNb"));
11710 SetYmaxMemoFromValue(
"D_SSp_SpNb", fCnaParHistos->GetYmaxDefaultValue(
"D_SSp_SpNb"));
11712 SetYminMemoFromValue(
"D_SSp_SpDs", fCnaParHistos->GetYminDefaultValue(
"D_SSp_SpDs"));
11713 SetYmaxMemoFromValue(
"D_SSp_SpDs", fCnaParHistos->GetYmaxDefaultValue(
"D_SSp_SpDs"));
11715 SetYminMemoFromValue(
"D_Adc_EvDs", fCnaParHistos->GetYminDefaultValue(
"D_Adc_EvDs"));
11716 SetYmaxMemoFromValue(
"D_Adc_EvDs", fCnaParHistos->GetYmaxDefaultValue(
"D_Adc_EvDs"));
11718 SetYminMemoFromValue(
"D_Adc_EvNb", fCnaParHistos->GetYminDefaultValue(
"D_Adc_EvNb"));
11719 SetYmaxMemoFromValue(
"D_Adc_EvNb", fCnaParHistos->GetYmaxDefaultValue(
"D_Adc_EvNb"));
11721 SetYminMemoFromValue(
"H_Ped_Date", fCnaParHistos->GetYminDefaultValue(
"H_Ped_Date"));
11722 SetYmaxMemoFromValue(
"H_Ped_Date", fCnaParHistos->GetYmaxDefaultValue(
"H_Ped_Date"));
11724 SetYminMemoFromValue(
"H_TNo_Date", fCnaParHistos->GetYminDefaultValue(
"H_TNo_Date"));
11725 SetYmaxMemoFromValue(
"H_TNo_Date", fCnaParHistos->GetYmaxDefaultValue(
"H_TNo_Date"));
11727 SetYminMemoFromValue(
"H_LFN_Date", fCnaParHistos->GetYminDefaultValue(
"H_LFN_Date"));
11728 SetYmaxMemoFromValue(
"H_LFN_Date", fCnaParHistos->GetYmaxDefaultValue(
"H_LFN_Date"));
11730 SetYminMemoFromValue(
"H_HFN_Date", fCnaParHistos->GetYminDefaultValue(
"H_HFN_Date"));
11731 SetYmaxMemoFromValue(
"H_HFN_Date", fCnaParHistos->GetYmaxDefaultValue(
"H_HFN_Date"));
11733 SetYminMemoFromValue(
"H_MCs_Date", fCnaParHistos->GetYminDefaultValue(
"H_MCs_Date"));
11734 SetYmaxMemoFromValue(
"H_MCs_Date", fCnaParHistos->GetYmaxDefaultValue(
"H_MCs_Date"));
11736 SetYminMemoFromValue(
"H_SCs_Date", fCnaParHistos->GetYminDefaultValue(
"H_SCs_Date"));
11737 SetYmaxMemoFromValue(
"H_SCs_Date", fCnaParHistos->GetYmaxDefaultValue(
"H_SCs_Date"));
11739 SetYminMemoFromValue(
"H_Ped_RuDs", fCnaParHistos->GetYminDefaultValue(
"H_Ped_RuDs"));
11740 SetYmaxMemoFromValue(
"H_Ped_RuDs", fCnaParHistos->GetYmaxDefaultValue(
"H_Ped_RuDs"));
11742 SetYminMemoFromValue(
"H_TNo_RuDs", fCnaParHistos->GetYminDefaultValue(
"H_TNo_RuDs"));
11743 SetYmaxMemoFromValue(
"H_TNo_RuDs", fCnaParHistos->GetYmaxDefaultValue(
"H_TNo_RuDs"));
11745 SetYminMemoFromValue(
"H_LFN_RuDs", fCnaParHistos->GetYminDefaultValue(
"H_LFN_RuDs"));
11746 SetYmaxMemoFromValue(
"H_LFN_RuDs", fCnaParHistos->GetYmaxDefaultValue(
"H_LFN_RuDs"));
11748 SetYminMemoFromValue(
"H_HFN_RuDs", fCnaParHistos->GetYminDefaultValue(
"H_HFN_RuDs"));
11749 SetYmaxMemoFromValue(
"H_HFN_RuDs", fCnaParHistos->GetYmaxDefaultValue(
"H_HFN_RuDs"));
11751 SetYminMemoFromValue(
"H_MCs_RuDs", fCnaParHistos->GetYminDefaultValue(
"H_MCs_RuDs"));
11752 SetYmaxMemoFromValue(
"H_MCs_RuDs", fCnaParHistos->GetYmaxDefaultValue(
"H_MCs_RuDs"));
11754 SetYminMemoFromValue(
"H_SCs_RuDs", fCnaParHistos->GetYminDefaultValue(
"H_SCs_RuDs"));
11755 SetYmaxMemoFromValue(
"H_SCs_RuDs", fCnaParHistos->GetYmaxDefaultValue(
"H_SCs_RuDs"));
11757 SetYminMemoFromValue(
"H2LFccMosMatrix", fCnaParHistos->GetYminDefaultValue(
"H2LFccMosMatrix"));
11758 SetYmaxMemoFromValue(
"H2LFccMosMatrix", fCnaParHistos->GetYmaxDefaultValue(
"H2LFccMosMatrix"));
11760 SetYminMemoFromValue(
"H2HFccMosMatrix", fCnaParHistos->GetYminDefaultValue(
"H2HFccMosMatrix"));
11761 SetYmaxMemoFromValue(
"H2HFccMosMatrix", fCnaParHistos->GetYmaxDefaultValue(
"H2HFccMosMatrix"));
11763 SetYminMemoFromValue(
"H2CorccInStins", fCnaParHistos->GetYminDefaultValue(
"H2CorccInStins"));
11764 SetYmaxMemoFromValue(
"H2CorccInStins", fCnaParHistos->GetYmaxDefaultValue(
"H2CorccInStins"));
11767 fUserHistoMin = -1.; fFlagUserHistoMin =
"OFF";
11768 fUserHistoMax = 1.; fFlagUserHistoMax =
"OFF";
11779 if( HistoCode ==
"D_NOE_ChNb" ){fD_NOE_ChNbYmin =
value;}
11780 if( HistoCode ==
"D_NOE_ChDs" ){fD_NOE_ChDsYmin =
value;}
11781 if( HistoCode ==
"D_Ped_ChNb" ){fD_Ped_ChNbYmin =
value;}
11782 if( HistoCode ==
"D_Ped_ChDs" ){fD_Ped_ChDsYmin =
value;}
11783 if( HistoCode ==
"D_TNo_ChNb" ){fD_TNo_ChNbYmin =
value;}
11784 if( HistoCode ==
"D_TNo_ChDs" ){fD_TNo_ChDsYmin =
value;}
11785 if( HistoCode ==
"D_MCs_ChNb" ){fD_MCs_ChNbYmin =
value;}
11786 if( HistoCode ==
"D_MCs_ChDs" ){fD_MCs_ChDsYmin =
value;}
11787 if( HistoCode ==
"D_LFN_ChNb" ){fD_LFN_ChNbYmin =
value;}
11788 if( HistoCode ==
"D_LFN_ChDs" ){fD_LFN_ChDsYmin =
value;}
11789 if( HistoCode ==
"D_HFN_ChNb" ){fD_HFN_ChNbYmin =
value;}
11790 if( HistoCode ==
"D_HFN_ChDs" ){fD_HFN_ChDsYmin =
value;}
11791 if( HistoCode ==
"D_SCs_ChNb" ){fD_SCs_ChNbYmin =
value;}
11792 if( HistoCode ==
"D_SCs_ChDs" ){fD_SCs_ChDsYmin =
value;}
11793 if( HistoCode ==
"D_MSp_SpNb" ){fD_Ped_ChNbYmin =
value;}
11794 if( HistoCode ==
"D_MSp_SpDs" ){fD_Ped_ChDsYmin =
value;}
11795 if( HistoCode ==
"D_SSp_SpNb" ){fD_TNo_ChNbYmin =
value;}
11796 if( HistoCode ==
"D_SSp_SpDs" ){fD_TNo_ChDsYmin =
value;}
11797 if( HistoCode ==
"D_Adc_EvNb" ){fD_Ped_ChNbYmin =
value;}
11798 if( HistoCode ==
"D_Adc_EvDs" ){fD_Adc_EvDsYmin =
value;}
11799 if( HistoCode ==
"H_Ped_Date" ){fH_Ped_DateYmin =
value;}
11800 if( HistoCode ==
"H_TNo_Date" ){fH_TNo_DateYmin =
value;}
11801 if( HistoCode ==
"H_MCs_Date" ){fH_MCs_DateYmin =
value;}
11802 if( HistoCode ==
"H_LFN_Date" ){fH_LFN_DateYmin =
value;}
11803 if( HistoCode ==
"H_HFN_Date" ){fH_HFN_DateYmin =
value;}
11804 if( HistoCode ==
"H_SCs_Date" ){fH_SCs_DateYmin =
value;}
11805 if( HistoCode ==
"H_Ped_RuDs" ){fH_Ped_RuDsYmin =
value;}
11806 if( HistoCode ==
"H_TNo_RuDs" ){fH_TNo_RuDsYmin =
value;}
11807 if( HistoCode ==
"H_MCs_RuDs" ){fH_MCs_RuDsYmin =
value;}
11808 if( HistoCode ==
"H_LFN_RuDs" ){fH_LFN_RuDsYmin =
value;}
11809 if( HistoCode ==
"H_HFN_RuDs" ){fH_HFN_RuDsYmin =
value;}
11810 if( HistoCode ==
"H_SCs_RuDs" ){fH_SCs_RuDsYmin =
value;}
11811 if( HistoCode ==
"H2LFccMosMatrix" ){fH2LFccMosMatrixYmin =
value;}
11812 if( HistoCode ==
"H2HFccMosMatrix" ){fH2HFccMosMatrixYmin =
value;}
11813 if( HistoCode ==
"H2CorccInStins" ){fH2CorccInStinsYmin =
value;}
11818 if( HistoCode ==
"D_NOE_ChNb" ){fD_NOE_ChNbYmax =
value;}
11819 if( HistoCode ==
"D_NOE_ChDs" ){fD_NOE_ChDsYmax =
value;}
11820 if( HistoCode ==
"D_Ped_ChNb" ){fD_Ped_ChNbYmax =
value;}
11821 if( HistoCode ==
"D_Ped_ChDs" ){fD_Ped_ChDsYmax =
value;}
11822 if( HistoCode ==
"D_TNo_ChNb" ){fD_TNo_ChNbYmax =
value;}
11823 if( HistoCode ==
"D_TNo_ChDs" ){fD_TNo_ChDsYmax =
value;}
11824 if( HistoCode ==
"D_MCs_ChNb" ){fD_MCs_ChNbYmax =
value;}
11825 if( HistoCode ==
"D_MCs_ChDs" ){fD_MCs_ChDsYmax =
value;}
11826 if( HistoCode ==
"D_LFN_ChNb" ){fD_LFN_ChNbYmax =
value;}
11827 if( HistoCode ==
"D_LFN_ChDs" ){fD_LFN_ChDsYmax =
value;}
11828 if( HistoCode ==
"D_HFN_ChNb" ){fD_HFN_ChNbYmax =
value;}
11829 if( HistoCode ==
"D_HFN_ChDs" ){fD_HFN_ChDsYmax =
value;}
11830 if( HistoCode ==
"D_SCs_ChNb" ){fD_SCs_ChNbYmax =
value;}
11831 if( HistoCode ==
"D_SCs_ChDs" ){fD_SCs_ChDsYmax =
value;}
11832 if( HistoCode ==
"D_MSp_SpNb" ){fD_Ped_ChNbYmax =
value;}
11833 if( HistoCode ==
"D_MSp_SpDs" ){fD_Ped_ChDsYmax =
value;}
11834 if( HistoCode ==
"D_SSp_SpNb" ){fD_TNo_ChNbYmax =
value;}
11835 if( HistoCode ==
"D_SSp_SpDs" ){fD_TNo_ChDsYmax =
value;}
11836 if( HistoCode ==
"D_Adc_EvNb" ){fD_Ped_ChNbYmax =
value;}
11837 if( HistoCode ==
"D_Adc_EvDs" ){fD_Ped_ChDsYmax =
value;}
11838 if( HistoCode ==
"H_Ped_Date" ){fH_Ped_DateYmax =
value;}
11839 if( HistoCode ==
"H_TNo_Date" ){fH_TNo_DateYmax =
value;}
11840 if( HistoCode ==
"H_MCs_Date" ){fH_MCs_DateYmax =
value;}
11841 if( HistoCode ==
"H_LFN_Date" ){fH_LFN_DateYmax =
value;}
11842 if( HistoCode ==
"H_HFN_Date" ){fH_HFN_DateYmax =
value;}
11843 if( HistoCode ==
"H_SCs_Date" ){fH_SCs_DateYmax =
value;}
11844 if( HistoCode ==
"H_Ped_RuDs" ){fH_Ped_RuDsYmax =
value;}
11845 if( HistoCode ==
"H_TNo_RuDs" ){fH_TNo_RuDsYmax =
value;}
11846 if( HistoCode ==
"H_MCs_RuDs" ){fH_MCs_RuDsYmax =
value;}
11847 if( HistoCode ==
"H_LFN_RuDs" ){fH_LFN_RuDsYmax =
value;}
11848 if( HistoCode ==
"H_HFN_RuDs" ){fH_HFN_RuDsYmax =
value;}
11849 if( HistoCode ==
"H_SCs_RuDs" ){fH_SCs_RuDsYmax =
value;}
11850 if( HistoCode ==
"H2LFccMosMatrix" ){fH2LFccMosMatrixYmax =
value;}
11851 if( HistoCode ==
"H2HFccMosMatrix" ){fH2HFccMosMatrixYmax =
value;}
11852 if( HistoCode ==
"H2CorccInStins" ){fH2CorccInStinsYmax =
value;}
11857 Double_t val_min = (Double_t)0.;
11858 Double_t val_min_proj = (Double_t)0.1;
11860 if( HistoCode ==
"D_NOE_ChNb" ){val_min = fD_NOE_ChNbYmin;}
11861 if( HistoCode ==
"D_NOE_ChDs" ){val_min = val_min_proj;}
11862 if( HistoCode ==
"D_Ped_ChNb" ){val_min = fD_Ped_ChNbYmin;}
11863 if( HistoCode ==
"D_Ped_ChDs" ){val_min = val_min_proj;}
11864 if( HistoCode ==
"D_TNo_ChNb" ){val_min = fD_TNo_ChNbYmin;}
11865 if( HistoCode ==
"D_TNo_ChDs" ){val_min = val_min_proj;}
11866 if( HistoCode ==
"D_MCs_ChNb" ){val_min = fD_MCs_ChNbYmin;}
11867 if( HistoCode ==
"D_MCs_ChDs" ){val_min = val_min_proj;}
11868 if( HistoCode ==
"D_LFN_ChNb" ){val_min = fD_LFN_ChNbYmin;}
11869 if( HistoCode ==
"D_LFN_ChDs" ){val_min = val_min_proj;}
11870 if( HistoCode ==
"D_HFN_ChNb" ){val_min = fD_HFN_ChNbYmin;}
11871 if( HistoCode ==
"D_HFN_ChDs" ){val_min = val_min_proj;}
11872 if( HistoCode ==
"D_SCs_ChNb" ){val_min = fD_SCs_ChNbYmin;}
11873 if( HistoCode ==
"D_SCs_ChDs" ){val_min = val_min_proj;}
11874 if( HistoCode ==
"D_MSp_SpNb" ){val_min = fD_Ped_ChNbYmin;}
11875 if( HistoCode ==
"D_MSp_SpDs" ){val_min = val_min_proj;}
11876 if( HistoCode ==
"D_SSp_SpNb" ){val_min = fD_TNo_ChNbYmin;}
11877 if( HistoCode ==
"D_SSp_SpDs" ){val_min = val_min_proj;}
11878 if( HistoCode ==
"D_Adc_EvNb" ){val_min = fD_Ped_ChNbYmin;}
11879 if( HistoCode ==
"D_Adc_EvDs" ){val_min = val_min_proj;}
11880 if( HistoCode ==
"H_Ped_Date" ){val_min = fH_Ped_DateYmin;}
11881 if( HistoCode ==
"H_TNo_Date" ){val_min = fH_TNo_DateYmin;}
11882 if( HistoCode ==
"H_MCs_Date" ){val_min = fH_MCs_DateYmin;}
11883 if( HistoCode ==
"H_LFN_Date" ){val_min = fH_LFN_DateYmin;}
11884 if( HistoCode ==
"H_HFN_Date" ){val_min = fH_HFN_DateYmin;}
11885 if( HistoCode ==
"H_SCs_Date" ){val_min = fH_SCs_DateYmin;}
11886 if( HistoCode ==
"H_Ped_RuDs" ){val_min = fH_Ped_RuDsYmin;}
11887 if( HistoCode ==
"H_TNo_RuDs" ){val_min = fH_TNo_RuDsYmin;}
11888 if( HistoCode ==
"H_MCs_RuDs" ){val_min = fH_MCs_RuDsYmin;}
11889 if( HistoCode ==
"H_LFN_RuDs" ){val_min = fH_LFN_RuDsYmin;}
11890 if( HistoCode ==
"H_HFN_RuDs" ){val_min = fH_HFN_RuDsYmin;}
11891 if( HistoCode ==
"H_SCs_RuDs" ){val_min = fH_SCs_RuDsYmin;}
11892 if( HistoCode ==
"H2LFccMosMatrix" ){val_min = fH2LFccMosMatrixYmin;}
11893 if( HistoCode ==
"H2HFccMosMatrix" ){val_min = fH2HFccMosMatrixYmin;}
11894 if( HistoCode ==
"H2CorccInStins" ){val_min = fH2CorccInStinsYmin;}
11900 Double_t val_max = (Double_t)0.;
11901 Double_t val_max_proj = (Double_t)2000.;
11903 if( HistoCode ==
"D_NOE_ChNb" ){val_max = fD_NOE_ChNbYmax;}
11904 if( HistoCode ==
"D_NOE_ChDs" ){val_max = val_max_proj;}
11905 if( HistoCode ==
"D_Ped_ChNb" ){val_max = fD_Ped_ChNbYmax;}
11906 if( HistoCode ==
"D_Ped_ChDs" ){val_max = val_max_proj;}
11907 if( HistoCode ==
"D_TNo_ChNb" ){val_max = fD_TNo_ChNbYmax;}
11908 if( HistoCode ==
"D_TNo_ChDs" ){val_max = val_max_proj;}
11909 if( HistoCode ==
"D_MCs_ChNb" ){val_max = fD_MCs_ChNbYmax;}
11910 if( HistoCode ==
"D_MCs_ChDs" ){val_max = val_max_proj;}
11911 if( HistoCode ==
"D_LFN_ChNb" ){val_max = fD_LFN_ChNbYmax;}
11912 if( HistoCode ==
"D_LFN_ChDs" ){val_max = val_max_proj;}
11913 if( HistoCode ==
"D_HFN_ChNb" ){val_max = fD_HFN_ChNbYmax;}
11914 if( HistoCode ==
"D_HFN_ChDs" ){val_max = val_max_proj;}
11915 if( HistoCode ==
"D_SCs_ChNb" ){val_max = fD_SCs_ChNbYmax;}
11916 if( HistoCode ==
"D_SCs_ChDs" ){val_max = val_max_proj;}
11917 if( HistoCode ==
"D_MSp_SpNb" ){val_max = fD_Ped_ChNbYmax;}
11918 if( HistoCode ==
"D_MSp_SpDs" ){val_max = val_max_proj;}
11919 if( HistoCode ==
"D_SSp_SpNb" ){val_max = fD_TNo_ChNbYmax;}
11920 if( HistoCode ==
"D_SSp_SpDs" ){val_max = val_max_proj;}
11921 if( HistoCode ==
"D_Adc_EvNb" ){val_max = fD_Ped_ChNbYmax;}
11922 if( HistoCode ==
"D_Adc_EvDs" ){val_max = val_max_proj;}
11923 if( HistoCode ==
"H_Ped_Date" ){val_max = fH_Ped_DateYmax;}
11924 if( HistoCode ==
"H_TNo_Date" ){val_max = fH_TNo_DateYmax;}
11925 if( HistoCode ==
"H_MCs_Date" ){val_max = fH_MCs_DateYmax;}
11926 if( HistoCode ==
"H_LFN_Date" ){val_max = fH_LFN_DateYmax;}
11927 if( HistoCode ==
"H_HFN_Date" ){val_max = fH_HFN_DateYmax;}
11928 if( HistoCode ==
"H_SCs_Date" ){val_max = fH_SCs_DateYmax;}
11929 if( HistoCode ==
"H_Ped_RuDs" ){val_max = fH_Ped_RuDsYmax;}
11930 if( HistoCode ==
"H_TNo_RuDs" ){val_max = fH_TNo_RuDsYmax;}
11931 if( HistoCode ==
"H_MCs_RuDs" ){val_max = fH_MCs_RuDsYmax;}
11932 if( HistoCode ==
"H_LFN_RuDs" ){val_max = fH_LFN_RuDsYmax;}
11933 if( HistoCode ==
"H_HFN_RuDs" ){val_max = fH_HFN_RuDsYmax;}
11934 if( HistoCode ==
"H_SCs_RuDs" ){val_max = fH_SCs_RuDsYmax;}
11935 if( HistoCode ==
"H2LFccMosMatrix" ){val_max = fH2LFccMosMatrixYmax;}
11936 if( HistoCode ==
"H2HFccMosMatrix" ){val_max = fH2HFccMosMatrixYmax;}
11937 if( HistoCode ==
"H2CorccInStins" ){val_max = fH2CorccInStinsYmax;}
11945 if( HistoCode ==
"D_NOE_ChNb" ){fD_NOE_ChNbYmin = GetYminValueFromMemo(
"D_NOE_ChNb");}
11946 if( HistoCode ==
"D_NOE_ChDs" ){fD_NOE_ChDsYmin = GetYminValueFromMemo(
"D_NOE_ChDs");}
11947 if( HistoCode ==
"D_Ped_ChNb" ){fD_Ped_ChNbYmin = GetYminValueFromMemo(
"D_Ped_ChNb");}
11948 if( HistoCode ==
"D_Ped_ChDs" ){fD_Ped_ChDsYmin = GetYminValueFromMemo(
"D_Ped_ChDs");}
11949 if( HistoCode ==
"D_TNo_ChNb" ){fD_TNo_ChNbYmin = GetYminValueFromMemo(
"D_TNo_ChNb");}
11950 if( HistoCode ==
"D_TNo_ChDs" ){fD_TNo_ChDsYmin = GetYminValueFromMemo(
"D_TNo_ChDs");}
11951 if( HistoCode ==
"D_MCs_ChNb" ){fD_MCs_ChNbYmin = GetYminValueFromMemo(
"D_MCs_ChNb");}
11952 if( HistoCode ==
"D_MCs_ChDs" ){fD_MCs_ChDsYmin = GetYminValueFromMemo(
"D_MCs_ChDs");}
11953 if( HistoCode ==
"D_LFN_ChNb" ){fD_LFN_ChNbYmin = GetYminValueFromMemo(
"D_LFN_ChNb");}
11954 if( HistoCode ==
"D_LFN_ChDs" ){fD_LFN_ChDsYmin = GetYminValueFromMemo(
"D_LFN_ChDs");}
11955 if( HistoCode ==
"D_HFN_ChNb" ){fD_HFN_ChNbYmin = GetYminValueFromMemo(
"D_HFN_ChNb");}
11956 if( HistoCode ==
"D_HFN_ChDs" ){fD_HFN_ChDsYmin = GetYminValueFromMemo(
"D_HFN_ChDs");}
11957 if( HistoCode ==
"D_SCs_ChNb" ){fD_SCs_ChNbYmin = GetYminValueFromMemo(
"D_SCs_ChNb");}
11958 if( HistoCode ==
"D_SCs_ChDs" ){fD_SCs_ChDsYmin = GetYminValueFromMemo(
"D_SCs_ChDs");}
11959 if( HistoCode ==
"D_MSp_SpNb" ){fD_MSp_SpNbYmin = GetYminValueFromMemo(
"D_MSp_SpNb");}
11960 if( HistoCode ==
"D_MSp_SpDs" ){fD_MSp_SpDsYmin = GetYminValueFromMemo(
"D_MSp_SpDs");}
11961 if( HistoCode ==
"D_SSp_SpNb" ){fD_SSp_SpNbYmin = GetYminValueFromMemo(
"D_SSp_SpNb");}
11962 if( HistoCode ==
"D_SSp_SpDs" ){fD_SSp_SpDsYmin = GetYminValueFromMemo(
"D_SSp_SpDs");}
11963 if( HistoCode ==
"D_Adc_EvNb" ){fD_Adc_EvNbYmin = GetYminValueFromMemo(
"D_Adc_EvNb");}
11964 if( HistoCode ==
"D_Adc_EvDs" ){fD_Adc_EvDsYmin = GetYminValueFromMemo(
"D_Adc_EvDs");}
11965 if( HistoCode ==
"H_Ped_Date" ){fH_Ped_DateYmin = GetYminValueFromMemo(
"H_Ped_Date");}
11966 if( HistoCode ==
"H_TNo_Date" ){fH_TNo_DateYmin = GetYminValueFromMemo(
"H_TNo_Date");}
11967 if( HistoCode ==
"H_MCs_Date" ){fH_MCs_DateYmin = GetYminValueFromMemo(
"H_MCs_Date");}
11968 if( HistoCode ==
"H_LFN_Date" ){fH_LFN_DateYmin = GetYminValueFromMemo(
"H_LFN_Date");}
11969 if( HistoCode ==
"H_HFN_Date" ){fH_HFN_DateYmin = GetYminValueFromMemo(
"H_HFN_Date");}
11970 if( HistoCode ==
"H_SCs_Date" ){fH_SCs_DateYmin = GetYminValueFromMemo(
"H_SCs_Date");}
11971 if( HistoCode ==
"H_Ped_RuDs" ){fH_Ped_RuDsYmin = GetYminValueFromMemo(
"H_Ped_RuDs");}
11972 if( HistoCode ==
"H_TNo_RuDs" ){fH_TNo_RuDsYmin = GetYminValueFromMemo(
"H_TNo_RuDs");}
11973 if( HistoCode ==
"H_MCs_RuDs" ){fH_MCs_RuDsYmin = GetYminValueFromMemo(
"H_MCs_RuDs");}
11974 if( HistoCode ==
"H_LFN_RuDs" ){fH_LFN_RuDsYmin = GetYminValueFromMemo(
"H_LFN_RuDs");}
11975 if( HistoCode ==
"H_HFN_RuDs" ){fH_HFN_RuDsYmin = GetYminValueFromMemo(
"H_HFN_RuDs");}
11976 if( HistoCode ==
"H_SCs_RuDs" ){fH_SCs_RuDsYmin = GetYminValueFromMemo(
"H_SCs_RuDs");}
11977 if( HistoCode ==
"H2LFccMosMatrix" ){fH2LFccMosMatrixYmin = GetYminValueFromMemo(
"H2LFccMosMatrix");}
11978 if( HistoCode ==
"H2HFccMosMatrix" ){fH2HFccMosMatrixYmin = GetYminValueFromMemo(
"H2HFccMosMatrix");}
11979 if( HistoCode ==
"H2CorccInStins" ){fH2CorccInStinsYmin = GetYminValueFromMemo(
"H2CorccInStins");}
11986 if( HistoCode ==
"D_NOE_ChNb" ){fD_NOE_ChNbYmax = GetYmaxValueFromMemo(
"D_NOE_ChNb");}
11987 if( HistoCode ==
"D_NOE_ChDs" ){fD_NOE_ChDsYmax = GetYmaxValueFromMemo(
"D_NOE_ChDs");}
11988 if( HistoCode ==
"D_Ped_ChNb" ){fD_Ped_ChNbYmax = GetYmaxValueFromMemo(
"D_Ped_ChNb");}
11989 if( HistoCode ==
"D_Ped_ChDs" ){fD_Ped_ChDsYmax = GetYmaxValueFromMemo(
"D_Ped_ChDs");}
11990 if( HistoCode ==
"D_TNo_ChNb" ){fD_TNo_ChNbYmax = GetYmaxValueFromMemo(
"D_TNo_ChNb");}
11991 if( HistoCode ==
"D_TNo_ChDs" ){fD_TNo_ChDsYmax = GetYmaxValueFromMemo(
"D_TNo_ChDs");}
11992 if( HistoCode ==
"D_MCs_ChNb" ){fD_MCs_ChNbYmax = GetYmaxValueFromMemo(
"D_MCs_ChNb");}
11993 if( HistoCode ==
"D_MCs_ChDs" ){fD_MCs_ChDsYmax = GetYmaxValueFromMemo(
"D_MCs_ChDs");}
11994 if( HistoCode ==
"D_LFN_ChNb" ){fD_LFN_ChNbYmax = GetYmaxValueFromMemo(
"D_LFN_ChNb");}
11995 if( HistoCode ==
"D_LFN_ChDs" ){fD_LFN_ChDsYmax = GetYmaxValueFromMemo(
"D_LFN_ChDs");}
11996 if( HistoCode ==
"D_HFN_ChNb" ){fD_HFN_ChNbYmax = GetYmaxValueFromMemo(
"D_HFN_ChNb");}
11997 if( HistoCode ==
"D_HFN_ChDs" ){fD_HFN_ChDsYmax = GetYmaxValueFromMemo(
"D_HFN_ChDs");}
11998 if( HistoCode ==
"D_SCs_ChNb" ){fD_SCs_ChNbYmax = GetYmaxValueFromMemo(
"D_SCs_ChNb");}
11999 if( HistoCode ==
"D_SCs_ChDs" ){fD_SCs_ChDsYmax = GetYmaxValueFromMemo(
"D_SCs_ChDs");}
12000 if( HistoCode ==
"D_MSp_SpNb" ){fD_MSp_SpNbYmax = GetYmaxValueFromMemo(
"D_MSp_SpNb");}
12001 if( HistoCode ==
"D_MSp_SpDs" ){fD_MSp_SpDsYmax = GetYmaxValueFromMemo(
"D_MSp_SpDs");}
12002 if( HistoCode ==
"D_SSp_SpNb" ){fD_SSp_SpNbYmax = GetYmaxValueFromMemo(
"D_SSp_SpNb");}
12003 if( HistoCode ==
"D_SSp_SpDs" ){fD_SSp_SpDsYmax = GetYmaxValueFromMemo(
"D_SSp_SpDs");}
12004 if( HistoCode ==
"D_Adc_EvNb" ){fD_Adc_EvNbYmax = GetYmaxValueFromMemo(
"D_Adc_EvNb");}
12005 if( HistoCode ==
"D_Adc_EvDs" ){fD_Adc_EvDsYmax = GetYmaxValueFromMemo(
"D_Adc_EvDs");}
12006 if( HistoCode ==
"H_Ped_Date" ){fH_Ped_DateYmax = GetYmaxValueFromMemo(
"H_Ped_Date");}
12007 if( HistoCode ==
"H_TNo_Date" ){fH_TNo_DateYmax = GetYmaxValueFromMemo(
"H_TNo_Date");}
12008 if( HistoCode ==
"H_MCs_Date" ){fH_MCs_DateYmax = GetYmaxValueFromMemo(
"H_MCs_Date");}
12009 if( HistoCode ==
"H_LFN_Date" ){fH_LFN_DateYmax = GetYmaxValueFromMemo(
"H_LFN_Date");}
12010 if( HistoCode ==
"H_HFN_Date" ){fH_HFN_DateYmax = GetYmaxValueFromMemo(
"H_HFN_Date");}
12011 if( HistoCode ==
"H_SCs_Date" ){fH_SCs_DateYmax = GetYmaxValueFromMemo(
"H_SCs_Date");}
12012 if( HistoCode ==
"H_Ped_RuDs" ){fH_Ped_RuDsYmax = GetYmaxValueFromMemo(
"H_Ped_RuDs");}
12013 if( HistoCode ==
"H_TNo_RuDs" ){fH_TNo_RuDsYmax = GetYmaxValueFromMemo(
"H_TNo_RuDs");}
12014 if( HistoCode ==
"H_MCs_RuDs" ){fH_MCs_RuDsYmax = GetYmaxValueFromMemo(
"H_MCs_RuDs");}
12015 if( HistoCode ==
"H_LFN_RuDs" ){fH_LFN_RuDsYmax = GetYmaxValueFromMemo(
"H_LFN_RuDs");}
12016 if( HistoCode ==
"H_HFN_RuDs" ){fH_HFN_RuDsYmax = GetYmaxValueFromMemo(
"H_HFN_RuDs");}
12017 if( HistoCode ==
"H_SCs_RuDs" ){fH_SCs_RuDsYmax = GetYmaxValueFromMemo(
"H_SCs_RuDs");}
12018 if( HistoCode ==
"H2LFccMosMatrix" ){fH2LFccMosMatrixYmax = GetYmaxValueFromMemo(
"H2LFccMosMatrix");}
12019 if( HistoCode ==
"H2HFccMosMatrix" ){fH2HFccMosMatrixYmax = GetYmaxValueFromMemo(
"H2HFccMosMatrix");}
12020 if( HistoCode ==
"H2CorccInStins" ){fH2CorccInStinsYmax = GetYmaxValueFromMemo(
"H2CorccInStins");}
12027 if( opt_plot == fSameOnePlot ){fXMemoH1SamePlus = xvar;}
12029 if( opt_plot == fOnlyOnePlot || opt_plot == fSeveralPlot )
12031 if( HistoCode ==
"D_NOE_ChNb"){fXMemoD_NOE_ChNb = xvar;}
12032 if( HistoCode ==
"D_NOE_ChDs"){fXMemoD_NOE_ChDs = xvar;}
12033 if( HistoCode ==
"D_Ped_ChNb"){fXMemoD_Ped_ChNb = xvar;}
12034 if( HistoCode ==
"D_Ped_ChDs"){fXMemoD_Ped_ChDs = xvar;}
12035 if( HistoCode ==
"D_TNo_ChNb"){fXMemoD_TNo_ChNb = xvar;}
12036 if( HistoCode ==
"D_TNo_ChDs"){fXMemoD_TNo_ChDs = xvar;}
12037 if( HistoCode ==
"D_MCs_ChNb"){fXMemoD_MCs_ChNb = xvar;}
12038 if( HistoCode ==
"D_MCs_ChDs"){fXMemoD_MCs_ChDs = xvar;}
12039 if( HistoCode ==
"D_LFN_ChNb"){fXMemoD_LFN_ChNb = xvar;}
12040 if( HistoCode ==
"D_LFN_ChDs"){fXMemoD_LFN_ChDs = xvar;}
12041 if( HistoCode ==
"D_HFN_ChNb"){fXMemoD_HFN_ChNb = xvar;}
12042 if( HistoCode ==
"D_HFN_ChDs"){fXMemoD_HFN_ChDs = xvar;}
12043 if( HistoCode ==
"D_SCs_ChNb"){fXMemoD_SCs_ChNb = xvar;}
12044 if( HistoCode ==
"D_SCs_ChDs"){fXMemoD_SCs_ChDs = xvar;}
12045 if( HistoCode ==
"D_MSp_SpNb"){fXMemoD_MSp_SpNb = xvar;}
12046 if( HistoCode ==
"D_MSp_SpDs"){fXMemoD_MSp_SpDs = xvar;}
12047 if( HistoCode ==
"D_SSp_SpNb"){fXMemoD_SSp_SpNb = xvar;}
12048 if( HistoCode ==
"D_SSp_SpDs"){fXMemoD_SSp_SpDs = xvar;}
12049 if( HistoCode ==
"D_Adc_EvNb"){fXMemoD_Adc_EvNb = xvar;}
12050 if( HistoCode ==
"D_Adc_EvDs"){fXMemoD_Adc_EvDs = xvar;}
12051 if( HistoCode ==
"H_Ped_Date"){fXMemoH_Ped_Date = xvar;}
12052 if( HistoCode ==
"H_TNo_Date"){fXMemoH_TNo_Date = xvar;}
12053 if( HistoCode ==
"H_MCs_Date"){fXMemoH_MCs_Date = xvar;}
12054 if( HistoCode ==
"H_LFN_Date"){fXMemoH_LFN_Date = xvar;}
12055 if( HistoCode ==
"H_HFN_Date"){fXMemoH_HFN_Date = xvar;}
12056 if( HistoCode ==
"H_SCs_Date"){fXMemoH_SCs_Date = xvar;}
12057 if( HistoCode ==
"H_Ped_RuDs"){fXMemoH_Ped_RuDs = xvar;}
12058 if( HistoCode ==
"H_TNo_RuDs"){fXMemoH_TNo_RuDs = xvar;}
12059 if( HistoCode ==
"H_MCs_RuDs"){fXMemoH_MCs_RuDs = xvar;}
12060 if( HistoCode ==
"H_LFN_RuDs"){fXMemoH_LFN_RuDs = xvar;}
12061 if( HistoCode ==
"H_HFN_RuDs"){fXMemoH_HFN_RuDs = xvar;}
12062 if( HistoCode ==
"H_SCs_RuDs"){fXMemoH_SCs_RuDs = xvar;}
12068 TString xvar =
"(xvar not found)";
12070 if( opt_plot == fSameOnePlot ){xvar = fXMemoH1SamePlus;}
12072 if( opt_plot == fOnlyOnePlot || opt_plot == fSeveralPlot )
12074 if( HistoCode ==
"D_NOE_ChNb"){xvar = fXMemoD_NOE_ChNb;}
12075 if( HistoCode ==
"D_NOE_ChDs"){xvar = fXMemoD_NOE_ChDs;}
12076 if( HistoCode ==
"D_Ped_ChNb"){xvar = fXMemoD_Ped_ChNb;}
12077 if( HistoCode ==
"D_Ped_ChDs"){xvar = fXMemoD_Ped_ChDs;}
12078 if( HistoCode ==
"D_TNo_ChNb"){xvar = fXMemoD_TNo_ChNb;}
12079 if( HistoCode ==
"D_TNo_ChDs"){xvar = fXMemoD_TNo_ChDs;}
12080 if( HistoCode ==
"D_MCs_ChNb"){xvar = fXMemoD_MCs_ChNb;}
12081 if( HistoCode ==
"D_MCs_ChDs"){xvar = fXMemoD_MCs_ChDs;}
12082 if( HistoCode ==
"D_LFN_ChNb"){xvar = fXMemoD_LFN_ChNb;}
12083 if( HistoCode ==
"D_LFN_ChDs"){xvar = fXMemoD_LFN_ChDs;}
12084 if( HistoCode ==
"D_HFN_ChNb"){xvar = fXMemoD_HFN_ChNb;}
12085 if( HistoCode ==
"D_HFN_ChDs"){xvar = fXMemoD_HFN_ChDs;}
12086 if( HistoCode ==
"D_SCs_ChNb"){xvar = fXMemoD_SCs_ChNb;}
12087 if( HistoCode ==
"D_SCs_ChDs"){xvar = fXMemoD_SCs_ChDs;}
12088 if( HistoCode ==
"D_MSp_SpNb"){xvar = fXMemoD_MSp_SpNb;}
12089 if( HistoCode ==
"D_MSp_SpDs"){xvar = fXMemoD_MSp_SpDs;}
12090 if( HistoCode ==
"D_SSp_SpNb"){xvar = fXMemoD_SSp_SpNb;}
12091 if( HistoCode ==
"D_SSp_SpDs"){xvar = fXMemoD_SSp_SpDs;}
12092 if( HistoCode ==
"D_Adc_EvNb"){xvar = fXMemoD_Adc_EvNb;}
12093 if( HistoCode ==
"D_Adc_EvDs"){xvar = fXMemoD_Adc_EvDs;}
12094 if( HistoCode ==
"H_Ped_Date"){xvar = fXMemoH_Ped_Date;}
12095 if( HistoCode ==
"H_TNo_Date"){xvar = fXMemoH_TNo_Date;}
12096 if( HistoCode ==
"H_MCs_Date"){xvar = fXMemoH_MCs_Date;}
12097 if( HistoCode ==
"H_LFN_Date"){xvar = fXMemoH_LFN_Date;}
12098 if( HistoCode ==
"H_HFN_Date"){xvar = fXMemoH_HFN_Date;}
12099 if( HistoCode ==
"H_SCs_Date"){xvar = fXMemoH_SCs_Date;}
12100 if( HistoCode ==
"H_Ped_RuDs"){xvar = fXMemoH_Ped_RuDs;}
12101 if( HistoCode ==
"H_TNo_RuDs"){xvar = fXMemoH_TNo_RuDs;}
12102 if( HistoCode ==
"H_MCs_RuDs"){xvar = fXMemoH_MCs_RuDs;}
12103 if( HistoCode ==
"H_LFN_RuDs"){xvar = fXMemoH_LFN_RuDs;}
12104 if( HistoCode ==
"H_HFN_RuDs"){xvar = fXMemoH_HFN_RuDs;}
12105 if( HistoCode ==
"H_SCs_RuDs"){xvar = fXMemoH_SCs_RuDs;}
12113 if( opt_plot == fSameOnePlot ){fYMemoH1SamePlus = yvar;}
12115 if( opt_plot == fOnlyOnePlot || opt_plot == fSeveralPlot )
12117 if( HistoCode ==
"D_NOE_ChNb"){fYMemoD_NOE_ChNb = yvar;}
12118 if( HistoCode ==
"D_NOE_ChDs"){fYMemoD_NOE_ChDs = yvar;}
12119 if( HistoCode ==
"D_Ped_ChNb"){fYMemoD_Ped_ChNb = yvar;}
12120 if( HistoCode ==
"D_Ped_ChDs"){fYMemoD_Ped_ChDs = yvar;}
12121 if( HistoCode ==
"D_TNo_ChNb"){fYMemoD_TNo_ChNb = yvar;}
12122 if( HistoCode ==
"D_TNo_ChDs"){fYMemoD_TNo_ChDs = yvar;}
12123 if( HistoCode ==
"D_MCs_ChNb"){fYMemoD_MCs_ChNb = yvar;}
12124 if( HistoCode ==
"D_MCs_ChDs"){fYMemoD_MCs_ChDs = yvar;}
12125 if( HistoCode ==
"D_LFN_ChNb"){fYMemoD_LFN_ChNb = yvar;}
12126 if( HistoCode ==
"D_LFN_ChDs"){fYMemoD_LFN_ChDs = yvar;}
12127 if( HistoCode ==
"D_HFN_ChNb"){fYMemoD_HFN_ChNb = yvar;}
12128 if( HistoCode ==
"D_HFN_ChDs"){fYMemoD_HFN_ChDs = yvar;}
12129 if( HistoCode ==
"D_SCs_ChNb"){fYMemoD_SCs_ChNb = yvar;}
12130 if( HistoCode ==
"D_SCs_ChDs"){fYMemoD_SCs_ChDs = yvar;}
12131 if( HistoCode ==
"D_MSp_SpNb"){fYMemoD_MSp_SpNb = yvar;}
12132 if( HistoCode ==
"D_MSp_SpDs"){fYMemoD_MSp_SpDs = yvar;}
12133 if( HistoCode ==
"D_SSp_SpNb"){fYMemoD_SSp_SpNb = yvar;}
12134 if( HistoCode ==
"D_Adc_EvDs"){fYMemoD_Adc_EvDs = yvar;}
12135 if( HistoCode ==
"D_SSp_SpDs"){fYMemoD_SSp_SpDs = yvar;}
12136 if( HistoCode ==
"D_Adc_EvNb"){fYMemoD_Adc_EvNb = yvar;}
12137 if( HistoCode ==
"H_Ped_Date"){fYMemoH_Ped_Date = yvar;}
12138 if( HistoCode ==
"H_TNo_Date"){fYMemoH_TNo_Date = yvar;}
12139 if( HistoCode ==
"H_MCs_Date"){fYMemoH_MCs_Date = yvar;}
12140 if( HistoCode ==
"H_LFN_Date"){fYMemoH_LFN_Date = yvar;}
12141 if( HistoCode ==
"H_HFN_Date"){fYMemoH_HFN_Date = yvar;}
12142 if( HistoCode ==
"H_SCs_Date"){fYMemoH_SCs_Date = yvar;}
12143 if( HistoCode ==
"H_Ped_RuDs"){fYMemoH_Ped_RuDs = yvar;}
12144 if( HistoCode ==
"H_TNo_RuDs"){fYMemoH_TNo_RuDs = yvar;}
12145 if( HistoCode ==
"H_MCs_RuDs"){fYMemoH_MCs_RuDs = yvar;}
12146 if( HistoCode ==
"H_LFN_RuDs"){fYMemoH_LFN_RuDs = yvar;}
12147 if( HistoCode ==
"H_HFN_RuDs"){fYMemoH_HFN_RuDs = yvar;}
12148 if( HistoCode ==
"H_SCs_RuDs"){fYMemoH_SCs_RuDs = yvar;}
12154 TString yvar =
"(yvar not found)";
12156 if( opt_plot == fSameOnePlot ){yvar = fYMemoH1SamePlus;}
12158 if( opt_plot == fOnlyOnePlot || opt_plot == fSeveralPlot )
12160 if( HistoCode ==
"D_NOE_ChNb"){yvar = fYMemoD_NOE_ChNb;}
12161 if( HistoCode ==
"D_NOE_ChDs"){yvar = fYMemoD_NOE_ChDs;}
12162 if( HistoCode ==
"D_Ped_ChNb"){yvar = fYMemoD_Ped_ChNb;}
12163 if( HistoCode ==
"D_Ped_ChDs"){yvar = fYMemoD_Ped_ChDs;}
12164 if( HistoCode ==
"D_TNo_ChNb"){yvar = fYMemoD_TNo_ChNb;}
12165 if( HistoCode ==
"D_TNo_ChDs"){yvar = fYMemoD_TNo_ChDs;}
12166 if( HistoCode ==
"D_MCs_ChNb"){yvar = fYMemoD_MCs_ChNb;}
12167 if( HistoCode ==
"D_MCs_ChDs"){yvar = fYMemoD_MCs_ChDs;}
12168 if( HistoCode ==
"D_LFN_ChNb"){yvar = fYMemoD_LFN_ChNb;}
12169 if( HistoCode ==
"D_LFN_ChDs"){yvar = fYMemoD_LFN_ChDs;}
12170 if( HistoCode ==
"D_HFN_ChNb"){yvar = fYMemoD_HFN_ChNb;}
12171 if( HistoCode ==
"D_HFN_ChDs"){yvar = fYMemoD_HFN_ChDs;}
12172 if( HistoCode ==
"D_SCs_ChNb"){yvar = fYMemoD_SCs_ChNb;}
12173 if( HistoCode ==
"D_SCs_ChDs"){yvar = fYMemoD_SCs_ChDs;}
12174 if( HistoCode ==
"D_MSp_SpNb"){yvar = fYMemoD_MSp_SpNb;}
12175 if( HistoCode ==
"D_MSp_SpDs"){yvar = fYMemoD_MSp_SpDs;}
12176 if( HistoCode ==
"D_SSp_SpNb"){yvar = fYMemoD_SSp_SpNb;}
12177 if( HistoCode ==
"D_SSp_SpDs"){yvar = fYMemoD_SSp_SpDs;}
12178 if( HistoCode ==
"D_Adc_EvNb"){yvar = fYMemoD_Adc_EvNb;}
12179 if( HistoCode ==
"D_Adc_EvDs"){yvar = fYMemoD_Adc_EvDs;}
12180 if( HistoCode ==
"H_Ped_Date"){yvar = fYMemoH_Ped_Date;}
12181 if( HistoCode ==
"H_TNo_Date"){yvar = fYMemoH_TNo_Date;}
12182 if( HistoCode ==
"H_MCs_Date"){yvar = fYMemoH_MCs_Date;}
12183 if( HistoCode ==
"H_LFN_Date"){yvar = fYMemoH_LFN_Date;}
12184 if( HistoCode ==
"H_HFN_Date"){yvar = fYMemoH_HFN_Date;}
12185 if( HistoCode ==
"H_SCs_Date"){yvar = fYMemoH_SCs_Date;}
12186 if( HistoCode ==
"H_Ped_RuDs"){yvar = fYMemoH_Ped_RuDs;}
12187 if( HistoCode ==
"H_TNo_RuDs"){yvar = fYMemoH_TNo_RuDs;}
12188 if( HistoCode ==
"H_MCs_RuDs"){yvar = fYMemoH_MCs_RuDs;}
12189 if( HistoCode ==
"H_LFN_RuDs"){yvar = fYMemoH_LFN_RuDs;}
12190 if( HistoCode ==
"H_HFN_RuDs"){yvar = fYMemoH_HFN_RuDs;}
12191 if( HistoCode ==
"H_SCs_RuDs"){yvar = fYMemoH_SCs_RuDs;}
12199 if( opt_plot == fSameOnePlot ){fNbBinsMemoH1SamePlus = nb_bins;}
12201 if( opt_plot == fOnlyOnePlot || opt_plot == fSeveralPlot )
12203 if( HistoCode ==
"D_NOE_ChNb"){fNbBinsMemoD_NOE_ChNb = nb_bins;}
12204 if( HistoCode ==
"D_NOE_ChDs"){fNbBinsMemoD_NOE_ChDs = nb_bins;}
12205 if( HistoCode ==
"D_Ped_ChNb"){fNbBinsMemoD_Ped_ChNb = nb_bins;}
12206 if( HistoCode ==
"D_Ped_ChDs"){fNbBinsMemoD_Ped_ChDs = nb_bins;}
12207 if( HistoCode ==
"D_TNo_ChNb"){fNbBinsMemoD_TNo_ChNb = nb_bins;}
12208 if( HistoCode ==
"D_TNo_ChDs"){fNbBinsMemoD_TNo_ChDs = nb_bins;}
12209 if( HistoCode ==
"D_MCs_ChNb"){fNbBinsMemoD_MCs_ChNb = nb_bins;}
12210 if( HistoCode ==
"D_MCs_ChDs"){fNbBinsMemoD_MCs_ChDs = nb_bins;}
12211 if( HistoCode ==
"D_LFN_ChNb"){fNbBinsMemoD_LFN_ChNb = nb_bins;}
12212 if( HistoCode ==
"D_LFN_ChDs"){fNbBinsMemoD_LFN_ChDs = nb_bins;}
12213 if( HistoCode ==
"D_HFN_ChNb"){fNbBinsMemoD_HFN_ChNb = nb_bins;}
12214 if( HistoCode ==
"D_HFN_ChDs"){fNbBinsMemoD_HFN_ChDs = nb_bins;}
12215 if( HistoCode ==
"D_SCs_ChNb"){fNbBinsMemoD_SCs_ChNb = nb_bins;}
12216 if( HistoCode ==
"D_SCs_ChDs"){fNbBinsMemoD_SCs_ChDs = nb_bins;}
12217 if( HistoCode ==
"D_MSp_SpNb"){fNbBinsMemoD_MSp_SpNb = nb_bins;}
12218 if( HistoCode ==
"D_MSp_SpDs"){fNbBinsMemoD_MSp_SpDs = nb_bins;}
12219 if( HistoCode ==
"D_SSp_SpNb"){fNbBinsMemoD_SSp_SpNb = nb_bins;}
12220 if( HistoCode ==
"D_SSp_SpDs"){fNbBinsMemoD_SSp_SpDs = nb_bins;}
12221 if( HistoCode ==
"D_Adc_EvNb"){fNbBinsMemoD_Adc_EvNb = nb_bins;}
12222 if( HistoCode ==
"D_Adc_EvDs"){fNbBinsMemoD_Adc_EvDs = nb_bins;}
12223 if( HistoCode ==
"H_Ped_Date"){fNbBinsMemoH_Ped_Date = nb_bins;}
12224 if( HistoCode ==
"H_TNo_Date"){fNbBinsMemoH_TNo_Date = nb_bins;}
12225 if( HistoCode ==
"H_MCs_Date"){fNbBinsMemoH_MCs_Date = nb_bins;}
12226 if( HistoCode ==
"H_LFN_Date"){fNbBinsMemoH_LFN_Date = nb_bins;}
12227 if( HistoCode ==
"H_HFN_Date"){fNbBinsMemoH_HFN_Date = nb_bins;}
12228 if( HistoCode ==
"H_SCs_Date"){fNbBinsMemoH_SCs_Date = nb_bins;}
12229 if( HistoCode ==
"H_Ped_RuDs"){fNbBinsMemoH_Ped_RuDs = nb_bins;}
12230 if( HistoCode ==
"H_TNo_RuDs"){fNbBinsMemoH_TNo_RuDs = nb_bins;}
12231 if( HistoCode ==
"H_MCs_RuDs"){fNbBinsMemoH_MCs_RuDs = nb_bins;}
12232 if( HistoCode ==
"H_LFN_RuDs"){fNbBinsMemoH_LFN_RuDs = nb_bins;}
12233 if( HistoCode ==
"H_HFN_RuDs"){fNbBinsMemoH_HFN_RuDs = nb_bins;}
12234 if( HistoCode ==
"H_SCs_RuDs"){fNbBinsMemoH_SCs_RuDs = nb_bins;}
12242 if( opt_plot == fSameOnePlot ){nb_bins = fNbBinsMemoH1SamePlus;}
12244 if( opt_plot == fOnlyOnePlot || opt_plot == fSeveralPlot )
12246 if( HistoCode ==
"D_NOE_ChNb"){nb_bins = fNbBinsMemoD_NOE_ChNb;}
12247 if( HistoCode ==
"D_NOE_ChDs"){nb_bins = fNbBinsMemoD_NOE_ChDs;}
12248 if( HistoCode ==
"D_Ped_ChNb"){nb_bins = fNbBinsMemoD_Ped_ChNb;}
12249 if( HistoCode ==
"D_Ped_ChDs"){nb_bins = fNbBinsMemoD_Ped_ChDs;}
12250 if( HistoCode ==
"D_TNo_ChNb"){nb_bins = fNbBinsMemoD_TNo_ChNb;}
12251 if( HistoCode ==
"D_TNo_ChDs"){nb_bins = fNbBinsMemoD_TNo_ChDs;}
12252 if( HistoCode ==
"D_MCs_ChNb"){nb_bins = fNbBinsMemoD_MCs_ChNb;}
12253 if( HistoCode ==
"D_MCs_ChDs"){nb_bins = fNbBinsMemoD_MCs_ChDs;}
12254 if( HistoCode ==
"D_LFN_ChNb"){nb_bins = fNbBinsMemoD_LFN_ChNb;}
12255 if( HistoCode ==
"D_LFN_ChDs"){nb_bins = fNbBinsMemoD_LFN_ChDs;}
12256 if( HistoCode ==
"D_HFN_ChNb"){nb_bins = fNbBinsMemoD_HFN_ChNb;}
12257 if( HistoCode ==
"D_HFN_ChDs"){nb_bins = fNbBinsMemoD_HFN_ChDs;}
12258 if( HistoCode ==
"D_SCs_ChNb"){nb_bins = fNbBinsMemoD_SCs_ChNb;}
12259 if( HistoCode ==
"D_SCs_ChDs"){nb_bins = fNbBinsMemoD_SCs_ChDs;}
12260 if( HistoCode ==
"D_MSp_SpNb"){nb_bins = fNbBinsMemoD_MSp_SpNb;}
12261 if( HistoCode ==
"D_MSp_SpDs"){nb_bins = fNbBinsMemoD_MSp_SpDs;}
12262 if( HistoCode ==
"D_SSp_SpNb"){nb_bins = fNbBinsMemoD_SSp_SpNb;}
12263 if( HistoCode ==
"D_SSp_SpDs"){nb_bins = fNbBinsMemoD_SSp_SpDs;}
12264 if( HistoCode ==
"D_Adc_EvNb"){nb_bins = fNbBinsMemoD_Adc_EvNb;}
12265 if( HistoCode ==
"D_Adc_EvDs"){nb_bins = fNbBinsMemoD_Adc_EvDs;}
12266 if( HistoCode ==
"H_Ped_Date"){nb_bins = fNbBinsMemoH_Ped_Date;}
12267 if( HistoCode ==
"H_TNo_Date"){nb_bins = fNbBinsMemoH_TNo_Date;}
12268 if( HistoCode ==
"H_MCs_Date"){nb_bins = fNbBinsMemoH_MCs_Date;}
12269 if( HistoCode ==
"H_LFN_Date"){nb_bins = fNbBinsMemoH_LFN_Date;}
12270 if( HistoCode ==
"H_HFN_Date"){nb_bins = fNbBinsMemoH_HFN_Date;}
12271 if( HistoCode ==
"H_SCs_Date"){nb_bins = fNbBinsMemoH_SCs_Date;}
12272 if( HistoCode ==
"H_Ped_RuDs"){nb_bins = fNbBinsMemoH_Ped_RuDs;}
12273 if( HistoCode ==
"H_TNo_RuDs"){nb_bins = fNbBinsMemoH_TNo_RuDs;}
12274 if( HistoCode ==
"H_MCs_RuDs"){nb_bins = fNbBinsMemoH_MCs_RuDs;}
12275 if( HistoCode ==
"H_LFN_RuDs"){nb_bins = fNbBinsMemoH_LFN_RuDs;}
12276 if( HistoCode ==
"H_HFN_RuDs"){nb_bins = fNbBinsMemoH_HFN_RuDs;}
12277 if( HistoCode ==
"H_SCs_RuDs"){nb_bins = fNbBinsMemoH_SCs_RuDs;}
12285 Int_t MaxCar = fgMaxCar;
12286 memo_flag.Resize(MaxCar);
12287 memo_flag =
"(no memo_flag info)";
12289 Int_t memo_flag_number = -1;
12291 if( opt_plot == fSameOnePlot ){memo_flag_number = fMemoPlotH1SamePlus;}
12293 if( opt_plot == fOnlyOnePlot || opt_plot == fSeveralPlot )
12295 memo_flag_number = fMemoPlotD_TNo_ChDs+fMemoPlotD_MCs_ChDs
12296 +fMemoPlotD_LFN_ChDs+fMemoPlotD_HFN_ChDs+fMemoPlotD_SCs_ChDs;
12299 if(memo_flag_number == 0){memo_flag =
"Free";}
12300 if(memo_flag_number >= 1){memo_flag =
"Busy";}
12310 Int_t MaxCar = fgMaxCar;
12311 memo_flag.Resize(MaxCar);
12312 memo_flag =
"(no memo_flag info)";
12314 Int_t memo_flag_number = -1;
12316 if( opt_plot == fSameOnePlot ){memo_flag_number = fMemoPlotH1SamePlus;}
12318 if( opt_plot == fOnlyOnePlot || opt_plot == fSeveralPlot )
12320 if(HistoCode ==
"D_NOE_ChNb"){memo_flag_number = fMemoPlotD_NOE_ChNb;}
12321 if(HistoCode ==
"D_NOE_ChDs"){memo_flag_number = fMemoPlotD_NOE_ChDs;}
12322 if(HistoCode ==
"D_Ped_ChNb"){memo_flag_number = fMemoPlotD_Ped_ChNb;}
12323 if(HistoCode ==
"D_Ped_ChDs"){memo_flag_number = fMemoPlotD_Ped_ChDs;}
12324 if(HistoCode ==
"D_TNo_ChNb"){memo_flag_number = fMemoPlotD_TNo_ChNb;}
12325 if(HistoCode ==
"D_TNo_ChDs"){memo_flag_number = fMemoPlotD_TNo_ChDs;}
12326 if(HistoCode ==
"D_MCs_ChNb"){memo_flag_number = fMemoPlotD_MCs_ChNb;}
12327 if(HistoCode ==
"D_MCs_ChDs"){memo_flag_number = fMemoPlotD_MCs_ChDs;}
12328 if(HistoCode ==
"D_LFN_ChNb"){memo_flag_number = fMemoPlotD_LFN_ChNb;}
12329 if(HistoCode ==
"D_LFN_ChDs"){memo_flag_number = fMemoPlotD_LFN_ChDs;}
12330 if(HistoCode ==
"D_HFN_ChNb"){memo_flag_number = fMemoPlotD_HFN_ChNb;}
12331 if(HistoCode ==
"D_HFN_ChDs"){memo_flag_number = fMemoPlotD_HFN_ChDs;}
12332 if(HistoCode ==
"D_SCs_ChNb"){memo_flag_number = fMemoPlotD_SCs_ChNb;}
12333 if(HistoCode ==
"D_SCs_ChDs"){memo_flag_number = fMemoPlotD_SCs_ChDs;}
12334 if(HistoCode ==
"D_MSp_SpNb"){memo_flag_number = fMemoPlotD_MSp_SpNb;}
12335 if(HistoCode ==
"D_MSp_SpDs"){memo_flag_number = fMemoPlotD_MSp_SpDs;}
12336 if(HistoCode ==
"D_SSp_SpNb"){memo_flag_number = fMemoPlotD_SSp_SpNb;}
12337 if(HistoCode ==
"D_SSp_SpDs"){memo_flag_number = fMemoPlotD_SSp_SpDs;}
12338 if(HistoCode ==
"D_Adc_EvNb"){memo_flag_number = fMemoPlotD_Adc_EvNb;}
12339 if(HistoCode ==
"D_Adc_EvDs"){memo_flag_number = fMemoPlotD_Adc_EvDs;}
12340 if(HistoCode ==
"H_Ped_Date"){memo_flag_number = fMemoPlotH_Ped_Date;}
12341 if(HistoCode ==
"H_TNo_Date"){memo_flag_number = fMemoPlotH_TNo_Date;}
12342 if(HistoCode ==
"H_MCs_Date"){memo_flag_number = fMemoPlotH_MCs_Date;}
12343 if(HistoCode ==
"H_LFN_Date"){memo_flag_number = fMemoPlotH_LFN_Date;}
12344 if(HistoCode ==
"H_HFN_Date"){memo_flag_number = fMemoPlotH_HFN_Date;}
12345 if(HistoCode ==
"H_SCs_Date"){memo_flag_number = fMemoPlotH_SCs_Date;}
12346 if(HistoCode ==
"H_Ped_RuDs"){memo_flag_number = fMemoPlotH_Ped_RuDs;}
12347 if(HistoCode ==
"H_TNo_RuDs"){memo_flag_number = fMemoPlotH_TNo_RuDs;}
12348 if(HistoCode ==
"H_MCs_RuDs"){memo_flag_number = fMemoPlotH_MCs_RuDs;}
12349 if(HistoCode ==
"H_LFN_RuDs"){memo_flag_number = fMemoPlotH_LFN_RuDs;}
12350 if(HistoCode ==
"H_HFN_RuDs"){memo_flag_number = fMemoPlotH_HFN_RuDs;}
12351 if(HistoCode ==
"H_SCs_RuDs"){memo_flag_number = fMemoPlotH_SCs_RuDs;}
12354 if(memo_flag_number == 0){memo_flag =
"Free";}
12355 if(memo_flag_number == 1){memo_flag =
"Busy";}
12361 UInt_t canv_w, UInt_t canv_h)
12365 TCanvas* main_canvas = 0;
12367 if( opt_plot == fSameOnePlot )
12369 fCanvH1SamePlus =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12370 main_canvas = fCanvH1SamePlus;
12372 if( opt_plot == fSeveralPlot || opt_plot == fOnlyOnePlot )
12374 if(HistoCode ==
"D_NOE_ChNb"){
12375 fCanvD_NOE_ChNb =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12376 main_canvas = fCanvD_NOE_ChNb;}
12377 if(HistoCode ==
"D_NOE_ChDs"){
12378 fCanvD_NOE_ChDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12379 main_canvas = fCanvD_NOE_ChDs;}
12380 if(HistoCode ==
"D_Ped_ChNb"){
12381 fCanvD_Ped_ChNb =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12382 main_canvas = fCanvD_Ped_ChNb;}
12383 if(HistoCode ==
"D_Ped_ChDs"){
12384 fCanvD_Ped_ChDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12385 main_canvas = fCanvD_Ped_ChDs;}
12386 if(HistoCode ==
"D_TNo_ChNb"){
12387 fCanvD_TNo_ChNb =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12388 main_canvas = fCanvD_TNo_ChNb;}
12389 if(HistoCode ==
"D_TNo_ChDs"){
12390 fCanvD_TNo_ChDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12391 main_canvas = fCanvD_TNo_ChDs;}
12392 if(HistoCode ==
"D_MCs_ChNb"){
12393 fCanvD_MCs_ChNb =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12394 main_canvas = fCanvD_MCs_ChNb;}
12395 if(HistoCode ==
"D_MCs_ChDs"){
12396 fCanvD_MCs_ChDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12397 main_canvas = fCanvD_MCs_ChDs;}
12398 if(HistoCode ==
"D_LFN_ChNb"){
12399 fCanvD_LFN_ChNb =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12400 main_canvas = fCanvD_LFN_ChNb;}
12401 if(HistoCode ==
"D_LFN_ChDs"){
12402 fCanvD_LFN_ChDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12403 main_canvas = fCanvD_LFN_ChDs;}
12404 if(HistoCode ==
"D_HFN_ChNb"){
12405 fCanvD_HFN_ChNb =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12406 main_canvas = fCanvD_HFN_ChNb;}
12407 if(HistoCode ==
"D_HFN_ChDs"){
12408 fCanvD_HFN_ChDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12409 main_canvas = fCanvD_HFN_ChDs;}
12410 if(HistoCode ==
"D_SCs_ChNb"){
12411 fCanvD_SCs_ChNb =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12412 main_canvas = fCanvD_SCs_ChNb;}
12413 if(HistoCode ==
"D_SCs_ChDs"){
12414 fCanvD_SCs_ChDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12415 main_canvas = fCanvD_SCs_ChDs;}
12417 if(HistoCode ==
"D_MSp_SpNb" ){
12418 fCanvD_MSp_SpNb =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12419 main_canvas = fCanvD_MSp_SpNb;}
12420 if(HistoCode ==
"D_MSp_SpDs" ){
12421 fCanvD_MSp_SpDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12422 main_canvas = fCanvD_MSp_SpDs;}
12423 if(HistoCode ==
"D_SSp_SpNb" ){
12424 fCanvD_SSp_SpNb =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12425 main_canvas = fCanvD_SSp_SpNb;}
12426 if(HistoCode ==
"D_SSp_SpDs" ){
12427 fCanvD_SSp_SpDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12428 main_canvas = fCanvD_SSp_SpDs;}
12430 if(HistoCode ==
"D_Adc_EvNb"){
12431 fCanvD_Adc_EvNb =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12432 main_canvas = fCanvD_Adc_EvNb;}
12433 if(HistoCode ==
"D_Adc_EvDs"){
12434 fCanvD_Adc_EvDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12435 main_canvas = fCanvD_Adc_EvDs;}
12437 if(HistoCode ==
"H_Ped_Date"){
12438 fCanvH_Ped_Date =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12439 main_canvas = fCanvH_Ped_Date;}
12440 if(HistoCode ==
"H_TNo_Date"){
12441 fCanvH_TNo_Date =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12442 main_canvas = fCanvH_TNo_Date;}
12443 if(HistoCode ==
"H_MCs_Date"){
12444 fCanvH_MCs_Date =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12445 main_canvas = fCanvH_MCs_Date;}
12446 if(HistoCode ==
"H_LFN_Date"){
12447 fCanvH_LFN_Date =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12448 main_canvas = fCanvH_LFN_Date;}
12449 if(HistoCode ==
"H_HFN_Date"){
12450 fCanvH_HFN_Date =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12451 main_canvas = fCanvH_HFN_Date;}
12452 if(HistoCode ==
"H_SCs_Date"){
12453 fCanvH_SCs_Date =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12454 main_canvas = fCanvH_SCs_Date;}
12456 if(HistoCode ==
"H_Ped_RuDs"){
12457 fCanvH_Ped_RuDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12458 main_canvas = fCanvH_Ped_RuDs;}
12459 if(HistoCode ==
"H_TNo_RuDs"){
12460 fCanvH_TNo_RuDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12461 main_canvas = fCanvH_TNo_RuDs;}
12462 if(HistoCode ==
"H_MCs_RuDs"){
12463 fCanvH_MCs_RuDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12464 main_canvas = fCanvH_MCs_RuDs;}
12465 if(HistoCode ==
"H_LFN_RuDs"){
12466 fCanvH_LFN_RuDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12467 main_canvas = fCanvH_LFN_RuDs;}
12468 if(HistoCode ==
"H_HFN_RuDs"){
12469 fCanvH_HFN_RuDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12470 main_canvas = fCanvH_HFN_RuDs;}
12471 if(HistoCode ==
"H_SCs_RuDs"){
12472 fCanvH_SCs_RuDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h); fCnewRoot++;
12473 main_canvas = fCanvH_SCs_RuDs;}
12476 return main_canvas;
12484 Double_t x_margin_factor = fCnaParHistos->BoxLeftX(
"bottom_left_box") - 0.005;
12485 Double_t y_margin_factor = fCnaParHistos->BoxTopY(
"bottom_right_box") + 0.005;
12487 if( opt_plot == fSameOnePlot )
12489 fImpH1SamePlus = (TCanvasImp*)fCanvH1SamePlus->GetCanvasImp();
12490 fCanvH1SamePlus->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12491 fPadH1SamePlus = gPad; fClosedH1SamePlus = kFALSE;
12492 fMemoPlotH1SamePlus = 1; fMemoColorH1SamePlus = 0;
12495 if( opt_plot == fOnlyOnePlot || opt_plot == fSeveralPlot)
12497 if(HistoCode ==
"D_NOE_ChNb")
12499 fImpD_NOE_ChNb = (TCanvasImp*)fCanvD_NOE_ChNb->GetCanvasImp();
12500 fCanvD_NOE_ChNb->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12501 fPadD_NOE_ChNb = gPad; fClosedD_NOE_ChNb = kFALSE;
12502 fMemoPlotD_NOE_ChNb = 1; fMemoColorD_NOE_ChNb = 0;
12505 if(HistoCode ==
"D_NOE_ChDs")
12507 fImpD_NOE_ChDs = (TCanvasImp*)fCanvD_NOE_ChDs->GetCanvasImp();
12508 fCanvD_NOE_ChDs->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12509 fPadD_NOE_ChDs = gPad; fClosedD_NOE_ChDs = kFALSE;
12510 fMemoPlotD_NOE_ChDs = 1; fMemoColorD_NOE_ChDs = 0;
12513 if(HistoCode ==
"D_Ped_ChNb")
12515 fImpD_Ped_ChNb = (TCanvasImp*)fCanvD_Ped_ChNb->GetCanvasImp();
12516 fCanvD_Ped_ChNb->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12517 fPadD_Ped_ChNb = gPad; fClosedD_Ped_ChNb = kFALSE;
12518 fMemoPlotD_Ped_ChNb = 1; fMemoColorD_Ped_ChNb = 0;
12521 if(HistoCode ==
"D_Ped_ChDs")
12523 fImpD_Ped_ChDs = (TCanvasImp*)fCanvD_Ped_ChDs->GetCanvasImp();
12524 fCanvD_Ped_ChDs->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12525 fPadD_Ped_ChDs = gPad; fClosedD_Ped_ChDs = kFALSE;
12526 fMemoPlotD_Ped_ChDs = 1; fMemoColorD_Ped_ChDs = 0;
12529 if(HistoCode ==
"D_TNo_ChNb")
12531 fImpD_TNo_ChNb = (TCanvasImp*)fCanvD_TNo_ChNb->GetCanvasImp();
12532 fCanvD_TNo_ChNb->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12533 fPadD_TNo_ChNb = gPad; fClosedD_TNo_ChNb = kFALSE;
12534 fMemoPlotD_TNo_ChNb = 1; fMemoColorD_TNo_ChNb = 0;
12537 if(HistoCode ==
"D_TNo_ChDs")
12539 fImpD_TNo_ChDs = (TCanvasImp*)fCanvD_TNo_ChDs->GetCanvasImp();
12540 fCanvD_TNo_ChDs->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12541 fPadD_TNo_ChDs = gPad; fClosedD_TNo_ChDs = kFALSE;
12542 fMemoPlotD_TNo_ChDs = 1; fMemoColorD_TNo_ChDs = 0;
12545 if(HistoCode ==
"D_MCs_ChNb")
12547 fImpD_MCs_ChNb = (TCanvasImp*)fCanvD_MCs_ChNb->GetCanvasImp();
12548 fCanvD_MCs_ChNb->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12549 fPadD_MCs_ChNb = gPad; fClosedD_MCs_ChNb = kFALSE;
12550 fMemoPlotD_MCs_ChNb = 1; fMemoColorD_MCs_ChNb = 0;
12553 if(HistoCode ==
"D_MCs_ChDs")
12555 fImpD_MCs_ChDs = (TCanvasImp*)fCanvD_MCs_ChDs->GetCanvasImp();
12556 fCanvD_MCs_ChDs->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12557 fPadD_MCs_ChDs = gPad; fClosedD_MCs_ChDs = kFALSE;
12558 fMemoPlotD_MCs_ChDs = 1; fMemoColorD_MCs_ChDs = 0;
12561 if(HistoCode ==
"D_LFN_ChNb")
12563 fImpD_LFN_ChNb = (TCanvasImp*)fCanvD_LFN_ChNb->GetCanvasImp();
12564 fCanvD_LFN_ChNb->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12565 fPadD_LFN_ChNb = gPad; fClosedD_LFN_ChNb = kFALSE;
12566 fMemoPlotD_LFN_ChNb = 1; fMemoColorD_LFN_ChNb = 0;
12569 if(HistoCode ==
"D_LFN_ChDs")
12571 fImpD_LFN_ChDs = (TCanvasImp*)fCanvD_LFN_ChDs->GetCanvasImp();
12572 fCanvD_LFN_ChDs->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12573 fPadD_LFN_ChDs = gPad; fClosedD_LFN_ChDs = kFALSE;
12574 fMemoPlotD_LFN_ChDs = 1; fMemoColorD_LFN_ChDs = 0;
12577 if(HistoCode ==
"D_HFN_ChNb")
12579 fImpD_HFN_ChNb = (TCanvasImp*)fCanvD_HFN_ChNb->GetCanvasImp();
12580 fCanvD_HFN_ChNb->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12581 fPadD_HFN_ChNb = gPad; fClosedD_HFN_ChNb = kFALSE;
12582 fMemoPlotD_HFN_ChNb = 1; fMemoColorD_HFN_ChNb = 0;
12585 if(HistoCode ==
"D_HFN_ChDs")
12587 fImpD_HFN_ChDs = (TCanvasImp*)fCanvD_HFN_ChDs->GetCanvasImp();
12588 fCanvD_HFN_ChDs->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12589 fPadD_HFN_ChDs = gPad; fClosedD_HFN_ChDs = kFALSE;
12590 fMemoPlotD_HFN_ChDs = 1; fMemoColorD_HFN_ChDs = 0;
12593 if(HistoCode ==
"D_SCs_ChNb")
12595 fImpD_SCs_ChNb = (TCanvasImp*)fCanvD_SCs_ChNb->GetCanvasImp();
12596 fCanvD_SCs_ChNb->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12597 fPadD_SCs_ChNb = gPad; fClosedD_SCs_ChNb = kFALSE;
12598 fMemoPlotD_SCs_ChNb = 1; fMemoColorD_SCs_ChNb = 0;
12601 if(HistoCode ==
"D_SCs_ChDs")
12603 fImpD_SCs_ChDs = (TCanvasImp*)fCanvD_SCs_ChDs->GetCanvasImp();
12604 fCanvD_SCs_ChDs->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12605 fPadD_SCs_ChDs = gPad; fClosedD_SCs_ChDs = kFALSE;
12606 fMemoPlotD_SCs_ChDs = 1; fMemoColorD_SCs_ChDs = 0;
12609 if(HistoCode ==
"D_MSp_SpNb")
12611 fImpD_MSp_SpNb = (TCanvasImp*)fCanvD_MSp_SpNb->GetCanvasImp();
12612 fCanvD_MSp_SpNb->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12613 fPadD_MSp_SpNb = gPad; fClosedD_MSp_SpNb = kFALSE;
12614 fMemoPlotD_MSp_SpNb = 1; fMemoColorD_MSp_SpNb = 0;
12617 if(HistoCode ==
"D_MSp_SpDs")
12619 fImpD_MSp_SpDs = (TCanvasImp*)fCanvD_MSp_SpDs->GetCanvasImp();
12620 fCanvD_MSp_SpDs->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12621 fPadD_MSp_SpDs = gPad; fClosedD_MSp_SpDs = kFALSE;
12622 fMemoPlotD_MSp_SpDs = 1; fMemoColorD_MSp_SpDs = 0;
12625 if(HistoCode ==
"D_SSp_SpNb")
12627 fImpD_SSp_SpNb = (TCanvasImp*)fCanvD_SSp_SpNb->GetCanvasImp();
12628 fCanvD_SSp_SpNb->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12629 fPadD_SSp_SpNb = gPad; fClosedD_SSp_SpNb = kFALSE;
12630 fMemoPlotD_SSp_SpNb = 1; fMemoColorD_SSp_SpNb = 0;
12633 if(HistoCode ==
"D_SSp_SpDs")
12635 fImpD_SSp_SpDs = (TCanvasImp*)fCanvD_SSp_SpDs->GetCanvasImp();
12636 fCanvD_SSp_SpDs->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12637 fPadD_SSp_SpDs = gPad; fClosedD_SSp_SpDs = kFALSE;
12638 fMemoPlotD_SSp_SpDs = 1; fMemoColorD_SSp_SpDs = 0;
12641 if(HistoCode ==
"D_Adc_EvDs")
12643 fImpD_Adc_EvDs = (TCanvasImp*)fCanvD_Adc_EvDs->GetCanvasImp();
12644 fCanvD_Adc_EvDs->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12645 fPadD_Adc_EvDs = gPad; fClosedD_Adc_EvDs = kFALSE;
12646 fMemoPlotD_Adc_EvDs = 1; fMemoColorD_Adc_EvDs = 0;
12649 if(HistoCode ==
"D_Adc_EvNb")
12651 fImpD_Adc_EvNb = (TCanvasImp*)fCanvD_Adc_EvNb->GetCanvasImp();
12652 fCanvD_Adc_EvNb->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12653 fPadD_Adc_EvNb = gPad; fClosedD_Adc_EvNb = kFALSE;
12654 fMemoPlotD_Adc_EvNb = 1; fMemoColorD_Adc_EvNb = 0;
12657 if(HistoCode ==
"H_Ped_Date")
12659 fImpH_Ped_Date = (TCanvasImp*)fCanvH_Ped_Date->GetCanvasImp();
12660 fCanvH_Ped_Date->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12661 fPadH_Ped_Date = gPad; fClosedH_Ped_Date = kFALSE;
12662 fMemoPlotH_Ped_Date = 1; fMemoColorH_Ped_Date = 0;
12664 if(HistoCode ==
"H_TNo_Date")
12666 fImpH_TNo_Date = (TCanvasImp*)fCanvH_TNo_Date->GetCanvasImp();
12667 fCanvH_TNo_Date->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12668 fPadH_TNo_Date = gPad; fClosedH_TNo_Date = kFALSE;
12669 fMemoPlotH_TNo_Date = 1; fMemoColorH_TNo_Date = 0;
12671 if(HistoCode ==
"H_MCs_Date")
12673 fImpH_MCs_Date = (TCanvasImp*)fCanvH_MCs_Date->GetCanvasImp();
12674 fCanvH_MCs_Date->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12675 fPadH_MCs_Date = gPad; fClosedH_MCs_Date = kFALSE;
12676 fMemoPlotH_MCs_Date = 1; fMemoColorH_MCs_Date = 0;
12679 if(HistoCode ==
"H_LFN_Date")
12681 fImpH_LFN_Date = (TCanvasImp*)fCanvH_LFN_Date->GetCanvasImp();
12682 fCanvH_LFN_Date->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12683 fPadH_LFN_Date = gPad; fClosedH_LFN_Date = kFALSE;
12684 fMemoPlotH_LFN_Date = 1; fMemoColorH_LFN_Date = 0;
12686 if(HistoCode ==
"H_HFN_Date")
12688 fImpH_HFN_Date = (TCanvasImp*)fCanvH_HFN_Date->GetCanvasImp();
12689 fCanvH_HFN_Date->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12690 fPadH_HFN_Date = gPad; fClosedH_HFN_Date = kFALSE;
12691 fMemoPlotH_HFN_Date = 1; fMemoColorH_HFN_Date = 0;
12693 if(HistoCode ==
"H_SCs_Date")
12695 fImpH_SCs_Date = (TCanvasImp*)fCanvH_SCs_Date->GetCanvasImp();
12696 fCanvH_SCs_Date->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12697 fPadH_SCs_Date = gPad; fClosedH_SCs_Date = kFALSE;
12698 fMemoPlotH_SCs_Date = 1; fMemoColorH_SCs_Date = 0;
12701 if(HistoCode ==
"H_Ped_RuDs")
12703 fImpH_Ped_RuDs = (TCanvasImp*)fCanvH_Ped_RuDs->GetCanvasImp();
12704 fCanvH_Ped_RuDs->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12705 fPadH_Ped_RuDs = gPad; fClosedH_Ped_RuDs = kFALSE;
12706 fMemoPlotH_Ped_RuDs = 1; fMemoColorH_Ped_RuDs = 0;
12708 if(HistoCode ==
"H_TNo_RuDs")
12710 fImpH_TNo_RuDs = (TCanvasImp*)fCanvH_TNo_RuDs->GetCanvasImp();
12711 fCanvH_TNo_RuDs->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12712 fPadH_TNo_RuDs = gPad; fClosedH_TNo_RuDs = kFALSE;
12713 fMemoPlotH_TNo_RuDs = 1; fMemoColorH_TNo_RuDs = 0;
12715 if(HistoCode ==
"H_MCs_RuDs")
12717 fImpH_MCs_RuDs = (TCanvasImp*)fCanvH_MCs_RuDs->GetCanvasImp();
12718 fCanvH_MCs_RuDs->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12719 fPadH_MCs_RuDs = gPad; fClosedH_MCs_RuDs = kFALSE;
12720 fMemoPlotH_MCs_RuDs = 1; fMemoColorH_MCs_RuDs = 0;
12723 if(HistoCode ==
"H_LFN_RuDs")
12725 fImpH_LFN_RuDs = (TCanvasImp*)fCanvH_LFN_RuDs->GetCanvasImp();
12726 fCanvH_LFN_RuDs->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12727 fPadH_LFN_RuDs = gPad; fClosedH_LFN_RuDs = kFALSE;
12728 fMemoPlotH_LFN_RuDs = 1; fMemoColorH_LFN_RuDs = 0;
12730 if(HistoCode ==
"H_HFN_RuDs")
12732 fImpH_HFN_RuDs = (TCanvasImp*)fCanvH_HFN_RuDs->GetCanvasImp();
12733 fCanvH_HFN_RuDs->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12734 fPadH_HFN_RuDs = gPad; fClosedH_HFN_RuDs = kFALSE;
12735 fMemoPlotH_HFN_RuDs = 1; fMemoColorH_HFN_RuDs = 0;
12737 if(HistoCode ==
"H_SCs_RuDs")
12739 fImpH_SCs_RuDs = (TCanvasImp*)fCanvH_SCs_RuDs->GetCanvasImp();
12740 fCanvH_SCs_RuDs->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
12741 fPadH_SCs_RuDs = gPad; fClosedH_SCs_RuDs = kFALSE;
12742 fMemoPlotH_SCs_RuDs = 1; fMemoColorH_SCs_RuDs = 0;
12750 TCanvas* main_canvas = 0;
12752 if( opt_plot == fSameOnePlot ){main_canvas = fCanvH1SamePlus;}
12754 if( opt_plot == fOnlyOnePlot || opt_plot == fSeveralPlot)
12756 if(HistoCode ==
"D_NOE_ChNb"){main_canvas = fCanvD_NOE_ChNb;}
12757 if(HistoCode ==
"D_NOE_ChDs"){main_canvas = fCanvD_NOE_ChDs;}
12758 if(HistoCode ==
"D_Ped_ChNb"){main_canvas = fCanvD_Ped_ChNb;}
12759 if(HistoCode ==
"D_Ped_ChDs"){main_canvas = fCanvD_Ped_ChDs;}
12760 if(HistoCode ==
"D_TNo_ChNb"){main_canvas = fCanvD_TNo_ChNb;}
12761 if(HistoCode ==
"D_TNo_ChDs"){main_canvas = fCanvD_TNo_ChDs;}
12762 if(HistoCode ==
"D_MCs_ChNb"){main_canvas = fCanvD_MCs_ChNb;}
12763 if(HistoCode ==
"D_MCs_ChDs"){main_canvas = fCanvD_MCs_ChDs;}
12764 if(HistoCode ==
"D_LFN_ChNb"){main_canvas = fCanvD_LFN_ChNb;}
12765 if(HistoCode ==
"D_LFN_ChDs"){main_canvas = fCanvD_LFN_ChDs;}
12766 if(HistoCode ==
"D_HFN_ChNb"){main_canvas = fCanvD_HFN_ChNb;}
12767 if(HistoCode ==
"D_HFN_ChDs"){main_canvas = fCanvD_HFN_ChDs;}
12768 if(HistoCode ==
"D_SCs_ChNb"){main_canvas = fCanvD_SCs_ChNb;}
12769 if(HistoCode ==
"D_SCs_ChDs"){main_canvas = fCanvD_SCs_ChDs;}
12770 if(HistoCode ==
"D_MSp_SpNb"){main_canvas = fCanvD_MSp_SpNb;}
12771 if(HistoCode ==
"D_MSp_SpDs"){main_canvas = fCanvD_MSp_SpDs;}
12772 if(HistoCode ==
"D_SSp_SpNb"){main_canvas = fCanvD_SSp_SpNb;}
12773 if(HistoCode ==
"D_SSp_SpDs"){main_canvas = fCanvD_SSp_SpDs;}
12774 if(HistoCode ==
"D_Adc_EvNb"){main_canvas = fCanvD_Adc_EvNb;}
12775 if(HistoCode ==
"D_Adc_EvDs"){main_canvas = fCanvD_Adc_EvDs;}
12776 if(HistoCode ==
"H_Ped_Date"){main_canvas = fCanvH_Ped_Date;}
12777 if(HistoCode ==
"H_TNo_Date"){main_canvas = fCanvH_TNo_Date;}
12778 if(HistoCode ==
"H_MCs_Date"){main_canvas = fCanvH_MCs_Date;}
12779 if(HistoCode ==
"H_LFN_Date"){main_canvas = fCanvH_LFN_Date;}
12780 if(HistoCode ==
"H_HFN_Date"){main_canvas = fCanvH_HFN_Date;}
12781 if(HistoCode ==
"H_SCs_Date"){main_canvas = fCanvH_SCs_Date;}
12782 if(HistoCode ==
"H_Ped_RuDs"){main_canvas = fCanvH_Ped_RuDs;}
12783 if(HistoCode ==
"H_TNo_RuDs"){main_canvas = fCanvH_TNo_RuDs;}
12784 if(HistoCode ==
"H_MCs_RuDs"){main_canvas = fCanvH_MCs_RuDs;}
12785 if(HistoCode ==
"H_LFN_RuDs"){main_canvas = fCanvH_LFN_RuDs;}
12786 if(HistoCode ==
"H_HFN_RuDs"){main_canvas = fCanvH_HFN_RuDs;}
12787 if(HistoCode ==
"H_SCs_RuDs"){main_canvas = fCanvH_SCs_RuDs;}
12789 return main_canvas;
12798 if( fCurrentCanvas != 0)
12800 if( (TCanvasImp*)fCurrentCanvas->GetCanvasImp() != 0 )
12802 (TCanvas*)fCurrentCanvas->DrawClone();
12806 cout <<
"TEcnaHistos::PlotCloneOfCurrentCanvas()> Last canvas has been removed. No clone can be done."
12807 << endl <<
" Please, display the canvas again."
12808 << fTTBELL << endl;
12813 cout <<
"TEcnaHistos::PlotCloneOfCurrentCanvas()> No canvas has been created. No clone can be done."
12814 << fTTBELL << endl;
12823 TVirtualPad* main_subpad = 0;
12825 fCurrentHistoCode = HistoCode;
12826 fCurrentOptPlot = opt_plot;
12828 if( opt_plot == fSameOnePlot )
12831 Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12832 if( fClosedH1SamePlus == kFALSE ){main_subpad = fPadH1SamePlus;}
12835 if( opt_plot == fOnlyOnePlot || opt_plot == fSeveralPlot )
12837 if(HistoCode ==
"D_NOE_ChNb"){
12838 fCanvD_NOE_ChNb->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12839 if( fClosedD_NOE_ChNb == kFALSE ){main_subpad = fPadD_NOE_ChNb;}}
12841 if(HistoCode ==
"D_NOE_ChDs"){
12842 fCanvD_NOE_ChDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12843 if( fClosedD_NOE_ChDs == kFALSE ){main_subpad = fPadD_NOE_ChDs;}}
12845 if(HistoCode ==
"D_Ped_ChNb"){
12846 fCanvD_Ped_ChNb->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12847 if( fClosedD_Ped_ChNb == kFALSE ){main_subpad = fPadD_Ped_ChNb;}}
12849 if(HistoCode ==
"D_Ped_ChDs"){
12850 fCanvD_Ped_ChDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12851 if( fClosedD_Ped_ChDs == kFALSE ){main_subpad = fPadD_Ped_ChDs;}}
12853 if(HistoCode ==
"D_TNo_ChNb"){
12854 fCanvD_TNo_ChNb->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12855 if( fClosedD_TNo_ChNb == kFALSE ){main_subpad = fPadD_TNo_ChNb;}}
12857 if(HistoCode ==
"D_TNo_ChDs"){
12858 fCanvD_TNo_ChDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12859 if( fClosedD_TNo_ChDs == kFALSE ){main_subpad = fPadD_TNo_ChDs;}}
12861 if(HistoCode ==
"D_MCs_ChNb"){
12862 fCanvD_MCs_ChNb->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12863 if( fClosedD_MCs_ChNb == kFALSE ){main_subpad = fPadD_MCs_ChNb;}}
12865 if(HistoCode ==
"D_MCs_ChDs"){
12866 fCanvD_MCs_ChDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12867 if( fClosedD_MCs_ChDs == kFALSE ){main_subpad = fPadD_MCs_ChDs;}}
12869 if(HistoCode ==
"D_LFN_ChNb"){
12870 fCanvD_LFN_ChNb->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12871 if( fClosedD_LFN_ChNb == kFALSE ){main_subpad = fPadD_LFN_ChNb;}}
12873 if(HistoCode ==
"D_LFN_ChDs"){
12874 fCanvD_LFN_ChDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12875 if( fClosedD_LFN_ChDs == kFALSE ){main_subpad = fPadD_LFN_ChDs;}}
12877 if(HistoCode ==
"D_HFN_ChNb"){
12878 fCanvD_HFN_ChNb->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12879 if( fClosedD_HFN_ChNb == kFALSE ){main_subpad = fPadD_HFN_ChNb;}}
12881 if(HistoCode ==
"D_HFN_ChDs"){
12882 fCanvD_HFN_ChDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12883 if( fClosedD_HFN_ChDs == kFALSE ){main_subpad = fPadD_HFN_ChDs;}}
12885 if(HistoCode ==
"D_SCs_ChNb"){
12886 fCanvD_SCs_ChNb->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12887 if( fClosedD_SCs_ChNb == kFALSE ){main_subpad = fPadD_SCs_ChNb;}}
12889 if(HistoCode ==
"D_SCs_ChDs"){
12890 fCanvD_SCs_ChDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12891 if( fClosedD_SCs_ChDs == kFALSE ){main_subpad = fPadD_SCs_ChDs;}}
12893 if(HistoCode ==
"D_MSp_SpNb"){
12894 fCanvD_MSp_SpNb->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12895 if( fClosedD_MSp_SpNb == kFALSE ){main_subpad = fPadD_MSp_SpNb;}}
12897 if(HistoCode ==
"D_MSp_SpDs"){
12898 fCanvD_MSp_SpDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12899 if( fClosedD_MSp_SpDs == kFALSE ){main_subpad = fPadD_MSp_SpDs;}}
12901 if(HistoCode ==
"D_SSp_SpNb"){
12902 fCanvD_SSp_SpNb->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12903 if( fClosedD_SSp_SpNb == kFALSE ){main_subpad = fPadD_SSp_SpNb;}}
12905 if(HistoCode ==
"D_SSp_SpDs"){
12906 fCanvD_SSp_SpDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12907 if( fClosedD_SSp_SpDs == kFALSE ){main_subpad = fPadD_SSp_SpDs;}}
12909 if(HistoCode ==
"D_Adc_EvNb"){
12910 fCanvD_Adc_EvNb->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12911 if( fClosedD_Adc_EvNb == kFALSE ){main_subpad = fPadD_Adc_EvNb;}}
12913 if(HistoCode ==
"D_Adc_EvDs"){
12914 fCanvD_Adc_EvDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12915 if( fClosedD_Adc_EvDs == kFALSE ){main_subpad = fPadD_Adc_EvDs;}}
12917 if(HistoCode ==
"H_Ped_Date"){
12918 fCanvH_Ped_Date->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12919 if( fClosedH_Ped_Date == kFALSE ){main_subpad = fPadH_Ped_Date;}}
12921 if(HistoCode ==
"H_TNo_Date"){
12922 fCanvH_TNo_Date->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12923 if( fClosedH_TNo_Date == kFALSE ){main_subpad = fPadH_TNo_Date;}}
12925 if(HistoCode ==
"H_MCs_Date"){
12926 fCanvH_MCs_Date->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12927 if( fClosedH_MCs_Date == kFALSE ){main_subpad = fPadH_MCs_Date;}}
12929 if(HistoCode ==
"H_LFN_Date"){
12930 fCanvH_LFN_Date->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12931 if( fClosedH_LFN_Date == kFALSE ){main_subpad = fPadH_LFN_Date;}}
12933 if(HistoCode ==
"H_HFN_Date"){
12934 fCanvH_HFN_Date->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12935 if( fClosedH_HFN_Date == kFALSE ){main_subpad = fPadH_HFN_Date;}}
12937 if(HistoCode ==
"H_SCs_Date"){
12938 fCanvH_SCs_Date->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12939 if( fClosedH_SCs_Date == kFALSE ){main_subpad = fPadH_SCs_Date;}}
12941 if(HistoCode ==
"H_Ped_RuDs"){
12942 fCanvH_Ped_RuDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12943 if( fClosedH_Ped_RuDs == kFALSE ){main_subpad = fPadH_Ped_RuDs;}}
12945 if(HistoCode ==
"H_TNo_RuDs"){
12946 fCanvH_TNo_RuDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12947 if( fClosedH_TNo_RuDs == kFALSE ){main_subpad = fPadH_TNo_RuDs;}}
12949 if(HistoCode ==
"H_MCs_RuDs"){
12950 fCanvH_MCs_RuDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12951 if( fClosedH_MCs_RuDs == kFALSE ){main_subpad = fPadH_MCs_RuDs;}}
12953 if(HistoCode ==
"H_LFN_RuDs"){
12954 fCanvH_LFN_RuDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12955 if( fClosedH_LFN_RuDs == kFALSE ){main_subpad = fPadH_LFN_RuDs;}}
12957 if(HistoCode ==
"H_HFN_RuDs"){
12958 fCanvH_HFN_RuDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12959 if( fClosedH_HFN_RuDs == kFALSE ){main_subpad = fPadH_HFN_RuDs;}}
12961 if(HistoCode ==
"H_SCs_RuDs"){
12962 fCanvH_SCs_RuDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
12963 if( fClosedH_SCs_RuDs == kFALSE ){main_subpad = fPadH_SCs_RuDs;}}
12966 if( main_subpad == 0 )
12967 {
cout <<
"*TEcnaHistos::ActivePad(...)> main_subpad = "
12968 << main_subpad <<
". This canvas has been closed." << endl;}
12970 return main_subpad;
12976 if( fCurrentOptPlot == fSameOnePlot ){fClosedH1SamePlus = kTRUE;}
12977 if( fCurrentOptPlot == fOnlyOnePlot || fCurrentOptPlot == fSeveralPlot )
12979 if(fCurrentHistoCode ==
"D_NOE_ChNb"){fClosedD_NOE_ChNb = kTRUE;}
12980 if(fCurrentHistoCode ==
"D_NOE_ChDs"){fClosedD_NOE_ChDs = kTRUE;}
12981 if(fCurrentHistoCode ==
"D_Ped_ChNb"){fClosedD_Ped_ChNb = kTRUE;}
12982 if(fCurrentHistoCode ==
"D_Ped_ChDs"){fClosedD_Ped_ChDs = kTRUE;}
12983 if(fCurrentHistoCode ==
"D_TNo_ChNb"){fClosedD_TNo_ChNb = kTRUE;}
12984 if(fCurrentHistoCode ==
"D_TNo_ChDs"){fClosedD_TNo_ChDs = kTRUE;}
12985 if(fCurrentHistoCode ==
"D_MCs_ChNb"){fClosedD_MCs_ChNb = kTRUE;}
12986 if(fCurrentHistoCode ==
"D_MCs_ChDs"){fClosedD_MCs_ChDs = kTRUE;}
12987 if(fCurrentHistoCode ==
"D_LFN_ChNb"){fClosedD_LFN_ChNb = kTRUE;}
12988 if(fCurrentHistoCode ==
"D_LFN_ChDs"){fClosedD_LFN_ChDs = kTRUE;}
12989 if(fCurrentHistoCode ==
"D_HFN_ChNb"){fClosedD_HFN_ChNb = kTRUE;}
12990 if(fCurrentHistoCode ==
"D_HFN_ChDs"){fClosedD_HFN_ChDs = kTRUE;}
12991 if(fCurrentHistoCode ==
"D_SCs_ChNb"){fClosedD_SCs_ChNb = kTRUE;}
12992 if(fCurrentHistoCode ==
"D_SCs_ChDs"){fClosedD_SCs_ChDs = kTRUE;}
12993 if(fCurrentHistoCode ==
"D_MSp_SpNb"){fClosedD_MSp_SpNb = kTRUE;}
12994 if(fCurrentHistoCode ==
"D_MSp_SpDs"){fClosedD_MSp_SpDs = kTRUE;}
12995 if(fCurrentHistoCode ==
"D_SSp_SpNb"){fClosedD_SSp_SpNb = kTRUE;}
12996 if(fCurrentHistoCode ==
"D_SSp_SpDs"){fClosedD_SSp_SpDs = kTRUE;}
12997 if(fCurrentHistoCode ==
"D_Adc_EvNb"){fClosedD_Adc_EvNb = kTRUE;}
12998 if(fCurrentHistoCode ==
"D_Adc_EvDs"){fClosedD_Adc_EvDs = kTRUE;}
12999 if(fCurrentHistoCode ==
"H_Ped_Date"){fClosedH_Ped_Date = kTRUE;}
13000 if(fCurrentHistoCode ==
"H_TNo_Date"){fClosedH_TNo_Date = kTRUE;}
13001 if(fCurrentHistoCode ==
"H_MCs_Date"){fClosedH_MCs_Date = kTRUE;}
13002 if(fCurrentHistoCode ==
"H_LFN_Date"){fClosedH_LFN_Date = kTRUE;}
13003 if(fCurrentHistoCode ==
"H_HFN_Date"){fClosedH_HFN_Date = kTRUE;}
13004 if(fCurrentHistoCode ==
"H_SCs_Date"){fClosedH_SCs_Date = kTRUE;}
13005 if(fCurrentHistoCode ==
"H_Ped_RuDs"){fClosedH_Ped_RuDs = kTRUE;}
13006 if(fCurrentHistoCode ==
"H_TNo_RuDs"){fClosedH_TNo_RuDs = kTRUE;}
13007 if(fCurrentHistoCode ==
"H_MCs_RuDs"){fClosedH_MCs_RuDs = kTRUE;}
13008 if(fCurrentHistoCode ==
"H_LFN_RuDs"){fClosedH_LFN_RuDs = kTRUE;}
13009 if(fCurrentHistoCode ==
"H_HFN_RuDs"){fClosedH_HFN_RuDs = kTRUE;}
13010 if(fCurrentHistoCode ==
"H_SCs_RuDs"){fClosedH_SCs_RuDs = kTRUE;}
13013 fCurrentOptPlot =
"NADA";
13014 fCurrentHistoCode =
"NADA";
13016 cout <<
"!TEcnaHistos::DoCanvasClosed(...)> WARNING: canvas has been closed." << endl;
13023 if( opt_plot == fSameOnePlot ){fPavTxtH1SamePlus = fPavComSeveralChanging;}
13025 if( opt_plot == fOnlyOnePlot || opt_plot == fSeveralPlot)
13027 if(HistoCode ==
"D_NOE_ChNb"){fPavTxtD_NOE_ChNb = fPavComSeveralChanging;}
13028 if(HistoCode ==
"D_NOE_ChDs"){fPavTxtD_NOE_ChDs = fPavComSeveralChanging;}
13029 if(HistoCode ==
"D_Ped_ChNb"){fPavTxtD_Ped_ChNb = fPavComSeveralChanging;}
13030 if(HistoCode ==
"D_Ped_ChDs"){fPavTxtD_Ped_ChDs = fPavComSeveralChanging;}
13031 if(HistoCode ==
"D_TNo_ChNb"){fPavTxtD_TNo_ChNb = fPavComSeveralChanging;}
13032 if(HistoCode ==
"D_TNo_ChDs"){fPavTxtD_TNo_ChDs = fPavComSeveralChanging;}
13033 if(HistoCode ==
"D_MCs_ChNb"){fPavTxtD_MCs_ChNb = fPavComSeveralChanging;}
13034 if(HistoCode ==
"D_MCs_ChDs"){fPavTxtD_MCs_ChDs = fPavComSeveralChanging;}
13035 if(HistoCode ==
"D_LFN_ChNb"){fPavTxtD_LFN_ChNb = fPavComSeveralChanging;}
13036 if(HistoCode ==
"D_LFN_ChDs"){fPavTxtD_LFN_ChDs = fPavComSeveralChanging;}
13037 if(HistoCode ==
"D_HFN_ChNb"){fPavTxtD_HFN_ChNb = fPavComSeveralChanging;}
13038 if(HistoCode ==
"D_HFN_ChDs"){fPavTxtD_HFN_ChDs = fPavComSeveralChanging;}
13039 if(HistoCode ==
"D_SCs_ChNb"){fPavTxtD_SCs_ChNb = fPavComSeveralChanging;}
13040 if(HistoCode ==
"D_SCs_ChDs"){fPavTxtD_SCs_ChDs = fPavComSeveralChanging;}
13041 if(HistoCode ==
"D_MSp_SpNb"){fPavTxtD_MSp_SpNb = fPavComSeveralChanging;}
13042 if(HistoCode ==
"D_MSp_SpDs"){fPavTxtD_MSp_SpDs = fPavComSeveralChanging;}
13043 if(HistoCode ==
"D_SSp_SpNb"){fPavTxtD_SSp_SpNb = fPavComSeveralChanging;}
13044 if(HistoCode ==
"D_SSp_SpDs"){fPavTxtD_SSp_SpDs = fPavComSeveralChanging;}
13045 if(HistoCode ==
"D_Adc_EvNb"){fPavTxtD_Adc_EvNb = fPavComSeveralChanging;}
13046 if(HistoCode ==
"D_Adc_EvDs"){fPavTxtD_Adc_EvDs = fPavComSeveralChanging;}
13047 if(HistoCode ==
"H_Ped_Date"){fPavTxtH_Ped_Date = fPavComSeveralChanging;}
13048 if(HistoCode ==
"H_TNo_Date"){fPavTxtH_TNo_Date = fPavComSeveralChanging;}
13049 if(HistoCode ==
"H_MCs_Date"){fPavTxtH_MCs_Date = fPavComSeveralChanging;}
13050 if(HistoCode ==
"H_LFN_Date"){fPavTxtH_LFN_Date = fPavComSeveralChanging;}
13051 if(HistoCode ==
"H_HFN_Date"){fPavTxtH_HFN_Date = fPavComSeveralChanging;}
13052 if(HistoCode ==
"H_SCs_Date"){fPavTxtH_SCs_Date = fPavComSeveralChanging;}
13053 if(HistoCode ==
"H_Ped_RuDs"){fPavTxtH_Ped_RuDs = fPavComSeveralChanging;}
13054 if(HistoCode ==
"H_TNo_RuDs"){fPavTxtH_TNo_RuDs = fPavComSeveralChanging;}
13055 if(HistoCode ==
"H_MCs_RuDs"){fPavTxtH_MCs_RuDs = fPavComSeveralChanging;}
13056 if(HistoCode ==
"H_LFN_RuDs"){fPavTxtH_LFN_RuDs = fPavComSeveralChanging;}
13057 if(HistoCode ==
"H_HFN_RuDs"){fPavTxtH_HFN_RuDs = fPavComSeveralChanging;}
13058 if(HistoCode ==
"H_SCs_RuDs"){fPavTxtH_SCs_RuDs = fPavComSeveralChanging;}
13068 TPaveText* main_pavtxt = 0;
13070 if( opt_plot == fSameOnePlot ){main_pavtxt = fPavTxtH1SamePlus;}
13072 if( opt_plot == fOnlyOnePlot || opt_plot == fSeveralPlot)
13074 if(HistoCode ==
"D_NOE_ChNb"){main_pavtxt = fPavTxtD_NOE_ChNb;}
13075 if(HistoCode ==
"D_NOE_ChDs"){main_pavtxt = fPavTxtD_NOE_ChDs;}
13076 if(HistoCode ==
"D_Ped_ChNb"){main_pavtxt = fPavTxtD_Ped_ChNb;}
13077 if(HistoCode ==
"D_Ped_ChDs"){main_pavtxt = fPavTxtD_Ped_ChDs;}
13078 if(HistoCode ==
"D_TNo_ChNb"){main_pavtxt = fPavTxtD_TNo_ChNb;}
13079 if(HistoCode ==
"D_TNo_ChDs"){main_pavtxt = fPavTxtD_TNo_ChDs;}
13080 if(HistoCode ==
"D_MCs_ChNb"){main_pavtxt = fPavTxtD_MCs_ChNb;}
13081 if(HistoCode ==
"D_MCs_ChDs"){main_pavtxt = fPavTxtD_MCs_ChDs;}
13082 if(HistoCode ==
"D_LFN_ChNb"){main_pavtxt = fPavTxtD_LFN_ChNb;}
13083 if(HistoCode ==
"D_LFN_ChDs"){main_pavtxt = fPavTxtD_LFN_ChDs;}
13084 if(HistoCode ==
"D_HFN_ChNb"){main_pavtxt = fPavTxtD_HFN_ChNb;}
13085 if(HistoCode ==
"D_HFN_ChDs"){main_pavtxt = fPavTxtD_HFN_ChDs;}
13086 if(HistoCode ==
"D_SCs_ChNb"){main_pavtxt = fPavTxtD_SCs_ChNb;}
13087 if(HistoCode ==
"D_SCs_ChDs"){main_pavtxt = fPavTxtD_SCs_ChDs;}
13088 if(HistoCode ==
"D_MSp_SpNb"){main_pavtxt = fPavTxtD_MSp_SpNb;}
13089 if(HistoCode ==
"D_MSp_SpDs"){main_pavtxt = fPavTxtD_MSp_SpDs;}
13090 if(HistoCode ==
"D_SSp_SpNb"){main_pavtxt = fPavTxtD_SSp_SpNb;}
13091 if(HistoCode ==
"D_SSp_SpDs"){main_pavtxt = fPavTxtD_SSp_SpDs;}
13092 if(HistoCode ==
"D_Adc_EvNb"){main_pavtxt = fPavTxtD_Adc_EvNb;}
13093 if(HistoCode ==
"D_Adc_EvDs"){main_pavtxt = fPavTxtD_Adc_EvDs;}
13094 if(HistoCode ==
"H_Ped_Date"){main_pavtxt = fPavTxtH_Ped_Date;}
13095 if(HistoCode ==
"H_TNo_Date"){main_pavtxt = fPavTxtH_TNo_Date;}
13096 if(HistoCode ==
"H_MCs_Date"){main_pavtxt = fPavTxtH_MCs_Date;}
13097 if(HistoCode ==
"H_LFN_Date"){main_pavtxt = fPavTxtH_LFN_Date;}
13098 if(HistoCode ==
"H_HFN_Date"){main_pavtxt = fPavTxtH_HFN_Date;}
13099 if(HistoCode ==
"H_SCs_Date"){main_pavtxt = fPavTxtH_SCs_Date;}
13100 if(HistoCode ==
"H_Ped_RuDs"){main_pavtxt = fPavTxtH_Ped_RuDs;}
13101 if(HistoCode ==
"H_TNo_RuDs"){main_pavtxt = fPavTxtH_TNo_RuDs;}
13102 if(HistoCode ==
"H_MCs_RuDs"){main_pavtxt = fPavTxtH_MCs_RuDs;}
13103 if(HistoCode ==
"H_LFN_RuDs"){main_pavtxt = fPavTxtH_LFN_RuDs;}
13104 if(HistoCode ==
"H_HFN_RuDs"){main_pavtxt = fPavTxtH_HFN_RuDs;}
13105 if(HistoCode ==
"H_SCs_RuDs"){main_pavtxt = fPavTxtH_SCs_RuDs;}
13108 if( main_pavtxt == 0 )
13109 {
cout <<
"*TEcnaHistos::ActivePavTxt(...)> ERROR: main_pavtxt = " << main_pavtxt << endl;}
13111 return main_pavtxt;
13136 const TString& opt_plot,
const Int_t& arg_AlreadyRead)
13140 TString
HistoType = fCnaParHistos->GetHistoType(HistoCode.Data());
13141 if( HistoType ==
"Global" ){h_his0->SetMarkerStyle(1);}
13143 Int_t MaxNbOfColors = fCnaParHistos->GetMaxNbOfColors();
13145 if( opt_plot == fSameOnePlot )
13147 h_his0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorH1SamePlus));
13148 h_his0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorH1SamePlus));
13149 fMemoColorH1SamePlus++;
13150 if(fMemoColorH1SamePlus>MaxNbOfColors){fMemoColorH1SamePlus = 0;}
13153 if( opt_plot == fOnlyOnePlot || opt_plot == fSeveralPlot)
13155 if(HistoCode ==
"D_NOE_ChNb")
13157 if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(fCnaParHistos->ColorDefinition(
"rose"));}
13158 if(opt_plot == fSeveralPlot )
13159 {h_his0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorD_NOE_ChNb));
13160 h_his0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorD_NOE_ChNb));
13161 fMemoColorD_NOE_ChNb++;
13162 if(fMemoColorD_NOE_ChNb>MaxNbOfColors){fMemoColorD_NOE_ChNb = 0;}}
13164 if(HistoCode ==
"D_NOE_ChDs")
13166 if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(fCnaParHistos->ColorDefinition(
"rose"));}
13167 if(opt_plot == fSeveralPlot )
13168 {h_his0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorD_NOE_ChDs));
13169 h_his0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorD_NOE_ChDs));
13170 fMemoColorD_NOE_ChDs++;
13171 if(fMemoColorD_NOE_ChDs>MaxNbOfColors){fMemoColorD_NOE_ChDs = 0;}}
13173 if(HistoCode ==
"D_Ped_ChNb")
13175 if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(fCnaParHistos->ColorDefinition(
"bleu38"));}
13176 if(opt_plot == fSeveralPlot )
13177 {h_his0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorD_Ped_ChNb));
13178 h_his0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorD_Ped_ChNb));
13179 fMemoColorD_Ped_ChNb++;
13180 if(fMemoColorD_Ped_ChNb>MaxNbOfColors){fMemoColorD_Ped_ChNb = 0;}}
13182 if(HistoCode ==
"D_Ped_ChDs")
13184 if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(fCnaParHistos->ColorDefinition(
"bleu38"));}
13185 if(opt_plot == fSeveralPlot )
13186 {h_his0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorD_Ped_ChDs));
13187 h_his0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorD_Ped_ChDs));
13188 fMemoColorD_Ped_ChDs++;
13189 if(fMemoColorD_Ped_ChDs>MaxNbOfColors){fMemoColorD_Ped_ChDs = 0;}}
13191 if(HistoCode ==
"D_TNo_ChNb")
13193 if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(fCnaParHistos->ColorDefinition(
"rouge48"));}
13194 if(opt_plot == fSeveralPlot )
13195 {h_his0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorD_TNo_ChNb));
13196 h_his0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorD_TNo_ChNb));
13197 fMemoColorD_TNo_ChNb++;
13198 if(fMemoColorD_TNo_ChNb>MaxNbOfColors){fMemoColorD_TNo_ChNb = 0;}}
13200 if(HistoCode ==
"D_TNo_ChDs")
13202 if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(fCnaParHistos->ColorDefinition(
"rouge48"));}
13203 if(opt_plot == fSeveralPlot )
13204 {h_his0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorD_TNo_ChDs));
13205 h_his0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorD_TNo_ChDs));
13206 fMemoColorD_TNo_ChDs++;
13207 if(fMemoColorD_TNo_ChDs>MaxNbOfColors){fMemoColorD_TNo_ChDs = 0;}}
13210 if(HistoCode ==
"D_MCs_ChNb")
13212 if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(fCnaParHistos->ColorDefinition(
"vert31"));}
13213 if(opt_plot == fSeveralPlot )
13214 {h_his0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorD_MCs_ChNb));
13215 h_his0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorD_MCs_ChNb));
13216 fMemoColorD_MCs_ChNb++;
13217 if(fMemoColorD_MCs_ChNb>MaxNbOfColors){fMemoColorD_MCs_ChNb = 0;}}
13219 if(HistoCode ==
"D_MCs_ChDs")
13221 if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(fCnaParHistos->ColorDefinition(
"vert31"));}
13222 if(opt_plot == fSeveralPlot )
13223 {h_his0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorD_MCs_ChDs));
13224 h_his0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorD_MCs_ChDs));
13225 fMemoColorD_MCs_ChDs++;
13226 if(fMemoColorD_MCs_ChDs>MaxNbOfColors){fMemoColorD_MCs_ChDs = 0;}}
13228 if(HistoCode ==
"D_LFN_ChNb")
13230 if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(fCnaParHistos->ColorDefinition(
"rouge44"));}
13231 if(opt_plot == fSeveralPlot )
13232 {h_his0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorD_LFN_ChNb));
13233 h_his0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorD_LFN_ChNb));
13234 fMemoColorD_LFN_ChNb++;
13235 if(fMemoColorD_LFN_ChNb>MaxNbOfColors){fMemoColorD_LFN_ChNb = 0;}}
13237 if(HistoCode ==
"D_LFN_ChDs")
13239 if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(fCnaParHistos->ColorDefinition(
"rouge44"));}
13240 if(opt_plot == fSeveralPlot )
13241 {h_his0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorD_LFN_ChDs));
13242 h_his0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorD_LFN_ChDs));
13243 fMemoColorD_LFN_ChDs++;
13244 if(fMemoColorD_LFN_ChDs>MaxNbOfColors){fMemoColorD_LFN_ChDs = 0;}}
13246 if(HistoCode ==
"D_HFN_ChNb")
13248 if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(fCnaParHistos->ColorDefinition(
"rouge50"));}
13249 if(opt_plot == fSeveralPlot )
13250 {h_his0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorD_HFN_ChNb));
13251 h_his0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorD_HFN_ChNb));
13252 fMemoColorD_HFN_ChNb++;
13253 if(fMemoColorD_HFN_ChNb>MaxNbOfColors){fMemoColorD_HFN_ChNb = 0;}}
13255 if(HistoCode ==
"D_HFN_ChDs")
13257 if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(fCnaParHistos->ColorDefinition(
"rouge50"));}
13258 if(opt_plot == fSeveralPlot )
13259 {h_his0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorD_HFN_ChDs));
13260 h_his0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorD_HFN_ChDs));
13261 fMemoColorD_HFN_ChDs++;
13262 if(fMemoColorD_HFN_ChDs>MaxNbOfColors){fMemoColorD_HFN_ChDs = 0;}}
13265 if(HistoCode ==
"D_SCs_ChNb")
13267 if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(fCnaParHistos->ColorDefinition(
"marron23"));}
13268 if(opt_plot == fSeveralPlot )
13269 {h_his0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorD_SCs_ChNb));
13270 h_his0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorD_SCs_ChNb));
13271 fMemoColorD_SCs_ChNb++;
13272 if(fMemoColorD_SCs_ChNb>MaxNbOfColors){fMemoColorD_SCs_ChNb = 0;}}
13274 if(HistoCode ==
"D_SCs_ChDs")
13276 if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(fCnaParHistos->ColorDefinition(
"marron23"));}
13277 if(opt_plot == fSeveralPlot )
13278 {h_his0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorD_SCs_ChDs));
13279 h_his0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorD_SCs_ChDs));
13280 fMemoColorD_SCs_ChDs++;
13281 if(fMemoColorD_SCs_ChDs>MaxNbOfColors){fMemoColorD_SCs_ChDs = 0;}}
13284 if(HistoCode ==
"D_MSp_SpNb")
13286 if( (opt_plot == fOnlyOnePlot && arg_AlreadyRead == 0) ||
13287 (opt_plot == fOnlyOnePlot && arg_AlreadyRead >= 1 && fPlotAllXtalsInStin == 0 ) )
13288 {h_his0->SetFillColor(fCnaParHistos->ColorDefinition(
"bleu38"));}
13290 if( opt_plot == fOnlyOnePlot && arg_AlreadyRead >= 0 && fPlotAllXtalsInStin == 1 )
13291 {h_his0->SetFillColor((Color_t)0);}
13293 if(opt_plot == fSeveralPlot )
13294 {h_his0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorD_MSp_SpNb));
13295 h_his0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorD_MSp_SpNb));
13296 fMemoColorD_MSp_SpNb++;
13297 if(fMemoColorD_MSp_SpNb>MaxNbOfColors){fMemoColorD_MSp_SpNb = 0;}}
13300 if(HistoCode ==
"D_MSp_SpDs")
13302 if( (opt_plot == fOnlyOnePlot && arg_AlreadyRead == 0) ||
13303 (opt_plot == fOnlyOnePlot && arg_AlreadyRead >= 1 && fPlotAllXtalsInStin == 0 ) )
13304 {h_his0->SetFillColor(fCnaParHistos->ColorDefinition(
"bleu38"));}
13306 if( opt_plot == fOnlyOnePlot && arg_AlreadyRead >= 0 && fPlotAllXtalsInStin == 1 )
13307 {h_his0->SetFillColor((Color_t)0);}
13309 if(opt_plot == fSeveralPlot )
13310 {h_his0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorD_MSp_SpDs));
13311 h_his0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorD_MSp_SpDs));
13312 fMemoColorD_MSp_SpDs++;
13313 if(fMemoColorD_MSp_SpDs>MaxNbOfColors){fMemoColorD_MSp_SpDs = 0;}}
13316 if(HistoCode ==
"D_SSp_SpNb")
13318 if( (opt_plot == fOnlyOnePlot && arg_AlreadyRead == 0) ||
13319 (opt_plot == fOnlyOnePlot && arg_AlreadyRead >= 1 && fPlotAllXtalsInStin == 0 ) )
13320 {h_his0->SetFillColor(fCnaParHistos->ColorDefinition(
"rouge50"));}
13322 if(opt_plot == fOnlyOnePlot && arg_AlreadyRead >= 0 && fPlotAllXtalsInStin == 1 )
13323 {h_his0->SetFillColor((Color_t)0);}
13325 if(opt_plot == fSeveralPlot )
13326 {h_his0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorD_SSp_SpNb));
13327 h_his0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorD_SSp_SpNb));
13328 fMemoColorD_SSp_SpNb++;
13329 if(fMemoColorD_SSp_SpNb>MaxNbOfColors){fMemoColorD_SSp_SpNb = 0;}}
13332 if(HistoCode ==
"D_SSp_SpDs")
13334 if( (opt_plot == fOnlyOnePlot && arg_AlreadyRead == 0) ||
13335 (opt_plot == fOnlyOnePlot && arg_AlreadyRead >= 1 && fPlotAllXtalsInStin == 0 ) )
13336 {h_his0->SetFillColor(fCnaParHistos->ColorDefinition(
"rouge50"));}
13338 if(opt_plot == fOnlyOnePlot && arg_AlreadyRead >= 0 && fPlotAllXtalsInStin == 1 )
13339 {h_his0->SetFillColor((Color_t)0);}
13341 if(opt_plot == fSeveralPlot )
13342 {h_his0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorD_SSp_SpDs));
13343 h_his0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorD_SSp_SpDs));
13344 fMemoColorD_SSp_SpDs++;
13345 if(fMemoColorD_SSp_SpDs>MaxNbOfColors){fMemoColorD_SSp_SpDs = 0;}}
13348 if(HistoCode ==
"D_Adc_EvNb")
13350 if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(fCnaParHistos->ColorDefinition(
"orange42"));}
13351 if(opt_plot == fSeveralPlot )
13352 {h_his0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorD_Adc_EvNb));
13353 h_his0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorD_Adc_EvNb));
13354 fMemoColorD_Adc_EvNb++;
13355 if(fMemoColorD_Adc_EvNb>MaxNbOfColors){fMemoColorD_Adc_EvNb = 0;}}
13356 gPad->SetGrid(1,0);
13359 if(HistoCode ==
"D_Adc_EvDs")
13361 if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(fCnaParHistos->ColorDefinition(
"orange42"));}
13362 if(opt_plot == fSeveralPlot )
13363 {h_his0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorD_Adc_EvDs));
13364 h_his0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorD_Adc_EvDs));
13365 fMemoColorD_Adc_EvDs++;
13366 if(fMemoColorD_Adc_EvDs>MaxNbOfColors){fMemoColorD_Adc_EvDs = 0;}}
13369 if(HistoCode ==
"H_Ped_RuDs")
13371 if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(fCnaParHistos->ColorDefinition(
"bleu38"));}
13372 if(opt_plot == fSeveralPlot )
13373 {h_his0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorH_Ped_RuDs));
13374 h_his0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorH_Ped_RuDs));
13375 fMemoColorH_Ped_RuDs++;
13376 if(fMemoColorH_Ped_RuDs>MaxNbOfColors){fMemoColorH_Ped_RuDs = 0;}}
13377 gPad->SetGrid(1,1);
13380 if(HistoCode ==
"H_TNo_RuDs")
13382 if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(fCnaParHistos->ColorDefinition(
"rouge48"));}
13383 if(opt_plot == fSeveralPlot )
13384 {h_his0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorH_TNo_RuDs));
13385 h_his0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorH_TNo_RuDs));
13386 fMemoColorH_TNo_RuDs++;
13387 if(fMemoColorH_TNo_RuDs>MaxNbOfColors){fMemoColorH_TNo_RuDs = 0;}}
13388 gPad->SetGrid(1,1);
13391 if(HistoCode ==
"H_MCs_RuDs")
13393 if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(fCnaParHistos->ColorDefinition(
"vert31"));}
13394 if(opt_plot == fSeveralPlot )
13395 {h_his0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorH_MCs_RuDs));
13396 h_his0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorH_MCs_RuDs));
13397 fMemoColorH_MCs_RuDs++;
13398 if(fMemoColorH_MCs_RuDs>MaxNbOfColors){fMemoColorH_MCs_RuDs = 0;}}
13399 gPad->SetGrid(1,1);
13402 if(HistoCode ==
"H_LFN_RuDs")
13404 if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(fCnaParHistos->ColorDefinition(
"rouge44"));}
13405 if(opt_plot == fSeveralPlot )
13406 {h_his0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorH_LFN_RuDs));
13407 h_his0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorH_LFN_RuDs));
13408 fMemoColorH_LFN_RuDs++;
13409 if(fMemoColorH_LFN_RuDs>MaxNbOfColors){fMemoColorH_LFN_RuDs = 0;}}
13410 gPad->SetGrid(1,1);
13413 if(HistoCode ==
"H_HFN_RuDs")
13415 if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(fCnaParHistos->ColorDefinition(
"rouge50"));}
13416 if(opt_plot == fSeveralPlot )
13417 {h_his0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorH_HFN_RuDs));
13418 h_his0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorH_HFN_RuDs));
13419 fMemoColorH_HFN_RuDs++;
13420 if(fMemoColorH_HFN_RuDs>MaxNbOfColors){fMemoColorH_HFN_RuDs = 0;}}
13421 gPad->SetGrid(1,1);
13424 if(HistoCode ==
"H_SCs_RuDs")
13426 if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(fCnaParHistos->ColorDefinition(
"marron23"));}
13427 if(opt_plot == fSeveralPlot )
13428 {h_his0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorH_SCs_RuDs));
13429 h_his0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorH_SCs_RuDs));
13430 fMemoColorH_SCs_RuDs++;
13431 if(fMemoColorH_SCs_RuDs>MaxNbOfColors){fMemoColorH_SCs_RuDs = 0;}}
13432 gPad->SetGrid(1,1);
13444 Int_t MaxNbOfColors = fCnaParHistos->GetMaxNbOfColors();
13446 if( opt_plot == fSameOnePlot )
13448 g_graph0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorH1SamePlus));
13449 g_graph0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorH1SamePlus));
13450 fMemoColorH1SamePlus++;
13451 if(fMemoColorH1SamePlus>MaxNbOfColors){fMemoColorH1SamePlus = 0;}
13452 gPad->SetGrid(1,1);
13455 if( opt_plot == fOnlyOnePlot || opt_plot == fSeveralPlot)
13457 if(HistoCode ==
"H_Ped_Date")
13459 if(opt_plot == fOnlyOnePlot){g_graph0->SetMarkerColor(fCnaParHistos->ColorDefinition(
"bleu38"));}
13460 if(opt_plot == fSeveralPlot )
13461 {g_graph0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorH_Ped_Date));
13462 g_graph0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorH_Ped_Date));
13463 fMemoColorH_Ped_Date++;
13464 if(fMemoColorH_Ped_Date>MaxNbOfColors){fMemoColorH_Ped_Date = 0;}}
13465 gPad->SetGrid(1,1);
13468 if(HistoCode ==
"H_TNo_Date")
13470 if(opt_plot == fOnlyOnePlot){g_graph0->SetMarkerColor(fCnaParHistos->ColorDefinition(
"rouge48"));}
13471 if(opt_plot == fSeveralPlot)
13472 {g_graph0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorH_TNo_Date));
13473 g_graph0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorH_TNo_Date));
13474 fMemoColorH_TNo_Date++;
13475 if(fMemoColorH_TNo_Date>MaxNbOfColors){fMemoColorH_TNo_Date = 0;}}
13476 gPad->SetGrid(1,1);
13479 if(HistoCode ==
"H_MCs_Date")
13481 if(opt_plot == fOnlyOnePlot){g_graph0->SetMarkerColor(fCnaParHistos->ColorDefinition(
"vert31"));}
13482 if(opt_plot == fSeveralPlot)
13483 {g_graph0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorH_MCs_Date));
13484 g_graph0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorH_MCs_Date));
13485 fMemoColorH_MCs_Date++;
13486 if(fMemoColorH_MCs_Date>MaxNbOfColors){fMemoColorH_MCs_Date = 0;}}
13487 gPad->SetGrid(1,1);
13490 if(HistoCode ==
"H_LFN_Date")
13492 if(opt_plot == fOnlyOnePlot){g_graph0->SetMarkerColor(fCnaParHistos->ColorDefinition(
"bleu38"));}
13493 if(opt_plot == fSeveralPlot )
13494 {g_graph0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorH_LFN_Date));
13495 g_graph0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorH_LFN_Date));
13496 fMemoColorH_LFN_Date++;
13497 if(fMemoColorH_LFN_Date>MaxNbOfColors){fMemoColorH_LFN_Date = 0;}}
13498 gPad->SetGrid(1,1);
13501 if(HistoCode ==
"H_HFN_Date")
13503 if(opt_plot == fOnlyOnePlot){g_graph0->SetMarkerColor(fCnaParHistos->ColorDefinition(
"rouge48"));}
13504 if(opt_plot == fSeveralPlot)
13505 {g_graph0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorH_HFN_Date));
13506 g_graph0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorH_HFN_Date));
13507 fMemoColorH_HFN_Date++;
13508 if(fMemoColorH_HFN_Date>MaxNbOfColors){fMemoColorH_HFN_Date = 0;}}
13509 gPad->SetGrid(1,1);
13512 if(HistoCode ==
"H_SCs_Date")
13514 if(opt_plot == fOnlyOnePlot){g_graph0->SetMarkerColor(fCnaParHistos->ColorDefinition(
"vert31"));}
13515 if(opt_plot == fSeveralPlot)
13516 {g_graph0->SetMarkerColor(fCnaParHistos->ColorTab(fMemoColorH_SCs_Date));
13517 g_graph0->SetLineColor(fCnaParHistos->ColorTab(fMemoColorH_SCs_Date));
13518 fMemoColorH_SCs_Date++;
13519 if(fMemoColorH_SCs_Date>MaxNbOfColors){fMemoColorH_SCs_Date = 0;}}
13520 gPad->SetGrid(1,1);
13529 Color_t couleur = fCnaParHistos->ColorDefinition(
"noir");
13531 if( opt_plot == fSameOnePlot ){couleur = fCnaParHistos->ColorTab(fMemoColorH1SamePlus);}
13533 if( opt_plot == fOnlyOnePlot || opt_plot == fSeveralPlot )
13535 if(HistoCode ==
"D_NOE_ChNb"){couleur = fCnaParHistos->ColorTab(fMemoColorD_NOE_ChNb);}
13536 if(HistoCode ==
"D_NOE_ChDs"){couleur = fCnaParHistos->ColorTab(fMemoColorD_NOE_ChDs);}
13537 if(HistoCode ==
"D_Ped_ChNb"){couleur = fCnaParHistos->ColorTab(fMemoColorD_Ped_ChNb);}
13538 if(HistoCode ==
"D_Ped_ChDs"){couleur = fCnaParHistos->ColorTab(fMemoColorD_Ped_ChDs);}
13539 if(HistoCode ==
"D_TNo_ChNb"){couleur = fCnaParHistos->ColorTab(fMemoColorD_TNo_ChNb);}
13540 if(HistoCode ==
"D_TNo_ChDs"){couleur = fCnaParHistos->ColorTab(fMemoColorD_TNo_ChDs);}
13541 if(HistoCode ==
"D_MCs_ChNb"){couleur = fCnaParHistos->ColorTab(fMemoColorD_MCs_ChNb);}
13542 if(HistoCode ==
"D_MCs_ChDs"){couleur = fCnaParHistos->ColorTab(fMemoColorD_MCs_ChDs);}
13543 if(HistoCode ==
"D_LFN_ChNb"){couleur = fCnaParHistos->ColorTab(fMemoColorD_LFN_ChNb);}
13544 if(HistoCode ==
"D_LFN_ChDs"){couleur = fCnaParHistos->ColorTab(fMemoColorD_LFN_ChDs);}
13545 if(HistoCode ==
"D_HFN_ChNb"){couleur = fCnaParHistos->ColorTab(fMemoColorD_HFN_ChNb);}
13546 if(HistoCode ==
"D_HFN_ChDs"){couleur = fCnaParHistos->ColorTab(fMemoColorD_HFN_ChDs);}
13547 if(HistoCode ==
"D_SCs_ChNb"){couleur = fCnaParHistos->ColorTab(fMemoColorD_SCs_ChNb);}
13548 if(HistoCode ==
"D_SCs_ChDs"){couleur = fCnaParHistos->ColorTab(fMemoColorD_SCs_ChDs);}
13549 if(HistoCode ==
"D_MSp_SpNb"){couleur = fCnaParHistos->ColorTab(fMemoColorD_MSp_SpNb);}
13550 if(HistoCode ==
"D_MSp_SpDs"){couleur = fCnaParHistos->ColorTab(fMemoColorD_MSp_SpDs);}
13551 if(HistoCode ==
"D_SSp_SpNb"){couleur = fCnaParHistos->ColorTab(fMemoColorD_SSp_SpNb);}
13552 if(HistoCode ==
"D_SSp_SpDs"){couleur = fCnaParHistos->ColorTab(fMemoColorD_SSp_SpDs);}
13553 if(HistoCode ==
"D_Adc_EvNb"){couleur = fCnaParHistos->ColorTab(fMemoColorD_Adc_EvNb);}
13554 if(HistoCode ==
"D_Adc_EvDs"){couleur = fCnaParHistos->ColorTab(fMemoColorD_Adc_EvDs);}
13555 if(HistoCode ==
"H_Ped_Date"){couleur = fCnaParHistos->ColorTab(fMemoColorH_Ped_Date);}
13556 if(HistoCode ==
"H_TNo_Date"){couleur = fCnaParHistos->ColorTab(fMemoColorH_TNo_Date);}
13557 if(HistoCode ==
"H_MCs_Date"){couleur = fCnaParHistos->ColorTab(fMemoColorH_MCs_Date);}
13558 if(HistoCode ==
"H_LFN_Date"){couleur = fCnaParHistos->ColorTab(fMemoColorH_LFN_Date);}
13559 if(HistoCode ==
"H_HFN_Date"){couleur = fCnaParHistos->ColorTab(fMemoColorH_HFN_Date);}
13560 if(HistoCode ==
"H_SCs_Date"){couleur = fCnaParHistos->ColorTab(fMemoColorH_SCs_Date);}
13561 if(HistoCode ==
"H_Ped_RuDs"){couleur = fCnaParHistos->ColorTab(fMemoColorH_Ped_RuDs);}
13562 if(HistoCode ==
"H_TNo_RuDs"){couleur = fCnaParHistos->ColorTab(fMemoColorH_TNo_RuDs);}
13563 if(HistoCode ==
"H_MCs_RuDs"){couleur = fCnaParHistos->ColorTab(fMemoColorH_MCs_RuDs);}
13564 if(HistoCode ==
"H_LFN_RuDs"){couleur = fCnaParHistos->ColorTab(fMemoColorH_LFN_RuDs);}
13565 if(HistoCode ==
"H_HFN_RuDs"){couleur = fCnaParHistos->ColorTab(fMemoColorH_HFN_RuDs);}
13566 if(HistoCode ==
"H_SCs_RuDs"){couleur = fCnaParHistos->ColorTab(fMemoColorH_SCs_RuDs);}
13575 TColor* my_color =
new TColor();
13576 Color_t couleur = fCnaParHistos->ColorDefinition(
"noir");
13578 if( DeeEndcap ==
"EE+" )
13580 if ( DeeDir ==
"right" && QuadType ==
"top" ){couleur=fCnaParHistos->ColorDefinition(
"rouge");}
13581 if ( DeeDir ==
"right" && QuadType ==
"bottom" ){couleur=fCnaParHistos->ColorDefinition(
"bleu_fonce");}
13582 if ( DeeDir ==
"left" && QuadType ==
"top" ){couleur=(Color_t)my_color->GetColor(
"#006600");}
13583 if ( DeeDir ==
"left" && QuadType ==
"bottom" ){couleur=(Color_t)my_color->GetColor(
"#CC3300");}
13585 if( DeeEndcap ==
"EE-" )
13587 if ( DeeDir ==
"right" && QuadType ==
"top" ){couleur=(Color_t)my_color->GetColor(
"#008800");}
13588 if ( DeeDir ==
"right" && QuadType ==
"bottom" ){couleur=(Color_t)my_color->GetColor(
"#EE5500");}
13589 if ( DeeDir ==
"left" && QuadType ==
"top" ){couleur=fCnaParHistos->ColorDefinition(
"rouge");}
13590 if ( DeeDir ==
"left" && QuadType ==
"bottom" ){couleur=fCnaParHistos->ColorDefinition(
"bleu_fonce");}
13599 fCnaParHistos->SetViewHistoStyle(HistoType.Data());
13600 fCnaParHistos->SetViewHistoPadMargins(HistoType.Data(),
" ");
13601 fCnaParHistos->SetViewHistoOffsets(histo, HistoType.Data(),
" ");
13602 fCnaParHistos->SetViewHistoStats(histo, HistoType.Data());
13608 fCnaParHistos->SetViewHistoStyle(HistoType.Data());
13609 fCnaParHistos->SetViewHistoPadMargins(HistoType.Data(), opt_plot.Data());
13610 fCnaParHistos->SetViewHistoOffsets(histo, HistoType.Data(), opt_plot.Data());
13611 fCnaParHistos->SetViewHistoStats(histo, HistoType.Data());
13618 fCnaParHistos->SetViewHistoStyle(HistoType.Data());
13619 fCnaParHistos->SetViewHistoPadMargins(HistoType.Data(), opt_plot);
13620 fCnaParHistos->SetViewGraphOffsets(graph, HistoType.Data());
13623 graph->SetMarkerStyle(1);
13624 if( HistoType ==
"Evol" ){graph->SetMarkerStyle(20);}
13637 if( opt_plot == fSameOnePlot )
13639 fImpH1SamePlus = 0; fCanvH1SamePlus = 0;
13640 fPadH1SamePlus = 0; fMemoPlotH1SamePlus = 0;
13641 fMemoColorH1SamePlus = 0; fCanvSameH1SamePlus++;
13642 fPavTxtH1SamePlus = 0; fClosedH1SamePlus = kFALSE;
13646 cout <<
"TEcnaHistos::NewCanvas(...)> *** ERROR *** " << opt_plot.Data() <<
": "
13647 <<
"unknown option for NewCanvas. Only " << fSameOnePlot <<
" option is accepted."
13648 << fTTBELL << endl;
13656 if( opt_plot == fSameOnePlot )
13658 fImpH1SamePlus = 0; fCanvH1SamePlus = 0;
13659 fPadH1SamePlus = 0; fMemoPlotH1SamePlus = 0;
13660 fMemoColorH1SamePlus = 0; fCanvSameH1SamePlus++;
13661 fPavTxtH1SamePlus = 0; fClosedH1SamePlus = kFALSE;
13664 if( opt_plot == fOnlyOnePlot || opt_plot == fSeveralPlot)
13666 if(HistoCode ==
"D_NOE_ChNb")
13668 fImpD_NOE_ChNb = 0; fCanvD_NOE_ChNb = 0;
13669 fPadD_NOE_ChNb = 0; fMemoPlotD_NOE_ChNb = 0;
13670 fMemoColorD_NOE_ChNb = 0; fCanvSameD_NOE_ChNb++;
13671 fPavTxtD_NOE_ChNb = 0; fClosedD_NOE_ChNb = kFALSE;
13674 if(HistoCode ==
"D_NOE_ChDs")
13676 fImpD_NOE_ChDs = 0; fCanvD_NOE_ChDs = 0;
13677 fPadD_NOE_ChDs = 0; fMemoPlotD_NOE_ChDs = 0;
13678 fMemoColorD_NOE_ChDs = 0; fCanvSameD_NOE_ChDs++;
13679 fPavTxtD_NOE_ChDs = 0; fClosedD_NOE_ChDs = kFALSE;
13682 if(HistoCode ==
"D_Ped_ChNb")
13684 fImpD_Ped_ChNb = 0; fCanvD_Ped_ChNb = 0;
13685 fPadD_Ped_ChNb = 0; fMemoPlotD_Ped_ChNb = 0;
13686 fMemoColorD_Ped_ChNb = 0; fCanvSameD_Ped_ChNb++;
13687 fPavTxtD_Ped_ChNb = 0; fClosedD_Ped_ChNb = kFALSE;
13690 if(HistoCode ==
"D_Ped_ChDs")
13692 fImpD_Ped_ChDs = 0; fCanvD_Ped_ChDs = 0;
13693 fPadD_Ped_ChDs = 0; fMemoPlotD_Ped_ChDs = 0;
13694 fMemoColorD_Ped_ChDs = 0; fCanvSameD_Ped_ChDs++;
13695 fPavTxtD_Ped_ChDs = 0; fClosedD_Ped_ChDs = kFALSE;
13698 if(HistoCode ==
"D_TNo_ChNb")
13700 fImpD_TNo_ChNb = 0; fCanvD_TNo_ChNb = 0;
13701 fPadD_TNo_ChNb = 0; fMemoPlotD_TNo_ChNb = 0;
13702 fMemoColorD_TNo_ChNb = 0; fCanvSameD_TNo_ChNb++;
13703 fPavTxtD_TNo_ChNb = 0; fClosedD_TNo_ChNb = kFALSE;
13706 if(HistoCode ==
"D_TNo_ChDs")
13708 fImpD_TNo_ChDs = 0; fCanvD_TNo_ChDs = 0;
13709 fPadD_TNo_ChDs = 0; fMemoPlotD_TNo_ChDs = 0;
13710 fMemoColorD_TNo_ChDs = 0; fCanvSameD_TNo_ChDs++;
13711 fPavTxtD_TNo_ChDs = 0; fClosedD_TNo_ChDs = kFALSE;
13714 if(HistoCode ==
"D_MCs_ChNb")
13716 fImpD_MCs_ChNb = 0; fCanvD_MCs_ChNb = 0;
13717 fPadD_MCs_ChNb = 0; fMemoPlotD_MCs_ChNb = 0;
13718 fMemoColorD_MCs_ChNb = 0; fCanvSameD_MCs_ChNb++;
13719 fPavTxtD_MCs_ChNb = 0; fClosedD_MCs_ChNb = kFALSE;
13722 if(HistoCode ==
"D_MCs_ChDs")
13724 fImpD_MCs_ChDs = 0; fCanvD_MCs_ChDs = 0;
13725 fPadD_MCs_ChDs = 0; fMemoPlotD_MCs_ChDs = 0;
13726 fMemoColorD_MCs_ChDs = 0; fCanvSameD_MCs_ChDs++;
13727 fPavTxtD_MCs_ChDs = 0; fClosedD_MCs_ChDs = kFALSE;
13730 if(HistoCode ==
"D_LFN_ChNb")
13732 fImpD_LFN_ChNb = 0; fCanvD_LFN_ChNb = 0;
13733 fPadD_LFN_ChNb = 0; fMemoPlotD_LFN_ChNb = 0;
13734 fMemoColorD_LFN_ChNb = 0; fCanvSameD_LFN_ChNb++;
13735 fPavTxtD_LFN_ChNb = 0; fClosedD_LFN_ChNb = kFALSE;
13738 if(HistoCode ==
"D_LFN_ChDs")
13740 fImpD_LFN_ChDs = 0; fCanvD_LFN_ChDs = 0;
13741 fPadD_LFN_ChDs= 0; fMemoPlotD_LFN_ChDs = 0;
13742 fMemoColorD_LFN_ChDs = 0; fCanvSameD_LFN_ChDs++;
13743 fPavTxtD_LFN_ChDs= 0; fClosedD_LFN_ChDs = kFALSE;
13746 if(HistoCode ==
"D_HFN_ChNb")
13748 fImpD_HFN_ChNb = 0; fCanvD_HFN_ChNb = 0;
13749 fPadD_HFN_ChNb = 0; fMemoPlotD_HFN_ChNb = 0;
13750 fMemoColorD_HFN_ChNb = 0; fCanvSameD_HFN_ChNb++;
13751 fPavTxtD_HFN_ChNb = 0; fClosedD_HFN_ChNb = kFALSE;
13754 if(HistoCode ==
"D_HFN_ChDs")
13756 fImpD_HFN_ChDs = 0; fCanvD_HFN_ChDs = 0;
13757 fPadD_HFN_ChDs = 0; fMemoPlotD_HFN_ChDs = 0;
13758 fMemoColorD_HFN_ChDs = 0; fCanvSameD_HFN_ChDs++;
13759 fPavTxtD_HFN_ChDs = 0; fClosedD_HFN_ChDs = kFALSE;
13762 if(HistoCode ==
"D_SCs_ChNb")
13764 fImpD_SCs_ChNb = 0; fCanvD_SCs_ChNb = 0;
13765 fPadD_SCs_ChNb = 0; fMemoPlotD_SCs_ChNb = 0;
13766 fMemoColorD_SCs_ChNb = 0; fCanvSameD_SCs_ChNb++;
13767 fPavTxtD_SCs_ChNb = 0; fClosedD_SCs_ChNb = kFALSE;
13770 if(HistoCode ==
"D_SCs_ChDs")
13772 fImpD_SCs_ChDs = 0; fCanvD_SCs_ChDs = 0;
13773 fPadD_SCs_ChDs = 0; fMemoPlotD_SCs_ChDs = 0;
13774 fMemoColorD_SCs_ChDs = 0; fCanvSameD_SCs_ChDs++;
13775 fPavTxtD_SCs_ChDs = 0; fClosedD_SCs_ChDs = kFALSE;
13778 if(HistoCode ==
"D_MSp_SpNb")
13780 fImpD_MSp_SpNb = 0; fCanvD_MSp_SpNb = 0;
13781 fPadD_MSp_SpNb = 0; fMemoPlotD_MSp_SpNb = 0;
13782 fMemoColorD_MSp_SpNb = 0; fCanvSameD_MSp_SpNb++;
13783 fPavTxtD_MSp_SpNb = 0; fClosedD_MSp_SpNb = kFALSE;
13786 if(HistoCode ==
"D_MSp_SpDs")
13788 fImpD_MSp_SpDs = 0; fCanvD_MSp_SpDs = 0;
13789 fPadD_MSp_SpDs = 0; fMemoPlotD_MSp_SpDs = 0;
13790 fMemoColorD_MSp_SpDs = 0; fCanvSameD_MSp_SpDs++;
13791 fPavTxtD_MSp_SpDs = 0; fClosedD_MSp_SpDs = kFALSE;
13794 if(HistoCode ==
"D_SSp_SpNb")
13796 fImpD_SSp_SpNb = 0; fCanvD_SSp_SpNb = 0;
13797 fPadD_SSp_SpNb = 0; fMemoPlotD_SSp_SpNb= 0;
13798 fMemoColorD_SSp_SpNb = 0; fCanvSameD_SSp_SpNb++;
13799 fPavTxtD_SSp_SpNb = 0; fClosedD_SSp_SpNb = kFALSE;
13802 if(HistoCode ==
"D_SSp_SpDs")
13804 fImpD_SSp_SpDs = 0; fCanvD_SSp_SpDs = 0;
13805 fPadD_SSp_SpDs = 0; fMemoPlotD_SSp_SpDs= 0;
13806 fMemoColorD_SSp_SpDs = 0; fCanvSameD_SSp_SpDs++;
13807 fPavTxtD_SSp_SpDs = 0; fClosedD_SSp_SpDs = kFALSE;
13810 if(HistoCode ==
"D_Adc_EvNb")
13812 fImpD_Adc_EvNb = 0; fCanvD_Adc_EvNb = 0;
13813 fPadD_Adc_EvNb = 0; fMemoPlotD_Adc_EvNb = 0;
13814 fMemoColorD_Adc_EvNb = 0; fCanvSameD_Adc_EvNb++;
13815 fPavTxtD_Adc_EvNb = 0; fClosedD_Adc_EvNb = kFALSE;
13818 if(HistoCode ==
"D_Adc_EvDs")
13820 fImpD_Adc_EvDs = 0; fCanvD_Adc_EvDs = 0;
13821 fPadD_Adc_EvDs = 0; fMemoPlotD_Adc_EvDs = 0;
13822 fMemoColorD_Adc_EvDs = 0; fCanvSameD_Adc_EvDs++;
13823 fPavTxtD_Adc_EvDs = 0; fClosedD_Adc_EvDs = kFALSE;
13827 if(HistoCode ==
"H_Ped_Date")
13829 fImpH_Ped_Date = 0; fCanvH_Ped_Date = 0;
13830 fPadH_Ped_Date = 0; fMemoPlotH_Ped_Date = 0;
13831 fMemoColorH_Ped_Date = 0; fCanvSameH_Ped_Date++;
13832 fNbOfListFileH_Ped_Date = 0;fClosedH_Ped_Date = kFALSE;
13835 if(HistoCode ==
"H_TNo_Date")
13837 fImpH_TNo_Date = 0; fCanvH_TNo_Date = 0;
13838 fPadH_TNo_Date = 0; fMemoPlotH_TNo_Date = 0;
13839 fMemoColorH_TNo_Date = 0; fCanvSameH_TNo_Date++;
13840 fNbOfListFileH_TNo_Date = 0; fClosedH_TNo_Date = kFALSE;
13843 if(HistoCode ==
"H_MCs_Date")
13845 fImpH_MCs_Date = 0; fCanvH_MCs_Date = 0;
13846 fPadH_MCs_Date = 0; fMemoPlotH_MCs_Date = 0;
13847 fMemoColorH_MCs_Date = 0; fCanvSameH_MCs_Date++;
13848 fNbOfListFileH_MCs_Date = 0; fClosedH_MCs_Date = kFALSE;
13852 if(HistoCode ==
"H_LFN_Date")
13854 fImpH_LFN_Date = 0; fCanvH_LFN_Date = 0;
13855 fPadH_LFN_Date = 0; fMemoPlotH_LFN_Date = 0;
13856 fMemoColorH_LFN_Date = 0; fCanvSameH_LFN_Date++;
13857 fNbOfListFileH_LFN_Date = 0; fClosedH_LFN_Date = kFALSE;
13860 if(HistoCode ==
"H_HFN_Date")
13862 fImpH_HFN_Date = 0; fCanvH_HFN_Date = 0;
13863 fPadH_HFN_Date = 0; fMemoPlotH_HFN_Date = 0;
13864 fMemoColorH_HFN_Date = 0; fCanvSameH_HFN_Date++;
13865 fNbOfListFileH_HFN_Date = 0; fClosedH_HFN_Date = kFALSE;
13868 if(HistoCode ==
"H_SCs_Date")
13870 fImpH_SCs_Date = 0; fCanvH_SCs_Date = 0;
13871 fPadH_SCs_Date = 0; fMemoPlotH_SCs_Date = 0;
13872 fMemoColorH_SCs_Date = 0; fCanvSameH_SCs_Date++;
13873 fNbOfListFileH_SCs_Date = 0; fClosedH_SCs_Date = kFALSE;
13876 if(HistoCode ==
"H_Ped_RuDs")
13878 fImpH_Ped_RuDs = 0; fCanvH_Ped_RuDs = 0;
13879 fPadH_Ped_RuDs = 0; fMemoPlotH_Ped_RuDs = 0;
13880 fMemoColorH_Ped_RuDs = 0; fCanvSameH_Ped_RuDs++;
13881 fNbOfListFileH_Ped_RuDs = 0; fClosedH_Ped_RuDs = kFALSE;
13884 if(HistoCode ==
"H_TNo_RuDs")
13886 fImpH_TNo_RuDs = 0; fCanvH_TNo_RuDs = 0;
13887 fPadH_TNo_RuDs = 0; fMemoPlotH_TNo_RuDs = 0;
13888 fMemoColorH_TNo_RuDs = 0; fCanvSameH_TNo_RuDs++;
13889 fNbOfListFileH_TNo_RuDs = 0; fClosedH_TNo_RuDs = kFALSE;
13892 if(HistoCode ==
"H_MCs_RuDs")
13894 fImpH_MCs_RuDs = 0; fCanvH_MCs_RuDs = 0;
13895 fPadH_MCs_RuDs = 0; fMemoPlotH_MCs_RuDs = 0;
13896 fMemoColorH_MCs_RuDs = 0; fCanvSameH_MCs_RuDs++;
13897 fNbOfListFileH_MCs_RuDs = 0; fClosedH_MCs_RuDs = kFALSE;
13901 if(HistoCode ==
"H_LFN_RuDs")
13903 fImpH_LFN_RuDs = 0; fCanvH_LFN_RuDs = 0;
13904 fPadH_LFN_RuDs = 0; fMemoPlotH_LFN_RuDs = 0;
13905 fMemoColorH_LFN_RuDs = 0; fCanvSameH_LFN_RuDs++;
13906 fNbOfListFileH_LFN_RuDs = 0; fClosedH_LFN_RuDs = kFALSE;
13909 if(HistoCode ==
"H_HFN_RuDs")
13911 fImpH_HFN_RuDs = 0; fCanvH_HFN_RuDs = 0;
13912 fPadH_HFN_RuDs = 0; fMemoPlotH_HFN_RuDs = 0;
13913 fMemoColorH_HFN_RuDs = 0; fCanvSameH_HFN_RuDs++;
13914 fNbOfListFileH_HFN_RuDs = 0; fClosedH_HFN_RuDs = kFALSE;
13917 if(HistoCode ==
"H_SCs_RuDs")
13919 fImpH_SCs_RuDs = 0; fCanvH_SCs_RuDs = 0;
13920 fPadH_SCs_RuDs = 0; fMemoPlotH_SCs_RuDs = 0;
13921 fMemoColorH_SCs_RuDs = 0; fCanvSameH_SCs_RuDs++;
13922 fNbOfListFileH_SCs_RuDs = 0; fClosedH_SCs_RuDs = kFALSE;
13930 const Int_t& StexStinEcna,
const Int_t& MatrixBinIndex,
13931 const Int_t& MatSize,
const TMatrixD& read_matrix)
13935 Int_t ChanNumber = MatrixBinIndex;
13937 fCnaWrite->RegisterFileParameters(fFapAnaType, fFapNbOfSamples,
13938 fFapRunNumber, fFapFirstReqEvtNumber, fFapLastReqEvtNumber, fFapReqNbOfEvts,
13939 fFapStexNumber, fStartDate, fStopDate, fStartTime, fStopTime);
13941 if( BetweenWhat == fBetweenSamples && CorOrCov == fCorrelationMatrix )
13943 fCnaWrite->WriteAsciiCorrelationsBetweenSamples(StexStinEcna, ChanNumber, MatSize, read_matrix);
13944 fAsciiFileName = fCnaWrite->GetAsciiFileName();
13947 if( BetweenWhat == fBetweenSamples && CorOrCov == fCovarianceMatrix )
13949 fCnaWrite->WriteAsciiCovariancesBetweenSamples(StexStinEcna, ChanNumber, MatSize, read_matrix);
13950 fAsciiFileName = fCnaWrite->GetAsciiFileName();
13955 const TVectorD& read_histo)
13959 fCnaWrite->RegisterFileParameters(fFapAnaType, fFapNbOfSamples,
13960 fFapRunNumber, fFapFirstReqEvtNumber, fFapLastReqEvtNumber, fFapReqNbOfEvts,
13961 fFapStexNumber, fStartDate, fStopDate,
13962 fStartTime, fStopTime);
13964 fCnaWrite->WriteAsciiHisto(HistoCode, HisSize, read_histo);
13965 fAsciiFileName = fCnaWrite->GetAsciiFileName();
void HistimePlot(TGraph *, Axis_t, Axis_t, const TString &, const TString &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const TString &, const Int_t &)
TCanvas * CreateCanvas(const TString &, const TString &, const TString &, UInt_t, UInt_t)
TString SetHistoXAxisTitle(const TString &)
void PlotDetector(const TVectorD &, const TString &, const TString &)
void SCCrystalNumbering(const Int_t &, const Int_t &)
void XtalSamplesSigma(const TVectorD &, const Int_t &, const Int_t &, const Int_t &, const TString &)
TVectorD ReadLowFrequencyNoise(const Int_t &)
Int_t GetNotConnectedDSSCFromIndex(const Int_t &)
Int_t GetLastReqEvtNumber()
Int_t GetHistoNumberOfBins(const TString &, const Int_t &)
void InitSpecParBeforeFileReading()
void ViewStex(const TVectorD &, const Int_t &, const TString &)
Int_t GetHistoryRunListParameters(const TString &, const TString &)
TString GetMemoFlag(const TString &)
void SetNbBinsMemo(const TString &, const TString &, const Int_t &)
TString GetXVarFromMemo(const TString &, const TString &)
void SetXsupMemoFromValue(const TString &, const Double_t &)
void ViewStinGrid(const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const TString &)
Double_t GetXinfValueFromMemo()
Int_t GetNotCompleteDSSCFromIndex(const Int_t &)
TString GetYVarFromMemo(const TString &, const TString &)
Int_t GetYStinInStas(const Int_t &, const Int_t &)
void CorrelationsBetweenSamples(const Int_t &)
void PlotMatrix(const TMatrixD &, const TString &, const TString &)
Bool_t GetOkViewHisto(TEcnaRead *, const Int_t &, const Int_t &, const Int_t &, const TString &)
TVirtualPad * ActivePad(const TString &, const TString &)
void ViewSMGrid(const Int_t &, const TString &)
void ViewStin(const Int_t &, const TString &)
Double_t GetYmaxFromHistoFrameAndMarginValue(TH1D *, const Double_t)
TVectorD ReadSampleAdcValues(const Int_t &, const Int_t &, const Int_t &, const Int_t &)
void PlotHistory(const TString &, const TString &, const TString &, const Int_t &, const Int_t &)
Double_t GetYmaxFromGraphFrameAndMarginValue(TGraph *, const Double_t)
Int_t GetNumberOfEvents(const Int_t &, const Int_t &)
Double_t GetXsupValueFromMemo()
void SetAllPavesViewStex(const TString &, const Int_t &)
void ReInitCanvas(const TString &, const TString &)
TVectorD ReadSigmaOfCorrelationsBetweenSamples(const Int_t &)
void SetViewHistoColors(TH1D *, const TString &, const TString &, const Int_t &)
void XtalSamplesEv(const TVectorD &, const Int_t &, const Int_t &, const Int_t &, const TString &)
TString GetRootFileNameShort()
void SetRunNumberFromList(const Int_t &, const Int_t &)
void SetYmaxMemoFromPreviousMemo(const TString &)
void SetParametersPavTxt(const TString &, const TString &)
Int_t SetGraphFrameYminYmaxFromMemo(TGraph *, const TString &)
TString StexNumberToString(const Int_t &)
void CovariancesBetweenSamples(const Int_t &)
void SetHistoScaleY(const TString &)
void DeeSCNumbering(const Int_t &)
void SetAllPavesViewStinCrysNb(const Int_t &, const Int_t &)
void ViewStexStinNumberingPad(const Int_t &)
void FillHisto(TH1D *, const TVectorD &, const TString &, const Int_t &)
void TowerCrystalNumbering(const Int_t &, const Int_t &)
void StexHocoVecoLHFCorcc(const TString &)
void WriteHistoAscii(const TString &, const Int_t &, const TVectorD &)
Bool_t RegisterPointer(const TString &, const Long_t &)
void ViewStas(const TVectorD &, const Int_t &, const TString &)
TString GetEtaPhiAxisTitle(const TString &)
Int_t SetHistoFrameYminYmaxFromMemo(TH1D *, const TString &)
Double_t GetYmaxValueFromMemo(const TString &)
Int_t GetFirstReqEvtNumber()
Double_t GetYminValueFromMemo(const TString &)
Color_t GetViewHistoColor(const TString &, const TString &)
void ViewStexGrid(const Int_t &, const TString &)
void StexStinNumbering(const Int_t &)
TPaveText * ActivePavTxt(const TString &, const TString &)
void RunType(const TString &)
void HistoPlot(TH1D *, const Int_t &, const Axis_t &, const Axis_t &, const TString &, const TString &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const TString &, const Int_t &, const Int_t &)
TVectorD GetHistoValues(const TVectorD &, const Int_t &, TEcnaRead *, const TString &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, Int_t &)
void EEGridAxis(const Float_t &, const Float_t &, const Int_t &, const TString &, const TString &)
Int_t GetXSampInStin(const Int_t &, const Int_t &, const Int_t &, const Int_t &)
TVectorD ReadStinNumbers(const Int_t &)
TVectorD ReadSampleSigmas(const Int_t &, const Int_t &, const Int_t &)
void SetYminMemoFromValue(const TString &, const Double_t &)
void ViewTowerGrid(const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const TString &)
TString GetHocoVecoAxisTitle(const TString &)
void SetYminMemoFromPreviousMemo(const TString &)
void SetAllYminYmaxMemoFromDefaultValues()
Double_t GetYminFromHistoFrameAndMarginValue(TH1D *, const Double_t)
void ViewHistime(const TString &, const Int_t &, const Int_t &, const TString &, const TString &)
TVectorD ReadTotalNoise(const Int_t &)
void SetXinfMemoFromValue(const TString &, const Double_t &)
void SetHistoColorPalette(const TString &)
void ViewSMTowerNumberingPad(const Int_t &)
Int_t GetNotCompleteSCForConsFromIndex(const Int_t &)
void SetAllPavesViewStas()
void SetAllPavesViewHisto(const TString &, const Int_t &, const Int_t &, const Int_t &, const TString &)
void ViewHisto(const TVectorD &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const TString &, const TString &)
Int_t GetListFileNumber(const TString &)
void ViewDeeSCNumberingPad(const Int_t &)
TVectorD ReadPedestals(const Int_t &)
TString GetCurrentCanvasName()
void SetParametersCanvas(const TString &, const TString &)
Axis_t GetHistoXsup(const TString &, const Int_t &, const TString &)
void ViewEEGrid(const Int_t &)
void Plot1DHisto(const TVectorD &, const TString &, const TString &, const TString &)
void SetEcalSubDetector(const TString &)
TString GetAnalysisName()
Int_t GetXCrysInStex(const Int_t &, const Int_t &, const Int_t &)
void SetAllPavesViewMatrix(const TString &, const Int_t &, const Int_t &, const Int_t &)
void SetViewGraphColors(TGraph *, const TString &, const TString &)
TVectorD ReadHighFrequencyNoise(const Int_t &)
void StinCrystalNumbering(const Int_t &, const Int_t &)
Int_t GetYCrysInStex(const Int_t &, const Int_t &, const Int_t &)
void SetAllPavesViewStin(const Int_t &)
Color_t GetSCColor(const TString &, const TString &, const TString &)
void SetXVarMemo(const TString &, const TString &, const TString &)
Int_t GetSCOffset(const Int_t &, const Int_t &, const Int_t &)
void SMTowerNumbering(const Int_t &)
void EvSamplesXtals(const TVectorD &, const Int_t &, const Int_t &, const Int_t &, const TString &)
Int_t ModifiedSCEchaForNotConnectedSCs(const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &)
void SetHistoScaleX(const TString &)
void NumberOfEvents(const Int_t &)
void TopAxisForHistos(TH1D *, const TString &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &)
void SqrtContourLevels(const Int_t &, Double_t *)
Int_t GetYSampInStin(const Int_t &, const Int_t &, const Int_t &, const Int_t &)
void SetGraphPresentation(TGraph *, const TString &, const TString &)
Int_t GetDSOffset(const Int_t &, const Int_t &)
TCanvas * GetCurrentCanvas()
Int_t GetNbBinsFromMemo(const TString &, const TString &)
Int_t GetNotConnectedSCForConsFromIndex(const Int_t &)
void SetHistoPresentation(TH1D *, const TString &)
void ViewDeeGrid(const Int_t &, const TString &)
TVectorD ReadMeanCorrelationsBetweenSamples(const Int_t &)
Int_t GetXStinInStas(const Int_t &, const Int_t &, const Int_t &)
Double_t NotConnectedSCH1DBin(const Int_t &)
void NewCanvas(const TString &)
TString SetHistoYAxisTitle(const TString &)
Double_t GetYminFromGraphFrameAndMarginValue(TGraph *, const Double_t)
TString GetIXIYAxisTitle(const TString &)
void SetYVarMemo(const TString &, const TString &, const TString &)
int ism(int ieta, int iphi)
Axis_t GetHistoXinf(const TString &, const Int_t &, const TString &)
void ViewStasGrid(const Int_t &)
Long_t GetPointerValue(const TString &)
void EEDataSectors(const Float_t &, const Float_t &, const Int_t &, const TString &)
Double_t NotCompleteSCH1DBin(const Int_t &)
TVectorD ReadSampleMeans(const Int_t &, const Int_t &, const Int_t &)
void SetYmaxMemoFromValue(const TString &, const Double_t &)
Int_t GetHistoSize(const TString &, const TString &)
void FileParameters(const TString &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &)
TString SetCanvasName(const TString &, const Int_t &, const Int_t &, const TString &, const Int_t &, const Int_t &, const Int_t &, const Int_t &)
void ViewMatrix(const TMatrixD &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const TString &, const TString &, const TString &)
void StartStopDate(const TString &, const TString &)
void SigmaSamplesXtals(const TVectorD &, const Int_t &, const Int_t &, const Int_t &, const TString &)
void ViewSCGrid(const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const TString &)
TVectorD ReadNumberOfEvents(const Int_t &)
void GeneralTitle(const TString &)
void PlotCloneOfCurrentCanvas()
void WriteMatrixAscii(const TString &, const TString &, const Int_t &, const Int_t &, const Int_t &, const TMatrixD &)