CMS 3D CMS Logo

TCnaViewEB Class Reference

#include <CalibCalorimetry/EcalCorrelatedNoiseAnalysisAlgos/interface/TCnaViewEB.h>

List of all members.

Public Member Functions

TVirtualPad * ActivePad (const TString)
TPaveText * ActivePavTxt (const TString)
void AllocArraysForEvol ()
Double_t BoxBottomY (const TString)
Double_t BoxLeftX (const TString)
Double_t BoxRightX (const TString)
Double_t BoxTopY (const TString)
UInt_t CanvasFormatH (const TString)
UInt_t CanvasFormatW (const TString)
Color_t ColorDefinition (const TString)
Color_t ColorTab (const Int_t &)
void CorrelationsBetweenCrystals (const Int_t &, const Int_t &, const TString)
void CorrelationsBetweenSamples (const Int_t &tower)
void CorrelationsBetweenSamples (const Int_t &, const Int_t &, const TString)
void CorrelationsBetweenTowers (const TString)
void CovariancesBetweenCrystals (const Int_t &, const Int_t &, const TString)
void CovariancesBetweenSamples (const Int_t &tower)
void CovariancesBetweenSamples (const Int_t &, const Int_t &, const TString)
void CovariancesBetweenTowers (const TString)
void CreateCanvas (const TString, const TString, UInt_t, UInt_t)
void EtaPhiSuperModuleCorccMeanOverSamples ()
void EtaPhiSuperModuleFoundEvents ()
void EtaPhiSuperModuleMeanOfCorss ()
void EtaPhiSuperModuleMeanOfSampleSigmas ()
void EtaPhiSuperModuleMeanPedestals ()
void EtaPhiSuperModuleSigmaOfCorss ()
void EtaPhiSuperModuleSigmaOfSampleSigmas ()
void EtaPhiSuperModuleSigmaPedestals ()
void FillHisto (TH1D *, const TVectorD, const TString, const Int_t &, const Axis_t, const Axis_t, const Int_t &)
TString GetEtaPhiAxisTitle (const TString)
Int_t GetHistoSize (TCnaReadEB *, const TString)
TVectorD GetHistoValues (TCnaReadEB *, const TString, const Int_t &, const Int_t &, const Int_t &, const Int_t &, Int_t &)
Int_t GetListFileNumber (const TString)
Int_t GetListOfRunParameters (const TString, const TString)
TString GetMemoFlag (const TString)
Bool_t GetOkViewHisto (TCnaReadEB *, const Int_t &, const Int_t &, const Int_t &, const TString)
void GetPathForListOfRunFiles (const TString)
void GetPathForListOfRunFiles ()
void GetPathForResultsRootFiles (const TString)
void GetPathForResultsRootFiles ()
TString GetQuantityName (const TString)
TString GetQuantityType (const TString)
Color_t GetViewHistoColor (const TString)
Int_t GetXCrysInSM (TEBNumbering *, TEBParameters *, const Int_t &, const Int_t &, const Int_t &)
Int_t GetXSampInTow (TEBNumbering *, TEBParameters *, const Int_t &, const Int_t &, const Int_t &, const Int_t &)
Int_t GetYCrysInSM (TEBNumbering *, TEBParameters *, const Int_t &, const Int_t &, const Int_t &)
Double_t GetYmax (const TString)
Double_t GetYmin (const TString)
Int_t GetYSampInTow (TEBNumbering *, TEBParameters *, const Int_t &, const Int_t &, const Int_t &, const Int_t &)
Int_t GraphSetMinMax (TGraph *, const TString)
void HistimeCrystalMeanCorss (const TString, const Int_t &, const Int_t &, const TString)
void HistimeCrystalMeanPedestals (const TString, const Int_t &, const Int_t &, const TString)
void HistimeCrystalMeanSigmas (const TString, const Int_t &, const Int_t &, const TString)
void HistimePlot (TGraph *, Axis_t, Axis_t, TCnaReadEB *, TEBNumbering *, const TString, const TString, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const TString, const Int_t &)
void HistoCrystalExpectationValuesOfSamples (const Int_t &, const Int_t &, const TString)
void HistoCrystalPedestalEventNumber (const Int_t &, const Int_t &, const TString)
void HistoCrystalSigmasOfSamples (const Int_t &, const Int_t &, const TString)
void HistoPlot (TH1D *, TCnaReadEB *, TEBNumbering *, const Int_t &, const TString, const TString, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const TString, const Int_t &)
void HistoSampleEventDistribution (const Int_t &, const Int_t &, const Int_t &, const TString)
Int_t HistoSetMinMax (TH1D *, const TString)
void HistoSuperModuleFoundEventsDistribution (const TString)
void HistoSuperModuleFoundEventsOfCrystals (const TString)
void HistoSuperModuleMeanOfCorssDistribution (const TString)
void HistoSuperModuleMeanOfCorssOfCrystals (const TString)
void HistoSuperModuleMeanOfSampleSigmasDistribution (const TString)
void HistoSuperModuleMeanOfSampleSigmasOfCrystals (const TString)
void HistoSuperModuleMeanPedestalsDistribution (const TString)
void HistoSuperModuleMeanPedestalsOfCrystals (const TString)
void HistoSuperModuleSigmaOfCorssDistribution (const TString)
void HistoSuperModuleSigmaOfCorssOfCrystals (const TString)
void HistoSuperModuleSigmaOfSampleSigmasDistribution (const TString)
void HistoSuperModuleSigmaOfSampleSigmasOfCrystals (const TString)
void HistoSuperModuleSigmaPedestalsDistribution (const TString)
void HistoSuperModuleSigmaPedestalsOfCrystals (const TString)
void Init ()
void InitQuantityYmax (const TString)
void InitQuantityYmin (const TString)
void PutAllPavesViewHisto (TCnaReadEB *, TEBNumbering *, const TString, const Int_t &, const Int_t &, const Int_t &, const TString)
void PutAllPavesViewMatrix (TCnaReadEB *, TEBNumbering *, const TString, const Int_t &, const Int_t &, const Int_t &)
void PutAllPavesViewSuperModule (TCnaReadEB *)
void PutAllPavesViewSuperModule ()
void PutAllPavesViewTower (TCnaReadEB *, const Int_t &)
void PutAllPavesViewTowerCrysNb (TEBNumbering *, const Int_t &, const Int_t &)
TPaveText * PutPaveAnalysisRun (TCnaReadEB *)
TPaveText * PutPaveAnalysisRunList (TCnaReadEB *)
TPaveText * PutPaveCrystal (TEBNumbering *, const Int_t &, const Int_t &)
TPaveText * PutPaveCrystalSample (TCnaReadEB *, const Int_t &, const Int_t &, const Int_t &)
TPaveText * PutPaveGeneralComment ()
TPaveText * PutPaveLVRB (TEBNumbering *, const Int_t &, const Int_t &)
TPaveText * PutPaveSuperModule (const TString)
TPaveText * PutPaveTakenEvents (TCnaReadEB *)
TPaveText * PutPaveTakenEventsRunList (TCnaReadEB *)
TPaveText * PutPaveTower (const Int_t &)
TPaveText * PutPaveTowersXY (const Int_t &, const Int_t &)
void PutYmax (const TString, const Double_t &)
void PutYmin (const TString, const Double_t &)
void ReInitCanvas (const TString)
UInt_t SetCanvasHeight (const TString)
TString SetCanvasName (const TString, const Int_t &, const Int_t &, const TString, const Int_t &, const Int_t &, const Int_t &)
UInt_t SetCanvasWidth (const TString)
Color_t SetColorsForNumbers (const TString)
void SetFile (const TString, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const TString, const TString)
void SetFile (const TString, const Int_t &, const Int_t &, const Int_t &, const Int_t &)
void SetFile (const Int_t &)
void SetGraphPresentation (TGraph *, const TString)
Int_t SetHistoNumberOfBins (const TString, const Int_t &)
void SetHistoPresentation (TH1D *, const TString)
void SetHistoScaleX (const TString)
void SetHistoScaleY (const TString)
TString SetHistoXAxisTitle (const TString)
Axis_t SetHistoXinf (TCnaReadEB *, const TString, const Int_t &, const Int_t &, const Int_t &, const Int_t &)
Axis_t SetHistoXsup (TCnaReadEB *, const TString, const Int_t &, const Int_t &, const Int_t &, const Int_t &)
TString SetHistoYAxisTitle (const TString)
void SetMemoFlagBusy (const TString)
void SetMemoFlagFree (const TString)
void SetParametersCanvas (const TString)
void SetViewGraphColors (TGraph *, const TString, const TString)
void SetViewGraphOffsets (TGraph *, const TString)
void SetViewHistoColors (TH1D *, const TString, const TString)
void SetViewHistoOffsets (TH1D *, const TString)
void SetViewHistoPadMargins (const TString)
void SetViewHistoStats (TH1D *, const TString)
void SetViewHistoStyle (const TString)
void SqrtContourLevels (const Int_t &, Double_t *)
void SuperModuleTowerNumbering (const Int_t &)
 TCnaViewEB ()
void TopAxisForTowerNumbers (TH1D *, const TString, const Int_t &, const Int_t &, const Int_t &, const Int_t &)
void TowerCrystalNumbering (const Int_t &, const Int_t &)
void ViewHistime (const TString, const Int_t &, const Int_t &, const TString, const Int_t &, const TString)
void ViewHisto (const Int_t &, const Int_t &, const Int_t &, const TString, const Int_t &, const TString)
void ViewMatrix (const Int_t &, const Int_t &, const Int_t &, const Int_t &, const TString, const TString)
void ViewSuperModule (const TString)
void ViewSuperModuleGrid (TEBParameters *, TEBNumbering *, const Int_t &, const TString)
void ViewSuperModuleTowerNumberingPad (TEBParameters *, TEBNumbering *, const Int_t &)
void ViewTower (const Int_t &, const Int_t &)
void ViewTowerGrid (TEBNumbering *, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const TString)
virtual ~TCnaViewEB ()

Private Attributes

TCanvas * fCanvEv
TCanvas * fCanvEvolEvCorss
TCanvas * fCanvEvolEvEv
TCanvas * fCanvEvolEvSig
TCanvas * fCanvEvts
Int_t fCanvSameEv
Int_t fCanvSameEvolEvCorss
Int_t fCanvSameEvolEvEv
Int_t fCanvSameEvolEvSig
Int_t fCanvSameEvts
Int_t fCanvSameSampTime
Int_t fCanvSameSigma
Int_t fCanvSameSMEvCorssGlobal
Int_t fCanvSameSMEvCorssProj
Int_t fCanvSameSMEvEvGlobal
Int_t fCanvSameSMEvEvProj
Int_t fCanvSameSMEvSigGlobal
Int_t fCanvSameSMEvSigProj
Int_t fCanvSameSMFoundEvtsGlobal
Int_t fCanvSameSMFoundEvtsProj
Int_t fCanvSameSMSigCorssGlobal
Int_t fCanvSameSMSigCorssProj
Int_t fCanvSameSMSigEvGlobal
Int_t fCanvSameSMSigEvProj
Int_t fCanvSameSMSigSigGlobal
Int_t fCanvSameSMSigSigProj
TCanvas * fCanvSampTime
TCanvas * fCanvSigma
TCanvas * fCanvSMEvCorssGlobal
TCanvas * fCanvSMEvCorssProj
TCanvas * fCanvSMEvEvGlobal
TCanvas * fCanvSMEvEvProj
TCanvas * fCanvSMEvSigGlobal
TCanvas * fCanvSMEvSigProj
TCanvas * fCanvSMFoundEvtsGlobal
TCanvas * fCanvSMFoundEvtsProj
TCanvas * fCanvSMSigCorssGlobal
TCanvas * fCanvSMSigCorssProj
TCanvas * fCanvSMSigEvGlobal
TCanvas * fCanvSMSigEvProj
TCanvas * fCanvSMSigSigGlobal
TCanvas * fCanvSMSigSigProj
Int_t fCdelete
Int_t fCdeleteRoot
TString fCfgListOfRunsFilePath
TString fCfgResultsRootFilePath
Int_t fCnaCommand
Int_t fCnaError
Int_t fCnew
Int_t fCnewRoot
TPaveText * fcom_bot_left
TPaveText * fcom_bot_mid
TPaveText * fcom_bot_right
TPaveText * fcom_top_left
TPaveText * fcom_top_left_memo
TPaveText * fcom_top_mid
TPaveText * fcom_top_right
TVirtualPad * fCurrentPad
Double_t fEvolEvCorssYmax
Double_t fEvolEvCorssYmin
Double_t fEvolEvEvYmax
Double_t fEvolEvEvYmin
Double_t fEvolEvSigYmax
Double_t fEvolEvSigYmin
Double_t fEvtsYmax
Double_t fEvtsYmin
Double_t fEvYmax
Double_t fEvYmin
TString fFapAnaType
Int_t fFapChanNumber
TString fFapFileRuns
Int_t fFapFirstEvt
Int_t fFapMaxNbOfRuns
Int_t fFapNbOfEvts
Int_t fFapNbOfRuns
Int_t fFapRunNumber
Int_t fFapSampNumber
TString fFapSuMoBarrel
Int_t fFapSuMoNumber
Int_t fFapTowXNumber
Int_t fFapTowYNumber
ifstream fFcin_f
ifstream fFcin_lor
ifstream fFcin_rr
TString fFileForListOfRunFilePath
TString fFileForResultsRootFilePath
TString fFlagScaleX
TString fFlagScaleY
Int_t fgMaxCar
TCanvasImp * fImpEv
TCanvasImp * fImpEvolEvCorss
TCanvasImp * fImpEvolEvEv
TCanvasImp * fImpEvolEvSig
TCanvasImp * fImpEvts
TCanvasImp * fImpSampTime
TCanvasImp * fImpSigma
TCanvasImp * fImpSMEvCorssGlobal
TCanvasImp * fImpSMEvCorssProj
TCanvasImp * fImpSMEvEvGlobal
TCanvasImp * fImpSMEvEvProj
TCanvasImp * fImpSMEvSigGlobal
TCanvasImp * fImpSMEvSigProj
TCanvasImp * fImpSMFoundEvtsGlobal
TCanvasImp * fImpSMFoundEvtsProj
TCanvasImp * fImpSMSigCorssGlobal
TCanvasImp * fImpSMSigCorssProj
TCanvasImp * fImpSMSigEvGlobal
TCanvasImp * fImpSMSigEvProj
TCanvasImp * fImpSMSigSigGlobal
TCanvasImp * fImpSMSigSigProj
Int_t fMaxNbColLine
Int_t fMemoColorEv
Int_t fMemoColorEvolEvCorss
Int_t fMemoColorEvolEvEv
Int_t fMemoColorEvolEvSig
Int_t fMemoColorEvts
Int_t fMemoColorSampTime
Int_t fMemoColorSigma
Int_t fMemoColorSMEvCorssGlobal
Int_t fMemoColorSMEvCorssProj
Int_t fMemoColorSMEvEvGlobal
Int_t fMemoColorSMEvEvProj
Int_t fMemoColorSMEvSigGlobal
Int_t fMemoColorSMEvSigProj
Int_t fMemoColorSMFoundEvtsGlobal
Int_t fMemoColorSMFoundEvtsProj
Int_t fMemoColorSMSigCorssGlobal
Int_t fMemoColorSMSigCorssProj
Int_t fMemoColorSMSigEvGlobal
Int_t fMemoColorSMSigEvProj
Int_t fMemoColorSMSigSigGlobal
Int_t fMemoColorSMSigSigProj
Int_t fMemoPlotEv
Int_t fMemoPlotEvolEvCorss
Int_t fMemoPlotEvolEvEv
Int_t fMemoPlotEvolEvSig
Int_t fMemoPlotEvts
Int_t fMemoPlotSampTime
Int_t fMemoPlotSigma
Int_t fMemoPlotSMEvCorssGlobal
Int_t fMemoPlotSMEvCorssProj
Int_t fMemoPlotSMEvEvGlobal
Int_t fMemoPlotSMEvEvProj
Int_t fMemoPlotSMEvSigGlobal
Int_t fMemoPlotSMEvSigProj
Int_t fMemoPlotSMFoundEvtsGlobal
Int_t fMemoPlotSMFoundEvtsProj
Int_t fMemoPlotSMSigCorssGlobal
Int_t fMemoPlotSMSigCorssProj
Int_t fMemoPlotSMSigEvGlobal
Int_t fMemoPlotSMSigEvProj
Int_t fMemoPlotSMSigSigGlobal
Int_t fMemoPlotSMSigSigProj
Int_t fNbBinsProj
Int_t fNbOfExistingRuns
Int_t fNbOfListFileEvolEvCorss
Int_t fNbOfListFileEvolEvEv
Int_t fNbOfListFileEvolEvSig
TString fOnlyOnePlot
Int_t fOptGlobal
Int_t fOptMatCor
Int_t fOptMatCov
TString fOptMcc
TString fOptMss
TString fOptMtt
Int_t fOptProj
Int_t fOptScaleLiny
Int_t fOptScaleLogy
Int_t fOptVisColz
Int_t fOptVisLego
Int_t fOptVisLine
Int_t fOptVisPolm
Int_t fOptVisSurf1
Int_t fOptVisSurf4
TVirtualPad * fPadEv
TVirtualPad * fPadEvolEvCorss
TVirtualPad * fPadEvolEvEv
TVirtualPad * fPadEvolEvSig
TVirtualPad * fPadEvts
TVirtualPad * fPadSampTime
TVirtualPad * fPadSigma
TVirtualPad * fPadSMEvCorssGlobal
TVirtualPad * fPadSMEvCorssProj
TVirtualPad * fPadSMEvEvGlobal
TVirtualPad * fPadSMEvEvProj
TVirtualPad * fPadSMEvSigGlobal
TVirtualPad * fPadSMEvSigProj
TVirtualPad * fPadSMFoundEvtsGlobal
TVirtualPad * fPadSMFoundEvtsProj
TVirtualPad * fPadSMSigCorssGlobal
TVirtualPad * fPadSMSigCorssProj
TVirtualPad * fPadSMSigEvGlobal
TVirtualPad * fPadSMSigEvProj
TVirtualPad * fPadSMSigSigGlobal
TVirtualPad * fPadSMSigSigProj
TCnaParametersfParameters
TPaveText * fPavTxtEv
TPaveText * fPavTxtEvolEvCorss
TPaveText * fPavTxtEvolEvEv
TPaveText * fPavTxtEvolEvSig
TPaveText * fPavTxtEvts
TPaveText * fPavTxtSampTime
TPaveText * fPavTxtSigma
TPaveText * fPavTxtSMEvCorssGlobal
TPaveText * fPavTxtSMEvCorssProj
TPaveText * fPavTxtSMEvEvGlobal
TPaveText * fPavTxtSMEvEvProj
TPaveText * fPavTxtSMEvSigGlobal
TPaveText * fPavTxtSMEvSigProj
TPaveText * fPavTxtSMFoundEvtsGlobal
TPaveText * fPavTxtSMFoundEvtsProj
TPaveText * fPavTxtSMSigCorssGlobal
TPaveText * fPavTxtSMSigCorssProj
TPaveText * fPavTxtSMSigEvGlobal
TPaveText * fPavTxtSMSigEvProj
TPaveText * fPavTxtSMSigSigGlobal
TPaveText * fPavTxtSMSigSigProj
Double_t fSampTimeYmax
Double_t fSampTimeYmin
TString fSeveralPlot
Double_t fSigmaYmax
Double_t fSigmaYmin
Double_t fSMCorccInTowersYmax
Double_t fSMCorccInTowersYmin
Double_t fSMEvCorssGlobalYmax
Double_t fSMEvCorssGlobalYmin
Double_t fSMEvCorssProjYmax
Double_t fSMEvCorssProjYmin
Double_t fSMEvCorttMatrixYmax
Double_t fSMEvCorttMatrixYmin
Double_t fSMEvCovttMatrixYmax
Double_t fSMEvCovttMatrixYmin
Double_t fSMEvEvGlobalYmax
Double_t fSMEvEvGlobalYmin
Double_t fSMEvEvProjYmax
Double_t fSMEvEvProjYmin
Double_t fSMEvSigGlobalYmax
Double_t fSMEvSigGlobalYmin
Double_t fSMEvSigProjYmax
Double_t fSMEvSigProjYmin
Double_t fSMFoundEvtsGlobalYmax
Double_t fSMFoundEvtsGlobalYmin
Double_t fSMFoundEvtsProjYmax
Double_t fSMFoundEvtsProjYmin
Double_t fSMSigCorssGlobalYmax
Double_t fSMSigCorssGlobalYmin
Double_t fSMSigCorssProjYmax
Double_t fSMSigCorssProjYmin
Double_t fSMSigEvGlobalYmax
Double_t fSMSigEvGlobalYmin
Double_t fSMSigEvProjYmax
Double_t fSMSigEvProjYmin
Double_t fSMSigSigGlobalYmax
Double_t fSMSigSigGlobalYmin
Double_t fSMSigSigProjYmax
Double_t fSMSigSigProjYmin
TString fStartDate
TString fStartEvolDate
Int_t fStartEvolRun
time_t fStartEvolTime
time_t fStartTime
TString fStopDate
TString fStopEvolDate
Int_t fStopEvolRun
time_t fStopEvolTime
time_t fStopTime
TString * fT1DAnaType
Int_t * fT1DFirstEvt
TString * fT1DListOfRunsFilePath
Int_t * fT1DNbOfEvts
TString * fT1DResultsRootFilePath
Int_t * fT1DRunNumber
Int_t * fT1DSuMoNumber
Int_t fTextPaveAlign
Int_t fTextPaveFont
Float_t fTextPaveSize
TPaveText * ftitle_g1
Int_t fTowerSizeInCrystals
TString fTTBELL
Double_t fXinf
Double_t fXsup
Double_t fYinf
Double_t fYsup


Detailed Description

Definition at line 31 of file TCnaViewEB.h.


Constructor & Destructor Documentation

TCnaViewEB::TCnaViewEB (  ) 

Definition at line 264 of file TCnaViewEB.cc.

References Init().

00265 {
00266   Init();
00267 }

virtual TCnaViewEB::~TCnaViewEB (  )  [virtual]


Member Function Documentation

TVirtualPad * TCnaViewEB::ActivePad ( const   TString  ) 

Definition at line 6093 of file TCnaViewEB.cc.

References fCanvEv, fCanvEvolEvCorss, fCanvEvolEvEv, fCanvEvolEvSig, fCanvEvts, fCanvSampTime, fCanvSigma, fCanvSMEvCorssGlobal, fCanvSMEvCorssProj, fCanvSMEvEvGlobal, fCanvSMEvEvProj, fCanvSMEvSigGlobal, fCanvSMEvSigProj, fCanvSMFoundEvtsGlobal, fCanvSMFoundEvtsProj, fCanvSMSigCorssGlobal, fCanvSMSigCorssProj, fCanvSMSigEvGlobal, fCanvSMSigEvProj, fCanvSMSigSigGlobal, fCanvSMSigSigProj, fImpEv, fImpEvolEvCorss, fImpEvolEvEv, fImpEvolEvSig, fImpEvts, fImpSampTime, fImpSigma, fImpSMEvCorssGlobal, fImpSMEvCorssProj, fImpSMEvEvGlobal, fImpSMEvEvProj, fImpSMEvSigGlobal, fImpSMEvSigProj, fImpSMFoundEvtsGlobal, fImpSMFoundEvtsProj, fImpSMSigCorssGlobal, fImpSMSigCorssProj, fImpSMSigEvGlobal, fImpSMSigEvProj, fImpSMSigSigGlobal, fImpSMSigSigProj, fPadEv, fPadEvolEvCorss, fPadEvolEvEv, fPadEvolEvSig, fPadEvts, fPadSampTime, fPadSigma, fPadSMEvCorssGlobal, fPadSMEvCorssProj, fPadSMEvEvGlobal, fPadSMEvEvProj, fPadSMEvSigGlobal, fPadSMEvSigProj, fPadSMFoundEvtsGlobal, fPadSMFoundEvtsProj, fPadSMSigCorssGlobal, fPadSMSigCorssProj, fPadSMSigEvGlobal, fPadSMSigEvProj, fPadSMSigSigGlobal, and fPadSMSigSigProj.

Referenced by HistimePlot(), and HistoPlot().

06094 {
06095 // Active Pad for Same plot option
06096 
06097   TVirtualPad* main_subpad = 0;
06098 
06099   if(QuantityCode == "SMFoundEvtsGlobal"){
06100     if( (TRootCanvas*)fCanvSMFoundEvtsGlobal->GetCanvasImp() == fImpSMFoundEvtsGlobal ){
06101       main_subpad = fPadSMFoundEvtsGlobal;}}
06102 
06103   if(QuantityCode == "SMFoundEvtsProj"  ){
06104     if( (TRootCanvas*)fCanvSMFoundEvtsProj->GetCanvasImp() == fImpSMFoundEvtsProj ){
06105       main_subpad = fPadSMFoundEvtsProj;}}
06106 
06107   if(QuantityCode == "SMEvEvGlobal"     ){
06108     if( (TRootCanvas*)fCanvSMEvEvGlobal->GetCanvasImp() == fImpSMEvEvGlobal ){
06109       main_subpad = fPadSMEvEvGlobal;}}
06110 
06111   if(QuantityCode == "SMEvEvProj"       ){
06112     if( (TRootCanvas*)fCanvSMEvEvProj->GetCanvasImp() == fImpSMEvEvProj ){
06113       main_subpad = fPadSMEvEvProj;}}
06114               
06115   if(QuantityCode == "SMEvSigGlobal"    ){
06116     if((TRootCanvas*)fCanvSMEvSigGlobal->GetCanvasImp() == fImpSMEvSigGlobal){
06117       main_subpad = fPadSMEvSigGlobal;}}
06118               
06119   if(QuantityCode == "SMEvSigProj"      ){
06120     if( (TRootCanvas*)fCanvSMEvSigProj->GetCanvasImp() == fImpSMEvSigProj ){
06121       main_subpad = fPadSMEvSigProj;}}
06122 
06123   if(QuantityCode == "SMEvCorssGlobal"  ){
06124     if( (TRootCanvas*)fCanvSMEvCorssGlobal->GetCanvasImp() == fImpSMEvCorssGlobal ){
06125       main_subpad = fPadSMEvCorssGlobal;}}
06126 
06127   if(QuantityCode == "SMEvCorssProj"    ){
06128     if( (TRootCanvas*)fCanvSMEvCorssProj->GetCanvasImp() == fImpSMEvCorssProj ){
06129       main_subpad = fPadSMEvCorssProj;}}
06130 
06131   if(QuantityCode == "SMSigEvGlobal"    ){
06132     if( (TRootCanvas*)fCanvSMSigEvGlobal->GetCanvasImp() == fImpSMSigEvGlobal ){
06133       main_subpad = fPadSMSigEvGlobal;}}
06134 
06135   if(QuantityCode == "SMSigEvProj"      ){
06136     if( (TRootCanvas*)fCanvSMSigEvProj->GetCanvasImp() == fImpSMSigEvProj ){
06137       main_subpad = fPadSMSigEvProj;}}
06138 
06139   if(QuantityCode == "SMSigSigGlobal"   ){
06140     if( (TRootCanvas*)fCanvSMSigSigGlobal->GetCanvasImp() == fImpSMSigSigGlobal ){
06141       main_subpad = fPadSMSigSigGlobal;}}
06142 
06143   if(QuantityCode == "SMSigSigProj"     ){
06144     if( (TRootCanvas*)fCanvSMSigSigProj->GetCanvasImp() == fImpSMSigSigProj ){
06145       main_subpad = fPadSMSigSigProj;}}
06146 
06147   if(QuantityCode == "SMSigCorssGlobal" ){
06148     if( (TRootCanvas*)fCanvSMSigCorssGlobal->GetCanvasImp() == fImpSMSigCorssGlobal ){
06149       main_subpad = fPadSMSigCorssGlobal;}}
06150 
06151   if(QuantityCode == "SMSigCorssProj"   ){
06152     if( (TRootCanvas*)fCanvSMSigCorssProj->GetCanvasImp() == fImpSMSigCorssProj ){
06153       main_subpad = fPadSMSigCorssProj;}}
06154 
06155   if(QuantityCode == "Ev"               ){
06156     if( (TRootCanvas*)fCanvEv->GetCanvasImp() == fImpEv ){
06157       main_subpad = fPadEv;}}
06158 
06159   if(QuantityCode == "Sigma"            ){
06160     if( (TRootCanvas*)fCanvSigma->GetCanvasImp() == fImpSigma ){
06161       main_subpad = fPadSigma;}}
06162 
06163   if(QuantityCode == "Evts"             ){
06164     if( (TRootCanvas*)fCanvEvts->GetCanvasImp() == fImpEvts ){
06165       main_subpad = fPadEvts;}}
06166 
06167   if(QuantityCode == "SampTime"         ){
06168     if( (TRootCanvas*)fCanvSampTime->GetCanvasImp() == fImpSampTime ){
06169       main_subpad = fPadSampTime;}}
06170 
06171   if(QuantityCode == "EvolEvEv"        ){
06172     if( (TRootCanvas*)fCanvEvolEvEv->GetCanvasImp() == fImpEvolEvEv ){
06173       main_subpad = fPadEvolEvEv;}}
06174 
06175   if(QuantityCode == "EvolEvSig"       ){
06176     if( (TRootCanvas*)fCanvEvolEvSig->GetCanvasImp() == fImpEvolEvSig ){
06177       main_subpad = fPadEvolEvSig;}}
06178 
06179   if(QuantityCode == "EvolEvCorss"     ){
06180     if( (TRootCanvas*)fCanvEvolEvCorss->GetCanvasImp() == fImpEvolEvCorss ){
06181       main_subpad = fPadEvolEvCorss;}}
06182                       
06183   return main_subpad;
06184 }

TPaveText * TCnaViewEB::ActivePavTxt ( const   TString  ) 

Definition at line 6187 of file TCnaViewEB.cc.

References fCanvEv, fCanvEvolEvCorss, fCanvEvolEvEv, fCanvEvolEvSig, fCanvEvts, fCanvSampTime, fCanvSigma, fCanvSMEvCorssGlobal, fCanvSMEvCorssProj, fCanvSMEvEvGlobal, fCanvSMEvEvProj, fCanvSMEvSigGlobal, fCanvSMEvSigProj, fCanvSMFoundEvtsGlobal, fCanvSMFoundEvtsProj, fCanvSMSigCorssGlobal, fCanvSMSigCorssProj, fCanvSMSigEvGlobal, fCanvSMSigEvProj, fCanvSMSigSigGlobal, fCanvSMSigSigProj, fImpEv, fImpEvolEvCorss, fImpEvolEvEv, fImpEvolEvSig, fImpEvts, fImpSampTime, fImpSigma, fImpSMEvCorssGlobal, fImpSMEvCorssProj, fImpSMEvEvGlobal, fImpSMEvEvProj, fImpSMEvSigGlobal, fImpSMEvSigProj, fImpSMFoundEvtsGlobal, fImpSMFoundEvtsProj, fImpSMSigCorssGlobal, fImpSMSigCorssProj, fImpSMSigEvGlobal, fImpSMSigEvProj, fImpSMSigSigGlobal, fImpSMSigSigProj, fPavTxtEv, fPavTxtEvolEvCorss, fPavTxtEvolEvEv, fPavTxtEvolEvSig, fPavTxtEvts, fPavTxtSampTime, fPavTxtSigma, fPavTxtSMEvCorssGlobal, fPavTxtSMEvCorssProj, fPavTxtSMEvEvGlobal, fPavTxtSMEvEvProj, fPavTxtSMEvSigGlobal, fPavTxtSMEvSigProj, fPavTxtSMFoundEvtsGlobal, fPavTxtSMFoundEvtsProj, fPavTxtSMSigCorssGlobal, fPavTxtSMSigCorssProj, fPavTxtSMSigEvGlobal, fPavTxtSMSigEvProj, fPavTxtSMSigSigGlobal, and fPavTxtSMSigSigProj.

Referenced by HistimePlot(), and HistoPlot().

06188 {
06189 // Active Pad for Same plot option
06190 
06191   TPaveText* main_pavtxt = 0;
06192 
06193   if(QuantityCode == "SMFoundEvtsGlobal"){
06194     if( (TRootCanvas*)fCanvSMFoundEvtsGlobal->GetCanvasImp() == fImpSMFoundEvtsGlobal ){
06195       main_pavtxt = fPavTxtSMFoundEvtsGlobal;}}
06196 
06197   if(QuantityCode == "SMFoundEvtsProj"  ){
06198     if( (TRootCanvas*)fCanvSMFoundEvtsProj->GetCanvasImp() == fImpSMFoundEvtsProj ){
06199       main_pavtxt = fPavTxtSMFoundEvtsProj;}}
06200 
06201   if(QuantityCode == "SMEvEvGlobal"     ){
06202     if( (TRootCanvas*)fCanvSMEvEvGlobal->GetCanvasImp() == fImpSMEvEvGlobal ){
06203       main_pavtxt = fPavTxtSMEvEvGlobal;}}
06204 
06205   if(QuantityCode == "SMEvEvProj"       ){
06206     if( (TRootCanvas*)fCanvSMEvEvProj->GetCanvasImp() == fImpSMEvEvProj ){
06207       main_pavtxt = fPavTxtSMEvEvProj;}}
06208               
06209   if(QuantityCode == "SMEvSigGlobal"    ){
06210     if((TRootCanvas*)fCanvSMEvSigGlobal->GetCanvasImp() == fImpSMEvSigGlobal){
06211       main_pavtxt = fPavTxtSMEvSigGlobal;}}
06212               
06213   if(QuantityCode == "SMEvSigProj"      ){
06214     if( (TRootCanvas*)fCanvSMEvSigProj->GetCanvasImp() == fImpSMEvSigProj ){
06215       main_pavtxt = fPavTxtSMEvSigProj;}}
06216 
06217   if(QuantityCode == "SMEvCorssGlobal"  ){
06218     if( (TRootCanvas*)fCanvSMEvCorssGlobal->GetCanvasImp() == fImpSMEvCorssGlobal ){
06219       main_pavtxt = fPavTxtSMEvCorssGlobal;}}
06220 
06221   if(QuantityCode == "SMEvCorssProj"    ){
06222     if( (TRootCanvas*)fCanvSMEvCorssProj->GetCanvasImp() == fImpSMEvCorssProj ){
06223       main_pavtxt = fPavTxtSMEvCorssProj;}}
06224 
06225   if(QuantityCode == "SMSigEvGlobal"    ){
06226     if( (TRootCanvas*)fCanvSMSigEvGlobal->GetCanvasImp() == fImpSMSigEvGlobal ){
06227       main_pavtxt = fPavTxtSMSigEvGlobal;}}
06228 
06229   if(QuantityCode == "SMSigEvProj"      ){
06230     if( (TRootCanvas*)fCanvSMSigEvProj->GetCanvasImp() == fImpSMSigEvProj ){
06231       main_pavtxt = fPavTxtSMSigEvProj;}}
06232 
06233   if(QuantityCode == "SMSigSigGlobal"   ){
06234     if( (TRootCanvas*)fCanvSMSigSigGlobal->GetCanvasImp() == fImpSMSigSigGlobal ){
06235       main_pavtxt = fPavTxtSMSigSigGlobal;}}
06236 
06237   if(QuantityCode == "SMSigSigProj"     ){
06238     if( (TRootCanvas*)fCanvSMSigSigProj->GetCanvasImp() == fImpSMSigSigProj ){
06239       main_pavtxt = fPavTxtSMSigSigProj;}}
06240 
06241   if(QuantityCode == "SMSigCorssGlobal" ){
06242     if( (TRootCanvas*)fCanvSMSigCorssGlobal->GetCanvasImp() == fImpSMSigCorssGlobal ){
06243       main_pavtxt = fPavTxtSMSigCorssGlobal;}}
06244 
06245   if(QuantityCode == "SMSigCorssProj"   ){
06246     if( (TRootCanvas*)fCanvSMSigCorssProj->GetCanvasImp() == fImpSMSigCorssProj ){
06247       main_pavtxt = fPavTxtSMSigCorssProj;}}
06248 
06249   if(QuantityCode == "Ev"               ){
06250     if( (TRootCanvas*)fCanvEv->GetCanvasImp() == fImpEv ){
06251       main_pavtxt = fPavTxtEv;}}
06252 
06253   if(QuantityCode == "Sigma"            ){
06254     if( (TRootCanvas*)fCanvSigma->GetCanvasImp() == fImpSigma ){
06255       main_pavtxt = fPavTxtSigma;}}
06256 
06257   if(QuantityCode == "Evts"             ){
06258     if( (TRootCanvas*)fCanvEvts->GetCanvasImp() == fImpEvts ){
06259       main_pavtxt = fPavTxtEvts;}}
06260 
06261   if(QuantityCode == "SampTime"         ){
06262     if( (TRootCanvas*)fCanvSampTime->GetCanvasImp() == fImpSampTime ){
06263       main_pavtxt = fPavTxtSampTime;}}
06264 
06265   if(QuantityCode == "EvolEvEv"        ){
06266     if( (TRootCanvas*)fCanvEvolEvEv->GetCanvasImp() == fImpEvolEvEv ){
06267       main_pavtxt = fPavTxtEvolEvEv;}}
06268 
06269   if(QuantityCode == "EvolEvSig"       ){
06270     if( (TRootCanvas*)fCanvEvolEvSig->GetCanvasImp() == fImpEvolEvSig ){
06271       main_pavtxt = fPavTxtEvolEvSig;}}
06272 
06273   if(QuantityCode == "EvolEvCorss"     ){
06274     if( (TRootCanvas*)fCanvEvolEvCorss->GetCanvasImp() == fImpEvolEvCorss ){
06275       main_pavtxt = fPavTxtEvolEvCorss;}}
06276                       
06277   return main_pavtxt;
06278 }

void TCnaViewEB::AllocArraysForEvol (  ) 

Definition at line 3410 of file TCnaViewEB.cc.

References fCnew, fgMaxCar, fT1DAnaType, fT1DFirstEvt, fT1DListOfRunsFilePath, fT1DNbOfEvts, fT1DResultsRootFilePath, fT1DRunNumber, and fT1DSuMoNumber.

Referenced by GetListOfRunParameters().

03411 {
03412 // Allocation and initialization of the arrays.
03413 
03414 
03415   Int_t arrays_dim = (Int_t)1000;    //=====> METTRE CA EN PARAMETRE
03416   //  Nb max de runs dans les listes de runs pour l'option TIME EVOLUTION (faire des tests de depassement)
03417 
03418   //................................. Alloc of the arrays at first call
03419 
03420   if(fT1DAnaType             == 0){fT1DAnaType             = new TString[arrays_dim];  fCnew++;}
03421   if(fT1DRunNumber           == 0){fT1DRunNumber           = new   Int_t[arrays_dim];  fCnew++;}
03422   if(fT1DFirstEvt            == 0){fT1DFirstEvt            = new   Int_t[arrays_dim];  fCnew++;}
03423   if(fT1DNbOfEvts            == 0){fT1DNbOfEvts            = new   Int_t[arrays_dim];  fCnew++;}
03424   if(fT1DSuMoNumber          == 0){fT1DSuMoNumber          = new   Int_t[arrays_dim];  fCnew++;}
03425   if(fT1DResultsRootFilePath == 0){fT1DResultsRootFilePath = new TString[arrays_dim];  fCnew++;}
03426   if(fT1DListOfRunsFilePath  == 0){fT1DListOfRunsFilePath  = new TString[arrays_dim];  fCnew++;}
03427 
03428   //................................. Init of the arrays
03429   Int_t MaxCar = fgMaxCar;
03430   for ( Int_t i_run = 0; i_run < arrays_dim; i_run++ )
03431     {
03432       fT1DAnaType[i_run].Resize(MaxCar); fT1DAnaType[i_run] = "no analysis name info";
03433       fT1DRunNumber[i_run]  = -1;
03434       fT1DFirstEvt[i_run]   = -1;
03435       fT1DNbOfEvts[i_run]   = -1;
03436       fT1DSuMoNumber[i_run] = -1;
03437       MaxCar = fgMaxCar;
03438       fT1DResultsRootFilePath[i_run].Resize(MaxCar);
03439       fT1DResultsRootFilePath[i_run] = "no ROOT file path info";
03440       MaxCar = fgMaxCar;
03441       fT1DListOfRunsFilePath[i_run].Resize(MaxCar);
03442       fT1DListOfRunsFilePath[i_run] = "no LIST OF RUN file path info";
03443 
03444     }
03445 }

Double_t TCnaViewEB::BoxBottomY ( const   TString  ) 

Definition at line 7191 of file TCnaViewEB.cc.

References value.

Referenced by PutPaveAnalysisRun(), PutPaveAnalysisRunList(), PutPaveCrystal(), PutPaveCrystalSample(), PutPaveGeneralComment(), PutPaveLVRB(), PutPaveSuperModule(), PutPaveTakenEvents(), PutPaveTakenEventsRunList(), PutPaveTower(), and PutPaveTowersXY().

07192 {
07193 //Set the y bottom coordinate of the box
07194 
07195   Double_t value = 0.8;
07196 
07197    if ( chtype == "general_comment"      ) {value = 0.960;}
07198    if ( chtype == "top_left_box"         ) {value = 0.880;}
07199    if ( chtype == "top_mid_box"          ) {value = 0.880;}
07200    if ( chtype == "top_right_box"        ) {value = 0.880;}
07201    if ( chtype == "bottom_left_box"      ) {value = 0.010;}
07202    if ( chtype == "bottom_right_box"     ) {value = 0.010;}
07203    if ( chtype == "bottom_right_box_evol") {value = 0.010;}
07204    if ( chtype == "several_plots_box"    ) {value = 0.015;}
07205    if ( chtype == "several_evol_box"     ) {value = 0.015;}
07206 
07207  return value;
07208 }

Double_t TCnaViewEB::BoxLeftX ( const   TString  ) 

Definition at line 7153 of file TCnaViewEB.cc.

References value.

Referenced by PutPaveAnalysisRun(), PutPaveAnalysisRunList(), PutPaveCrystal(), PutPaveCrystalSample(), PutPaveGeneralComment(), PutPaveLVRB(), PutPaveSuperModule(), PutPaveTakenEvents(), PutPaveTakenEventsRunList(), PutPaveTower(), and PutPaveTowersXY().

07154 {
07155 //Set the x left coordinate of the box
07156 
07157   Double_t value = 0.;
07158 
07159    if ( chtype == "general_comment"      ) {value = 0.015;}
07160    if ( chtype == "top_left_box"         ) {value = 0.015;}
07161    if ( chtype == "top_mid_box"          ) {value = 0.335;}
07162    if ( chtype == "top_right_box"        ) {value = 0.540;}
07163    if ( chtype == "bottom_left_box"      ) {value = 0.015;}
07164    if ( chtype == "bottom_right_box"     ) {value = 0.325;}
07165    if ( chtype == "bottom_right_box_evol") {value = 0.615;}
07166    if ( chtype == "several_plots_box"    ) {value = 0.015;}
07167    if ( chtype == "several_evol_box"     ) {value = 0.015;}
07168 
07169  return value;
07170 }

Double_t TCnaViewEB::BoxRightX ( const   TString  ) 

Definition at line 7172 of file TCnaViewEB.cc.

References value.

Referenced by PutPaveAnalysisRun(), PutPaveAnalysisRunList(), PutPaveCrystal(), PutPaveCrystalSample(), PutPaveGeneralComment(), PutPaveLVRB(), PutPaveSuperModule(), PutPaveTakenEvents(), PutPaveTakenEventsRunList(), PutPaveTower(), and PutPaveTowersXY().

07173 {
07174 //Set the x right coordinate of the box
07175 
07176   Double_t value = 1.0;
07177 
07178    if ( chtype == "general_comment"      ) {value = 0.680;}
07179    if ( chtype == "top_left_box"         ) {value = 0.334;}
07180    if ( chtype == "top_mid_box"          ) {value = 0.539;}
07181    if ( chtype == "top_right_box"        ) {value = 0.985;}
07182    if ( chtype == "bottom_left_box"      ) {value = 0.315;}
07183    if ( chtype == "bottom_right_box"     ) {value = 0.985;}
07184    if ( chtype == "bottom_right_box_evol") {value = 0.985;}
07185    if ( chtype == "several_plots_box"    ) {value = 0.985;}
07186    if ( chtype == "several_evol_box"     ) {value = 0.600;}
07187 
07188  return value;
07189 }

Double_t TCnaViewEB::BoxTopY ( const   TString  ) 

Definition at line 7210 of file TCnaViewEB.cc.

References value.

Referenced by PutPaveAnalysisRun(), PutPaveAnalysisRunList(), PutPaveCrystal(), PutPaveCrystalSample(), PutPaveGeneralComment(), PutPaveLVRB(), PutPaveSuperModule(), PutPaveTakenEvents(), PutPaveTakenEventsRunList(), PutPaveTower(), and PutPaveTowersXY().

07211 {
07212 //Set the y top coordinate of the box
07213 
07214   Double_t value = 0.9;
07215 
07216    if ( chtype == "general_comment"      ) {value = 0.999;}
07217    if ( chtype == "top_left_box"         ) {value = 0.955;}
07218    if ( chtype == "top_mid_box"          ) {value = 0.955;}
07219    if ( chtype == "top_right_box"        ) {value = 0.955;}
07220    if ( chtype == "bottom_left_box"      ) {value = 0.120;}
07221    if ( chtype == "bottom_right_box"     ) {value = 0.120;}
07222    if ( chtype == "bottom_right_box_evol") {value = 0.120;}
07223    if ( chtype == "several_plots_box"    ) {value = 0.120;}
07224    if ( chtype == "several_evol_box"     ) {value = 0.120;}
07225 
07226  return value;
07227 }

UInt_t TCnaViewEB::CanvasFormatH ( const   TString  ) 

Definition at line 5049 of file TCnaViewEB.cc.

Referenced by EtaPhiSuperModuleCorccMeanOverSamples(), SetCanvasHeight(), SetCanvasWidth(), SuperModuleTowerNumbering(), TowerCrystalNumbering(), ViewMatrix(), ViewSuperModule(), and ViewTower().

05050 {
05051 //Set Canvas height for format 21x29.7
05052 
05053   UInt_t canv_h = 530;         // default = "petit"
05054 
05055   if ( chformat == "microscopique"  ) {canv_h = 265;}
05056   if ( chformat == "minuscule"      ) {canv_h = 297;}
05057   if ( chformat == "tres petit"     ) {canv_h = 368;}
05058   if ( chformat == "petit"          ) {canv_h = 530;}
05059   if ( chformat == "moyen"          ) {canv_h = 636;}
05060   if ( chformat == "grand"          ) {canv_h = 810;}
05061   if ( chformat == "etaphiSM"       ) {canv_h = 945;}
05062 
05063   return canv_h;
05064 }

UInt_t TCnaViewEB::CanvasFormatW ( const   TString  ) 

Definition at line 5032 of file TCnaViewEB.cc.

Referenced by EtaPhiSuperModuleCorccMeanOverSamples(), SetCanvasHeight(), SetCanvasWidth(), SuperModuleTowerNumbering(), TowerCrystalNumbering(), ViewMatrix(), ViewSuperModule(), and ViewTower().

05033 {
05034 //Set Canvas width for format 21x29.7
05035 
05036   UInt_t canv_w = 375;         // default = "petit"
05037 
05038   if ( chformat == "microscopique" ) {canv_w = 187;}
05039   if ( chformat == "minuscule"     ) {canv_w = 210;}
05040   if ( chformat == "tres petit"    ) {canv_w = 260;}
05041   if ( chformat == "petit"         ) {canv_w = 375;}
05042   if ( chformat == "moyen"         ) {canv_w = 450;}
05043   if ( chformat == "grand"         ) {canv_w = 572;}
05044   if ( chformat == "etaphiSM"      ) {canv_w = 350;}
05045 
05046   return canv_w;
05047 }

Color_t TCnaViewEB::ColorDefinition ( const   TString  ) 

Definition at line 6550 of file TCnaViewEB.cc.

Referenced by ColorTab(), GetViewHistoColor(), HistimePlot(), HistoPlot(), PutAllPavesViewHisto(), PutPaveLVRB(), SetColorsForNumbers(), SetViewGraphColors(), SetViewHistoColors(), ViewSuperModuleGrid(), and ViewSuperModuleTowerNumberingPad().

06551 {
06552   //Set color from color name
06553 
06554   //=========> Color definition: see ROOT User's guide p.151
06555 
06556   Color_t couleur = 1;        // default = "noir"
06557 
06558   if ( chcolor == "noir"       ) {couleur =  1;}
06559   if ( chcolor == "rouge"      ) {couleur =  2;}
06560   if ( chcolor == "vert_fonce" ) {couleur =  3;}
06561   if ( chcolor == "bleu_fonce" ) {couleur =  4;}
06562   if ( chcolor == "jaune"      ) {couleur =  5;}
06563   if ( chcolor == "rose"       ) {couleur =  6;}
06564   if ( chcolor == "bleu_clair" ) {couleur =  7;}
06565   if ( chcolor == "vert"       ) {couleur =  8;}
06566   if ( chcolor == "bleu"       ) {couleur =  9;}
06567   if ( chcolor == "blanc"      ) {couleur = 10;}
06568 
06569   if ( chcolor == "marron23"   ) {couleur = 23;}
06570   if ( chcolor == "marron24"   ) {couleur = 24;}
06571   if ( chcolor == "marron27"   ) {couleur = 27;}
06572   if ( chcolor == "marron28"   ) {couleur = 28;}
06573 
06574   if ( chcolor == "bleu33"     ) {couleur = 33;}
06575   if ( chcolor == "bleu36"     ) {couleur = 36;}
06576   if ( chcolor == "bleu38"     ) {couleur = 38;}
06577   if ( chcolor == "bleu39"     ) {couleur = 39;}
06578 
06579   if ( chcolor == "orange41"   ) {couleur = 41;}
06580   if ( chcolor == "orange42"   ) {couleur = 42;}
06581 
06582   if ( chcolor == "rouge44"    ) {couleur = 44;}
06583   if ( chcolor == "rouge46"    ) {couleur = 46;}
06584   if ( chcolor == "rouge47"    ) {couleur = 47;}
06585   if ( chcolor == "rouge48"    ) {couleur = 48;}
06586   if ( chcolor == "rouge50"    ) {couleur = 50;}
06587 
06588   if ( chcolor == "vert31"     ) {couleur = 31;}
06589   if ( chcolor == "vert32"     ) {couleur = 32;}
06590   if ( chcolor == "vert36"     ) {couleur = 36;}
06591 
06592   if ( chcolor == "violet"     ) {couleur = 49;}
06593 
06594   if ( chcolor == "turquoise29") {couleur = 29;}
06595 
06596   if ( chcolor == "gris15"     ) {couleur = 15;}
06597 
06598   return couleur;
06599 }

Color_t TCnaViewEB::ColorTab ( const Int_t &  user_color_number  ) 

Definition at line 6514 of file TCnaViewEB.cc.

References ColorDefinition(), and fMaxNbColLine.

Referenced by GetViewHistoColor(), SetViewGraphColors(), and SetViewHistoColors().

06515 {
06516   //Set color from user color number
06517 
06518   //=========> Color definition: see ROOT User's guide p.151
06519 
06520   TColor* my_color = new TColor();
06521 
06522   Color_t couleur = ColorDefinition("noir");        // default = "noir"
06523 
06524   //................... Rainbow colors
06525   if(user_color_number == 0){couleur = (Color_t)my_color->GetColor("#EE0000");}  //    rouge
06526   if(user_color_number == 1){couleur = (Color_t)my_color->GetColor("#FF6611");}  //    orange
06527   if(user_color_number == 2){couleur = (Color_t)my_color->GetColor("#FFCC00");}  //    jaune
06528   if(user_color_number == 3){couleur = (Color_t)my_color->GetColor("#009900");}  //    vert
06529   if(user_color_number == 4){couleur = (Color_t)my_color->GetColor("#0044EE");}  //    bleu
06530   if(user_color_number == 5){couleur = (Color_t)my_color->GetColor("#6633BB");}  //    indigo
06531   if(user_color_number == 6){couleur = (Color_t)my_color->GetColor("#9900BB");}  //    violet
06532 
06533   if( user_color_number < 0 || user_color_number > fMaxNbColLine ){couleur = 0;}
06534   return couleur;
06535 }

void TCnaViewEB::CorrelationsBetweenCrystals ( const Int_t &  SMtower_X,
const Int_t &  SMtower_Y,
const   TString 
)

Definition at line 633 of file TCnaViewEB.cc.

References element(), fOptMatCor, fOptMcc, and ViewMatrix().

Referenced by TCnaDialogEB::ViewMatrixCorrelationCrystals().

00635 {
00636 //Plot of correlation matrix between crystals of two towers (mean over samples)
00637 
00638   Int_t   element     = 0;
00639   Int_t   opt_cov_cor = fOptMatCor;
00640   TString SubsetCode  = fOptMcc;
00641 
00642   ViewMatrix(SMtower_X,   SMtower_Y,  element, opt_cov_cor, SubsetCode, option_plot);
00643 }

void TCnaViewEB::CorrelationsBetweenSamples ( const Int_t &  tower  ) 

Definition at line 1074 of file TCnaViewEB.cc.

References fOptMatCor, and ViewTower().

01075 {
01076   Int_t   opt_cov_cor = fOptMatCor;
01077   ViewTower(SMtower, opt_cov_cor);
01078 }

void TCnaViewEB::CorrelationsBetweenSamples ( const Int_t &  SMtower_X,
const Int_t &  TowEcha,
const   TString 
)

Definition at line 659 of file TCnaViewEB.cc.

References fOptMatCor, fOptMss, and ViewMatrix().

Referenced by TCnaDialogEB::ViewMatrixCorrelationSamples(), and TCnaDialogEB::ViewTowerCorrelationSamples().

00661 {
00662 //Plot of correlation matrix between samples for a given TowEcha
00663 
00664   Int_t   SMtower_Y   = 0;
00665   Int_t   opt_cov_cor = fOptMatCor;
00666   TString SubsetCode  = fOptMss;
00667 
00668   ViewMatrix(SMtower_X,  SMtower_Y,  TowEcha, opt_cov_cor, SubsetCode, option_plot);
00669 }

void TCnaViewEB::CorrelationsBetweenTowers ( const   TString  ) 

Definition at line 602 of file TCnaViewEB.cc.

References element(), fOptMatCor, fOptMtt, and ViewMatrix().

Referenced by TCnaDialogEB::ViewMatrixCorrelationTowers().

00603 {
00604 //Plot of correlation matrix between towers (mean over crystals and samples)
00605 
00606   Int_t   SMtower_X   = 0;
00607   Int_t   SMtower_Y   = 0;
00608   Int_t   element     = 0;
00609 
00610   Int_t   opt_cov_cor = fOptMatCor;
00611   TString SubsetCode  = fOptMtt;
00612 
00613   ViewMatrix(SMtower_X,   SMtower_Y,  element, opt_cov_cor, SubsetCode, option_plot);
00614 }

void TCnaViewEB::CovariancesBetweenCrystals ( const Int_t &  SMtower_X,
const Int_t &  SMtower_Y,
const   TString 
)

Definition at line 645 of file TCnaViewEB.cc.

References element(), fOptMatCov, fOptMcc, and ViewMatrix().

Referenced by TCnaDialogEB::ViewMatrixCovarianceCrystals().

00647 {
00648 //Plot of covariance matrix between crystals of two towers (mean over samples)
00649 
00650   Int_t   element     = 0;
00651   Int_t   opt_cov_cor = fOptMatCov;
00652   TString SubsetCode  = fOptMcc;
00653 
00654   ViewMatrix(SMtower_X,   SMtower_Y,  element, opt_cov_cor, SubsetCode, option_plot);
00655 }

void TCnaViewEB::CovariancesBetweenSamples ( const Int_t &  tower  ) 

Definition at line 1080 of file TCnaViewEB.cc.

References fOptMatCov, and ViewTower().

01081 {
01082   Int_t   opt_cov_cor = fOptMatCov;
01083   ViewTower(SMtower, opt_cov_cor);
01084 }

void TCnaViewEB::CovariancesBetweenSamples ( const Int_t &  SMtower_X,
const Int_t &  TowEcha,
const   TString 
)

Definition at line 672 of file TCnaViewEB.cc.

References fOptMatCov, fOptMss, and ViewMatrix().

Referenced by TCnaDialogEB::ViewMatrixCovarianceSamples(), and TCnaDialogEB::ViewTowerCovarianceSamples().

00674 {
00675 //Plot of covariance matrix between samples for a given TowEcha
00676 
00677   Int_t   SMtower_Y   = 0;
00678   Int_t   opt_cov_cor = fOptMatCov;
00679   TString SubsetCode  = fOptMss;
00680 
00681   ViewMatrix(SMtower_X,  SMtower_Y,  TowEcha, opt_cov_cor, SubsetCode, option_plot);
00682 }

void TCnaViewEB::CovariancesBetweenTowers ( const   TString  ) 

Definition at line 616 of file TCnaViewEB.cc.

References element(), fOptMatCov, fOptMtt, and ViewMatrix().

Referenced by TCnaDialogEB::ViewMatrixCovarianceTowers().

00617 {
00618 //Plot of covariance matrix between towers (mean over crystals and samples)
00619 
00620   Int_t   SMtower_X   = 0;
00621   Int_t   SMtower_Y   = 0;
00622   Int_t   element     = 0;
00623 
00624   Int_t   opt_cov_cor = fOptMatCov;
00625   TString SubsetCode  = fOptMtt;
00626 
00627   ViewMatrix(SMtower_X,   SMtower_Y,  element, opt_cov_cor, SubsetCode, option_plot);
00628 }

void TCnaViewEB::CreateCanvas ( const   TString,
const   TString,
UInt_t  canv_w,
UInt_t  canv_h 
)

Definition at line 5850 of file TCnaViewEB.cc.

References fCanvEv, fCanvEvolEvCorss, fCanvEvolEvEv, fCanvEvolEvSig, fCanvEvts, fCanvSampTime, fCanvSigma, fCanvSMEvCorssGlobal, fCanvSMEvCorssProj, fCanvSMEvEvGlobal, fCanvSMEvEvProj, fCanvSMEvSigGlobal, fCanvSMEvSigProj, fCanvSMFoundEvtsGlobal, fCanvSMFoundEvtsProj, fCanvSMSigCorssGlobal, fCanvSMSigCorssProj, fCanvSMSigEvGlobal, fCanvSMSigEvProj, fCanvSMSigSigGlobal, fCanvSMSigSigProj, and fCnewRoot.

Referenced by HistimePlot(), and HistoPlot().

05851 {
05852 // Create canvas according to QuantityCode
05853 
05854   if(QuantityCode == "SMFoundEvtsGlobal"){
05855     fCanvSMFoundEvtsGlobal = new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w , canv_h); fCnewRoot++;}
05856   if(QuantityCode == "SMFoundEvtsProj"  ){
05857     fCanvSMFoundEvtsProj   = new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w , canv_h); fCnewRoot++;}
05858   if(QuantityCode == "SMEvEvGlobal"     ){
05859     fCanvSMEvEvGlobal      = new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w , canv_h); fCnewRoot++;}
05860   if(QuantityCode == "SMEvEvProj"       ){
05861     fCanvSMEvEvProj        = new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w , canv_h); fCnewRoot++;}
05862   if(QuantityCode == "SMEvSigGlobal"    ){
05863     fCanvSMEvSigGlobal     = new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w , canv_h); fCnewRoot++;}
05864   if(QuantityCode == "SMEvSigProj"      ){
05865     fCanvSMEvSigProj       = new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w , canv_h); fCnewRoot++;}
05866   if(QuantityCode == "SMEvCorssGlobal"  ){
05867     fCanvSMEvCorssGlobal   = new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w , canv_h); fCnewRoot++;}
05868   if(QuantityCode == "SMEvCorssProj"    ){
05869     fCanvSMEvCorssProj     = new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w , canv_h); fCnewRoot++;}
05870   if(QuantityCode == "SMSigEvGlobal"    ){
05871     fCanvSMSigEvGlobal     = new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w , canv_h); fCnewRoot++;}
05872   if(QuantityCode == "SMSigEvProj"      ){
05873     fCanvSMSigEvProj       = new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w , canv_h); fCnewRoot++;}
05874   if(QuantityCode == "SMSigSigGlobal"   ){
05875     fCanvSMSigSigGlobal    = new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w , canv_h); fCnewRoot++;}
05876   if(QuantityCode == "SMSigSigProj"     ){
05877     fCanvSMSigSigProj      = new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w , canv_h); fCnewRoot++;}
05878   if(QuantityCode == "SMSigCorssGlobal" ){
05879     fCanvSMSigCorssGlobal  = new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w , canv_h); fCnewRoot++;}
05880   if(QuantityCode == "SMSigCorssProj"   ){
05881     fCanvSMSigCorssProj    = new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w , canv_h); fCnewRoot++;}
05882   if(QuantityCode == "Ev"               ){
05883     fCanvEv                = new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w , canv_h); fCnewRoot++;}
05884   if(QuantityCode =="Sigma"             ){
05885     fCanvSigma             = new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w , canv_h); fCnewRoot++;}
05886   if(QuantityCode == "Evts"             ){
05887     fCanvEvts              = new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w , canv_h); fCnewRoot++;}
05888   if(QuantityCode == "SampTime"         ){
05889     fCanvSampTime          = new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w , canv_h); fCnewRoot++;}
05890   if(QuantityCode == "EvolEvEv"         ){
05891     fCanvEvolEvEv          = new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w , canv_h); fCnewRoot++;}
05892   if(QuantityCode == "EvolEvSig"         ){
05893     fCanvEvolEvSig         = new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w , canv_h); fCnewRoot++;}
05894   if(QuantityCode == "EvolEvCorss"         ){
05895     fCanvEvolEvCorss       = new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w , canv_h); fCnewRoot++;}
05896 }

void TCnaViewEB::EtaPhiSuperModuleCorccMeanOverSamples (  ) 

Definition at line 2002 of file TCnaViewEB.cc.

References CanvasFormatH(), CanvasFormatW(), GenMuonPlsPt100GeV_cfg::cout, TCnaReadEB::DataExist(), lat::endl(), fCdelete, fCdeleteRoot, fCfgResultsRootFilePath, fCnew, fCnewRoot, fcom_bot_left, fcom_bot_right, fcom_top_left, fFapAnaType, fFapFirstEvt, fFapNbOfEvts, fFapRunNumber, fFapSuMoBarrel, fFapSuMoNumber, fgMaxCar, fStartDate, fStopDate, ftitle_g1, fTTBELL, TCnaReadEB::GetReadyToReadRootFile(), TCnaReadEB::GetRootFileNameShort(), TEBNumbering::GetSMHalfBarrel(), TCnaReadEB::GetStartDate(), TCnaReadEB::GetStopDate(), HistoSetMinMax(), TCnaReadEB::LookAtRootFile(), TEBParameters::MaxCrysInTow(), TEBParameters::MaxTowEtaInSM(), TEBParameters::MaxTowInSM(), TEBParameters::MaxTowPhiInSM(), TCnaReadEB::PrintNoComment(), PutAllPavesViewSuperModule(), TCnaReadEB::ReadCorrelationsBetweenCrystalsMeanOverSamples(), TCnaReadEB::ReadTowerNumbers(), SetHistoPresentation(), and ViewSuperModuleGrid().

Referenced by TCnaDialogEB::ViewSuperModuleCorccMeanOverSamples().

02003 {
02004 // (eta, phi) matrices for all the towers of a super-module
02005 
02006   TCnaReadEB*  MyRootFile = new TCnaReadEB();                              fCnew++; 
02007   MyRootFile->PrintNoComment();
02008 
02009   MyRootFile->GetReadyToReadRootFile(fFapAnaType,    fFapRunNumber, fFapFirstEvt, fFapNbOfEvts,
02010                                      fFapSuMoNumber, fCfgResultsRootFilePath.Data());
02011   
02012   if ( MyRootFile->LookAtRootFile() == kTRUE )
02013     {
02014       TString fp_name_short = MyRootFile->GetRootFileNameShort(); 
02015       //cout << "*TCnaViewEB::EtaPhiSuperModuleCorccMeanOverSamples(...)> Data are analyzed from file ----> "
02016       //     << fp_name_short << endl;
02017 
02018       fStartDate    = MyRootFile->GetStartDate();
02019       fStopDate     = MyRootFile->GetStopDate();
02020       
02021       //......................... matrix title  
02022       char* f_in_mat_tit = new char[fgMaxCar];               fCnew++;
02023       
02024       sprintf(f_in_mat_tit, "Correlations between crystals (mean over samples) for each tower. SM view.");
02025       //................................. Axis parameters
02026 
02027       TEBParameters* MyEcal = new TEBParameters();   fCnew++;
02028 
02029       Int_t  GeoBidSizeEta = MyEcal->MaxTowEtaInSM()*MyEcal->MaxCrysInTow();
02030       Int_t  GeoBidSizePhi = MyEcal->MaxTowPhiInSM()*MyEcal->MaxCrysInTow();
02031 
02032       Int_t  nb_binx  = GeoBidSizeEta;
02033       Int_t  nb_biny  = GeoBidSizePhi;
02034       Axis_t xinf_bid = (Axis_t)0.;
02035       Axis_t xsup_bid = (Axis_t)GeoBidSizeEta;
02036       Axis_t yinf_bid = (Axis_t)0.;
02037       Axis_t ysup_bid = (Axis_t)GeoBidSizePhi;   
02038       
02039       TString axis_x_var_name = "  #eta  ";
02040       TString axis_y_var_name = "  #varphi  ";
02041 
02042       //--------------------------------------------------------- (EtaPhiSuperModuleCorccMeanOverSamples)
02043 
02044       //............. matrices reading and histogram filling
02045       
02046       TH2D* h_geo_bid = new TH2D("geobidim_eta_phi", f_in_mat_tit,
02047                                  nb_binx, xinf_bid,  xsup_bid,
02048                                  nb_biny, yinf_bid,  ysup_bid);     fCnewRoot++;
02049       h_geo_bid->Reset();
02050 
02051       //... histogram set ymin and ymax (from TCnaParameters)
02052       Int_t  xFlagAutoYsupMargin = 0;      
02053       xFlagAutoYsupMargin = HistoSetMinMax((TH1D*)h_geo_bid, "SMCorccInTowers");
02054 
02055       //======================================================== (EtaPhiSuperModuleCorccMeanOverSamples)
02056 
02057       Int_t nb_tow_in_sm   = MyEcal->MaxTowInSM();
02058       TVectorD tow_numbers(nb_tow_in_sm);
02059       tow_numbers = MyRootFile->ReadTowerNumbers();
02060 
02061       if ( MyRootFile->DataExist() == kTRUE )
02062         {
02063           Int_t nb_crys_in_tow = MyEcal->MaxCrysInTow();
02064           Int_t nb_crys_in_sm  = nb_crys_in_tow*nb_tow_in_sm;
02065           TMatrixD partial_matrix(nb_crys_in_sm, nb_crys_in_sm);
02066           partial_matrix = MyRootFile->ReadCorrelationsBetweenCrystalsMeanOverSamples();
02067 
02068           if ( MyRootFile->DataExist() == kTRUE )
02069             {     
02070               TEBNumbering* MyNumbering = new TEBNumbering();                fCnew++;
02071               fFapSuMoBarrel = MyNumbering->GetSMHalfBarrel(fFapSuMoNumber);
02072               
02073               for(Int_t i_tow=0; i_tow<MyEcal->MaxTowInSM(); i_tow++)
02074                 {
02075                   Int_t SMtow     = (Int_t)tow_numbers(i_tow);
02076                   Int_t offset_x = ((SMtow-1)/((Int_t)4))*nb_crys_in_tow;
02077                   Int_t offset_y = ((SMtow-1)%((Int_t)4))*nb_crys_in_tow;
02078                   
02079                   if (SMtow != -1)
02080                     {
02081                       //================================================= (EtaPhiSuperModuleCorccMeanOverSamples)
02082                       
02083                       //------------------ Geographical bidim filling (different from the case of a tower,
02084                       //                   here EB+ and EB- differences are important)
02085                       
02086                       for(Int_t i_TowEcha=0; i_TowEcha<nb_crys_in_tow; i_TowEcha++)
02087                         {
02088                           for(Int_t j_TowEcha=0; j_TowEcha<nb_crys_in_tow; j_TowEcha++)
02089                             {
02090                               Int_t i_xgeo = offset_x + i_TowEcha;
02091                               Int_t i_ygeo = offset_y + j_TowEcha;
02092                               
02093                               if(i_xgeo >=0 && i_xgeo < nb_binx && i_ygeo >=0 && i_ygeo < nb_biny)
02094                                 {
02095                                   Int_t iEcha = (SMtow-1)*nb_crys_in_tow + i_TowEcha;
02096                                   Int_t jEcha = (SMtow-1)*nb_crys_in_tow + j_TowEcha;
02097                                   
02098                                   h_geo_bid->Fill((Double_t)i_xgeo, (Double_t)i_ygeo,
02099                                                   (Stat_t)partial_matrix(iEcha, jEcha));
02100                                 }
02101                             }      
02102                         }
02103                     }
02104                 }
02105               
02106               // ----------------------------------- P L O T S   (EtaPhiSuperModuleCorccMeanOverSamples)
02107               
02108               char* f_in = new char[fgMaxCar];                           fCnew++;
02109               
02110               //...................... Taille/format canvas
02111               
02112               UInt_t canv_h = CanvasFormatW("etaphiSM");
02113               UInt_t canv_w = CanvasFormatH("etaphiSM");
02114               
02115               //..................................... paves commentaires (EtaPhiSuperModuleCorccMeanOverSamples)
02116               PutAllPavesViewSuperModule(MyRootFile);     
02117               
02118               //----------------- Canvas name ------- (EtaPhiSuperModuleCorccMeanOverSamples)
02119               TString name_cov_cor;
02120               Int_t MaxCar = fgMaxCar;
02121               name_cov_cor.Resize(MaxCar);
02122               name_cov_cor = "SMCorccMeanOverSamples";
02123               
02124               TString name_visu;
02125               MaxCar = fgMaxCar;
02126               name_visu.Resize(MaxCar);
02127               name_visu = "colz";
02128               
02129               sprintf(f_in, "%s_EtaPhi_%s_%d_%s_%d_%d_SM%d",
02130                       name_visu.Data(), fFapAnaType.Data(), fFapRunNumber,
02131                       name_cov_cor.Data(),fFapFirstEvt, fFapNbOfEvts, fFapSuMoNumber);
02132               
02133               SetHistoPresentation((TH1D*)h_geo_bid, "SM2DTN");
02134               
02135               TCanvas *NoiseCorrel = new TCanvas(f_in, f_in, canv_w, canv_h);   fCnewRoot++;
02136               
02137               // cout << "*TCnaViewEB::EtaPhiSuperModuleCorccMeanOverSamples(...)> Plot is displayed on canvas ----> "
02138               //      << f_in << endl;
02139               
02140               delete [] f_in; f_in = 0;                                 fCdelete++;
02141              
02142               //------------ Canvas draw and update ------ (EtaPhiSuperModuleCorccMeanOverSamples)  
02143               ftitle_g1->Draw();
02144               fcom_top_left->Draw();
02145               fcom_bot_left->Draw();
02146               fcom_bot_right->Draw();
02147               
02148               NoiseCorrel->Divide(1, 1, 0.001 , 0.125);
02149               gPad->cd(1);
02150               
02151               TPad *main_subpad = (TPad*)gPad;
02152               Int_t i_zonx = 1;
02153               Int_t i_zony = 1;
02154               main_subpad->Divide(i_zonx, i_zony, 0.001, 0.001);
02155               main_subpad->cd(1);
02156               
02157               h_geo_bid->GetXaxis()->SetTitle(axis_x_var_name);
02158               h_geo_bid->GetYaxis()->SetTitle(axis_y_var_name);
02159               
02160               h_geo_bid->DrawCopy("COLZ");
02161               
02162               // trace de la grille: un rectangle = une tour (EtaPhiSuperModuleCorccMeanOverSamples) 
02163               ViewSuperModuleGrid(MyEcal, MyNumbering, fFapSuMoNumber, "corcc");
02164               gPad->Draw();
02165               gPad->Update();
02166               
02167               //#define DEUP
02168               //#ifndef DEUP
02169               //-------------------- deuxieme Pad
02170               // voir ViewSuperModule()
02171               //#endif
02172               
02173               //..................... retour aux options standard
02174               Bool_t b_true = 1;
02175               h_geo_bid->SetStats(b_true);    
02176               h_geo_bid->Delete();                fCdeleteRoot++;
02177                       
02178               //      delete title_g1;                 fCdeleteRoot++;
02179               //      delete com_bot_left;             fCdeleteRoot++;
02180               //      delete NoiseCorrel;              fCdeleteRoot++;
02181               
02182               delete MyNumbering;                      fCdelete++;
02183             }
02184         }
02185       delete [] f_in_mat_tit;                  fCdelete++;
02186       delete MyEcal;                                     fCdelete++;
02187     }
02188   else
02189     {
02190       cout << "!TCnaViewEB::EtaPhiSuperModuleCorccMeanOverSamples(...)> *ERROR* =====> "
02191            << " ROOT file not found" << fTTBELL << endl;
02192     }
02193   
02194   delete MyRootFile;                                                   fCdelete++;
02195 
02196 } // end of EtaPhiSuperModuleCorccMeanOverSamples

void TCnaViewEB::EtaPhiSuperModuleFoundEvents (  ) 

Definition at line 1705 of file TCnaViewEB.cc.

References ViewSuperModule().

Referenced by TCnaDialogEB::ViewSuperModuleFoundEvents().

01705 {ViewSuperModule("SMFoundEvtsGlobal");}

void TCnaViewEB::EtaPhiSuperModuleMeanOfCorss (  ) 

Definition at line 1708 of file TCnaViewEB.cc.

References ViewSuperModule().

Referenced by TCnaDialogEB::ViewSuperModuleMeanOfCorss().

01708 {ViewSuperModule("SMEvCorssGlobal");}

void TCnaViewEB::EtaPhiSuperModuleMeanOfSampleSigmas (  ) 

Definition at line 1707 of file TCnaViewEB.cc.

References ViewSuperModule().

Referenced by TCnaDialogEB::ViewSuperModuleMeanOfSampleSigmas().

01707 {ViewSuperModule("SMEvSigGlobal");}

void TCnaViewEB::EtaPhiSuperModuleMeanPedestals (  ) 

Definition at line 1706 of file TCnaViewEB.cc.

References ViewSuperModule().

Referenced by TCnaDialogEB::ViewSuperModuleMeanPedestals().

01706 {ViewSuperModule("SMEvEvGlobal");}

void TCnaViewEB::EtaPhiSuperModuleSigmaOfCorss (  ) 

Definition at line 1711 of file TCnaViewEB.cc.

References ViewSuperModule().

Referenced by TCnaDialogEB::ViewSuperModuleSigmaOfCorss().

01711 {ViewSuperModule("SMSigCorssGlobal");}

void TCnaViewEB::EtaPhiSuperModuleSigmaOfSampleSigmas (  ) 

Definition at line 1710 of file TCnaViewEB.cc.

References ViewSuperModule().

Referenced by TCnaDialogEB::ViewSuperModuleSigmaOfSampleSigmas().

01710 {ViewSuperModule("SMSigSigGlobal");}

void TCnaViewEB::EtaPhiSuperModuleSigmaPedestals (  ) 

Definition at line 1709 of file TCnaViewEB.cc.

References ViewSuperModule().

Referenced by TCnaDialogEB::ViewSuperModuleSigmaPedestals().

01709 {ViewSuperModule("SMSigEvGlobal");}

void TCnaViewEB::FillHisto ( TH1D *  h_his0,
const   TVectorD,
const   TString,
const Int_t &  HisSize,
const   Axis_t,
const   Axis_t,
const Int_t &  nb_binx 
)

Definition at line 5521 of file TCnaViewEB.cc.

References i.

Referenced by ViewHisto().

05524 {
05525 // Fill histo
05526 
05527   h_his0->Reset();
05528 
05529   for(Int_t i = 0 ; i < HisSize; i++)
05530     {
05531       Double_t his_val = (Double_t)0;
05532       Double_t xi      = (Double_t)0;
05533       
05534       if (QuantityCode == "Ev"              || QuantityCode == "Sigma"             ||
05535           QuantityCode == "SampTime"        || QuantityCode == "SMFoundEvtsGlobal" || 
05536           QuantityCode == "SMEvEvGlobal"    || QuantityCode == "SMSigEvGlobal"     ||
05537           QuantityCode == "SMEvSigGlobal"   || QuantityCode == "SMSigSigGlobal"    ||
05538           QuantityCode == "SMEvCorssGlobal" || QuantityCode == "SMSigCorssGlobal" )
05539         {
05540           xi = (Double_t)i;
05541           his_val = (Double_t)read_histo[i]; 
05542           h_his0->Fill(xi, (Stat_t)his_val);
05543         }
05544       if (QuantityCode == "SMFoundEvtsProj" ||
05545           QuantityCode == "SMEvEvProj"      || QuantityCode == "SMSigEvProj"   ||
05546           QuantityCode == "SMEvSigProj"     || QuantityCode == "SMSigSigProj"  ||
05547           QuantityCode == "SMEvCorssProj"   || QuantityCode == "SMSigCorssProj" )
05548         {
05549           his_val = (Double_t)read_histo[i]; 
05550           h_his0->Fill(his_val, (Stat_t)1);
05551         }
05552 
05553       if(QuantityCode == "Evts")
05554         {
05555           xi=(Double_t)(((Double_t)i+(Double_t)0.5)/(Double_t)nb_binx
05556                         *(xsup_his-xinf_his)+xinf_his);
05557           his_val = (Double_t)read_histo[i];
05558           for (Int_t ih = 0; ih < (Int_t)his_val; ih++)
05559             {
05560               h_his0->Fill(xi,(Stat_t)1);
05561             }
05562         }
05563     }
05564 }

TString TCnaViewEB::GetEtaPhiAxisTitle ( const   TString  ) 

Definition at line 2747 of file TCnaViewEB.cc.

Referenced by ViewSuperModuleGrid(), and ViewTowerGrid().

02748 {
02749   TString xname = " ";
02750 
02751   if ( chcode == "ietaSM" ){xname = "i(#eta)  ";}
02752   if ( chcode == "ietaTow"){xname = "i(#eta)         ";}
02753 
02754   if ( chcode == "jphiSMB+" ){xname = "         j(#varphi)";}
02755   if ( chcode == "jphiSMB-" ){xname = "j(#varphi)    ";}
02756   if ( chcode == "jphiTow"  ){xname = "j(#varphi)         ";}
02757   if ( chcode == "phi"      ){xname = "#varphi    ";}
02758 
02759   return xname;
02760 }

Int_t TCnaViewEB::GetHistoSize ( TCnaReadEB MyRootFile,
const   TString 
)

Definition at line 5131 of file TCnaViewEB.cc.

References TCnaReadEB::GetNumberOfBinsEventDistributions(), TCnaReadEB::GetNumberOfBinsSampleAsFunctionOfTime(), TCnaReadEB::MaxCrysInTow(), TCnaReadEB::MaxSampADC(), and TCnaReadEB::MaxTowInSM().

Referenced by ViewHisto().

05132 {
05133 // Histo size as a function of the quantity code
05134 
05135 // VERY IMPORTANT: in some cases the number of bins must be strictly related to the parameters values
05136 //                 (number of crystals, number of samples, etc...). See below comments "===> ONE BIN BY..."
05137 
05138   Int_t   HisSize  = 100;   // default value
05139 
05140   Int_t     nb_of_towers   = MyRootFile->MaxTowInSM();
05141   Int_t     nb_of_crystals = MyRootFile->MaxCrysInTow();
05142 
05143   if( chqcode == "Ev" ||  chqcode == "Sigma" ){
05144     HisSize = MyRootFile->MaxSampADC();}    // ===> ONE BIN BY SAMPLE
05145   if(chqcode == "Evts")
05146     {
05147       HisSize = MyRootFile->GetNumberOfBinsEventDistributions();
05148     }
05149   if(chqcode == "SampTime")
05150     {
05151       HisSize = MyRootFile->GetNumberOfBinsSampleAsFunctionOfTime();    // ===> ONE BIN BY EVENT
05152     }
05153   
05154   if(chqcode == "SMFoundEvtsGlobal" || chqcode == "SMFoundEvtsProj" ||
05155      chqcode == "SMEvEvGlobal"      || chqcode == "SMEvEvProj"      ||
05156      chqcode == "SMSigEvGlobal"     || chqcode == "SMSigEvProj"     ||  
05157      chqcode == "SMEvSigGlobal"     || chqcode == "SMEvSigProj"     || 
05158      chqcode == "SMSigSigGlobal"    || chqcode == "SMSigSigProj"    || 
05159      chqcode == "SMEvCorssGlobal"   || chqcode == "SMEvCorssProj"   || 
05160      chqcode == "SMSigCorssGlobal"  || chqcode == "SMSigCorssProj"    ){
05161     HisSize = nb_of_towers*nb_of_crystals;}     // ===> ONE BIN BY CRYSTAL
05162   
05163   // if (chqcode == "EvolEvEv" || chqcode == "EvolEvSig" || chqcode == "EvolEvCorss"){
05164   //  HisSize = MyRootFile->GetNumberOfBinsEvolution(); }
05165 
05166   return HisSize;
05167 }

TVectorD TCnaViewEB::GetHistoValues ( TCnaReadEB MyRootFile,
const   TString,
const Int_t &  HisSize,
const Int_t &  SMtower_X,
const Int_t &  TowEcha,
const Int_t &  sample,
Int_t &  i_data_exist 
)

Definition at line 5169 of file TCnaViewEB.cc.

References GenMuonPlsPt100GeV_cfg::cout, TCnaReadEB::DataExist(), lat::endl(), TCnaReadEB::GetSMTowFromIndex(), TCnaReadEB::MaxCrysInTow(), TCnaReadEB::MaxSampADC(), TCnaReadEB::MaxTowInSM(), TCnaReadEB::ReadEventDistribution(), TCnaReadEB::ReadExpectationValuesOfCorrelationsBetweenSamples(), TCnaReadEB::ReadExpectationValuesOfExpectationValuesOfSamples(), TCnaReadEB::ReadExpectationValuesOfSamples(), TCnaReadEB::ReadExpectationValuesOfSigmasOfSamples(), TCnaReadEB::ReadNumbersOfFoundEventsForSamples(), TCnaReadEB::ReadSampleAsFunctionOfTime(), TCnaReadEB::ReadSigmasOfCorrelationsBetweenSamples(), TCnaReadEB::ReadSigmasOfExpectationValuesOfSamples(), TCnaReadEB::ReadSigmasOfSamples(), and TCnaReadEB::ReadSigmasOfSigmasOfSamples().

Referenced by ViewHisto().

05172 {
05173 // Histo values in a TVectorD. i_data_exist entry value = 0. Incremented in this method.
05174 
05175   TVectorD read_histo(HisSize);
05176   Int_t     nb_of_towers   = MyRootFile->MaxTowInSM();
05177   Int_t     nb_of_crystals = MyRootFile->MaxCrysInTow();
05178   Int_t     nb_of_samples  = MyRootFile->MaxSampADC();
05179   
05180   if (QuantityCode == "Ev")
05181     {
05182       read_histo = MyRootFile->ReadExpectationValuesOfSamples(SMtower_X, TowEcha);
05183       if( MyRootFile->DataExist() == kTRUE ){i_data_exist++;}
05184     }
05185   
05186   if (QuantityCode == "Sigma")
05187     {
05188       read_histo = MyRootFile->ReadSigmasOfSamples(SMtower_X, TowEcha);
05189       if( MyRootFile->DataExist() == kTRUE ){i_data_exist++;}
05190     }
05191   
05192   if (QuantityCode == "Evts")
05193     {
05194       read_histo = MyRootFile->ReadEventDistribution(SMtower_X, TowEcha, sample);
05195       if( MyRootFile->DataExist() == kTRUE ){i_data_exist++;}
05196     }
05197   
05198   if (QuantityCode == "SampTime")
05199     {
05200       TVectorD read_histo_temp(HisSize);
05201       //......... Calculation of the pedestal (= mean over the samples) for each event
05202       for (Int_t i_samp=0; i_samp<nb_of_samples; i_samp++)
05203         {
05204           read_histo_temp = MyRootFile->ReadSampleAsFunctionOfTime(SMtower_X, TowEcha, i_samp);
05205           
05206           if( MyRootFile->DataExist() == kFALSE )
05207             {cout << "*TCnaViewEB::GetHistoValues> Exiting loop over the samples." << endl; break;}
05208           else{i_data_exist++;}
05209           
05210           for (Int_t n_evt=0; n_evt<HisSize; n_evt++)
05211             {
05212               read_histo(n_evt) = read_histo(n_evt) + read_histo_temp(n_evt);
05213             }
05214         }
05215       
05216       for (Int_t n_evt=0; n_evt<HisSize; n_evt++)
05217         {
05218           read_histo(n_evt) = read_histo(n_evt)/(Double_t)nb_of_samples;
05219         }
05220     }
05221           
05222   //...................................................... (GetHistoValues)
05223   TVectorD partial_histo(nb_of_crystals);
05224   TMatrixD partial_matrix(nb_of_crystals, nb_of_samples);
05225 
05226   if (QuantityCode == "SMFoundEvtsGlobal" || QuantityCode == "SMFoundEvtsProj" )
05227     {
05228       for(Int_t i_tow=0; i_tow<nb_of_towers; i_tow++)
05229         {
05230           Int_t SMtow = MyRootFile->GetSMTowFromIndex(i_tow);
05231           if(SMtow != -1)
05232             {
05233               partial_matrix = MyRootFile->ReadNumbersOfFoundEventsForSamples(SMtow);
05234               
05235               if( MyRootFile->DataExist() == kFALSE )
05236                 {cout << "*TCnaViewEB::GetHistoValues> Exiting loop over the towers." << endl; break;}
05237               else{i_data_exist++;}
05238 
05239               for(Int_t i_crys=0; i_crys<nb_of_crystals; i_crys++)
05240                 {
05241                   partial_histo(i_crys) = partial_matrix(i_crys,0);
05242                   Int_t i_chan = (SMtow-1)*nb_of_crystals + i_crys;
05243                   if(i_chan >= 0 && i_chan < nb_of_towers*nb_of_crystals){
05244                     read_histo(i_chan) = partial_histo(i_crys);}
05245                 }
05246             }
05247         }
05248     }
05249 
05250   if (QuantityCode == "SMEvEvGlobal" || QuantityCode == "SMEvEvProj" )
05251     {
05252       read_histo = MyRootFile->ReadExpectationValuesOfExpectationValuesOfSamples();
05253       if( MyRootFile->DataExist() == kTRUE ){i_data_exist++;}
05254     }
05255 
05256   //...................................................... (GetHistoValues)
05257   if (QuantityCode == "SMEvSigGlobal" || QuantityCode == "SMEvSigProj")
05258     {
05259       read_histo = MyRootFile->ReadExpectationValuesOfSigmasOfSamples();
05260       if( MyRootFile->DataExist() == kTRUE ){i_data_exist++;}
05261     }
05262   
05263   if (QuantityCode == "SMEvCorssGlobal" || QuantityCode == "SMEvCorssProj" )
05264     {
05265       read_histo = MyRootFile->ReadExpectationValuesOfCorrelationsBetweenSamples();
05266       if( MyRootFile->DataExist() == kTRUE ){i_data_exist++;}
05267     }
05268 
05269   if (QuantityCode == "SMSigEvGlobal" || QuantityCode == "SMSigEvProj" )
05270     {
05271       read_histo = MyRootFile->ReadSigmasOfExpectationValuesOfSamples();
05272       if( MyRootFile->DataExist() == kTRUE ){i_data_exist++;}
05273     }
05274 
05275   if (QuantityCode == "SMSigSigGlobal" || QuantityCode == "SMSigSigProj" )
05276     {
05277       read_histo = MyRootFile->ReadSigmasOfSigmasOfSamples();
05278       if( MyRootFile->DataExist() == kTRUE ){i_data_exist++;}
05279     }
05280 
05281   if (QuantityCode == "SMSigCorssGlobal" || QuantityCode == "SMSigCorssProj"  )
05282     {
05283       read_histo = MyRootFile->ReadSigmasOfCorrelationsBetweenSamples();
05284       if( MyRootFile->DataExist() == kTRUE ){i_data_exist++;}
05285     }
05286 
05287   return read_histo;
05288 }

Int_t TCnaViewEB::GetListFileNumber ( const   TString  ) 

Definition at line 3448 of file TCnaViewEB.cc.

References fNbOfListFileEvolEvCorss, fNbOfListFileEvolEvEv, and fNbOfListFileEvolEvSig.

Referenced by ViewHistime().

03449 {
03450 // Get the number of the read list file
03451   
03452   Int_t number = 0;
03453 
03454   if ( QuantityCode == "EvolEvEv"    ){number = fNbOfListFileEvolEvEv;}
03455   if ( QuantityCode == "EvolEvSig"   ){number = fNbOfListFileEvolEvSig;}
03456   if ( QuantityCode == "EvolEvCorss" ){number = fNbOfListFileEvolEvCorss;}
03457 
03458   return number;
03459 }

Int_t TCnaViewEB::GetListOfRunParameters ( const   TString,
const   TString 
)

Definition at line 3273 of file TCnaViewEB.cc.

References AllocArraysForEvol(), GenMuonPlsPt100GeV_cfg::cout, lat::endl(), fCfgListOfRunsFilePath, fCfgResultsRootFilePath, fFapFileRuns, fFapMaxNbOfRuns, fFapNbOfRuns, fFcin_f, fNbOfListFileEvolEvCorss, fNbOfListFileEvolEvEv, fNbOfListFileEvolEvSig, fT1DAnaType, fT1DFirstEvt, fT1DListOfRunsFilePath, fT1DNbOfEvts, fT1DResultsRootFilePath, fT1DRunNumber, fT1DSuMoNumber, and fTTBELL.

Referenced by ViewHistime().

03274 {
03275 // Build the arrays of run parameters from the list-of-runs .ascii file.
03276 // Return the list size as given by the second line of the file
03277 // (see comment on the file syntax in the method AllocArraysForEvol() )
03278 
03279 // *=====> run_par_file_name is the name of the ASCII file containing the list of the runs
03280 // with their parameters (analysis name, run number, 1rst evt, nb of events, results file path)
03281 //
03282 // SYNTAX OF THE FILE:
03283 //
03284 //cna_list0_ped_3b.ascii    <- 1rst line: comment (file name for example)
03285 //5                         <- 2nd  line: nb of lines after this one
03286 //ped 73677 0 150 10        <- 3rd  line and others: run parameters 
03287 //ped 73688 0 150 10           
03288 //ped 73689 0 150 10 
03289 //ped 73690 0 150 10 
03290 //ped 73692 0 150 10 
03291 //
03292 // In option SAME (of TCnaDialogEB), several lists of runs are called and these lists can have
03293 // DIFFERENT sizes (here the "size" is the number of runs of the list). In addition,
03294 // some runs in some lists may not exist in reality. So, we must adopt a convention which is
03295 // the following: the number of runs corresponds to the number of EXISTING runs
03296 // of the FIRST read list. Let be N1 this number.
03297 // If another list has more runs than N1 runs, we read only the first N1 runs.
03298 // If another list has less runs than N1 runs, we read all the runs of this list. 
03299 //
03300 //--------------------------------------------------------------------------------------------------
03301 //
03302 // *====> nb_of_runs_in_list = nb of runs in the second line of the file (= -1 if file not found)
03303 // 
03304   Int_t nb_of_runs_in_list = 0;
03305 
03306  // ===> increase the list file numbers
03307 
03308   if ( QuantityCode == "EvolEvEv"    ){fNbOfListFileEvolEvEv++;}
03309   if ( QuantityCode == "EvolEvSig"   ){fNbOfListFileEvolEvSig++;}
03310   if ( QuantityCode == "EvolEvCorss" ){fNbOfListFileEvolEvCorss++;}
03311 
03312   fFapFileRuns = run_par_file_name.Data();    // (short name)
03313 
03314 
03315   //........... Add the path to the file name           ( GetListOfRunParameters )
03316   TString xFileNameRunList = run_par_file_name.Data();
03317   Text_t *t_file_name = (Text_t *)xFileNameRunList.Data();
03318 
03319   //.............. replace the string "$HOME" by the true $HOME path
03320   if(fCfgListOfRunsFilePath.BeginsWith("$HOME"))
03321     {
03322       fCfgListOfRunsFilePath.Remove(0,5);
03323       Text_t *t_file_nohome = (Text_t *)fCfgListOfRunsFilePath.Data(); //  /scratch0/cna/...
03324       
03325       TString home_path = gSystem->Getenv("HOME");
03326       fCfgListOfRunsFilePath = home_path;             //  /afs/cern.ch/u/USER
03327       fCfgListOfRunsFilePath.Append(t_file_nohome);   //  /afs/cern.ch/u/USER/scratch0/cna/...
03328     }
03329 
03330   xFileNameRunList = fCfgListOfRunsFilePath.Data();
03331 
03332   xFileNameRunList.Append('/');
03333   xFileNameRunList.Append(t_file_name);
03334 
03335   fFcin_f.open(xFileNameRunList.Data());
03336 
03337   //.......................................           ( GetListOfRunParameters )
03338   if(fFcin_f.fail() == kFALSE)
03339     {
03340       fFcin_f.clear();
03341       string xHeadComment;
03342       fFcin_f >> xHeadComment;
03343      
03344       Int_t list_size_read;
03345       fFcin_f >> list_size_read;
03346       
03347       //....................... Set fMaxNbOfRunsXXX to -1 at first call (first read file)
03348       //
03349       //                        fNbOfListFileEvolxxx is initialized to 0 in Init()
03350       //                        It is incremented once in the calling method GetListOfRunParameters(...)
03351       //                        So, at first call fNbOfListFileEvolXXX = 1
03352       //                        then fMaxNbOfRunsEvolXXX = -1
03353       
03354       if( (QuantityCode == "EvolEvEv"    && fNbOfListFileEvolEvEv    == 1) || 
03355           (QuantityCode == "EvolEvSig"   && fNbOfListFileEvolEvSig   == 1) ||
03356           (QuantityCode == "EvolEvCorss" && fNbOfListFileEvolEvCorss == 1) ){fFapMaxNbOfRuns = -1;}
03357      
03358       //...............fFapNbOfRuns = nb of runs from the 2nd line of the first read list file
03359       
03360       fFapNbOfRuns = list_size_read;
03361       
03362       if( fFapMaxNbOfRuns == -1 ) 
03363         {
03364           fFapMaxNbOfRuns = fFapNbOfRuns;    // first call: fFapMaxNbOfRuns = fFapNbOfRuns = xArgNbOfRunsFromList
03365         }
03366       else
03367         {
03368           if( fFapMaxNbOfRuns < fFapNbOfRuns ){fFapNbOfRuns = fFapMaxNbOfRuns;}
03369         }
03370          
03371       AllocArraysForEvol(); // performs allocation and init of the arrays.      ( GetListOfRunParameters )
03372 
03373       string cAnaType;
03374       Int_t  cRunNumber;
03375       Int_t  cFirstEvt;
03376       Int_t  cNbOfEvts;
03377       Int_t  cSuMoNumber;
03378       string cRootFilePath;
03379      
03380       for (Int_t i_list = 0; i_list < list_size_read; i_list++)
03381         {
03382           fFcin_f >> cAnaType >> cRunNumber >> cFirstEvt >> cNbOfEvts >> cSuMoNumber;
03383           
03384           fT1DAnaType[i_list]      = cAnaType;
03385           fT1DRunNumber[i_list]    = cRunNumber;
03386           fT1DFirstEvt[i_list]     = cFirstEvt;
03387           fT1DNbOfEvts[i_list]     = cNbOfEvts;
03388           fT1DSuMoNumber[i_list]   = cSuMoNumber;
03389           fT1DResultsRootFilePath[i_list] = fCfgResultsRootFilePath.Data();
03390           fT1DListOfRunsFilePath[i_list]  = fCfgListOfRunsFilePath.Data();
03391         }
03392       //........................................           ( GetListOfRunParameters )
03393       nb_of_runs_in_list = list_size_read;
03394       fFcin_f.close();
03395     }
03396   else
03397     {
03398       fFcin_f.clear();
03399       cout << "!TCnaViewEB::GetListOfRunParameters(...)> *** ERROR *** =====> "
03400            << run_par_file_name.Data() << " : file not found."
03401            << fTTBELL << endl;
03402       nb_of_runs_in_list = -1;
03403     }
03404   return nb_of_runs_in_list;
03405 }

TString TCnaViewEB::GetMemoFlag ( const   TString  ) 

Definition at line 5758 of file TCnaViewEB.cc.

References fgMaxCar, fMemoPlotEv, fMemoPlotEvolEvCorss, fMemoPlotEvolEvEv, fMemoPlotEvolEvSig, fMemoPlotEvts, fMemoPlotSampTime, fMemoPlotSigma, fMemoPlotSMEvCorssGlobal, fMemoPlotSMEvCorssProj, fMemoPlotSMEvEvGlobal, fMemoPlotSMEvEvProj, fMemoPlotSMEvSigGlobal, fMemoPlotSMEvSigProj, fMemoPlotSMFoundEvtsGlobal, fMemoPlotSMFoundEvtsProj, fMemoPlotSMSigCorssGlobal, fMemoPlotSMSigCorssProj, fMemoPlotSMSigEvGlobal, fMemoPlotSMSigEvProj, fMemoPlotSMSigSigGlobal, and fMemoPlotSMSigSigProj.

Referenced by HistimePlot(), HistoPlot(), PutAllPavesViewHisto(), ViewHistime(), and ViewHisto().

05759 {
05760 // Get Memo Flag
05761 
05762   TString memo_flag;
05763   Int_t MaxCar = fgMaxCar;
05764   memo_flag.Resize(MaxCar);
05765   memo_flag = "(no memo_flag info)";
05766 
05767   Int_t memo_flag_number = -1;
05768 
05769   if(QuantityCode == "SMFoundEvtsGlobal"){memo_flag_number = fMemoPlotSMFoundEvtsGlobal;}
05770   if(QuantityCode == "SMFoundEvtsProj"  ){memo_flag_number = fMemoPlotSMFoundEvtsProj;}
05771   if(QuantityCode == "SMEvEvGlobal"     ){memo_flag_number = fMemoPlotSMEvEvGlobal;}
05772   if(QuantityCode == "SMEvEvProj"       ){memo_flag_number = fMemoPlotSMEvEvProj;}
05773   if(QuantityCode == "SMEvSigGlobal"    ){memo_flag_number = fMemoPlotSMEvSigGlobal;}
05774   if(QuantityCode == "SMEvSigProj"      ){memo_flag_number = fMemoPlotSMEvSigProj;}
05775   if(QuantityCode == "SMEvCorssGlobal"  ){memo_flag_number = fMemoPlotSMEvCorssGlobal;}
05776   if(QuantityCode == "SMEvCorssProj"    ){memo_flag_number = fMemoPlotSMEvCorssProj;}
05777   if(QuantityCode == "SMSigEvGlobal"    ){memo_flag_number = fMemoPlotSMSigEvGlobal;}
05778   if(QuantityCode == "SMSigEvProj"      ){memo_flag_number = fMemoPlotSMSigEvProj;} 
05779   if(QuantityCode == "SMSigSigGlobal"   ){memo_flag_number = fMemoPlotSMSigSigGlobal;} 
05780   if(QuantityCode == "SMSigSigProj"     ){memo_flag_number = fMemoPlotSMSigSigProj;}
05781   if(QuantityCode == "SMSigCorssGlobal" ){memo_flag_number = fMemoPlotSMSigCorssGlobal;}
05782   if(QuantityCode == "SMSigCorssProj"   ){memo_flag_number = fMemoPlotSMSigCorssProj;}
05783   if(QuantityCode == "Ev"               ){memo_flag_number = fMemoPlotEv;}
05784   if(QuantityCode == "Sigma"            ){memo_flag_number = fMemoPlotSigma;}
05785   if(QuantityCode == "Evts"             ){memo_flag_number = fMemoPlotEvts;}
05786   if(QuantityCode == "SampTime"         ){memo_flag_number = fMemoPlotSampTime;}
05787   if(QuantityCode == "EvolEvEv"         ){memo_flag_number = fMemoPlotEvolEvEv;}
05788   if(QuantityCode == "EvolEvSig"        ){memo_flag_number = fMemoPlotEvolEvSig;}
05789   if(QuantityCode == "EvolEvCorss"      ){memo_flag_number = fMemoPlotEvolEvCorss;}
05790 
05791   if(memo_flag_number == 0){memo_flag = "Free";}
05792   if(memo_flag_number == 1){memo_flag = "Busy";}
05793 
05794   return memo_flag;
05795 }

Bool_t TCnaViewEB::GetOkViewHisto ( TCnaReadEB MyRootFile,
const Int_t &  SMtower_X,
const Int_t &  TowEcha,
const Int_t &  sample,
const   TString 
)

Definition at line 3574 of file TCnaViewEB.cc.

References GenMuonPlsPt100GeV_cfg::cout, TCnaReadEB::DataExist(), lat::endl(), fTTBELL, GetQuantityType(), TCnaReadEB::GetRootFileNameShort(), i, TCnaReadEB::MaxCrysInTow(), TCnaReadEB::MaxSampADC(), TCnaReadEB::MaxTowInSM(), and TCnaReadEB::ReadTowerNumbers().

Referenced by ViewHistime(), and ViewHisto().

03577 {
03578 // Check possibility to plot the histo
03579 
03580   Bool_t ok_view_histo = kFALSE;
03581 
03582   TString   QuantityType   = GetQuantityType(QuantityCode);
03583 
03584   Int_t     nb_of_towers   = MyRootFile->MaxTowInSM();
03585   Int_t     nb_of_crystals = MyRootFile->MaxCrysInTow();
03586   Int_t     nb_of_samples  = MyRootFile->MaxSampADC();
03587 
03588   TString   root_file_name = MyRootFile->GetRootFileNameShort();
03589 
03590   TVectorD  vtow(nb_of_towers);
03591   vtow = MyRootFile->ReadTowerNumbers();
03592 
03593   if ( MyRootFile->DataExist() == kTRUE )
03594     {
03595       Int_t tower_ok = 0;
03596       for (Int_t index_tow = 0; index_tow < nb_of_towers; index_tow++)
03597         { if ( vtow(index_tow) == SMtower_X ){tower_ok++;}}
03598       
03599       //.............................................. ok_view   
03600       Int_t ok_view    = 1;
03601       
03602       if( !( QuantityType == "Global" || QuantityType == "Proj" )  )
03603         {if( tower_ok != 1)
03604           {cout << "!TCnaViewEB::GetOkViewHisto(...)> *ERROR* =====> " << "File: " << root_file_name
03605                 << ", Tower " << SMtower_X << " not found. Available numbers = ";
03606           for(Int_t i = 0; i < nb_of_towers; i++){ if( vtow(i) > 0 ){cout << vtow(i) << ", ";}}
03607           cout << fTTBELL << endl;
03608           ok_view = -1;}
03609         else { ok_view = 1;}}
03610       
03611       //.............................................. ok_max_elt 
03612       Int_t ok_max_elt  = 1;
03613       
03614       if( ( ( (QuantityType == "NotSMRun") || (QuantityType == "NotSMNoRun") )
03615             && (TowEcha >= 0) && (TowEcha<nb_of_crystals) 
03616             && (sample  >= 0) && (sample <nb_of_samples ) ) ||
03617           !( (QuantityType == "NotSMRun") || (QuantityType == "NotSMNoRun") ) )
03618         {ok_max_elt = 1;} 
03619       else
03620         {
03621           if( ( (QuantityType == "NotSMRun") || (QuantityType == "NotSMNoRun") )
03622               && !( (TowEcha >= 0) && (TowEcha<nb_of_crystals) ) )
03623             {cout << "!TCnaViewEB::GetOkViewHisto(...)> *ERROR* =====> " << "File: " << root_file_name
03624                   << ". Wrong TowEcha number (required range: [0, "
03625                   << MyRootFile->MaxCrysInTow()-1 << "] )"
03626                   << fTTBELL << endl;}
03627           if( (QuantityCode == "Evts"  && !((sample >= 0) && (sample <nb_of_samples)) ) )
03628             {cout << "!TCnaViewEB::GetOkViewHisto(...)> *ERROR* =====> " << "File: " << root_file_name
03629                   << ". Wrong sample number (required range: [0, "
03630                   << MyRootFile->MaxSampADC()-1 << "] )"
03631                   << fTTBELL << endl;}
03632           ok_max_elt = -1;
03633         }
03634       
03635       if( (ok_view == 1) && (ok_max_elt == 1) )
03636         {
03637           ok_view_histo = kTRUE;
03638         }
03639       else
03640         {
03641           cout << "!TCnaViewEB::GetOkViewHisto(...)> At least one ERROR has been detected. ok_view = " << ok_view
03642                << ", ok_max_elt = " << ok_max_elt << fTTBELL << endl;
03643         }
03644     }
03645   return ok_view_histo;
03646 }

void TCnaViewEB::GetPathForListOfRunFiles ( const   TString  ) 

Definition at line 7318 of file TCnaViewEB.cc.

References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), fCfgListOfRunsFilePath, fCnaError, fFcin_lor, fFileForListOfRunFilePath, fgMaxCar, and fTTBELL.

07319 {
07320   // Init fCfgListOfRunsFilePath and get it from the file named argFileName
07321   // argFileName = complete name of the file (/afs/cern.ch/...)
07322   // if string is empty, file name = "cna_stability.cfg" and file located in $HOME user's directory (default)
07323 
07324   Int_t MaxCar = fgMaxCar;
07325   fCfgListOfRunsFilePath.Resize(MaxCar);
07326   fCfgListOfRunsFilePath          = "?";
07327 
07328   //..... put the name of the ascii file (containing the paths for CNA treatements)
07329   //      in the string cFileNameForCnaPaths and in class attribute fFileForListOfRunFilePath
07330 
07331   if ( argFileName == "" )
07332     {
07333       string cFileNameForCnaPaths = "cna_stability.cfg";     // config file name
07334       TString s_file_name = cFileNameForCnaPaths.c_str();
07335       Text_t *t_file_name = (Text_t *)s_file_name.Data();
07336       
07337       TString s_path_name = gSystem->Getenv("HOME");       // get user's home directory path
07338       
07339       fFileForListOfRunFilePath = s_path_name;
07340       fFileForListOfRunFilePath.Append('/');
07341       fFileForListOfRunFilePath.Append(t_file_name);
07342     }
07343   else
07344     {
07345       fFileForListOfRunFilePath = argFileName.Data();
07346     }
07347 
07348   //........ Reading of the paths in the file named fFileForListOfRunFilePath.Data()
07349   //
07350 
07351   fFcin_lor.open(fFileForListOfRunFilePath.Data());
07352   if(fFcin_lor.fail() == kFALSE)
07353     {
07354       fFcin_lor.clear();
07355       string xListOfRunsP;
07356       fFcin_lor >> xListOfRunsP;
07357       fCfgListOfRunsFilePath = xListOfRunsP.c_str();
07358 
07359       //fCnaCommand++;
07360       //cout << "   *CNA [" << fCnaCommand
07361       //   << "]> Automatic registration of cna paths -> " << endl
07362       //   << "                  List-of-runs files:     " << fCfgListOfRunsFilePath.Data() << endl;
07363       fFcin_lor.close();
07364     }
07365   else
07366     {
07367       fFcin_lor.clear();
07368       fCnaError++;
07369       cout << fTTBELL << endl
07370            << " ***************************************************************************** " << endl;
07371       cout << "   !CNA(TCnaViewEB) (" << fCnaError << ") *** ERROR *** " << endl << endl
07372            << "    "
07373            << fFileForListOfRunFilePath.Data() << " : file not found. " << endl
07374            << "    "
07375            << " Please create this file in your HOME directory and then restart."
07376            << endl << endl
07377            << "    "
07378            << " The file " << fFileForListOfRunFilePath.Data()
07379            << " is a configuration file for the CNA and"
07380            << " must contain one line with the following syntax:" << endl << endl
07381            << "    "
07382            << "   path of the list-of-runs files for time evolution plots ($HOME/etc...) " << endl
07383            << "    "
07384            << "          (without slash at the end of line)" << endl
07385            << endl << endl
07386            << "    "
07387            << " EXAMPLE:" << endl << endl
07388            << "    "
07389            << "  $HOME/scratch0/cna/list_runs_time_evol" << endl << endl
07390            << " ***************************************************************************** "
07391            << fTTBELL << endl;
07392 
07393       fFcin_lor.close();
07394     }
07395 }

void TCnaViewEB::GetPathForListOfRunFiles (  ) 

Definition at line 7234 of file TCnaViewEB.cc.

Referenced by Init().

07235 {
07236   GetPathForListOfRunFiles("");
07237 }

void TCnaViewEB::GetPathForResultsRootFiles ( const   TString  ) 

Definition at line 7240 of file TCnaViewEB.cc.

References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), fCfgResultsRootFilePath, fCnaError, fFcin_rr, fFileForResultsRootFilePath, fgMaxCar, and fTTBELL.

07241 {
07242   // Init fCfgResultsRootFilePath and get it from the file named argFileName
07243   // argFileName = complete name of the file (/afs/cern.ch/...)
07244   // if string is empty, file name = "cna_results_root.cfg" and file located in $HOME user's directory (default)
07245 
07246   Int_t MaxCar = fgMaxCar;
07247   fCfgResultsRootFilePath.Resize(MaxCar);
07248   fCfgResultsRootFilePath            = "?";
07249 
07250   //..... put the name of the ascii file (containing the paths for CNA treatements)
07251   //      in the string cFileNameForCnaPaths and in class attribute fFileForResultsRootFilePath
07252 
07253   if ( argFileName == "" )
07254     {
07255       string cFileNameForCnaPaths = "cna_results_root.cfg";     // config file name
07256       TString s_file_name = cFileNameForCnaPaths.c_str();
07257       Text_t *t_file_name = (Text_t *)s_file_name.Data();
07258       
07259       TString s_path_name = gSystem->Getenv("HOME");       // get user's home directory path
07260       
07261       fFileForResultsRootFilePath = s_path_name;
07262       fFileForResultsRootFilePath.Append('/');
07263       fFileForResultsRootFilePath.Append(t_file_name);
07264     }
07265   else
07266     {
07267       fFileForResultsRootFilePath = argFileName.Data();
07268     }
07269 
07270   //........ Reading of the paths in the file named fFileForResultsRootFilePath.Data()
07271   //
07272 
07273   fFcin_rr.open(fFileForResultsRootFilePath.Data());
07274   if(fFcin_rr.fail() == kFALSE)
07275     {
07276       fFcin_rr.clear();
07277       string xResultsFileP;
07278       fFcin_rr >> xResultsFileP;
07279       fCfgResultsRootFilePath = xResultsFileP.c_str();
07280 
07281       //fCnaCommand++;
07282       //cout << "   *CNA [" << fCnaCommand
07283       //   << "]> Automatic registration of cna paths -> " << endl
07284       //   << "                      Results files :     " << fCfgResultsRootFilePath.Data() << endl;
07285       fFcin_rr.close();
07286     }
07287   else
07288     {
07289       fFcin_rr.clear();
07290       fCnaError++;
07291       cout << fTTBELL << endl
07292            << " ***************************************************************************** " << endl;
07293       cout << "   !CNA(TCnaViewEB) (" << fCnaError << ") *** ERROR *** " << endl << endl
07294            << "    "
07295            << fFileForResultsRootFilePath.Data() << ": file not found. " << endl
07296            << "    "
07297            << endl << endl
07298            << "    "
07299            << " The file " << fFileForResultsRootFilePath.Data()
07300            << " is a configuration file for the CNA and"
07301            << " must contain one line with the following syntax:" << endl << endl
07302            << "    "
07303            << "   path of the results .root files ($HOME/etc...) " << endl
07304            << "    "
07305            << "          (without slash at the end of line)" << endl
07306            << endl << endl
07307            << "    "
07308            << " EXAMPLE:" << endl << endl
07309            << "    "
07310            << "  $HOME/scratch0/cna/results_files" << endl << endl
07311            << " ***************************************************************************** "
07312            << fTTBELL << endl;
07313 
07314       fFcin_rr.close();
07315     }
07316 }

void TCnaViewEB::GetPathForResultsRootFiles (  ) 

Definition at line 7229 of file TCnaViewEB.cc.

Referenced by Init(), TCnaDialogEB::ViewHistoCrystalExpectationValuesOfSamples(), TCnaDialogEB::ViewHistoCrystalPedestalEventNumber(), TCnaDialogEB::ViewHistoCrystalSigmasOfSamples(), TCnaDialogEB::ViewHistoSampleEventDistribution(), TCnaDialogEB::ViewHistoSuperModuleFoundEventsDistribution(), TCnaDialogEB::ViewHistoSuperModuleFoundEventsOfCrystals(), TCnaDialogEB::ViewHistoSuperModuleMeanOfCorssDistribution(), TCnaDialogEB::ViewHistoSuperModuleMeanOfCorssOfCrystals(), TCnaDialogEB::ViewHistoSuperModuleMeanOfSampleSigmasDistribution(), TCnaDialogEB::ViewHistoSuperModuleMeanOfSampleSigmasOfCrystals(), TCnaDialogEB::ViewHistoSuperModuleMeanPedestalsDistribution(), TCnaDialogEB::ViewHistoSuperModuleMeanPedestalsOfCrystals(), TCnaDialogEB::ViewHistoSuperModuleSigmaOfCorssDistribution(), TCnaDialogEB::ViewHistoSuperModuleSigmaOfCorssOfCrystals(), TCnaDialogEB::ViewHistoSuperModuleSigmaOfSampleSigmasDistribution(), TCnaDialogEB::ViewHistoSuperModuleSigmaOfSampleSigmasOfCrystals(), TCnaDialogEB::ViewHistoSuperModuleSigmaPedestalsDistribution(), TCnaDialogEB::ViewHistoSuperModuleSigmaPedestalsOfCrystals(), TCnaDialogEB::ViewMatrixCorrelationCrystals(), TCnaDialogEB::ViewMatrixCorrelationSamples(), TCnaDialogEB::ViewMatrixCorrelationTowers(), TCnaDialogEB::ViewMatrixCovarianceCrystals(), TCnaDialogEB::ViewMatrixCovarianceSamples(), TCnaDialogEB::ViewMatrixCovarianceTowers(), TCnaDialogEB::ViewSMTowerNumbering(), TCnaDialogEB::ViewSuperModuleCorccMeanOverSamples(), TCnaDialogEB::ViewSuperModuleFoundEvents(), TCnaDialogEB::ViewSuperModuleMeanOfCorss(), TCnaDialogEB::ViewSuperModuleMeanOfSampleSigmas(), TCnaDialogEB::ViewSuperModuleMeanPedestals(), TCnaDialogEB::ViewSuperModuleSigmaOfCorss(), TCnaDialogEB::ViewSuperModuleSigmaOfSampleSigmas(), TCnaDialogEB::ViewSuperModuleSigmaPedestals(), TCnaDialogEB::ViewTowerCorrelationSamples(), TCnaDialogEB::ViewTowerCovarianceSamples(), and TCnaDialogEB::ViewTowerCrystalNumbering().

07230 {
07231   GetPathForResultsRootFiles("");
07232 }

TString TCnaViewEB::GetQuantityName ( const   TString  ) 

Definition at line 5097 of file TCnaViewEB.cc.

References fgMaxCar.

Referenced by ViewHistime(), and ViewHisto().

05098 {
05099 // Name of the quantity as a function of the quantity code
05100 
05101   TString chqname;
05102   Int_t MaxCar = fgMaxCar;
05103   chqname.Resize(MaxCar);
05104   chqname = "(no quantity name info)";
05105 
05106   if(chqcode == "SMFoundEvtsGlobal"){chqname = "Number of events (mean over samples)";}
05107   if(chqcode == "SMFoundEvtsProj"  ){chqname = "Number of events (mean over samples)";}
05108   if(chqcode == "SMEvEvGlobal"     ){chqname = "Mean of sample means (mean pedestal)";}
05109   if(chqcode == "SMEvEvProj"       ){chqname = "Mean of sample means (mean pedestal)";}
05110   if(chqcode == "SMEvSigGlobal"    ){chqname = "Mean of sample sigmas";}
05111   if(chqcode == "SMEvSigProj"      ){chqname = "Mean of sample sigmas";}
05112   if(chqcode == "SMEvCorssGlobal"  ){chqname = "Mean of cor(s,s)";}
05113   if(chqcode == "SMEvCorssProj"    ){chqname = "Mean of cor(s,s)";}
05114   if(chqcode == "SMSigEvGlobal"    ){chqname = "Sigma of sample means";}
05115   if(chqcode == "SMSigEvProj"      ){chqname = "Sigma of sample means";}
05116   if(chqcode == "SMSigSigGlobal"   ){chqname = "Sigma of sample sigmas";}
05117   if(chqcode == "SMSigSigProj"     ){chqname = "Sigma of sample sigmas";}
05118   if(chqcode == "SMSigCorssGlobal" ){chqname = "Sigma of cor(s,s)";}
05119   if(chqcode == "SMSigCorssProj"   ){chqname = "Sigma of cor(s,s)";}
05120   if(chqcode == "Ev"               ){chqname = "Sample means";}
05121   if(chqcode == "Sigma"            ){chqname = "Sample sigmas";}
05122   if(chqcode == "Evts"             ){chqname = "Sample ADC distribution";}
05123   if(chqcode == "SampTime"         ){chqname = "Pedestal as a function of event number";}
05124   if(chqcode == "EvolEvEv"         ){chqname = "Mean Pedestal evolution";}
05125   if(chqcode == "EvolEvSig"        ){chqname = "Mean sigma evolution";}
05126   if(chqcode == "EvolEvCorss"      ){chqname = "Mean cor(s,s) evolution";}
05127 
05128   return chqname;
05129 }

TString TCnaViewEB::GetQuantityType ( const   TString  ) 

Definition at line 5067 of file TCnaViewEB.cc.

References fgMaxCar.

Referenced by GetOkViewHisto(), ViewHistime(), and ViewHisto().

05068 {
05069 // Type of the quantity as a function of the quantity code
05070 
05071   TString QuantityType;
05072   Int_t MaxCar = fgMaxCar;
05073   QuantityType.Resize(MaxCar);
05074   QuantityType = "(no quantity type info)";
05075 
05076   if ( QuantityCode == "SMFoundEvtsGlobal" || QuantityCode == "SMEvEvGlobal"    ||
05077        QuantityCode == "SMEvSigGlobal"     || QuantityCode == "SMEvCorssGlobal" ||
05078        QuantityCode == "SMSigEvGlobal"     || QuantityCode == "SMSigSigGlobal"  || 
05079        QuantityCode == "SMSigCorssGlobal" )  {QuantityType = "Global";}
05080   
05081   if ( QuantityCode == "SMFoundEvtsProj" || QuantityCode == "SMEvEvProj"    ||
05082        QuantityCode == "SMEvSigProj"     || QuantityCode == "SMEvCorssProj" ||
05083        QuantityCode == "SMSigEvProj"     || QuantityCode == "SMSigSigProj"  || 
05084        QuantityCode == "SMSigCorssProj" )  {QuantityType = "Proj";}
05085   
05086   if ( QuantityCode == "Ev"        || QuantityCode == "Sigma" ||
05087        QuantityCode == "SampTime" ) {QuantityType = "NotSMRun";}
05088 
05089   if ( QuantityCode == "EvolEvEv"  || QuantityCode == "EvolEvSig" ||
05090        QuantityCode == "EvolEvCorss" ) {QuantityType = "NotSMNoRun";}
05091 
05092   if ( QuantityCode == "Evts"        ) {QuantityType = "EvtsProj";}
05093 
05094   return QuantityType;
05095 }

Color_t TCnaViewEB::GetViewHistoColor ( const   TString  ) 

Definition at line 6485 of file TCnaViewEB.cc.

References ColorDefinition(), ColorTab(), fMemoColorEv, fMemoColorEvolEvCorss, fMemoColorEvolEvEv, fMemoColorEvolEvSig, fMemoColorEvts, fMemoColorSampTime, fMemoColorSigma, fMemoColorSMEvCorssGlobal, fMemoColorSMEvCorssProj, fMemoColorSMEvEvGlobal, fMemoColorSMEvEvProj, fMemoColorSMEvSigGlobal, fMemoColorSMEvSigProj, fMemoColorSMFoundEvtsGlobal, fMemoColorSMFoundEvtsProj, fMemoColorSMSigCorssGlobal, fMemoColorSMSigCorssProj, fMemoColorSMSigEvGlobal, fMemoColorSMSigEvProj, fMemoColorSMSigSigGlobal, and fMemoColorSMSigSigProj.

Referenced by HistimePlot(), and HistoPlot().

06486 {
06487   Color_t couleur = ColorDefinition("noir");        // a priori = "noir"
06488 
06489   if(QuantityCode == "SMFoundEvtsGlobal"){couleur = ColorTab(fMemoColorSMFoundEvtsGlobal) ;}
06490   if(QuantityCode == "SMFoundEvtsProj"  ){couleur = ColorTab(fMemoColorSMFoundEvtsProj)   ;}
06491   if(QuantityCode == "SMEvEvGlobal"     ){couleur = ColorTab(fMemoColorSMEvEvGlobal)      ;}
06492   if(QuantityCode == "SMEvEvProj"       ){couleur = ColorTab(fMemoColorSMEvEvProj)        ;}
06493   if(QuantityCode == "SMEvSigGlobal"    ){couleur = ColorTab(fMemoColorSMEvSigGlobal)     ;}
06494   if(QuantityCode == "SMEvSigProj"      ){couleur = ColorTab(fMemoColorSMEvSigProj)       ;}
06495   if(QuantityCode == "SMEvCorssGlobal"  ){couleur = ColorTab(fMemoColorSMEvCorssGlobal)   ;}
06496   if(QuantityCode == "SMEvCorssProj"    ){couleur = ColorTab(fMemoColorSMEvCorssProj)     ;}
06497   if(QuantityCode == "SMSigEvGlobal"    ){couleur = ColorTab(fMemoColorSMSigEvGlobal)     ;}
06498   if(QuantityCode == "SMSigEvProj"      ){couleur = ColorTab(fMemoColorSMSigEvProj)       ;} 
06499   if(QuantityCode == "SMSigSigGlobal"   ){couleur = ColorTab(fMemoColorSMSigSigGlobal)    ;} 
06500   if(QuantityCode == "SMSigSigProj"     ){couleur = ColorTab(fMemoColorSMSigSigProj)      ;}
06501   if(QuantityCode == "SMSigCorssGlobal" ){couleur = ColorTab(fMemoColorSMSigCorssGlobal)  ;}
06502   if(QuantityCode == "SMSigCorssProj"   ){couleur = ColorTab(fMemoColorSMSigCorssProj)    ;}
06503   if(QuantityCode == "Ev"               ){couleur = ColorTab(fMemoColorEv)                ;}
06504   if(QuantityCode == "Sigma"            ){couleur = ColorTab(fMemoColorSigma)             ;}
06505   if(QuantityCode == "Evts"             ){couleur = ColorTab(fMemoColorEvts)              ;}
06506   if(QuantityCode == "SampTime"         ){couleur = ColorTab(fMemoColorSampTime)          ;}
06507   if(QuantityCode == "EvolEvEv"         ){couleur = ColorTab(fMemoColorEvolEvEv)          ;}
06508   if(QuantityCode == "EvolEvSig"        ){couleur = ColorTab(fMemoColorEvolEvSig)         ;}
06509   if(QuantityCode == "EvolEvCorss"      ){couleur = ColorTab(fMemoColorEvolEvCorss)       ;}
06510 
06511   return couleur;
06512 }

Int_t TCnaViewEB::GetXCrysInSM ( TEBNumbering MyNumbering,
TEBParameters MyEcal,
const Int_t &  SMNumber,
const Int_t &  SMTow,
const Int_t &  iTowEcha 
)

Definition at line 2204 of file TCnaViewEB.cc.

References TEBNumbering::GetSMCrysFromSMTowAndTowEcha(), TEBNumbering::GetSMHalfBarrel(), TEBParameters::MaxCrysEtaInSM(), and TEBParameters::MaxCrysPhiInSM().

Referenced by ViewSuperModule().

02207 {
02208 //Gives the X crystal coordinate in the geographic view of one SuperModule
02209 // (X = 0 to MaxTowEtaInSM*NbCrysEtaInTow - 1)
02210 
02211   TString ctype    = MyNumbering->GetSMHalfBarrel(SMNumber);
02212   Int_t   i_SMCrys = MyNumbering->GetSMCrysFromSMTowAndTowEcha(SMTow, iTowEcha);
02213   
02214   Int_t ix_geo = (i_SMCrys-1)/MyEcal->MaxCrysPhiInSM();  // ix_geo for barrel+
02215 
02216   if( ctype == "barrel-"){ix_geo = MyEcal->MaxCrysEtaInSM() - ix_geo - 1;}
02217 
02218   return ix_geo;
02219 }

Int_t TCnaViewEB::GetXSampInTow ( TEBNumbering MyNumbering,
TEBParameters MyEcal,
const Int_t &  SMNumber,
const Int_t &  SMtower,
const Int_t &  i_TowEcha,
const Int_t &  i_samp 
)

Definition at line 1509 of file TCnaViewEB.cc.

References TEBNumbering::GetSMHalfBarrel(), TEBNumbering::GetTowerLvrbType(), TEBParameters::MaxCrysEtaInTow(), and TEBParameters::MaxSampADC().

Referenced by TowerCrystalNumbering(), and ViewTower().

01512 {
01513 //Gives the X coordinate in the geographic view of one tower
01514 
01515   Int_t ix_geo = -1;
01516   TString ctype = MyNumbering->GetTowerLvrbType(SMtower);
01517   TString btype = MyNumbering->GetSMHalfBarrel(SMNumber);
01518 
01519   if( (btype == "barrel+" && ctype == "bottom")  || (btype == "barrel-" && ctype == "top") )
01520     {ix_geo = ( (MyEcal->MaxCrysEtaInTow()-1)-(i_TowEcha/MyEcal->MaxCrysEtaInTow()) )
01521        *MyEcal->MaxSampADC() + i_samp;}
01522   
01523   if( (btype == "barrel+" &&  ctype  == "top")   || (btype == "barrel-" && ctype == "bottom") )
01524     {ix_geo = ( i_TowEcha/MyEcal->MaxCrysEtaInTow() )*MyEcal->MaxSampADC() + i_samp;}
01525   
01526   return ix_geo;
01527 }

Int_t TCnaViewEB::GetYCrysInSM ( TEBNumbering MyNumbering,
TEBParameters MyEcal,
const Int_t &  SMNumber,
const Int_t &  SMTow,
const Int_t &  jTowEcha 
)

Definition at line 2221 of file TCnaViewEB.cc.

References TEBNumbering::GetSMCrysFromSMTowAndTowEcha(), TEBNumbering::GetSMHalfBarrel(), and TEBParameters::MaxCrysPhiInSM().

Referenced by ViewSuperModule().

02224 {
02225 //Gives the Y crystal coordinate in the geographic view of one SuperModule
02226 // (Y = 0 to MaxTowPhiInSM*NbCrysPhiInTow - 1)
02227 
02228 
02229   TString ctype    = MyNumbering->GetSMHalfBarrel(SMNumber);
02230   Int_t   i_SMCrys = MyNumbering->GetSMCrysFromSMTowAndTowEcha(SMTow, jTowEcha);
02231 
02232   Int_t ix_geo = (i_SMCrys-1)/MyEcal->MaxCrysPhiInSM();           // ix_geo for barrel+
02233   
02234   Int_t iy_geo = i_SMCrys - 1 - ix_geo*MyEcal->MaxCrysPhiInSM();  // iy_geo for barrel+
02235 
02236   if( ctype == "barrel-"){iy_geo = MyEcal->MaxCrysPhiInSM() - iy_geo - 1;}
02237 
02238   return iy_geo;
02239 }

Double_t TCnaViewEB::GetYmax ( const   TString  ) 

Definition at line 5664 of file TCnaViewEB.cc.

References fSMCorccInTowersYmax, fSMEvCorssGlobalYmax, fSMEvCorttMatrixYmax, fSMEvCovttMatrixYmax, fSMEvEvGlobalYmax, fSMEvSigGlobalYmax, fSMFoundEvtsGlobalYmax, fSMSigCorssGlobalYmax, fSMSigEvGlobalYmax, and fSMSigSigGlobalYmax.

Referenced by HistimePlot(), and InitQuantityYmax().

05665 {
05666   Double_t val_max = (Double_t)0.;
05667 
05668    if( QuantityCode == "SMFoundEvtsGlobal"){val_max = fSMFoundEvtsGlobalYmax;}
05669    if( QuantityCode == "SMFoundEvtsProj"  ){val_max = (Double_t)1000.;} 
05670    if( QuantityCode == "SMEvEvGlobal"     ){val_max = fSMEvEvGlobalYmax;} 
05671    if( QuantityCode == "SMEvEvProj"       ){val_max = (Double_t)1000.;}  
05672    if( QuantityCode == "SMEvSigGlobal"    ){val_max = fSMEvSigGlobalYmax;}   
05673    if( QuantityCode == "SMEvSigProj"      ){val_max = (Double_t)1000.;} 
05674    if( QuantityCode == "SMEvCorssGlobal"  ){val_max = fSMEvCorssGlobalYmax;}
05675    if( QuantityCode == "SMEvCorssProj"    ){val_max = (Double_t)1000.;} 
05676    if( QuantityCode == "SMSigEvGlobal"    ){val_max = fSMSigEvGlobalYmax;} 
05677    if( QuantityCode == "SMSigEvProj"      ){val_max = (Double_t)1000.;} 
05678    if( QuantityCode == "SMSigSigGlobal"   ){val_max = fSMSigSigGlobalYmax;}  
05679    if( QuantityCode == "SMSigSigProj"     ){val_max = (Double_t)1000.;} 
05680    if( QuantityCode == "SMSigCorssGlobal" ){val_max = fSMSigCorssGlobalYmax;} 
05681    if( QuantityCode == "SMSigCorssProj"   ){val_max = (Double_t)1000.;}
05682    if( QuantityCode == "SMEvCorttMatrix"  ){val_max = fSMEvCorttMatrixYmax;}
05683    if( QuantityCode == "SMEvCovttMatrix"  ){val_max = fSMEvCovttMatrixYmax;}
05684    if( QuantityCode == "SMCorccInTowers"  ){val_max = fSMCorccInTowersYmax;}
05685    if( QuantityCode == "Ev"               ){val_max = fSMEvEvGlobalYmax;}
05686    if( QuantityCode == "Sigma"            ){val_max = fSMEvSigGlobalYmax;}
05687    if( QuantityCode == "Evts"             ){val_max = (Double_t)1000.;}
05688    if( QuantityCode == "SampTime"         ){val_max = fSMEvEvGlobalYmax;}
05689    if( QuantityCode == "EvolEvEv"         ){val_max = fSMEvEvGlobalYmax;}
05690    if( QuantityCode == "EvolEvSig"        ){val_max = fSMEvSigGlobalYmax;}
05691    if( QuantityCode == "EvolEvCorss"      ){val_max = fSMSigCorssGlobalYmax;}
05692 
05693   return val_max;
05694 }

Double_t TCnaViewEB::GetYmin ( const   TString  ) 

Definition at line 5632 of file TCnaViewEB.cc.

References fSMCorccInTowersYmin, fSMEvCorssGlobalYmin, fSMEvCorttMatrixYmin, fSMEvCovttMatrixYmin, fSMEvEvGlobalYmin, fSMEvSigGlobalYmin, fSMFoundEvtsGlobalYmin, fSMSigCorssGlobalYmin, fSMSigEvGlobalYmin, and fSMSigSigGlobalYmin.

Referenced by HistimePlot(), and InitQuantityYmin().

05633 {
05634   Double_t val_min = (Double_t)0.;
05635 
05636    if( QuantityCode == "SMFoundEvtsGlobal"){val_min = fSMFoundEvtsGlobalYmin;}
05637    if( QuantityCode == "SMFoundEvtsProj"  ){val_min = (Double_t)0.5;}  
05638    if( QuantityCode == "SMEvEvGlobal"     ){val_min = fSMEvEvGlobalYmin;} 
05639    if( QuantityCode == "SMEvEvProj"       ){val_min = (Double_t)0.5;} 
05640    if( QuantityCode == "SMEvSigGlobal"    ){val_min = fSMEvSigGlobalYmin;}
05641    if( QuantityCode == "SMEvSigProj"      ){val_min = (Double_t)0.5;} 
05642    if( QuantityCode == "SMEvCorssGlobal"  ){val_min = fSMEvCorssGlobalYmin;} 
05643    if( QuantityCode == "SMEvCorssProj"    ){val_min = (Double_t)0.5;} 
05644    if( QuantityCode == "SMSigEvGlobal"    ){val_min = fSMSigEvGlobalYmin;} 
05645    if( QuantityCode == "SMSigEvProj"      ){val_min = (Double_t)0.5;}
05646    if( QuantityCode == "SMSigSigGlobal"   ){val_min = fSMSigSigGlobalYmin;} 
05647    if( QuantityCode == "SMSigSigProj"     ){val_min = (Double_t)0.5;} 
05648    if( QuantityCode == "SMSigCorssGlobal" ){val_min = fSMSigCorssGlobalYmin;}
05649    if( QuantityCode == "SMSigCorssProj"   ){val_min = (Double_t)0.5;}
05650    if( QuantityCode == "SMEvCorttMatrix"  ){val_min = fSMEvCorttMatrixYmin;}
05651    if( QuantityCode == "SMEvCovttMatrix"  ){val_min = fSMEvCovttMatrixYmin;}
05652    if( QuantityCode == "SMCorccInTowers"  ){val_min = fSMCorccInTowersYmin;}
05653    if( QuantityCode == "Ev"               ){val_min = fSMEvEvGlobalYmin;}
05654    if( QuantityCode == "Sigma"            ){val_min = fSMEvSigGlobalYmin;}
05655    if( QuantityCode == "Evts"             ){val_min = (Double_t)0.5;}
05656    if( QuantityCode == "SampTime"         ){val_min = fSMEvEvGlobalYmin;}
05657    if( QuantityCode == "EvolEvEv"         ){val_min = fSMEvEvGlobalYmin;}
05658    if( QuantityCode == "EvolEvSig"        ){val_min = fSMEvSigGlobalYmin;}
05659    if( QuantityCode == "EvolEvCorss"      ){val_min = fSMEvCorssGlobalYmin;}
05660 
05661   return val_min;
05662 }

Int_t TCnaViewEB::GetYSampInTow ( TEBNumbering MyNumbering,
TEBParameters MyEcal,
const Int_t &  SMNumber,
const Int_t &  SMtower,
const Int_t &  i_TowEcha,
const Int_t &  j_samp 
)

Definition at line 1529 of file TCnaViewEB.cc.

References TEBNumbering::GetSMHalfBarrel(), TEBNumbering::GetTowerLvrbType(), TEBParameters::MaxCrysPhiInTow(), and TEBParameters::MaxSampADC().

Referenced by TowerCrystalNumbering(), and ViewTower().

01532 {
01533 //Gives the Y coordinate in the geographic view of one tower
01534 
01535   Int_t jy_geo = -1;
01536   TString ctype = MyNumbering->GetTowerLvrbType(SMtower);
01537   TString btype = MyNumbering->GetSMHalfBarrel(SMNumber);
01538 
01539   //.......................... jy_geo for the barrel+ (and beginning for the barrel-)
01540 
01541   if( (btype == "barrel+" && ctype == "top")    ||  (btype == "barrel-" && ctype == "bottom") )
01542     {
01543       if( i_TowEcha >=  0 && i_TowEcha <=  4 ) {jy_geo =  (i_TowEcha -  0)*MyEcal->MaxSampADC() + j_samp;}
01544       if( i_TowEcha >=  5 && i_TowEcha <=  9 ) {jy_geo = -(i_TowEcha -  9)*MyEcal->MaxSampADC() + j_samp;}
01545       if( i_TowEcha >= 10 && i_TowEcha <= 14 ) {jy_geo =  (i_TowEcha - 10)*MyEcal->MaxSampADC() + j_samp;}
01546       if( i_TowEcha >= 15 && i_TowEcha <= 19 ) {jy_geo = -(i_TowEcha - 19)*MyEcal->MaxSampADC() + j_samp;}
01547       if( i_TowEcha >= 20 && i_TowEcha <= 24 ) {jy_geo =  (i_TowEcha - 20)*MyEcal->MaxSampADC() + j_samp;}
01548     }
01549 
01550   if( (btype == "barrel+" && ctype == "bottom") ||  (btype == "barrel-" && ctype == "top") )
01551     {
01552       if( i_TowEcha >=  0 && i_TowEcha <=  4 )
01553         {jy_geo = ( (MyEcal->MaxCrysPhiInTow()-1) - (i_TowEcha- 0))*MyEcal->MaxSampADC() + j_samp;}
01554 
01555       if( i_TowEcha >=  5 && i_TowEcha <=  9 )
01556         {jy_geo = ( (MyEcal->MaxCrysPhiInTow()-1) + (i_TowEcha- 9))*MyEcal->MaxSampADC() + j_samp;}
01557 
01558       if( i_TowEcha >= 10 && i_TowEcha <= 14 )
01559         {jy_geo = ( (MyEcal->MaxCrysPhiInTow()-1) - (i_TowEcha-10))*MyEcal->MaxSampADC() + j_samp;}
01560 
01561       if( i_TowEcha >= 15 && i_TowEcha <= 19 )
01562         {jy_geo = ( (MyEcal->MaxCrysPhiInTow()-1) + (i_TowEcha-19))*MyEcal->MaxSampADC() + j_samp;}
01563 
01564       if( i_TowEcha >= 20 && i_TowEcha <= 24 )
01565         {jy_geo = ( (MyEcal->MaxCrysPhiInTow()-1) - (i_TowEcha-20))*MyEcal->MaxSampADC() + j_samp;}
01566     }
01567 
01568   return jy_geo;
01569 }

Int_t TCnaViewEB::GraphSetMinMax ( TGraph *  g_graph0,
const   TString 
)

Definition at line 3740 of file TCnaViewEB.cc.

References fEvolEvCorssYmax, fEvolEvCorssYmin, fEvolEvEvYmax, fEvolEvEvYmin, fEvolEvSigYmax, and fEvolEvSigYmin.

Referenced by ViewHistime().

03741 {
03742 // Set min and max according to QuantityCode
03743   
03744   Int_t xFlagAutoYsupMargin = 1;    // DEFAULT: 1 = min and max calulated by ROOT, 0 = by this code 
03745 
03746   if(QuantityCode == "EvolEvEv"){
03747     if(fEvolEvEvYmin < fEvolEvEvYmax){xFlagAutoYsupMargin = 0;
03748     g_graph0->SetMinimum(fEvolEvEvYmin); g_graph0->SetMaximum(fEvolEvEvYmax);}}
03749 
03750   if(QuantityCode == "EvolEvSig"){
03751     if(fEvolEvSigYmin < fEvolEvSigYmax){xFlagAutoYsupMargin = 0;
03752     g_graph0->SetMinimum(fEvolEvSigYmin); g_graph0->SetMaximum(fEvolEvSigYmax);}}
03753 
03754   if(QuantityCode == "EvolEvCorss"){
03755     if(fEvolEvCorssYmin < fEvolEvCorssYmax){xFlagAutoYsupMargin = 0;
03756     g_graph0->SetMinimum(fEvolEvCorssYmin); g_graph0->SetMaximum(fEvolEvCorssYmax);}}
03757 
03758   return xFlagAutoYsupMargin;  
03759 } // end of GraphSetMinMax

void TCnaViewEB::HistimeCrystalMeanCorss ( const   TString,
const Int_t &  SMtower_X,
const Int_t &  towEcha,
const   TString 
)

Definition at line 3020 of file TCnaViewEB.cc.

References fOptVisPolm, and ViewHistime().

Referenced by TCnaDialogEB::ViewHistimeCrystalMeanCorss().

03023 {
03024   ViewHistime(run_par_file_name, SMtower_X, towEcha, "EvolEvCorss", fOptVisPolm, first_same_plot);
03025 }

void TCnaViewEB::HistimeCrystalMeanPedestals ( const   TString,
const Int_t &  SMtower_X,
const Int_t &  towEcha,
const   TString 
)

Definition at line 3006 of file TCnaViewEB.cc.

References fOptVisPolm, and ViewHistime().

Referenced by TCnaDialogEB::ViewHistimeCrystalMeanPedestals().

03009 {
03010   ViewHistime(run_par_file_name, SMtower_X, towEcha, "EvolEvEv", fOptVisPolm, first_same_plot);
03011 }

void TCnaViewEB::HistimeCrystalMeanSigmas ( const   TString,
const Int_t &  SMtower_X,
const Int_t &  towEcha,
const   TString 
)

Definition at line 3013 of file TCnaViewEB.cc.

References fOptVisPolm, and ViewHistime().

Referenced by TCnaDialogEB::ViewHistimeCrystalMeanSigmas().

03016 {
03017   ViewHistime(run_par_file_name, SMtower_X, towEcha, "EvolEvSig", fOptVisPolm, first_same_plot);
03018 }

void TCnaViewEB::HistimePlot ( TGraph *  g_graph0,
Axis_t  xinf,
Axis_t  xsup,
TCnaReadEB MyRootFile,
TEBNumbering MyNumbering,
const   TString,
const   TString,
const Int_t &  nb_of_towers,
const Int_t &  SMtower_X,
const Int_t &  TowEcha,
const Int_t &  sample,
const Int_t &  opt_visu,
const Int_t &  opt_scale,
const   TString,
const Int_t &  xFlagAutoYsupMargin 
)

Definition at line 4033 of file TCnaViewEB.cc.

References ActivePad(), ActivePavTxt(), ColorDefinition(), GenMuonPlsPt100GeV_cfg::cout, CreateCanvas(), lat::endl(), fCdelete, fCnew, fCnewRoot, fcom_bot_left, fcom_bot_right, fcom_top_left, fcom_top_mid, fcom_top_right, fFapAnaType, fFapFirstEvt, fFapNbOfEvts, fFapSuMoNumber, fgMaxCar, fOnlyOnePlot, fOptScaleLiny, fOptScaleLogy, fOptVisLine, fOptVisPolm, fSeveralPlot, fT1DRunNumber, fTextPaveAlign, fTextPaveFont, fTextPaveSize, ftitle_g1, fTTBELL, fXinf, fXsup, fYinf, fYsup, GetMemoFlag(), TEBNumbering::GetSMCrysFromSMTowAndTowEcha(), GetViewHistoColor(), GetYmax(), GetYmin(), PutAllPavesViewHisto(), ReInitCanvas(), SetCanvasHeight(), SetCanvasName(), SetCanvasWidth(), SetGraphPresentation(), SetHistoXAxisTitle(), SetHistoYAxisTitle(), SetParametersCanvas(), SetViewGraphColors(), and tt.

Referenced by ViewHistime().

04040 {
04041   // Plot 1D histogram for evolution in time
04042 
04043   UInt_t canv_w = SetCanvasWidth(QuantityCode);
04044   UInt_t canv_h = SetCanvasHeight(QuantityCode);
04045 
04046   SetGraphPresentation(g_graph0, QuantityType);    // (gStyle parameters)
04047 
04048   //...................................................... paves commentaires (HistimePlot)
04049          
04050   PutAllPavesViewHisto(MyRootFile, MyNumbering, QuantityCode, SMtower_X, TowEcha, sample, opt_plot);
04051 
04052   //..................................................... Canvas name (HistimePlot) 
04053 
04054   TString canvas_name = SetCanvasName(QuantityCode, opt_visu, opt_scale, opt_plot,
04055                                       SMtower_X,    TowEcha,  sample);
04056           
04057   //------------------------------------------------ Canvas allocation  (HistimePlot)
04058 
04059   //......................................... declarations canvas et pad
04060   TCanvas*     NoiseCorrel = 0;
04061   TVirtualPad* main_subpad = 0;
04062   TPaveText*   main_pavtxt = 0;
04063 
04064   if(opt_plot == fOnlyOnePlot)
04065     {
04066       NoiseCorrel = new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w , canv_h);   fCnewRoot++;
04067     }
04068 
04069   if(opt_plot == fSeveralPlot)
04070     {
04071       if(GetMemoFlag(QuantityCode) == "Free"){CreateCanvas(QuantityCode, canvas_name, canv_w , canv_h);}
04072     }    
04073 
04074   // cout << "*TCnaViewEB::HistimePlot(...)> Plot is displayed on canvas ----> " << canvas_name.Data() << endl;
04075 
04076   //.................................................. Draw titles (pad = main canvas)
04077 
04078   if( opt_plot == fOnlyOnePlot )
04079     {
04080       ftitle_g1->Draw();
04081       fcom_top_left->Draw();
04082 
04083       if( !( QuantityType == "Global"   || QuantityType == "Proj" ) )
04084         {
04085           fcom_top_mid->Draw();
04086           fcom_top_right->Draw();
04087         }
04088       fcom_bot_left->Draw();
04089       fcom_bot_right->Draw();
04090     }
04091 
04092   if( opt_plot == fSeveralPlot && GetMemoFlag(QuantityCode) == "Free" )
04093     {
04094       ftitle_g1->Draw();
04095       fcom_top_left->Draw();
04096 
04097       if( !( QuantityType == "Global"   || QuantityType == "Proj"   ||
04098              QuantityCode == "EvolEvEv" || QuantityCode == "EvolEvSig" || QuantityCode == "EvolEvCorss") )
04099         {
04100           fcom_top_mid->Draw();
04101           fcom_top_right->Draw();
04102         }
04103       
04104       if( !( QuantityCode == "EvolEvEv" || QuantityCode == "EvolEvSig" || QuantityCode == "EvolEvCorss" ) )
04105         {
04106           fcom_bot_left->Draw();
04107         }
04108       fcom_bot_right->Draw();
04109     }
04110   
04111   //.............................. Init operations on canvas at first call to option SAME  (HistimePlot)
04112 
04113   Int_t xMemoPlotSame = 1;   // a priori ==> SAME plot 
04114 
04115   Int_t last_evt = fFapFirstEvt + fFapNbOfEvts - 1;
04116   Int_t SM_crys  = MyNumbering->GetSMCrysFromSMTowAndTowEcha(SMtower_X, TowEcha);
04117           
04118   if(opt_plot == fSeveralPlot)
04119     {
04120       if(GetMemoFlag(QuantityCode) == "Free")
04121         {
04122           fcom_top_left->SetTextAlign(fTextPaveAlign);
04123           fcom_top_left->SetTextFont(fTextPaveFont);
04124           fcom_top_left->SetTextSize(fTextPaveSize);
04125 
04126           char* f_in = new char[fgMaxCar];                            fCnew++;
04127 
04128           sprintf(f_in, "Analysis  1stEvt LastEvt SM Tower Crystal");
04129           TText* ttit = fcom_top_left->AddText(f_in);
04130           ttit->SetTextColor(ColorDefinition("noir"));
04131 
04132           sprintf(f_in, "%-8s%8d%8d%3d%6d%8d",
04133                   fFapAnaType.Data(), fFapFirstEvt, last_evt, fFapSuMoNumber, SMtower_X, SM_crys);
04134           
04135           TText* tt = fcom_top_left->AddText(f_in);
04136           tt->SetTextColor(GetViewHistoColor(QuantityCode));
04137 
04138           delete [] f_in;                                             fCdelete++;
04139 
04140           SetParametersCanvas(QuantityCode); xMemoPlotSame = 0;
04141         }
04142 
04143       //............................ cases fMemoPlotxxx = 1            (HistimePlot)
04144 
04145       if(GetMemoFlag(QuantityCode) == "Busy")
04146         {
04147           main_pavtxt = ActivePavTxt(QuantityCode);
04148           main_subpad = ActivePad(QuantityCode);
04149         }
04150     }
04151 
04152   if(opt_plot == fOnlyOnePlot)
04153     {
04154       NoiseCorrel->Divide(1, 1, 0.001 , 0.125);
04155       gPad->cd(1);
04156       main_subpad = gPad;
04157       xMemoPlotSame = 0;
04158     }
04159 
04160   if(main_subpad != 0)
04161     {
04162       if(opt_plot == fSeveralPlot)
04163         {
04164           if(xMemoPlotSame != 0)
04165             {
04166               main_pavtxt->SetTextAlign(fTextPaveAlign);
04167               main_pavtxt->SetTextFont(fTextPaveFont);
04168               main_pavtxt->SetTextSize(fTextPaveSize);
04169 
04170               char* f_in = new char[fgMaxCar];                            fCnew++;
04171 
04172               sprintf(f_in, "%-8s%8d%8d%3d%6d%8d",
04173                       fFapAnaType.Data(), fFapFirstEvt, last_evt, fFapSuMoNumber, SMtower_X, SM_crys);
04174 
04175               TText *tt = main_pavtxt->AddText(f_in);
04176               tt->SetTextColor(GetViewHistoColor(QuantityCode));
04177 
04178               delete [] f_in;                                             fCdelete++;
04179             }
04180         }
04181       main_subpad->cd();
04182               
04183       //............................................ Style      (HistimePlot)
04184       SetViewGraphColors(g_graph0, QuantityCode, opt_plot);
04185 
04186       //................................. Set axis titles
04187       TString axis_x_var_name = SetHistoXAxisTitle(QuantityCode);
04188       TString axis_y_var_name = SetHistoYAxisTitle(QuantityCode);
04189       g_graph0->GetXaxis()->SetTitle(axis_x_var_name);
04190       g_graph0->GetYaxis()->SetTitle(axis_y_var_name);
04191 
04192       //................................. Xaxis is a time axis
04193       g_graph0->GetXaxis()->SetTimeDisplay(1);
04194       g_graph0->GetXaxis()->SetTimeFormat("%d %b-%Hh");
04195  
04196       g_graph0->GetXaxis()->SetTimeOffset(xinf);
04197 
04198       Int_t nb_displayed = 20;      // max nb of run numbers displayed
04199 
04200       //...........................................................................     (HistimePlot)
04201       Int_t liny = 0;
04202       Int_t logy = 1;
04203               
04204       if(opt_plot == fOnlyOnePlot)
04205         {
04206           fXinf = (Double_t)xinf;
04207           fXsup = (Double_t)xsup;
04208           fYinf = (Double_t)GetYmin(QuantityCode);
04209           fYsup = (Double_t)GetYmax(QuantityCode);
04210           gPad->RangeAxis(fXinf, fYinf, fXsup, fYsup);
04211 
04212           if(opt_visu == fOptVisLine && opt_scale == fOptScaleLiny){gPad->SetLogy(liny); g_graph0->Draw();}
04213           if(opt_visu == fOptVisLine && opt_scale == fOptScaleLogy){gPad->SetLogy(logy); g_graph0->Draw();}
04214           if(opt_visu == fOptVisPolm && opt_scale == fOptScaleLiny)
04215             {
04216               gPad->SetLogy(liny);
04217               g_graph0->Draw("ALP");
04218               Int_t     nb_pts  = g_graph0->GetN();
04219               Double_t* coord_x = g_graph0->GetX();
04220               Double_t* coord_y = g_graph0->GetY();
04221 
04222               char* f_in = new char[fgMaxCar];                            fCnew++;
04223 
04224               //................. display of the run numbers
04225 
04226               Double_t interv_displayed = (coord_x[nb_pts-1] - coord_x[0])/(Double_t)nb_displayed;
04227               Double_t last_drawn_coordx = coord_x[0] - 1.5*interv_displayed;
04228 
04229               for(Int_t i_run=0; i_run<nb_pts; i_run++)
04230                 {
04231                   if ( (coord_x[i_run] - last_drawn_coordx) > interv_displayed )
04232                     {
04233                       sprintf( f_in, "R%d",  fT1DRunNumber[i_run]);
04234                       TText *text_run_num = new TText(coord_x[i_run], fYsup, f_in);  fCnewRoot++;
04235                       text_run_num->SetTextAngle((Double_t)45.);
04236                       text_run_num->SetTextSize((Double_t)0.035);
04237                       text_run_num->Draw("SAME");
04238                       // delete text_SMtow_num;             fCdeleteRoot++;
04239 
04240                       TLine *jointlign;
04241                       jointlign = new TLine(coord_x[i_run], fYsup, coord_x[i_run], coord_y[i_run]); fCnewRoot++;
04242                       jointlign->SetLineWidth(1);
04243                       jointlign->Draw("SAME");
04244                       // delete jointlign;                  fCdeleteRoot++;
04245 
04246                       last_drawn_coordx = coord_x[i_run];
04247                     }
04248                 }
04249 
04250               delete [] f_in;                                               fCdelete++;
04251 
04252             }
04253           if(opt_visu == fOptVisPolm && opt_scale == fOptScaleLogy)
04254             {
04255               gPad->SetLogy(logy);
04256               g_graph0->Draw("ALP");
04257             }
04258         }
04259 
04260       //................................................  (HistimePlot)
04261       if(opt_plot == fSeveralPlot)
04262         {
04263           if(xMemoPlotSame == 0)
04264             {
04265               if(opt_visu == fOptVisLine && opt_scale == fOptScaleLiny){gPad->SetLogy(liny); g_graph0->Draw();}
04266               if(opt_visu == fOptVisLine && opt_scale == fOptScaleLogy){gPad->SetLogy(logy); g_graph0->Draw();}
04267               if(opt_visu == fOptVisPolm && opt_scale == fOptScaleLiny){gPad->SetLogy(liny); g_graph0->Draw("AP");}
04268               if(opt_visu == fOptVisPolm && opt_scale == fOptScaleLogy){gPad->SetLogy(logy); g_graph0->Draw("AP");}
04269 
04270               fXinf = (Double_t)xinf;
04271               fXsup = (Double_t)xsup;
04272               fYinf = (Double_t)GetYmin(QuantityCode);
04273               fYsup = (Double_t)GetYmax(QuantityCode); 
04274               gPad->RangeAxis(fXinf, fYinf, fXsup, fYsup);
04275 
04276 #define DIRN
04277 #ifndef DIRN          
04278               //................. display of the run numbers
04279 
04280               Int_t     nb_pts  = g_graph0->GetN();
04281               Double_t* coord_x = g_graph0->GetX();
04282               //Double_t* coord_y = g_graph0->GetY();
04283               
04284               char* f_in = new char[fgMaxCar];                            fCnew++;
04285 
04286               Double_t interv_displayed = (coord_x[nb_pts-1] - coord_x[0])/(Double_t)nb_displayed;
04287               Double_t last_drawn_coordx = coord_x[0] - 1.5*interv_displayed;
04288 
04289               for(Int_t i_run=0; i_run<nb_pts; i_run++)
04290                 {
04291                   if ( (coord_x[i_run] - last_drawn_coordx) > interv_displayed )
04292                     {
04293                       sprintf( f_in, "R%d",  fT1DRunNumber[i_run]);
04294                       TText *text_run_num = new TText(coord_x[i_run], fYsup, f_in);        fCnewRoot++;
04295                       text_run_num->SetTextAngle((Double_t)45.);
04296                       text_run_num->SetTextSize((Double_t)0.035);
04297                       text_run_num->Draw("SAME");
04298                       last_drawn_coordx = coord_x[i_run];
04299                       // delete text_SMtow_num;             fCdeleteRoot++;
04300                     }
04301                 }
04302               delete [] f_in;                                               fCdelete++;
04303 #endif // DIRN
04304 
04305             }
04306           
04307           if(xMemoPlotSame != 0)
04308             {
04309               if(opt_visu == fOptVisLine && opt_scale == fOptScaleLiny){gPad->SetLogy(liny); g_graph0->Draw();}
04310               if(opt_visu == fOptVisLine && opt_scale == fOptScaleLogy){gPad->SetLogy(logy); g_graph0->Draw();}
04311               if(opt_visu == fOptVisPolm && opt_scale == fOptScaleLiny){gPad->SetLogy(liny); g_graph0->Draw("P");}
04312               if(opt_visu == fOptVisPolm && opt_scale == fOptScaleLogy){gPad->SetLogy(logy); g_graph0->Draw("P");}
04313             }
04314         }
04315       gPad->Update();
04316     }
04317   else    // else du if(main_subpad !=0)
04318     {
04319       cout << "*TCnaViewEB::HistimePlot(...)> WARNING ===> Canvas already removed in option SAME." << endl
04320            << "                               Click again on the same menu entry"
04321            <<" to restart with a new canvas."
04322            << fTTBELL << endl;
04323 
04324       ReInitCanvas(QuantityCode);
04325       xMemoPlotSame = 0;
04326     }
04327 
04328 
04329   //  title_g1->Delete();                 fCdeleteRoot++;
04330   //  com_bot_left->Delete();             fCdeleteRoot++;
04331   //  delete NoiseCorrel;                 fCdeleteRoot++;
04332 
04333 } // end of HistimePlot

void TCnaViewEB::HistoCrystalExpectationValuesOfSamples ( const Int_t &  SMtower_X,
const Int_t &  TowEcha,
const   TString 
)

Definition at line 2853 of file TCnaViewEB.cc.

References fOptVisLine, and ViewHisto().

Referenced by TCnaDialogEB::ViewHistoCrystalExpectationValuesOfSamples().

02855 {
02856   Int_t zero = 0;
02857   ViewHisto(SMtower_X, TowEcha, zero, "Ev", fOptVisLine, first_same_plot);
02858 }

void TCnaViewEB::HistoCrystalPedestalEventNumber ( const Int_t &  SMtower_X,
const Int_t &  TowEcha,
const   TString 
)

Definition at line 2867 of file TCnaViewEB.cc.

References fOptVisLine, and ViewHisto().

Referenced by TCnaDialogEB::ViewHistoCrystalPedestalEventNumber().

02869 {
02870   Int_t zero = 0;
02871   ViewHisto(SMtower_X, TowEcha, zero, "SampTime", fOptVisLine, first_same_plot);
02872 }

void TCnaViewEB::HistoCrystalSigmasOfSamples ( const Int_t &  SMtower_X,
const Int_t &  TowEcha,
const   TString 
)

Definition at line 2860 of file TCnaViewEB.cc.

References fOptVisLine, and ViewHisto().

Referenced by TCnaDialogEB::ViewHistoCrystalSigmasOfSamples().

02862 {
02863   Int_t zero = 0;
02864   ViewHisto(SMtower_X, TowEcha, zero, "Sigma", fOptVisLine, first_same_plot);
02865 }

void TCnaViewEB::HistoPlot ( TH1D *  h_his0,
TCnaReadEB MyRootFile,
TEBNumbering MyNumbering,
const Int_t &  HisSize,
const   TString,
const   TString,
const Int_t &  nb_of_towers,
const Int_t &  SMtower_X,
const Int_t &  TowEcha,
const Int_t &  sample,
const Int_t &  opt_visu,
const Int_t &  opt_scale,
const   TString,
const Int_t &  xFlagAutoYsupMargin 
)

Definition at line 3765 of file TCnaViewEB.cc.

References ActivePad(), ActivePavTxt(), ColorDefinition(), GenMuonPlsPt100GeV_cfg::cout, CreateCanvas(), lat::endl(), fCdelete, fCnew, fCnewRoot, fcom_bot_left, fcom_bot_right, fcom_top_left, fcom_top_mid, fcom_top_right, fCurrentPad, fFapAnaType, fFapFirstEvt, fFapNbOfEvts, fFapRunNumber, fFapSuMoNumber, fgMaxCar, fOnlyOnePlot, fOptScaleLiny, fOptScaleLogy, fOptVisLine, fOptVisPolm, fSeveralPlot, fTextPaveAlign, fTextPaveFont, fTextPaveSize, ftitle_g1, fTTBELL, GetMemoFlag(), TEBNumbering::GetSMCrysFromSMTowAndTowEcha(), GetViewHistoColor(), PutAllPavesViewHisto(), ReInitCanvas(), SetCanvasHeight(), SetCanvasName(), SetCanvasWidth(), SetHistoPresentation(), SetHistoXAxisTitle(), SetHistoYAxisTitle(), SetParametersCanvas(), SetViewHistoColors(), TopAxisForTowerNumbers(), and tt.

Referenced by ViewHisto().

03771 {
03772   // Plot 1D histogram
03773 
03774   UInt_t canv_w = SetCanvasWidth(QuantityCode);
03775   UInt_t canv_h = SetCanvasHeight(QuantityCode);
03776 
03777   //.................................................. prepa paves commentaires (HistoPlot)
03778 
03779   PutAllPavesViewHisto(MyRootFile, MyNumbering, QuantityCode, SMtower_X, TowEcha, sample, opt_plot);
03780     
03781   //..................................................... Canvas name (HistoPlot) 
03782   
03783   TString canvas_name = SetCanvasName(QuantityCode, opt_visu, opt_scale, opt_plot,
03784                                       SMtower_X,    TowEcha,  sample);
03785           
03786   //------------------------------------------------ Canvas allocation
03787 
03788   SetHistoPresentation(h_his0, QuantityType);
03789 
03790   //......................................... declarations canvas et pad  (HistoPlot)
03791   TCanvas*     NoiseCorrel = 0;
03792   TVirtualPad* main_subpad = 0;
03793   TPaveText*   main_pavtxt = 0;
03794 
03795   if(opt_plot == fOnlyOnePlot)
03796     {
03797       NoiseCorrel = new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w , canv_h);   fCnewRoot++;
03798     }
03799 
03800   if(opt_plot == fSeveralPlot)
03801     {
03802       if(GetMemoFlag(QuantityCode) == "Free"){CreateCanvas(QuantityCode, canvas_name, canv_w , canv_h);}
03803     }    
03804 
03805   // cout << "*TCnaViewEB::HistoPlot(...)> Plot is displayed on canvas ----> " << canvas_name.Data() << endl;
03806 
03807   //.................................................. Draw titles (pad = main canvas)
03808   if( opt_plot == fOnlyOnePlot )
03809     {
03810       ftitle_g1->Draw();
03811       fcom_top_left->Draw();
03812 
03813       if( !( QuantityType == "Global" || QuantityType == "Proj" ) )
03814         {fcom_top_mid->Draw(); fcom_top_right->Draw();}
03815 
03816       fcom_bot_left->Draw();
03817       fcom_bot_right->Draw();
03818     }
03819 
03820   //.............................. Init operations on canvas at first call to option SAME  (HistoPlot)
03821           
03822   Int_t xMemoPlotSame = 1;   // a priori ==> SAME plot 
03823 
03824   Int_t last_evt = fFapFirstEvt + fFapNbOfEvts - 1;
03825           
03826   if(opt_plot == fSeveralPlot)
03827     {
03828       if(GetMemoFlag(QuantityCode) == "Free")
03829         {
03830           fCurrentPad = gPad;
03831           ftitle_g1->Draw();
03832 
03833           fcom_top_left->SetTextAlign(fTextPaveAlign);
03834           fcom_top_left->SetTextFont(fTextPaveFont);
03835           fcom_top_left->SetTextSize(fTextPaveSize);
03836 
03837           char* f_in = new char[fgMaxCar];                            fCnew++;
03838           
03839           if(QuantityType == "Evts"      ){sprintf(f_in, "Analysis   RUN  1stEvt LastEvt SM Tower Crystal Sample");}
03840           if(QuantityType == "NotSMRun"  ){sprintf(f_in, "Analysis   RUN  1stEvt LastEvt SM Tower Crystal");}
03841           if(QuantityType == "NotSMNoRun"){sprintf(f_in, "Analysis   1stEvt  LastEvt SM Tower Crystal");}
03842           if(  (QuantityType == "Global")
03843              ||(QuantityType == "Proj")  ){sprintf(f_in, "Analysis   RUN  1stEvt LastEvt SM");}
03844 
03845           TText* ttit = fcom_top_left->AddText(f_in);
03846           ttit->SetTextColor(ColorDefinition("noir"));
03847           
03848           if(QuantityType == "Evts"     )
03849             {
03850               Int_t SM_crys  = MyNumbering->GetSMCrysFromSMTowAndTowEcha(SMtower_X, TowEcha);
03851               sprintf(f_in, "%-8s%6d%8d%8d%3d%6d%8d%7d",
03852                       fFapAnaType.Data(), fFapRunNumber, fFapFirstEvt, last_evt, fFapSuMoNumber,
03853                       SMtower_X, SM_crys, sample);
03854             }
03855 
03856            if( QuantityType == "NotSMRun" )
03857             {
03858               Int_t SM_crys  = MyNumbering->GetSMCrysFromSMTowAndTowEcha(SMtower_X, TowEcha);
03859               sprintf(f_in, "%-8s%6d%8d%8d%3d%6d%8d",
03860                       fFapAnaType.Data(), fFapRunNumber, fFapFirstEvt, last_evt, fFapSuMoNumber,
03861                       SMtower_X, SM_crys);
03862             }
03863 
03864           if( QuantityType == "NotSMNoRun" )
03865             {
03866               Int_t SM_crys  = MyNumbering->GetSMCrysFromSMTowAndTowEcha(SMtower_X, TowEcha);
03867               sprintf(f_in, "%-8s%9d%9d%3d%6d%8d",
03868                      fFapAnaType.Data(), fFapFirstEvt, last_evt, fFapSuMoNumber, SMtower_X, SM_crys);
03869             }
03870 
03871           if( (QuantityType == "Global") || (QuantityType == "Proj")  )
03872             {
03873               sprintf(f_in, "%-8s%6d%8d%8d%3d",
03874                      fFapAnaType.Data(), fFapRunNumber, fFapFirstEvt, last_evt, fFapSuMoNumber);
03875             }
03876 
03877           TText* tt = fcom_top_left->AddText(f_in);
03878           tt->SetTextColor(GetViewHistoColor(QuantityCode));
03879           
03880           delete [] f_in;                                             fCdelete++;
03881 
03882           SetParametersCanvas(QuantityCode); xMemoPlotSame = 0;
03883         }
03884 
03885       //............................ cases fMemoPlotxxx = 1  (HistoPlot)
03886 
03887       if(GetMemoFlag(QuantityCode) == "Busy")
03888         {
03889           main_pavtxt = ActivePavTxt(QuantityCode);
03890           main_subpad = ActivePad(QuantityCode);
03891         }
03892     }
03893 
03894   if(opt_plot == fOnlyOnePlot)
03895     {
03896       fCurrentPad = gPad;
03897       NoiseCorrel->Divide(1, 1, 0.001 , 0.125);
03898       gPad->cd(1);
03899       main_subpad = gPad;
03900       main_subpad->SetPad(0.001,0.125,0.990,0.95);   // PROVISOIRE (20/07/07) <= CA MARCHE !
03901       xMemoPlotSame = 0;
03902     }
03903   
03904   if(main_subpad != 0)
03905     {
03906       if(opt_plot == fSeveralPlot)
03907         {
03908           if(xMemoPlotSame != 0)
03909             {
03910               main_pavtxt->SetTextAlign(fTextPaveAlign);
03911               main_pavtxt->SetTextFont(fTextPaveFont);
03912               main_pavtxt->SetTextSize(fTextPaveSize);
03913               
03914               char* f_in = new char[fgMaxCar];                            fCnew++;
03915 
03916               if(QuantityType == "Evts"     )
03917                 {
03918                   Int_t SM_crys  = MyNumbering->GetSMCrysFromSMTowAndTowEcha(SMtower_X, TowEcha);
03919                   sprintf(f_in, "%-8s%6d%8d%8d%3d%6d%8d%7d",
03920                           fFapAnaType.Data(), fFapRunNumber, fFapFirstEvt, last_evt, fFapSuMoNumber,
03921                           SMtower_X, SM_crys, sample);
03922                 }
03923               
03924               if(QuantityType == "NotSMRun"  )
03925                 {
03926                   Int_t SM_crys  = MyNumbering->GetSMCrysFromSMTowAndTowEcha(SMtower_X, TowEcha);
03927                   sprintf(f_in, "%-8s%6d%8d%8d%3d%6d%8d",
03928                           fFapAnaType.Data(), fFapRunNumber, fFapFirstEvt, last_evt, fFapSuMoNumber,
03929                           SMtower_X, SM_crys);
03930                 }
03931               
03932               if(QuantityType == "NotSMNoRun")
03933                 {
03934                   Int_t SM_crys  = MyNumbering->GetSMCrysFromSMTowAndTowEcha(SMtower_X, TowEcha);
03935                   sprintf(f_in, "%-8s%8d%8d%3d%6d%8d",
03936                           fFapAnaType.Data(), fFapFirstEvt, last_evt, fFapSuMoNumber, SMtower_X, SM_crys);
03937                 }
03938               
03939               if( (QuantityType == "Global") || (QuantityType == "Proj") )
03940                 {
03941                   sprintf(f_in, "%-8s%6d%8d%8d%3d",
03942                           fFapAnaType.Data(), fFapRunNumber, fFapFirstEvt, last_evt, fFapSuMoNumber);
03943                 }
03944                
03945               TText *tt = main_pavtxt->AddText(f_in);
03946               tt->SetTextColor(GetViewHistoColor(QuantityCode));
03947               
03948               delete [] f_in;                                             fCdelete++;
03949             }
03950         }
03951       
03952       main_subpad->cd();
03953     
03954       //............................................ Style      (HistoPlot)
03955       SetViewHistoColors(h_his0, QuantityCode, opt_plot);
03956 
03957       //................................. Set axis titles
03958       TString axis_x_var_name = SetHistoXAxisTitle(QuantityCode);
03959       TString axis_y_var_name = SetHistoYAxisTitle(QuantityCode);
03960       h_his0->GetXaxis()->SetTitle(axis_x_var_name);
03961       h_his0->GetYaxis()->SetTitle(axis_y_var_name);
03962               
03963       Int_t liny = 0;
03964       Int_t logy = 1;
03965               
03966       if(opt_plot == fOnlyOnePlot)
03967         {
03968           if(opt_visu == fOptVisLine && opt_scale == fOptScaleLiny){gPad->SetLogy(liny); h_his0->DrawCopy();}
03969           if(opt_visu == fOptVisLine && opt_scale == fOptScaleLogy){gPad->SetLogy(logy); h_his0->DrawCopy();}
03970           if(opt_visu == fOptVisPolm && opt_scale == fOptScaleLiny){gPad->SetLogy(liny); h_his0->DrawCopy("P");}
03971           if(opt_visu == fOptVisPolm && opt_scale == fOptScaleLogy){gPad->SetLogy(logy); h_his0->DrawCopy("P");}
03972         }
03973               
03974       if(opt_plot == fSeveralPlot)
03975         {
03976           if(xMemoPlotSame == 0)
03977             {
03978               if(opt_visu == fOptVisLine && opt_scale == fOptScaleLiny){gPad->SetLogy(liny); h_his0->DrawCopy();}
03979               if(opt_visu == fOptVisLine && opt_scale == fOptScaleLogy){gPad->SetLogy(logy); h_his0->DrawCopy();}
03980               if(opt_visu == fOptVisPolm && opt_scale == fOptScaleLiny){gPad->SetLogy(liny); h_his0->DrawCopy("P");}
03981               if(opt_visu == fOptVisPolm && opt_scale == fOptScaleLogy){gPad->SetLogy(logy); h_his0->DrawCopy("P");}
03982 
03983             }
03984           if(xMemoPlotSame != 0)
03985             {
03986               if(opt_visu == fOptVisLine && opt_scale == fOptScaleLiny)
03987                 {gPad->SetLogy(liny); h_his0->DrawCopy("SAME");}
03988               if(opt_visu == fOptVisLine && opt_scale == fOptScaleLogy)
03989                 {gPad->SetLogy(logy); h_his0->DrawCopy("SAME");}
03990               if(opt_visu == fOptVisPolm && opt_scale == fOptScaleLiny)
03991                 {gPad->SetLogy(liny); h_his0->DrawCopy("PSAME");}
03992               if(opt_visu == fOptVisPolm && opt_scale == fOptScaleLogy)
03993                 {gPad->SetLogy(logy); h_his0->DrawCopy("PSAME");}
03994             }
03995         }
03996               
03997       //.................... Horizontal line at y=0
03998       if( !(  QuantityCode == "Evts" || QuantityCode == "SampTime" || QuantityType == "Proj" ) )
03999         {  
04000           TLine* lin =  new TLine(0.,0.,(Double_t)HisSize, 0.);   fCnewRoot++;
04001           lin->Draw();
04002         }
04003               
04004       //...................................................... Axis for the tower numbers
04005       if(QuantityType == "Global"){
04006         TopAxisForTowerNumbers(h_his0, opt_plot,    xMemoPlotSame, nb_of_towers,
04007                                xFlagAutoYsupMargin, HisSize);}
04008       
04009       fCurrentPad->cd();
04010       
04011       fcom_top_left->Draw();
04012       gPad->Update();
04013     }
04014   else    // else du if(main_subpad !=0)
04015     {
04016       cout << "*TCnaViewEB::HistoPlot(...)> WARNING ===> Canvas already removed in option SAME." << endl
04017            << "                             Click again on the same menu entry"
04018            <<" to restart with a new canvas."
04019            << fTTBELL << endl;
04020 
04021       ReInitCanvas(QuantityCode);
04022       xMemoPlotSame = 0;
04023     }
04024 
04025   //  title_g1->Delete();                 fCdeleteRoot++;
04026   //  com_bot_left->Delete();             fCdeleteRoot++;
04027   //  delete NoiseCorrel;                 fCdeleteRoot++;
04028 
04029 } // end of HistoPlot

void TCnaViewEB::HistoSampleEventDistribution ( const Int_t &  SMtower_X,
const Int_t &  TowEcha,
const Int_t &  sample,
const   TString 
)

Definition at line 2875 of file TCnaViewEB.cc.

References fOptVisLine, and ViewHisto().

Referenced by TCnaDialogEB::ViewHistoSampleEventDistribution().

02877 {
02878   ViewHisto(SMtower_X, TowEcha, sample, "Evts", fOptVisLine, first_same_plot);
02879 }

Int_t TCnaViewEB::HistoSetMinMax ( TH1D *  h_his0,
const   TString 
)

Definition at line 3649 of file TCnaViewEB.cc.

References fEvYmax, fEvYmin, fSampTimeYmax, fSampTimeYmin, fSigmaYmax, fSigmaYmin, fSMCorccInTowersYmax, fSMCorccInTowersYmin, fSMEvCorssGlobalYmax, fSMEvCorssGlobalYmin, fSMEvCorssProjYmax, fSMEvCorssProjYmin, fSMEvCorttMatrixYmax, fSMEvCorttMatrixYmin, fSMEvEvGlobalYmax, fSMEvEvGlobalYmin, fSMEvEvProjYmax, fSMEvEvProjYmin, fSMEvSigGlobalYmax, fSMEvSigGlobalYmin, fSMEvSigProjYmax, fSMEvSigProjYmin, fSMFoundEvtsGlobalYmax, fSMFoundEvtsGlobalYmin, fSMFoundEvtsProjYmax, fSMFoundEvtsProjYmin, fSMSigCorssGlobalYmax, fSMSigCorssGlobalYmin, fSMSigCorssProjYmax, fSMSigCorssProjYmin, fSMSigEvGlobalYmax, fSMSigEvProjYmax, fSMSigEvProjYmin, fSMSigSigGlobalYmax, fSMSigSigGlobalYmin, fSMSigSigProjYmax, and fSMSigSigProjYmin.

Referenced by EtaPhiSuperModuleCorccMeanOverSamples(), ViewHisto(), ViewMatrix(), ViewSuperModule(), and ViewTower().

03650 {
03651 // Set min and max according to QuantityCode
03652   
03653   // if Ymin = Ymax (or Ymin > Ymax): nothing done here
03654   // return xFlagAutoYsupMargin = 1
03655   //
03656   // if Ymin < Ymax: min and max calculated by h_his0->SetMinimum() and h_his0->SetMaximum()
03657   // return xFlagAutoYsupMargin = 0
03658 
03659   Int_t xFlagAutoYsupMargin = 1;  
03660 
03661   if(QuantityCode == "SMFoundEvtsGlobal"){ 
03662     if(fSMFoundEvtsGlobalYmin < fSMFoundEvtsGlobalYmax){xFlagAutoYsupMargin = 0;
03663     h_his0->SetMinimum(fSMFoundEvtsGlobalYmin);  h_his0->SetMaximum(fSMFoundEvtsGlobalYmax);}}
03664   
03665   if(QuantityCode == "SMFoundEvtsProj"){
03666     if(fSMFoundEvtsProjYmin < fSMFoundEvtsProjYmax){xFlagAutoYsupMargin = 0;
03667     h_his0->SetMinimum(fSMFoundEvtsProjYmin); h_his0->SetMaximum(fSMFoundEvtsProjYmax);}}
03668   
03669   if(QuantityCode == "SMEvEvGlobal"){
03670     if(fSMEvEvGlobalYmin < fSMEvEvGlobalYmax){xFlagAutoYsupMargin = 0;
03671         h_his0->SetMinimum(fSMEvEvGlobalYmin);  h_his0->SetMaximum(fSMEvEvGlobalYmax);}}
03672   
03673   if(QuantityCode == "SMEvEvProj"){
03674     if(fSMEvEvProjYmin < fSMEvEvProjYmax){xFlagAutoYsupMargin = 0;
03675     h_his0->SetMinimum(fSMEvEvProjYmin); h_his0->SetMaximum(fSMEvEvProjYmax);}}
03676   
03677   if(QuantityCode == "SMEvSigGlobal"){
03678     if(fSMEvSigGlobalYmin < fSMEvSigGlobalYmax){xFlagAutoYsupMargin = 0;
03679     h_his0->SetMinimum(fSMEvSigGlobalYmin); h_his0->SetMaximum(fSMEvSigGlobalYmax);}}
03680   
03681   if(QuantityCode == "SMEvSigProj"){
03682     if(fSMEvSigProjYmin < fSMEvSigProjYmax){xFlagAutoYsupMargin = 0;
03683     h_his0->SetMinimum(fSMEvSigProjYmin); h_his0->SetMaximum(fSMEvSigProjYmax);}}
03684   
03685   if(QuantityCode == "SMSigEvGlobal"){
03686     if(fSMEvSigGlobalYmin < fSMSigEvGlobalYmax){xFlagAutoYsupMargin = 0;
03687     h_his0->SetMinimum(fSMEvSigGlobalYmin); h_his0->SetMaximum(fSMSigEvGlobalYmax);}}
03688   
03689   if(QuantityCode == "SMSigEvProj"){
03690     if(fSMSigEvProjYmin < fSMSigEvProjYmax){xFlagAutoYsupMargin = 0;
03691     h_his0->SetMinimum(fSMSigEvProjYmin); h_his0->SetMaximum(fSMSigEvProjYmax);}}
03692   
03693   if(QuantityCode == "SMSigSigGlobal"){
03694     if(fSMSigSigGlobalYmin < fSMSigSigGlobalYmax){xFlagAutoYsupMargin = 0;
03695     h_his0->SetMinimum(fSMSigSigGlobalYmin); h_his0->SetMaximum(fSMSigSigGlobalYmax);}}
03696   
03697   if(QuantityCode == "SMSigSigProj"){
03698     if(fSMSigSigProjYmin < fSMSigSigProjYmax){xFlagAutoYsupMargin = 0;
03699     h_his0->SetMinimum(fSMSigSigProjYmin); h_his0->SetMaximum(fSMSigSigProjYmax);}}
03700   
03701   if(QuantityCode == "SMEvCorssGlobal"){
03702     if(fSMEvCorssGlobalYmin < fSMEvCorssGlobalYmax){xFlagAutoYsupMargin = 0;
03703     h_his0->SetMinimum(fSMEvCorssGlobalYmin); h_his0->SetMaximum(fSMEvCorssGlobalYmax);}}
03704   
03705   if(QuantityCode == "SMEvCorssProj"){
03706     if(fSMEvCorssProjYmin < fSMEvCorssProjYmax){xFlagAutoYsupMargin = 0;
03707     h_his0->SetMinimum(fSMEvCorssProjYmin); h_his0->SetMaximum(fSMEvCorssProjYmax);}}
03708   
03709   if(QuantityCode == "SMSigCorssGlobal"){
03710     if(fSMSigCorssGlobalYmin < fSMSigCorssGlobalYmax){xFlagAutoYsupMargin = 0;
03711     h_his0->SetMinimum(fSMSigCorssGlobalYmin); h_his0->SetMaximum(fSMSigCorssGlobalYmax);}}
03712   
03713   if(QuantityCode == "SMSigCorssProj"){
03714     if(fSMSigCorssProjYmin < fSMSigCorssProjYmax){xFlagAutoYsupMargin = 0;
03715     h_his0->SetMinimum(fSMSigCorssProjYmin); h_his0->SetMaximum(fSMSigCorssProjYmax);}}
03716   
03717   if(QuantityCode == "Ev"){
03718     if(fEvYmin < fEvYmax){xFlagAutoYsupMargin = 0;
03719     h_his0->SetMinimum(fEvYmin); h_his0->SetMaximum(fEvYmax);}}
03720   
03721   if(QuantityCode == "Sigma"){
03722     if(fSigmaYmin < fSigmaYmax){xFlagAutoYsupMargin = 0;
03723     h_his0->SetMinimum(fSigmaYmin); h_his0->SetMaximum(fSigmaYmax);}}
03724   
03725   if(QuantityCode == "SampTime"){
03726     if(fSampTimeYmin < fSampTimeYmax){xFlagAutoYsupMargin = 0;
03727     h_his0->SetMinimum(fSampTimeYmin); h_his0->SetMaximum(fSampTimeYmax);}}
03728 
03729   if(QuantityCode == "SMCorccInTowers"){
03730     if(fSMCorccInTowersYmin < fSMCorccInTowersYmax){xFlagAutoYsupMargin = 0;
03731     h_his0->SetMinimum(fSMCorccInTowersYmin); h_his0->SetMaximum(fSMCorccInTowersYmax);}}
03732 
03733   if(QuantityCode == "SMEvCorttMatrix"){
03734     if(fSMEvCorttMatrixYmin < fSMEvCorttMatrixYmax){xFlagAutoYsupMargin = 0;
03735     h_his0->SetMinimum(fSMEvCorttMatrixYmin); h_his0->SetMaximum(fSMEvCorttMatrixYmax);}}
03736 
03737   return xFlagAutoYsupMargin;  
03738 } // end of  HistoSetMinMax

void TCnaViewEB::HistoSuperModuleFoundEventsDistribution ( const   TString  ) 

Definition at line 2774 of file TCnaViewEB.cc.

References fOptVisLine, and ViewHisto().

Referenced by TCnaDialogEB::ViewHistoSuperModuleFoundEventsDistribution().

02775 {
02776   Int_t zero = 0;
02777   ViewHisto(zero, zero, zero, "SMFoundEvtsProj", fOptVisLine, first_same_plot);
02778 }

void TCnaViewEB::HistoSuperModuleFoundEventsOfCrystals ( const   TString  ) 

Definition at line 2768 of file TCnaViewEB.cc.

References fOptVisLine, and ViewHisto().

Referenced by TCnaDialogEB::ViewHistoSuperModuleFoundEventsOfCrystals().

02769 {
02770   Int_t zero = 0;
02771   ViewHisto(zero, zero, zero, "SMFoundEvtsGlobal", fOptVisLine, first_same_plot);
02772 }

void TCnaViewEB::HistoSuperModuleMeanOfCorssDistribution ( const   TString  ) 

Definition at line 2810 of file TCnaViewEB.cc.

References fOptVisLine, and ViewHisto().

Referenced by TCnaDialogEB::ViewHistoSuperModuleMeanOfCorssDistribution().

02811 {
02812   Int_t zero = 0;
02813   ViewHisto(zero, zero, zero, "SMEvCorssProj", fOptVisLine, first_same_plot);
02814 }

void TCnaViewEB::HistoSuperModuleMeanOfCorssOfCrystals ( const   TString  ) 

Definition at line 2804 of file TCnaViewEB.cc.

References fOptVisLine, and ViewHisto().

Referenced by TCnaDialogEB::ViewHistoSuperModuleMeanOfCorssOfCrystals().

02805 {
02806   Int_t zero = 0;
02807   ViewHisto(zero, zero, zero, "SMEvCorssGlobal", fOptVisLine, first_same_plot);
02808 }

void TCnaViewEB::HistoSuperModuleMeanOfSampleSigmasDistribution ( const   TString  ) 

Definition at line 2799 of file TCnaViewEB.cc.

References fOptVisLine, and ViewHisto().

Referenced by TCnaDialogEB::ViewHistoSuperModuleMeanOfSampleSigmasDistribution().

02800 {
02801   Int_t zero = 0;
02802   ViewHisto(zero, zero, zero, "SMEvSigProj", fOptVisLine, first_same_plot);
02803 }

void TCnaViewEB::HistoSuperModuleMeanOfSampleSigmasOfCrystals ( const   TString  ) 

Definition at line 2793 of file TCnaViewEB.cc.

References fOptVisLine, and ViewHisto().

Referenced by TCnaDialogEB::ViewHistoSuperModuleMeanOfSampleSigmasOfCrystals().

02794 {
02795   Int_t zero = 0;
02796   ViewHisto(zero, zero, zero, "SMEvSigGlobal", fOptVisLine, first_same_plot);
02797 }

void TCnaViewEB::HistoSuperModuleMeanPedestalsDistribution ( const   TString  ) 

Definition at line 2787 of file TCnaViewEB.cc.

References fOptVisLine, and ViewHisto().

Referenced by TCnaDialogEB::ViewHistoSuperModuleMeanPedestalsDistribution().

02788 {
02789   Int_t zero = 0;
02790   ViewHisto(zero, zero, zero, "SMEvEvProj", fOptVisLine, first_same_plot);
02791 }

void TCnaViewEB::HistoSuperModuleMeanPedestalsOfCrystals ( const   TString  ) 

Definition at line 2781 of file TCnaViewEB.cc.

References fOptVisLine, and ViewHisto().

Referenced by TCnaDialogEB::ViewHistoSuperModuleMeanPedestalsOfCrystals().

02782 {
02783   Int_t zero = 0;
02784   ViewHisto(zero, zero, zero, "SMEvEvGlobal", fOptVisLine, first_same_plot);
02785 }

void TCnaViewEB::HistoSuperModuleSigmaOfCorssDistribution ( const   TString  ) 

Definition at line 2847 of file TCnaViewEB.cc.

References fOptVisLine, and ViewHisto().

Referenced by TCnaDialogEB::ViewHistoSuperModuleSigmaOfCorssDistribution().

02848 {
02849   Int_t zero = 0;
02850   ViewHisto(zero, zero, zero, "SMSigCorssProj", fOptVisLine, first_same_plot);
02851 }

void TCnaViewEB::HistoSuperModuleSigmaOfCorssOfCrystals ( const   TString  ) 

Definition at line 2841 of file TCnaViewEB.cc.

References fOptVisLine, and ViewHisto().

Referenced by TCnaDialogEB::ViewHistoSuperModuleSigmaOfCorssOfCrystals().

02842 {
02843   Int_t zero = 0;
02844   ViewHisto(zero, zero, zero, "SMSigCorssGlobal", fOptVisLine, first_same_plot);
02845 }

void TCnaViewEB::HistoSuperModuleSigmaOfSampleSigmasDistribution ( const   TString  ) 

Definition at line 2835 of file TCnaViewEB.cc.

References fOptVisLine, and ViewHisto().

Referenced by TCnaDialogEB::ViewHistoSuperModuleSigmaOfSampleSigmasDistribution().

02836 {
02837   Int_t zero = 0;
02838   //  SetHistoScaleY("LOG");
02839   ViewHisto(zero, zero, zero, "SMSigSigProj", fOptVisLine, first_same_plot);
02840 }

void TCnaViewEB::HistoSuperModuleSigmaOfSampleSigmasOfCrystals ( const   TString  ) 

Definition at line 2829 of file TCnaViewEB.cc.

References fOptVisLine, and ViewHisto().

Referenced by TCnaDialogEB::ViewHistoSuperModuleSigmaOfSampleSigmasOfCrystals().

02830 {
02831   Int_t zero = 0;
02832   ViewHisto(zero, zero, zero, "SMSigSigGlobal", fOptVisLine, first_same_plot);
02833 }

void TCnaViewEB::HistoSuperModuleSigmaPedestalsDistribution ( const   TString  ) 

Definition at line 2823 of file TCnaViewEB.cc.

References fOptVisLine, and ViewHisto().

Referenced by TCnaDialogEB::ViewHistoSuperModuleSigmaPedestalsDistribution().

02824 {
02825   Int_t zero = 0;
02826   ViewHisto(zero, zero, zero, "SMSigEvProj", fOptVisLine, first_same_plot);
02827 }

void TCnaViewEB::HistoSuperModuleSigmaPedestalsOfCrystals ( const   TString  ) 

Definition at line 2817 of file TCnaViewEB.cc.

References fOptVisLine, and ViewHisto().

Referenced by TCnaDialogEB::ViewHistoSuperModuleSigmaPedestalsOfCrystals().

02818 {
02819   Int_t zero = 0; 
02820   ViewHisto(zero, zero, zero, "SMSigEvGlobal", fOptVisLine, first_same_plot);
02821 }

void TCnaViewEB::Init ( void   ) 

Definition at line 269 of file TCnaViewEB.cc.

References fCanvEv, fCanvEvolEvCorss, fCanvEvolEvEv, fCanvEvolEvSig, fCanvEvts, fCanvSameEv, fCanvSameEvolEvCorss, fCanvSameEvolEvEv, fCanvSameEvolEvSig, fCanvSameEvts, fCanvSameSampTime, fCanvSameSigma, fCanvSameSMEvCorssGlobal, fCanvSameSMEvCorssProj, fCanvSameSMEvEvGlobal, fCanvSameSMEvEvProj, fCanvSameSMEvSigGlobal, fCanvSameSMEvSigProj, fCanvSameSMFoundEvtsGlobal, fCanvSameSMFoundEvtsProj, fCanvSameSMSigCorssGlobal, fCanvSameSMSigCorssProj, fCanvSameSMSigEvGlobal, fCanvSameSMSigEvProj, fCanvSameSMSigSigGlobal, fCanvSameSMSigSigProj, fCanvSampTime, fCanvSigma, fCanvSMEvCorssGlobal, fCanvSMEvCorssProj, fCanvSMEvEvGlobal, fCanvSMEvEvProj, fCanvSMEvSigGlobal, fCanvSMEvSigProj, fCanvSMFoundEvtsGlobal, fCanvSMFoundEvtsProj, fCanvSMSigCorssGlobal, fCanvSMSigCorssProj, fCanvSMSigEvGlobal, fCanvSMSigEvProj, fCanvSMSigSigGlobal, fCanvSMSigSigProj, fCdelete, fCdeleteRoot, fCnaCommand, fCnaError, fCnew, fCnewRoot, fCurrentPad, fFapFileRuns, fFapMaxNbOfRuns, fFapNbOfRuns, fFlagScaleX, fFlagScaleY, fgMaxCar, fImpEv, fImpEvolEvCorss, fImpEvolEvEv, fImpEvolEvSig, fImpEvts, fImpSampTime, fImpSigma, fImpSMEvCorssGlobal, fImpSMEvCorssProj, fImpSMEvEvGlobal, fImpSMEvEvProj, fImpSMEvSigGlobal, fImpSMEvSigProj, fImpSMFoundEvtsGlobal, fImpSMFoundEvtsProj, fImpSMSigCorssGlobal, fImpSMSigCorssProj, fImpSMSigEvGlobal, fImpSMSigEvProj, fImpSMSigSigGlobal, fImpSMSigSigProj, fMaxNbColLine, fMemoColorEv, fMemoColorEvolEvCorss, fMemoColorEvolEvEv, fMemoColorEvolEvSig, fMemoColorEvts, fMemoColorSampTime, fMemoColorSigma, fMemoColorSMEvCorssGlobal, fMemoColorSMEvCorssProj, fMemoColorSMEvEvGlobal, fMemoColorSMEvEvProj, fMemoColorSMEvSigGlobal, fMemoColorSMEvSigProj, fMemoColorSMFoundEvtsGlobal, fMemoColorSMFoundEvtsProj, fMemoColorSMSigCorssGlobal, fMemoColorSMSigCorssProj, fMemoColorSMSigEvGlobal, fMemoColorSMSigEvProj, fMemoColorSMSigSigGlobal, fMemoColorSMSigSigProj, fMemoPlotEv, fMemoPlotEvolEvCorss, fMemoPlotEvolEvEv, fMemoPlotEvolEvSig, fMemoPlotEvts, fMemoPlotSampTime, fMemoPlotSigma, fMemoPlotSMEvCorssGlobal, fMemoPlotSMEvCorssProj, fMemoPlotSMEvEvGlobal, fMemoPlotSMEvEvProj, fMemoPlotSMEvSigGlobal, fMemoPlotSMEvSigProj, fMemoPlotSMFoundEvtsGlobal, fMemoPlotSMFoundEvtsProj, fMemoPlotSMSigCorssGlobal, fMemoPlotSMSigCorssProj, fMemoPlotSMSigEvGlobal, fMemoPlotSMSigEvProj, fMemoPlotSMSigSigGlobal, fMemoPlotSMSigSigProj, fNbBinsProj, fNbOfExistingRuns, fNbOfListFileEvolEvCorss, fNbOfListFileEvolEvEv, fNbOfListFileEvolEvSig, fOnlyOnePlot, fOptMatCor, fOptMatCov, fOptMcc, fOptMss, fOptMtt, fOptScaleLiny, fOptScaleLogy, fOptVisLine, fOptVisPolm, fPadEv, fPadEvolEvCorss, fPadEvolEvEv, fPadEvolEvSig, fPadEvts, fPadSampTime, fPadSigma, fPadSMEvCorssGlobal, fPadSMEvCorssProj, fPadSMEvEvGlobal, fPadSMEvEvProj, fPadSMEvSigGlobal, fPadSMEvSigProj, fPadSMFoundEvtsGlobal, fPadSMFoundEvtsProj, fPadSMSigCorssGlobal, fPadSMSigCorssProj, fPadSMSigEvGlobal, fPadSMSigEvProj, fPadSMSigSigGlobal, fPadSMSigSigProj, fParameters, fPavTxtEv, fPavTxtEvolEvCorss, fPavTxtEvolEvEv, fPavTxtEvolEvSig, fPavTxtEvts, fPavTxtSampTime, fPavTxtSigma, fPavTxtSMEvCorssGlobal, fPavTxtSMEvCorssProj, fPavTxtSMEvEvGlobal, fPavTxtSMEvEvProj, fPavTxtSMEvSigGlobal, fPavTxtSMEvSigProj, fPavTxtSMFoundEvtsGlobal, fPavTxtSMFoundEvtsProj, fPavTxtSMSigCorssGlobal, fPavTxtSMSigCorssProj, fPavTxtSMSigEvGlobal, fPavTxtSMSigEvProj, fPavTxtSMSigSigGlobal, fPavTxtSMSigSigProj, fSeveralPlot, fT1DAnaType, fT1DFirstEvt, fT1DListOfRunsFilePath, fT1DNbOfEvts, fT1DResultsRootFilePath, fT1DRunNumber, fT1DSuMoNumber, fTextPaveAlign, fTextPaveFont, fTextPaveSize, fTTBELL, GetPathForListOfRunFiles(), GetPathForResultsRootFiles(), PutYmax(), PutYmin(), and TCnaParameters::SetPeriodTitles().

Referenced by TCnaViewEB().

00270 {
00271 //========================= GENERAL INITIALISATION 
00272 
00273   fCnew        = 0;
00274   fCdelete     = 0;
00275   fCnewRoot    = 0;
00276   fCdeleteRoot = 0;
00277 
00278   fCnaCommand  = 0;
00279   fCnaError    = 0;
00280 
00281   fgMaxCar = (Int_t)512;
00282 
00283   //------------------------------ initialisations ----------------------
00284 
00285   fTTBELL = '\007';
00286 
00287   fT1DAnaType             = 0;
00288   fT1DRunNumber           = 0;
00289   fT1DFirstEvt            = 0;
00290   fT1DNbOfEvts            = 0;
00291   fT1DSuMoNumber          = 0;
00292   fT1DResultsRootFilePath = 0;
00293   fT1DListOfRunsFilePath  = 0;
00294   //........................ init CNA paraneters
00295 
00296   fParameters = new TCnaParameters();                  fCnew++;
00297   fParameters->SetPeriodTitles();       // define the titles of the different periods of run
00298 
00299   //........................ init code plot type
00300   Int_t MaxCar = fgMaxCar;
00301   fOnlyOnePlot.Resize(MaxCar);
00302   fOnlyOnePlot = "ONLYONE";
00303 
00304   MaxCar = fgMaxCar;
00305   fSeveralPlot.Resize(MaxCar);
00306   fSeveralPlot = "SEVERAL";
00307 
00308   //.......... init flags Same plot
00309   fMemoPlotSMFoundEvtsGlobal = 0; fMemoPlotSMFoundEvtsProj = 0;
00310   fMemoPlotSMEvEvGlobal      = 0; fMemoPlotSMEvEvProj      = 0;
00311   fMemoPlotSMEvSigGlobal     = 0; fMemoPlotSMEvSigProj     = 0; 
00312   fMemoPlotSMEvCorssGlobal   = 0; fMemoPlotSMEvCorssProj   = 0;
00313   fMemoPlotSMSigEvGlobal     = 0; fMemoPlotSMSigEvProj     = 0; 
00314   fMemoPlotSMSigSigGlobal    = 0; fMemoPlotSMSigSigProj    = 0; 
00315   fMemoPlotSMSigCorssGlobal  = 0; fMemoPlotSMSigCorssProj  = 0; 
00316   fMemoPlotEv                = 0; fMemoPlotSigma           = 0;
00317   fMemoPlotEvts              = 0; fMemoPlotSampTime        = 0;
00318   fMemoPlotEvolEvEv          = 0; fMemoPlotEvolEvSig       = 0;
00319   fMemoPlotEvolEvCorss       = 0;
00320 
00321   //.......... init flags colors
00322   fMemoColorSMFoundEvtsGlobal = 0; fMemoColorSMFoundEvtsProj = 0;
00323   fMemoColorSMEvEvGlobal      = 0; fMemoColorSMEvEvProj      = 0;
00324   fMemoColorSMEvSigGlobal     = 0; fMemoColorSMEvSigProj     = 0; 
00325   fMemoColorSMEvCorssGlobal   = 0; fMemoColorSMEvCorssProj   = 0;
00326   fMemoColorSMSigEvGlobal     = 0; fMemoColorSMSigEvProj     = 0; 
00327   fMemoColorSMSigSigGlobal    = 0; fMemoColorSMSigSigProj    = 0; 
00328   fMemoColorSMSigCorssGlobal  = 0; fMemoColorSMSigCorssProj  = 0; 
00329   fMemoColorEv                = 0; fMemoColorSigma           = 0;
00330   fMemoColorEvts              = 0; fMemoColorSampTime        = 0;
00331   fMemoColorEvolEvEv          = 0; fMemoColorEvolEvSig       = 0;
00332   fMemoColorEvolEvCorss       = 0;
00333 
00334   //.......... init counter Same canvas
00335   fCanvSameSMFoundEvtsGlobal = 0; fCanvSameSMFoundEvtsProj = 0;
00336   fCanvSameSMEvEvGlobal      = 0; fCanvSameSMEvEvProj      = 0;
00337   fCanvSameSMEvSigGlobal     = 0; fCanvSameSMEvSigProj     = 0; 
00338   fCanvSameSMEvCorssGlobal   = 0; fCanvSameSMEvCorssProj   = 0;
00339   fCanvSameSMSigEvGlobal     = 0; fCanvSameSMSigEvProj     = 0; 
00340   fCanvSameSMSigSigGlobal    = 0; fCanvSameSMSigSigProj    = 0; 
00341   fCanvSameSMSigCorssGlobal  = 0; fCanvSameSMSigCorssProj  = 0; 
00342   fCanvSameEv                = 0; fCanvSameSigma           = 0;
00343   fCanvSameEvts              = 0; fCanvSameSampTime        = 0;
00344   fCanvSameEvolEvEv          = 0; fCanvSameEvolEvSig       = 0;
00345   fCanvSameEvolEvCorss       = 0;
00346 
00347   //......... init ymin,ymax histos
00348   // Default values for Ymin and Ymax
00349 
00350   PutYmin("SMFoundEvtsGlobal", (Double_t)0.);
00351   PutYmax("SMFoundEvtsGlobal", (Double_t)500.);
00352 
00353   PutYmin("SMFoundEvtsProj",   (Double_t)0.1);
00354   PutYmax("SMFoundEvtsProj",   (Double_t)1000.);
00355 
00356   PutYmin("SMEvEvGlobal",      (Double_t)0.);
00357   PutYmax("SMEvEvGlobal",      (Double_t)500.);
00358 
00359   PutYmin("SMEvEvProj",        (Double_t)0.1);
00360   PutYmax("SMEvEvProj",        (Double_t)1000.);
00361 
00362   PutYmin("SMEvSigGlobal",     (Double_t)0.);
00363   PutYmax("SMEvSigGlobal",     (Double_t)5.);
00364 
00365   PutYmin("SMEvSigProj",       (Double_t)0.1);
00366   PutYmax("SMEvSigProj",       (Double_t)1000.);
00367 
00368   PutYmin("SMEvCorssGlobal",   (Double_t)-1.);
00369   PutYmax("SMEvCorssGlobal",   (Double_t)1.);
00370 
00371   PutYmin("SMEvCorssProj",     (Double_t)0.1);
00372   PutYmax("SMEvCorssProj",     (Double_t)1000.);
00373 
00374   PutYmin("SMSigEvGlobal",     (Double_t)0.);
00375   PutYmax("SMSigEvGlobal",     (Double_t)1.);
00376 
00377   PutYmin("SMSigEvProj",       (Double_t)0.1);
00378   PutYmax("SMSigEvProj",       (Double_t)1000.);
00379 
00380   PutYmin("SMSigSigGlobal",    (Double_t)0.);
00381   PutYmax("SMSigSigGlobal",    (Double_t)1.);
00382 
00383   PutYmin("SMSigSigProj",      (Double_t)0.1);
00384   PutYmax("SMSigSigProj",      (Double_t)1000.);
00385 
00386   PutYmin("SMSigCorssGlobal",  (Double_t)(-1.));
00387   PutYmax("SMSigCorssGlobal",  (Double_t)1.);
00388 
00389   PutYmin("SMSigCorssProj",    (Double_t)0.1);
00390   PutYmax("SMSigCorssProj",    (Double_t)1000.);
00391 
00392   PutYmin("SMEvCorttMatrix",   (Double_t)(-1.));
00393   PutYmax("SMEvCorttMatrix",   (Double_t)1.);
00394 
00395   PutYmin("SMEvCovttMatrix",   (Double_t)0.);
00396   PutYmax("SMEvCovttMatrix",   (Double_t)10.);
00397 
00398   PutYmin("SMCorccInTowers",   (Double_t)-0.05);
00399   PutYmax("SMCorccInTowers",   (Double_t) 0.05);
00400 
00401   PutYmin("Ev",                (Double_t)0.);
00402   PutYmax("Ev",                (Double_t)500.);
00403 
00404   PutYmin("Sigma",             (Double_t)0.);
00405   PutYmax("Sigma",             (Double_t)5.);
00406 
00407   PutYmin("Evts",              (Double_t)0.);
00408   PutYmax("Evts",              (Double_t)500.);
00409 
00410   PutYmin("SampTime",          (Double_t)0.);
00411   PutYmax("SampTime",          (Double_t)500.);
00412 
00413   PutYmin("EvolEv",            (Double_t)0.);
00414   PutYmax("EvolEv",            (Double_t)500.);
00415 
00416   PutYmin("EvolSig",           (Double_t)0.);
00417   PutYmax("EvolSig",           (Double_t)5.);
00418 
00419   PutYmin("EvolCorss",         (Double_t)(-1.));
00420   PutYmax("EvolCorss",         (Double_t)1.);
00421 
00422 
00423   //................. Flag Scale X anf Y set to "LIN"
00424 
00425   MaxCar = fgMaxCar;
00426   fFlagScaleX.Resize(MaxCar);
00427   fFlagScaleX = "LIN";
00428 
00429   MaxCar = fgMaxCar;
00430   fFlagScaleY.Resize(MaxCar);
00431   fFlagScaleY = "LIN";
00432 
00433   //................. Init codes Options
00434 
00435   fOptScaleLiny = 31400;
00436   fOptScaleLogy = 31401;
00437 
00438   fOptVisLine  = 1101; 
00439   fOptVisPolm  = 1102;
00440 
00441   fOptMatCov   = 101;
00442   fOptMatCor   = 102;
00443 
00444   MaxCar = fgMaxCar;
00445   fOptMcc.Resize(MaxCar);
00446   fOptMcc      = "Crystal";
00447 
00448   MaxCar = fgMaxCar;
00449   fOptMss.Resize(MaxCar);
00450   fOptMss      = "Sample";
00451 
00452   MaxCar = fgMaxCar;
00453   fOptMtt.Resize(MaxCar);
00454   fOptMtt      = "Tower";  
00455 
00456   //.......................... text pave alignement
00457 
00458   fTextPaveAlign = 12;              // 1 = left adjusted, 2 = vertically centered
00459   fTextPaveFont  = 100;             // 10*10 = 10*(ID10 = Courier New)
00460   fTextPaveSize  = (Float_t)0.03;   // 0.95 = 95% of the pave size
00461 
00462   //......................... Init canvas/pad pointers
00463   
00464   fCanvSMFoundEvtsGlobal = 0;
00465   fCanvSMFoundEvtsProj   = 0;
00466   fCanvSMEvEvGlobal      = 0;
00467   fCanvSMEvEvProj        = 0;
00468   fCanvSMEvSigGlobal     = 0;   
00469   fCanvSMEvSigProj       = 0; 
00470   fCanvSMEvCorssGlobal   = 0; 
00471   fCanvSMEvCorssProj     = 0;
00472   fCanvSMSigEvGlobal     = 0;
00473   fCanvSMSigEvProj       = 0; 
00474   fCanvSMSigSigGlobal    = 0;   
00475   fCanvSMSigSigProj      = 0; 
00476   fCanvSMSigCorssGlobal  = 0; 
00477   fCanvSMSigCorssProj    = 0; 
00478   fCanvEv                = 0;
00479   fCanvSigma             = 0;  
00480   fCanvEvts              = 0;     
00481   fCanvSampTime          = 0;
00482   fCanvEvolEvEv          = 0;
00483   fCanvEvolEvSig         = 0;
00484   fCanvEvolEvCorss       = 0;
00485   
00486   fCurrentPad           = 0;
00487 
00488   fPadSMFoundEvtsGlobal = 0;
00489   fPadSMFoundEvtsProj   = 0;
00490   fPadSMEvEvGlobal      = 0;
00491   fPadSMEvEvProj        = 0;
00492   fPadSMEvSigGlobal     = 0;   
00493   fPadSMEvSigProj       = 0; 
00494   fPadSMEvCorssGlobal   = 0; 
00495   fPadSMEvCorssProj     = 0;
00496   fPadSMSigEvGlobal     = 0;
00497   fPadSMSigEvProj       = 0; 
00498   fPadSMSigSigGlobal    = 0;   
00499   fPadSMSigSigProj      = 0; 
00500   fPadSMSigCorssGlobal  = 0; 
00501   fPadSMSigCorssProj    = 0; 
00502   fPadEv                = 0;
00503   fPadSigma             = 0;
00504   fPadEvts              = 0;
00505   fPadSampTime          = 0;
00506   fPadEvolEvEv          = 0;
00507   fPadEvolEvSig         = 0;
00508   fPadEvolEvCorss       = 0;
00509 
00510   fPavTxtSMFoundEvtsGlobal = 0;
00511   fPavTxtSMFoundEvtsProj   = 0;
00512   fPavTxtSMEvEvGlobal      = 0;
00513   fPavTxtSMEvEvProj        = 0;
00514   fPavTxtSMEvSigGlobal     = 0;   
00515   fPavTxtSMEvSigProj       = 0; 
00516   fPavTxtSMEvCorssGlobal   = 0; 
00517   fPavTxtSMEvCorssProj     = 0;
00518   fPavTxtSMSigEvGlobal     = 0;
00519   fPavTxtSMSigEvProj       = 0; 
00520   fPavTxtSMSigSigGlobal    = 0;   
00521   fPavTxtSMSigSigProj      = 0; 
00522   fPavTxtSMSigCorssGlobal  = 0; 
00523   fPavTxtSMSigCorssProj    = 0; 
00524   fPavTxtEv                = 0;
00525   fPavTxtSigma             = 0;
00526   fPavTxtEvts              = 0;
00527   fPavTxtSampTime          = 0;
00528   fPavTxtEvolEvEv          = 0;
00529   fPavTxtEvolEvSig         = 0;
00530   fPavTxtEvolEvCorss       = 0;
00531 
00532   fImpSMFoundEvtsGlobal = 0;
00533   fImpSMFoundEvtsProj   = 0;
00534   fImpSMEvEvGlobal      = 0;
00535   fImpSMEvEvProj        = 0;
00536   fImpSMEvSigGlobal     = 0;   
00537   fImpSMEvSigProj       = 0; 
00538   fImpSMEvCorssGlobal   = 0; 
00539   fImpSMEvCorssProj     = 0;
00540   fImpSMSigEvGlobal     = 0;
00541   fImpSMSigEvProj       = 0; 
00542   fImpSMSigSigGlobal    = 0;   
00543   fImpSMSigSigProj      = 0; 
00544   fImpSMSigCorssGlobal  = 0; 
00545   fImpSMSigCorssProj    = 0; 
00546   fImpEv                = 0;
00547   fImpSigma             = 0;  
00548   fImpEvts              = 0;     
00549   fImpSampTime          = 0;
00550   fImpEvolEvEv          = 0;
00551   fImpEvolEvSig         = 0;
00552   fImpEvolEvCorss       = 0;
00553 
00554   fNbBinsProj   = 100;       // number of bins   for histos in option Projection
00555   fMaxNbColLine = 6;         // max number of colors for histos in option SAME 
00556 
00557   //.................................... Miscellaneous parameters
00558 
00559   fNbOfListFileEvolEvEv    = 0;
00560   fNbOfListFileEvolEvSig   = 0;
00561   fNbOfListFileEvolEvCorss = 0;
00562 
00563   fNbOfExistingRuns = 0;
00564 
00565   fFapNbOfRuns    = -1;                   // INIT NUMBER OF RUNS: set to -1
00566   fFapMaxNbOfRuns = -1;                   // INIT MAXIMUM NUMBER OF RUNS: set to -1 
00567 
00568   MaxCar = fgMaxCar;
00569   fFapFileRuns.Resize(MaxCar); 
00570   fFapFileRuns  = "(file with list of runs parameters: no info)";
00571 
00572   GetPathForResultsRootFiles();
00573   GetPathForListOfRunFiles();
00574 
00575 } // end of Init()

void TCnaViewEB::InitQuantityYmax ( const   TString  ) 

Definition at line 5727 of file TCnaViewEB.cc.

References fEvolEvCorssYmax, fEvolEvEvYmax, fEvolEvSigYmax, fEvtsYmax, fEvYmax, fSampTimeYmax, fSigmaYmax, fSMCorccInTowersYmax, fSMEvCorssGlobalYmax, fSMEvCorssProjYmax, fSMEvCorttMatrixYmax, fSMEvCovttMatrixYmax, fSMEvEvGlobalYmax, fSMEvEvProjYmax, fSMEvSigGlobalYmax, fSMEvSigProjYmax, fSMFoundEvtsGlobalYmax, fSMFoundEvtsProjYmax, fSMSigCorssGlobalYmax, fSMSigCorssProjYmax, fSMSigEvGlobalYmax, fSMSigEvProjYmax, fSMSigSigGlobalYmax, fSMSigSigProjYmax, and GetYmax().

Referenced by ViewHistime(), ViewHisto(), and ViewMatrix().

05728 {
05729 // InitQuantity Ymax
05730 
05731   if(QuantityCode == "SMFoundEvtsGlobal"){fSMFoundEvtsGlobalYmax = GetYmax("SMFoundEvtsGlobal");}
05732   if(QuantityCode == "SMFoundEvtsProj"  ){fSMFoundEvtsProjYmax   = GetYmax("SMFoundEvtsProj");}
05733   if(QuantityCode == "SMEvEvGlobal"     ){fSMEvEvGlobalYmax      = GetYmax("SMEvEvGlobal");}
05734   if(QuantityCode == "SMEvEvProj"       ){fSMEvEvProjYmax        = GetYmax("SMEvEvProj");}
05735   if(QuantityCode == "SMEvSigGlobal"    ){fSMEvSigGlobalYmax     = GetYmax("SMEvSigGlobal");}
05736   if(QuantityCode == "SMEvSigProj"      ){fSMEvSigProjYmax       = GetYmax("SMEvSigProj");}
05737   if(QuantityCode == "SMEvCorssGlobal"  ){fSMEvCorssGlobalYmax   = GetYmax("SMEvCorssGlobal");}
05738   if(QuantityCode == "SMEvCorssProj"    ){fSMEvCorssProjYmax     = GetYmax("SMEvCorssProj");}
05739   if(QuantityCode == "SMSigEvGlobal"    ){fSMSigEvGlobalYmax     = GetYmax("SMSigEvGlobal");}
05740   if(QuantityCode == "SMSigEvProj"      ){fSMSigEvProjYmax       = GetYmax("SMSigEvProj");}
05741   if(QuantityCode == "SMSigSigGlobal"   ){fSMSigSigGlobalYmax    = GetYmax("SMSigSigGlobal");}
05742   if(QuantityCode == "SMSigSigProj"     ){fSMSigSigProjYmax      = GetYmax("SMSigSigProj");}
05743   if(QuantityCode == "SMSigCorssGlobal" ){fSMSigCorssGlobalYmax  = GetYmax("SMSigCorssGlobal");}
05744   if(QuantityCode == "SMSigCorssProj"   ){fSMSigCorssProjYmax    = GetYmax("SMSigCorssProj");}
05745   if(QuantityCode == "SMEvCorttMatrix"  ){fSMEvCorttMatrixYmax   = GetYmax("SMEvCorttMatrix");}
05746   if(QuantityCode == "SMEvCovttMatrix"  ){fSMEvCovttMatrixYmax   = GetYmax("SMEvCovttMatrix");}
05747   if(QuantityCode == "SMCorccInTowers"  ){fSMCorccInTowersYmax   = GetYmax("SMCorccInTowers");}
05748   if(QuantityCode == "Ev"               ){fEvYmax                = GetYmax("Ev");}
05749   if(QuantityCode == "Sigma"            ){fSigmaYmax             = GetYmax("Sigma");}
05750   if(QuantityCode == "Evts"             ){fEvtsYmax              = GetYmax("Evts");}
05751   if(QuantityCode == "SampTime"         ){fSampTimeYmax          = GetYmax("SampTime");}
05752   if(QuantityCode == "EvolEvEv"         ){fEvolEvEvYmax          = GetYmax("EvolEvEv");}
05753   if(QuantityCode == "EvolEvSig"        ){fEvolEvSigYmax         = GetYmax("EvolEvSig");}
05754   if(QuantityCode == "EvolEvCorss"      ){fEvolEvCorssYmax       = GetYmax("EvolEvCorss");}
05755 }

void TCnaViewEB::InitQuantityYmin ( const   TString  ) 

Definition at line 5697 of file TCnaViewEB.cc.

References fEvolEvCorssYmin, fEvolEvEvYmin, fEvolEvSigYmin, fEvtsYmin, fEvYmin, fSampTimeYmin, fSigmaYmin, fSMCorccInTowersYmin, fSMEvCorssGlobalYmin, fSMEvCorssProjYmin, fSMEvCorttMatrixYmin, fSMEvCovttMatrixYmin, fSMEvEvGlobalYmin, fSMEvEvProjYmin, fSMEvSigGlobalYmin, fSMEvSigProjYmin, fSMFoundEvtsGlobalYmin, fSMFoundEvtsProjYmin, fSMSigCorssGlobalYmin, fSMSigCorssProjYmin, fSMSigEvGlobalYmin, fSMSigEvProjYmin, fSMSigSigGlobalYmin, fSMSigSigProjYmin, and GetYmin().

Referenced by ViewHistime(), ViewHisto(), and ViewMatrix().

05698 {
05699 // InitQuantity Ymin
05700 
05701   if(QuantityCode == "SMFoundEvtsGlobal"){fSMFoundEvtsGlobalYmin = GetYmin("SMFoundEvtsGlobal");}
05702   if(QuantityCode == "SMFoundEvtsProj"  ){fSMFoundEvtsProjYmin   = GetYmin("SMFoundEvtsProj");}
05703   if(QuantityCode == "SMEvEvGlobal"     ){fSMEvEvGlobalYmin      = GetYmin("SMEvEvGlobal");}
05704   if(QuantityCode == "SMEvEvProj"       ){fSMEvEvProjYmin        = GetYmin("SMEvEvProj");}
05705   if(QuantityCode == "SMEvSigGlobal"    ){fSMEvSigGlobalYmin     = GetYmin("SMEvSigGlobal");}
05706   if(QuantityCode == "SMEvSigProj"      ){fSMEvSigProjYmin       = GetYmin("SMEvSigProj");}
05707   if(QuantityCode == "SMEvCorssGlobal"  ){fSMEvCorssGlobalYmin   = GetYmin("SMEvCorssGlobal");}
05708   if(QuantityCode == "SMEvCorssProj"    ){fSMEvCorssProjYmin     = GetYmin("SMEvCorssProj");}
05709   if(QuantityCode == "SMSigEvGlobal"    ){fSMSigEvGlobalYmin     = GetYmin("SMSigEvGlobal");}
05710   if(QuantityCode == "SMSigEvProj"      ){fSMSigEvProjYmin       = GetYmin("SMSigEvProj");}
05711   if(QuantityCode == "SMSigSigGlobal"   ){fSMSigSigGlobalYmin    = GetYmin("SMSigSigGlobal");}
05712   if(QuantityCode == "SMSigSigProj"     ){fSMSigSigProjYmin      = GetYmin("SMSigSigProj");}
05713   if(QuantityCode == "SMSigCorssGlobal" ){fSMSigCorssGlobalYmin  = GetYmin("SMSigCorssGlobal");}
05714   if(QuantityCode == "SMSigCorssProj"   ){fSMSigCorssProjYmin    = GetYmin("SMSigCorssProj");}
05715   if(QuantityCode == "SMEvCorttMatrix"  ){fSMEvCorttMatrixYmin   = GetYmin("SMEvCorttMatrix");}
05716   if(QuantityCode == "SMEvCovttMatrix"  ){fSMEvCovttMatrixYmin   = GetYmin("SMEvCovttMatrix");}
05717   if(QuantityCode == "SMCorccInTowers"  ){fSMCorccInTowersYmin   = GetYmin("SMCorccInTowers");}
05718   if(QuantityCode == "Ev"               ){fEvYmin                = GetYmin("Ev");}
05719   if(QuantityCode == "Sigma"            ){fSigmaYmin             = GetYmin("Sigma");}
05720   if(QuantityCode == "Evts"             ){fEvtsYmin              = GetYmin("Evts");}
05721   if(QuantityCode == "SampTime"         ){fSampTimeYmin          = GetYmin("SampTime");}
05722   if(QuantityCode == "EvolEvEv"         ){fEvolEvEvYmin          = GetYmin("EvolEvEv");}
05723   if(QuantityCode == "EvolEvSig"        ){fEvolEvSigYmin         = GetYmin("EvolEvSig");}
05724   if(QuantityCode == "EvolEvCorss"      ){fEvolEvCorssYmin       = GetYmin("EvolEvCorss");}
05725 }

void TCnaViewEB::PutAllPavesViewHisto ( TCnaReadEB MyRootFile,
TEBNumbering MyNumbering,
const   TString,
const Int_t &  SMtower_X,
const Int_t &  TowEcha,
const Int_t &  sample,
const   TString 
)

Definition at line 4443 of file TCnaViewEB.cc.

References ColorDefinition(), fcom_bot_left, fcom_bot_right, fcom_top_left, fcom_top_left_memo, fcom_top_mid, fcom_top_right, fOnlyOnePlot, fSeveralPlot, ftitle_g1, GetMemoFlag(), PutPaveAnalysisRun(), PutPaveAnalysisRunList(), PutPaveCrystal(), PutPaveCrystalSample(), PutPaveGeneralComment(), PutPaveSuperModule(), PutPaveTakenEvents(), PutPaveTakenEventsRunList(), and PutPaveTower().

Referenced by HistimePlot(), and HistoPlot().

04447 {
04448 // Put all the paves of a histo view according to QuantityCode
04449 
04450   gStyle->SetTextColor(ColorDefinition("noir"));
04451 
04452   ftitle_g1      = PutPaveGeneralComment();
04453 
04454   if(opt_plot == fOnlyOnePlot)
04455     {
04456       fcom_top_left  = PutPaveSuperModule("standard");
04457       
04458       if( !( QuantityCode == "SMFoundEvtsGlobal" || QuantityCode == "SMFoundEvtsProj" ||
04459              QuantityCode == "SMEvEvGlobal"      || QuantityCode == "SMEvEvProj"      ||
04460              QuantityCode == "SMSigEvGlobal"     || QuantityCode == "SMSigEvProj"     ||
04461              QuantityCode == "SMEvSigGlobal"     || QuantityCode == "SMEvSigProj"     || 
04462              QuantityCode == "SMSigSigGlobal"    || QuantityCode == "SMSigSigProj"    || 
04463              QuantityCode == "SMEvCorssGlobal"   || QuantityCode == "SMEvCorssProj"   || 
04464              QuantityCode == "SMSigCorssGlobal"  || QuantityCode == "SMSigCorssProj"  ) )
04465         {
04466           fcom_top_mid = PutPaveTower(SMtower_X);
04467         }
04468       
04469       if( QuantityCode == "Ev" || QuantityCode == "Sigma" || QuantityCode == "SampTime" ||
04470           QuantityCode == "EvolEvEv" ||  QuantityCode == "EvolEvSig" || QuantityCode == "EvolEvCorss" )
04471         {
04472           fcom_top_right = PutPaveCrystal(MyNumbering, SMtower_X, TowEcha);
04473         }
04474       if( QuantityCode == "Evts" )
04475         {
04476           fcom_top_right = PutPaveCrystalSample(MyRootFile, SMtower_X, TowEcha, sample);
04477         }
04478       
04479       if( QuantityCode == "EvolEvEv" || QuantityCode == "EvolEvSig" || QuantityCode == "EvolEvCorss" )
04480         {
04481           fcom_bot_left  = PutPaveAnalysisRunList(MyRootFile);
04482           fcom_bot_right = PutPaveTakenEventsRunList(MyRootFile);
04483         }
04484       else
04485         {
04486           fcom_bot_left  = PutPaveAnalysisRun(MyRootFile);
04487           fcom_bot_right = PutPaveTakenEvents(MyRootFile);
04488         }
04489     }
04490 
04491   if( opt_plot == fSeveralPlot && GetMemoFlag(QuantityCode) == "Free" )
04492     {
04493       if( QuantityCode == "EvolEvEv" || QuantityCode == "EvolEvSig" || QuantityCode == "EvolEvCorss" )
04494         {
04495           fcom_top_left  = PutPaveSuperModule("sevevol");    // should use a specific method (PutPaveHistory?)
04496           fcom_bot_right = PutPaveTakenEventsRunList(MyRootFile);
04497         }
04498       else
04499         {
04500           fcom_top_left = PutPaveSuperModule("several");    // should use a specific method (PutPaveHistory?)
04501         }
04502       fcom_top_left_memo = fcom_top_left;
04503     } 
04504 
04505   if( opt_plot == fSeveralPlot && GetMemoFlag(QuantityCode) == "Busy" )
04506     {
04507       fcom_top_left = fcom_top_left_memo;
04508     } 
04509 }

void TCnaViewEB::PutAllPavesViewMatrix ( TCnaReadEB MyRootFile,
TEBNumbering MyNumbering,
const   TString,
const Int_t &  SMtower_X,
const Int_t &  SMtower_Y,
const Int_t &  TowEcha 
)

Definition at line 4378 of file TCnaViewEB.cc.

References fcom_bot_left, fcom_bot_right, fcom_top_left, fcom_top_mid, fcom_top_right, ftitle_g1, PutPaveAnalysisRun(), PutPaveCrystal(), PutPaveGeneralComment(), PutPaveSuperModule(), PutPaveTakenEvents(), PutPaveTower(), and PutPaveTowersXY().

Referenced by ViewMatrix().

04381 {
04382 // Put all the paves of a matrix view
04383 
04384   ftitle_g1      = PutPaveGeneralComment();
04385   fcom_top_left  = PutPaveSuperModule("standard");
04386 
04387   if(SubsetCode == "Crystal")
04388     {
04389       fcom_top_mid   = PutPaveTowersXY(SMtower_X, SMtower_Y);
04390     }
04391   if(SubsetCode == "Sample")
04392     {
04393       fcom_top_mid   = PutPaveTower(SMtower_X);
04394       fcom_top_right = PutPaveCrystal(MyNumbering, SMtower_X, TowEcha);
04395     }
04396 
04397   fcom_bot_left  = PutPaveAnalysisRun(MyRootFile);
04398   fcom_bot_right = PutPaveTakenEvents(MyRootFile);
04399 }

void TCnaViewEB::PutAllPavesViewSuperModule ( TCnaReadEB MyRootFile  ) 

Definition at line 4432 of file TCnaViewEB.cc.

References fcom_bot_left, fcom_bot_right, fcom_top_left, ftitle_g1, PutPaveAnalysisRun(), PutPaveGeneralComment(), PutPaveSuperModule(), and PutPaveTakenEvents().

04433 {
04434 // RootFile as argument: Put all the paves of a super-module for standard view (quantity+tower numbering)
04435 
04436   ftitle_g1      = PutPaveGeneralComment();
04437   fcom_top_left  = PutPaveSuperModule("standSM");
04438 
04439   fcom_bot_left  = PutPaveAnalysisRun(MyRootFile);
04440   fcom_bot_right = PutPaveTakenEvents(MyRootFile);
04441 }

void TCnaViewEB::PutAllPavesViewSuperModule (  ) 

Definition at line 4425 of file TCnaViewEB.cc.

References fcom_top_left, and PutPaveSuperModule().

Referenced by EtaPhiSuperModuleCorccMeanOverSamples(), SuperModuleTowerNumbering(), and ViewSuperModule().

04426 {
04427 // No argument: Put all the paves of a super-module for tower numbering view alone
04428 
04429   fcom_top_left  = PutPaveSuperModule("standSM");
04430 }

void TCnaViewEB::PutAllPavesViewTower ( TCnaReadEB MyRootFile,
const Int_t &  SMtower_X 
)

Definition at line 4401 of file TCnaViewEB.cc.

References fcom_bot_left, fcom_bot_right, fcom_top_left, fcom_top_mid, ftitle_g1, PutPaveAnalysisRun(), PutPaveGeneralComment(), PutPaveSuperModule(), PutPaveTakenEvents(), and PutPaveTower().

Referenced by ViewTower().

04402 {
04403 // Put all the paves of a tower view
04404 
04405   ftitle_g1      = PutPaveGeneralComment();
04406   fcom_top_left  = PutPaveSuperModule("standard");
04407 
04408   fcom_top_mid   = PutPaveTower(SMtower_X);
04409 
04410   fcom_bot_left  = PutPaveAnalysisRun(MyRootFile);
04411   fcom_bot_right = PutPaveTakenEvents(MyRootFile);
04412 }

void TCnaViewEB::PutAllPavesViewTowerCrysNb ( TEBNumbering MyNumbering,
const Int_t &  SMNumber,
const Int_t &  SMtower_X 
)

Definition at line 4414 of file TCnaViewEB.cc.

References fcom_bot_mid, fcom_top_left, fcom_top_mid, PutPaveLVRB(), PutPaveSuperModule(), and PutPaveTower().

Referenced by TowerCrystalNumbering().

04416 {
04417 // Put all the paves of a crystal numbering tower view
04418 
04419   fcom_top_left  = PutPaveSuperModule("standard");        
04420 
04421   fcom_top_mid   = PutPaveTower(SMtower_X);
04422   fcom_bot_mid   = PutPaveLVRB(MyNumbering, SMNumber, SMtower_X);
04423 }

TPaveText * TCnaViewEB::PutPaveAnalysisRun ( TCnaReadEB MyRootFile  ) 

Definition at line 4689 of file TCnaViewEB.cc.

References BoxBottomY(), BoxLeftX(), BoxRightX(), BoxTopY(), fCdelete, fCnew, fCnewRoot, fFapAnaType, fFapRunNumber, and fgMaxCar.

Referenced by PutAllPavesViewHisto(), PutAllPavesViewMatrix(), PutAllPavesViewSuperModule(), and PutAllPavesViewTower().

04690 {
04691 // Analysis name + run number comment
04692 
04693   char* f_in = new char[fgMaxCar];                           fCnew++;
04694   
04695   //...................... Pave Analysis name/run number (bottom_left_box)
04696   Double_t pav_bot_left_xgauche = BoxLeftX("bottom_left_box");
04697   Double_t pav_bot_left_xdroite = BoxRightX("bottom_left_box");
04698   Double_t pav_bot_left_ybas    = BoxBottomY("bottom_left_box");
04699   Double_t pav_bot_left_yhaut   = BoxTopY("bottom_left_box");
04700   TPaveText *com_bot_left =
04701     new TPaveText(pav_bot_left_xgauche, pav_bot_left_ybas,
04702                   pav_bot_left_xdroite, pav_bot_left_yhaut);  fCnewRoot++;
04703   sprintf(f_in, " Analysis: %s ", fFapAnaType.Data());
04704   com_bot_left->AddText(f_in);   
04705   sprintf(f_in, " Run: %d ", fFapRunNumber);  
04706   com_bot_left->AddText(f_in);
04707   
04708   delete [] f_in;                                           fCdelete++;
04709   
04710   return com_bot_left;
04711 }

TPaveText * TCnaViewEB::PutPaveAnalysisRunList ( TCnaReadEB MyRootFile  ) 

Definition at line 4780 of file TCnaViewEB.cc.

References BoxBottomY(), BoxLeftX(), BoxRightX(), BoxTopY(), fCdelete, fCnew, fCnewRoot, fgMaxCar, TCnaReadEB::GetAnalysisName(), TCnaReadEB::GetFirstTakenEventNumber(), and TCnaReadEB::GetNumberOfTakenEvents().

Referenced by PutAllPavesViewHisto().

04781 {
04782 // Analysis name + run number comment
04783 
04784   char* f_in = new char[fgMaxCar];                           fCnew++;
04785   
04786   //...................... Pave Analysis name/run number (bottom_left_box)
04787   Double_t pav_bot_left_xgauche = BoxLeftX("bottom_left_box");
04788   Double_t pav_bot_left_xdroite = BoxRightX("bottom_left_box");
04789   Double_t pav_bot_left_ybas    = BoxBottomY("bottom_left_box");
04790   Double_t pav_bot_left_yhaut   = BoxTopY("bottom_left_box");
04791   TPaveText *com_bot_left =
04792     new TPaveText(pav_bot_left_xgauche, pav_bot_left_ybas,
04793                   pav_bot_left_xdroite, pav_bot_left_yhaut);  fCnewRoot++;
04794   sprintf(f_in, " Analysis: %s", MyRootFile->GetAnalysisName().Data());
04795   com_bot_left->AddText(f_in);
04796   sprintf(f_in, " First taken event: %d", MyRootFile->GetFirstTakenEventNumber());  
04797   com_bot_left->AddText(f_in);
04798   Int_t last_taken_evt = MyRootFile->GetFirstTakenEventNumber() + MyRootFile->GetNumberOfTakenEvents() - 1;
04799   sprintf(f_in, " Last taken event: %d", last_taken_evt);  
04800   com_bot_left->AddText(f_in);
04801   delete [] f_in;                                           fCdelete++;
04802   
04803   return com_bot_left;
04804 }

TPaveText * TCnaViewEB::PutPaveCrystal ( TEBNumbering MyNumbering,
const Int_t &  SMtower_X,
const Int_t &  TowEcha 
)

Definition at line 4637 of file TCnaViewEB.cc.

References BoxBottomY(), BoxLeftX(), BoxRightX(), BoxTopY(), fCdelete, fCnew, fCnewRoot, fgMaxCar, and TEBNumbering::GetSMCrysFromSMTowAndTowEcha().

Referenced by PutAllPavesViewHisto(), and PutAllPavesViewMatrix().

04638 {
04639 // Tower + TowEcha comment
04640 
04641   char* f_in = new char[fgMaxCar];                           fCnew++;
04642   //...................... Pave tower/TowEcha(channel)/sample (top_right_box)
04643   Double_t pav_top_right_xgauche = BoxLeftX("top_right_box");
04644   Double_t pav_top_right_xdroite = BoxRightX("top_right_box");
04645   Double_t pav_top_right_ybas    = BoxBottomY("top_right_box");
04646   Double_t pav_top_right_yhaut   = BoxTopY("top_right_box");
04647   TPaveText *com_top_right =
04648     new TPaveText(pav_top_right_xgauche, pav_top_right_ybas,
04649                   pav_top_right_xdroite, pav_top_right_yhaut);  fCnewRoot++;
04650 
04651   Int_t SM_crys = MyNumbering->GetSMCrysFromSMTowAndTowEcha(SMtower_X, TowEcha);
04652   sprintf(f_in, " Crystal: %d (channel %d) ", SM_crys, TowEcha);
04653   com_top_right->AddText(f_in);
04654  
04655   delete [] f_in;                                           fCdelete++;
04656 
04657   return com_top_right; 
04658 }

TPaveText * TCnaViewEB::PutPaveCrystalSample ( TCnaReadEB MyRootFile,
const Int_t &  SMtower_X,
const Int_t &  TowEcha,
const Int_t &  sample 
)

Definition at line 4661 of file TCnaViewEB.cc.

References BoxBottomY(), BoxLeftX(), BoxRightX(), BoxTopY(), fCdelete, fCnew, fCnewRoot, fgMaxCar, and TEBNumbering::GetSMCrysFromSMTowAndTowEcha().

Referenced by PutAllPavesViewHisto().

04663 {
04664 // Tower + TowEcha + sample comment
04665 
04666   char* f_in = new char[fgMaxCar];                           fCnew++;
04667   //...................... Pave tower/TowEcha(channel)/sample (top_right_box)
04668   Double_t pav_top_right_xgauche = BoxLeftX("top_right_box");
04669   Double_t pav_top_right_xdroite = BoxRightX("top_right_box");
04670   Double_t pav_top_right_ybas    = BoxBottomY("top_right_box");
04671   Double_t pav_top_right_yhaut   = BoxTopY("top_right_box");
04672   TPaveText *com_top_right =
04673     new TPaveText(pav_top_right_xgauche, pav_top_right_ybas,
04674                   pav_top_right_xdroite, pav_top_right_yhaut);  fCnewRoot++;
04675 
04676   TEBNumbering* MyNumbering = new TEBNumbering();         fCnew++;
04677   Int_t SM_crys = MyNumbering->GetSMCrysFromSMTowAndTowEcha(SMtower_X, TowEcha);
04678   sprintf(f_in, " Crystal: %d (channel %d) ", SM_crys, TowEcha);
04679   com_top_right->AddText(f_in);
04680   sprintf(f_in, " Sample: %d ", sample);
04681   com_top_right->AddText(f_in);
04682   
04683   delete [] f_in;                                           fCdelete++;
04684   delete MyNumbering;                                       fCdelete++;
04685 
04686   return com_top_right;
04687 }

TPaveText * TCnaViewEB::PutPaveGeneralComment (  ) 

Definition at line 4511 of file TCnaViewEB.cc.

References BoxBottomY(), BoxLeftX(), BoxRightX(), BoxTopY(), fCdelete, fCnew, fCnewRoot, fFapRunNumber, fgMaxCar, fParameters, and TCnaParameters::PeriodOfRun().

Referenced by PutAllPavesViewHisto(), PutAllPavesViewMatrix(), PutAllPavesViewSuperModule(), and PutAllPavesViewTower().

04512 {
04513 // General comment
04514   
04515   char* f_in = new char[fgMaxCar];                           fCnew++;
04516   
04517   Double_t pav_gen_xgauche = BoxLeftX("general_comment");
04518   Double_t pav_gen_xdroite = BoxRightX("general_comment");
04519   Double_t pav_gen_ybas    = BoxBottomY("general_comment");
04520   Double_t pav_gen_yhaut   = BoxTopY("general_comment");
04521   TPaveText  *title_g1 =
04522     new TPaveText(pav_gen_xgauche, pav_gen_ybas,
04523                   pav_gen_xdroite, pav_gen_yhaut);        fCnewRoot++;
04524 
04525   TString tit_gen = fParameters->PeriodOfRun(fFapRunNumber);
04526 
04527   sprintf( f_in, tit_gen);
04528   title_g1->AddText(f_in);
04529   
04530   delete [] f_in;                                           fCdelete++;
04531   
04532   return title_g1;
04533 }

TPaveText * TCnaViewEB::PutPaveLVRB ( TEBNumbering MyNumbering,
const Int_t &  SMNumber,
const Int_t &  SMtower 
)

Definition at line 4806 of file TCnaViewEB.cc.

References BoxBottomY(), BoxLeftX(), BoxRightX(), BoxTopY(), ColorDefinition(), fCnewRoot, TEBNumbering::GetSMHalfBarrel(), TEBNumbering::GetTowerLvrbType(), and SetColorsForNumbers().

Referenced by PutAllPavesViewTowerCrysNb().

04807 {
04808 // LVRB at the top or at the bottom comment
04809 
04810   //....................... GRAND pave "LVRB"
04811   Double_t pav_bot_xgauche = BoxLeftX("bottom_left_box");
04812   Double_t pav_bot_xdroite = BoxRightX("bottom_right_box");
04813   Double_t pav_bot_ybas    = BoxBottomY("bottom_left_box");
04814   Double_t pav_bot_yhaut   = BoxTopY("bottom_left_box");
04815   TPaveText *com_bot_mid =
04816     new TPaveText(pav_bot_xgauche, pav_bot_ybas,
04817                   pav_bot_xdroite, pav_bot_yhaut);    fCnewRoot++;
04818 
04819   //  com_bot_mid->SetFillColor(28);
04820 
04821   Color_t couleur_noir       = ColorDefinition("noir");
04822   //Color_t couleur_bleu_fonce = ColorDefinition("bleu_fonce");
04823   //Color_t couleur_rouge      = ColorDefinition("rouge");
04824 
04825   //Color_t couleur_noir       = SetColorsForNumbers("crystal");
04826   Color_t couleur_rouge      = SetColorsForNumbers("lvrb_top");
04827   Color_t couleur_bleu_fonce = SetColorsForNumbers("lvrb_bottom");
04828 
04829 
04830   if(MyNumbering->GetSMHalfBarrel(SMNumber) == "barrel+")
04831     {
04832       TText *t1 = com_bot_mid->AddText("   <= top (#eta = 0)         bottom (PATCH PANEL) =>  ");
04833       t1->SetTextColor(couleur_noir);
04834     }
04835 
04836   if(MyNumbering->GetSMHalfBarrel(SMNumber) == "barrel-")
04837     {
04838       TText *t2 = com_bot_mid->AddText("   <= bottom (PATCH PANEL)         top (#eta = 0) =>  ");
04839       t2->SetTextColor(couleur_noir);
04840     }
04841 
04842   if(MyNumbering->GetTowerLvrbType(SMtower) == "top")
04843     {
04844       TText *t3 = com_bot_mid->AddText("   Tower with LVRB at the top    ");
04845       t3->SetTextColor(couleur_rouge);
04846     }
04847   
04848   if(MyNumbering->GetTowerLvrbType(SMtower) == "bottom")
04849     {
04850       TText *t4 = com_bot_mid->AddText(" Tower with LVRB at the bottom ");
04851       t4->SetTextColor(couleur_bleu_fonce);
04852     }
04853   return com_bot_mid;
04854 }

TPaveText * TCnaViewEB::PutPaveSuperModule ( const   TString  ) 

Definition at line 4535 of file TCnaViewEB.cc.

References BoxBottomY(), BoxLeftX(), BoxRightX(), BoxTopY(), fCdelete, fCnew, fCnewRoot, fFapSuMoBarrel, fFapSuMoNumber, and fgMaxCar.

Referenced by PutAllPavesViewHisto(), PutAllPavesViewMatrix(), PutAllPavesViewSuperModule(), PutAllPavesViewTower(), and PutAllPavesViewTowerCrysNb().

04536 {
04537 // Super-module pav. Called only once.
04538   
04539   char* f_in = new char[fgMaxCar];                           fCnew++;
04540 
04541   //.................................. DEFAULT OPTION: "standard"   
04542   Double_t pav_top_left_xgauche = BoxLeftX("top_left_box");
04543   Double_t pav_top_left_xdroite = BoxRightX("top_left_box");
04544   Double_t pav_top_left_ybas    = BoxBottomY("top_left_box");
04545   Double_t pav_top_left_yhaut   = BoxTopY("top_left_box");
04546   
04547   if(chopt == "standard" || chopt == "standSM" )
04548     {  
04549       pav_top_left_xgauche = BoxLeftX("top_left_box");
04550       pav_top_left_xdroite = BoxRightX("top_left_box");
04551       pav_top_left_ybas    = BoxBottomY("top_left_box");
04552       pav_top_left_yhaut   = BoxTopY("top_left_box");
04553     }
04554 
04555   if(chopt == "several")
04556     {    
04557       pav_top_left_xgauche = BoxLeftX("several_plots_box");
04558       pav_top_left_xdroite = BoxRightX("several_plots_box");
04559       pav_top_left_ybas    = BoxBottomY("several_plots_box");
04560       pav_top_left_yhaut   = BoxTopY("several_plots_box");
04561     }
04562   if(chopt == "sevevol")
04563     {    
04564       pav_top_left_xgauche = BoxLeftX("several_evol_box");
04565       pav_top_left_xdroite = BoxRightX("several_evol_box");
04566       pav_top_left_ybas    = BoxBottomY("several_evol_box");
04567       pav_top_left_yhaut   = BoxTopY("several_evol_box");
04568     }
04569 
04570   TPaveText *com_top_left =
04571     new TPaveText(pav_top_left_xgauche, pav_top_left_ybas,
04572                   pav_top_left_xdroite, pav_top_left_yhaut);  fCnewRoot++;
04573 
04574   if( chopt == "standard" )
04575     {
04576     sprintf(f_in, " SuperModule: %d ", fFapSuMoNumber);
04577     com_top_left->AddText(f_in);
04578     sprintf(f_in, " ( %s ) ", fFapSuMoBarrel.Data());
04579     com_top_left->AddText(f_in);
04580     }
04581 
04582   if( chopt == "standSM" )
04583     {
04584     sprintf(f_in, " SuperModule: %d   ( %s ) ", fFapSuMoNumber,  fFapSuMoBarrel.Data());
04585     com_top_left->AddText(f_in);
04586     }
04587 
04588   delete [] f_in;                                           fCdelete++;
04589   
04590   return com_top_left;
04591 }

TPaveText * TCnaViewEB::PutPaveTakenEvents ( TCnaReadEB MyRootFile  ) 

Definition at line 4713 of file TCnaViewEB.cc.

References BoxBottomY(), BoxLeftX(), BoxRightX(), BoxTopY(), fCdelete, fCnew, fCnewRoot, fFapFirstEvt, fFapNbOfEvts, fgMaxCar, fStartDate, fStopDate, TCnaReadEB::MaxCrysInTow(), TCnaReadEB::MaxSampADC(), and TCnaReadEB::ReadNumbersOfFoundEventsForSamples().

Referenced by PutAllPavesViewHisto(), PutAllPavesViewMatrix(), PutAllPavesViewSuperModule(), and PutAllPavesViewTower().

04714 {
04715 // Taken events comment
04716 
04717   char* f_in = new char[fgMaxCar];                           fCnew++;
04718   
04719   //...................... Pave taken event numbers/found events (bottom_right_box)
04720 
04721   Double_t pav_bot_right_xgauche = BoxLeftX("bottom_right_box");
04722   Double_t pav_bot_right_xdroite = BoxRightX("bottom_right_box");
04723   Double_t pav_bot_right_ybas    = BoxBottomY("bottom_right_box");
04724   Double_t pav_bot_right_yhaut   = BoxTopY("bottom_right_box");
04725   TPaveText *com_bot_right =
04726     new TPaveText(pav_bot_right_xgauche, pav_bot_right_ybas,
04727                   pav_bot_right_xdroite, pav_bot_right_yhaut);      fCnewRoot++;
04728   sprintf(f_in, " First taken event: %d (%s) ", fFapFirstEvt, fStartDate.Data());
04729   com_bot_right->AddText(f_in);      
04730   Int_t last_evt = fFapFirstEvt + fFapNbOfEvts - 1;
04731   sprintf(f_in, " Last taken event: %d (%s) ", last_evt, fStopDate.Data());
04732   com_bot_right->AddText(f_in);
04733   TMatrixD mat_of_found_evts(MyRootFile->MaxCrysInTow(),MyRootFile->MaxSampADC());
04734 
04735   Int_t SMtow = (Int_t)1;
04736   mat_of_found_evts = MyRootFile->ReadNumbersOfFoundEventsForSamples(SMtow);
04737 
04738 #define SENB
04739 #ifndef SENB  
04740   //........... search for the greatest nb of found events over the crystals (for sample 0)
04741   Int_t m_crys_of_max = 0;
04742   for(Int_t m_crys=1; m_crys<MyRootFile->MaxCrysInTow(); m_crys++)
04743     if( mat_of_found_evts(m_crys,0) > mat_of_found_evts(m_crys_of_max,0) ){m_crys_of_max = m_crys;} 
04744 
04745   Int_t nb_of_found_evts = (Int_t)mat_of_found_evts(m_crys_of_max,0); 
04746   sprintf(f_in, " Found in data: %d ", nb_of_found_evts);
04747   com_bot_right->AddText(f_in);
04748 #endif // SENB
04749  
04750   delete [] f_in;                                           fCdelete++;
04751   
04752   return com_bot_right;
04753 }

TPaveText * TCnaViewEB::PutPaveTakenEventsRunList ( TCnaReadEB MyRootFile  ) 

Definition at line 4755 of file TCnaViewEB.cc.

References BoxBottomY(), BoxLeftX(), BoxRightX(), BoxTopY(), fCdelete, fCnew, fCnewRoot, fgMaxCar, fStartEvolDate, fStartEvolRun, fStopEvolDate, and fStopEvolRun.

Referenced by PutAllPavesViewHisto().

04756 {
04757 // Taken events comment
04758 
04759   char* f_in = new char[fgMaxCar];                           fCnew++;
04760   
04761   //...................... Pave taken event numbers/found events (bottom_right_box)
04762 
04763   Double_t pav_bot_right_xgauche = BoxLeftX("bottom_right_box_evol");
04764   Double_t pav_bot_right_xdroite = BoxRightX("bottom_right_box_evol");
04765   Double_t pav_bot_right_ybas    = BoxBottomY("bottom_right_box_evol");
04766   Double_t pav_bot_right_yhaut   = BoxTopY("bottom_right_box_evol");
04767   TPaveText *com_bot_right =
04768     new TPaveText(pav_bot_right_xgauche, pav_bot_right_ybas,
04769                   pav_bot_right_xdroite, pav_bot_right_yhaut);      fCnewRoot++;
04770   sprintf(f_in, " First run: %d (%s) ", fStartEvolRun, fStartEvolDate.Data());
04771   com_bot_right->AddText(f_in);
04772   sprintf(f_in, " Last run: %d (%s) ", fStopEvolRun, fStopEvolDate.Data());
04773   com_bot_right->AddText(f_in);
04774 
04775   delete [] f_in;                                           fCdelete++;
04776   
04777   return com_bot_right;
04778 }

TPaveText * TCnaViewEB::PutPaveTower ( const Int_t &  SMtower_X  ) 

Definition at line 4593 of file TCnaViewEB.cc.

References BoxBottomY(), BoxLeftX(), BoxRightX(), BoxTopY(), fCdelete, fCnew, fCnewRoot, and fgMaxCar.

Referenced by PutAllPavesViewHisto(), PutAllPavesViewMatrix(), PutAllPavesViewTower(), and PutAllPavesViewTowerCrysNb().

04594 {
04595 // Tower comment
04596 
04597   char* f_in = new char[fgMaxCar];                           fCnew++;
04598   //...................... Pave tower/crystal(channel)/sample (top_right_box)
04599   Double_t pav_top_mid_xgauche = BoxLeftX("top_mid_box");
04600   Double_t pav_top_mid_xdroite = BoxRightX("top_mid_box");
04601   Double_t pav_top_mid_ybas    = BoxBottomY("top_mid_box");
04602   Double_t pav_top_mid_yhaut   = BoxTopY("top_mid_box");
04603   TPaveText *com_top_mid =
04604     new TPaveText(pav_top_mid_xgauche, pav_top_mid_ybas,
04605                   pav_top_mid_xdroite, pav_top_mid_yhaut);  fCnewRoot++;                  
04606   sprintf(f_in, " Tower: %d ", SMtower_X);
04607   com_top_mid->AddText(f_in);
04608   
04609   delete [] f_in;                                           fCdelete++;
04610 
04611   return com_top_mid;
04612 }

TPaveText * TCnaViewEB::PutPaveTowersXY ( const Int_t &  SMtower_X,
const Int_t &  SMtower_Y 
)

Definition at line 4614 of file TCnaViewEB.cc.

References BoxBottomY(), BoxLeftX(), BoxRightX(), BoxTopY(), fCdelete, fCnew, fCnewRoot, and fgMaxCar.

Referenced by PutAllPavesViewMatrix().

04615 {
04616 // Towers X and Y for (TowEcha,TowEcha) cov or cor matrix
04617 
04618   char* f_in = new char[fgMaxCar];                           fCnew++;
04619   //...................... Pave tower/TowEcha(channel)/sample (top_right_box)
04620   Double_t pav_top_mid_xgauche = BoxLeftX("top_mid_box");
04621   Double_t pav_top_mid_xdroite = BoxRightX("top_mid_box");
04622   Double_t pav_top_mid_ybas    = BoxBottomY("top_mid_box");
04623   Double_t pav_top_mid_yhaut   = BoxTopY("top_mid_box");
04624   TPaveText *com_top_mid =
04625     new TPaveText(pav_top_mid_xgauche, pav_top_mid_ybas,
04626                   pav_top_mid_xdroite, pav_top_mid_yhaut);  fCnewRoot++;                  
04627   sprintf(f_in, " Tower X: %d ", SMtower_X);
04628   com_top_mid->AddText(f_in);
04629   sprintf(f_in, " Tower Y: %d ", SMtower_Y);
04630   com_top_mid->AddText(f_in);  
04631 
04632   delete [] f_in;                                           fCdelete++;
04633 
04634   return com_top_mid;
04635 }

void TCnaViewEB::PutYmax ( const   TString,
const Double_t &  value 
)

Definition at line 5600 of file TCnaViewEB.cc.

References fEvtsYmax, fSMCorccInTowersYmax, fSMEvCorssGlobalYmax, fSMEvCorssProjYmax, fSMEvCorttMatrixYmax, fSMEvCovttMatrixYmax, fSMEvEvGlobalYmax, fSMEvEvProjYmax, fSMEvSigGlobalYmax, fSMEvSigProjYmax, fSMFoundEvtsGlobalYmax, fSMFoundEvtsProjYmax, fSMSigCorssGlobalYmax, fSMSigCorssProjYmax, fSMSigEvGlobalYmax, fSMSigEvProjYmax, fSMSigSigGlobalYmax, and fSMSigSigProjYmax.

Referenced by Init(), TCnaDialogEB::ViewHistimeCrystalMeanCorss(), TCnaDialogEB::ViewHistimeCrystalMeanPedestals(), TCnaDialogEB::ViewHistimeCrystalMeanSigmas(), TCnaDialogEB::ViewHistoCrystalExpectationValuesOfSamples(), TCnaDialogEB::ViewHistoCrystalPedestalEventNumber(), TCnaDialogEB::ViewHistoCrystalSigmasOfSamples(), TCnaDialogEB::ViewHistoSuperModuleFoundEventsDistribution(), TCnaDialogEB::ViewHistoSuperModuleFoundEventsOfCrystals(), TCnaDialogEB::ViewHistoSuperModuleMeanOfCorssDistribution(), TCnaDialogEB::ViewHistoSuperModuleMeanOfCorssOfCrystals(), TCnaDialogEB::ViewHistoSuperModuleMeanOfSampleSigmasDistribution(), TCnaDialogEB::ViewHistoSuperModuleMeanOfSampleSigmasOfCrystals(), TCnaDialogEB::ViewHistoSuperModuleMeanPedestalsDistribution(), TCnaDialogEB::ViewHistoSuperModuleMeanPedestalsOfCrystals(), TCnaDialogEB::ViewHistoSuperModuleSigmaOfCorssDistribution(), TCnaDialogEB::ViewHistoSuperModuleSigmaOfCorssOfCrystals(), TCnaDialogEB::ViewHistoSuperModuleSigmaOfSampleSigmasDistribution(), TCnaDialogEB::ViewHistoSuperModuleSigmaOfSampleSigmasOfCrystals(), TCnaDialogEB::ViewHistoSuperModuleSigmaPedestalsDistribution(), TCnaDialogEB::ViewHistoSuperModuleSigmaPedestalsOfCrystals(), TCnaDialogEB::ViewMatrixCorrelationCrystals(), TCnaDialogEB::ViewMatrixCorrelationSamples(), TCnaDialogEB::ViewMatrixCorrelationTowers(), TCnaDialogEB::ViewMatrixCovarianceCrystals(), TCnaDialogEB::ViewMatrixCovarianceSamples(), TCnaDialogEB::ViewMatrixCovarianceTowers(), TCnaDialogEB::ViewSuperModuleCorccMeanOverSamples(), TCnaDialogEB::ViewSuperModuleFoundEvents(), TCnaDialogEB::ViewSuperModuleMeanOfCorss(), TCnaDialogEB::ViewSuperModuleMeanOfSampleSigmas(), TCnaDialogEB::ViewSuperModuleMeanPedestals(), TCnaDialogEB::ViewSuperModuleSigmaOfCorss(), TCnaDialogEB::ViewSuperModuleSigmaOfSampleSigmas(), TCnaDialogEB::ViewSuperModuleSigmaPedestals(), TCnaDialogEB::ViewTowerCorrelationSamples(), and TCnaDialogEB::ViewTowerCovarianceSamples().

05601 {
05602    if( QuantityCode == "SMFoundEvtsGlobal"){fSMFoundEvtsGlobalYmax = value;}
05603    if( QuantityCode == "SMFoundEvtsProj"  ){fSMFoundEvtsProjYmax   = value;}  
05604    if( QuantityCode == "SMEvEvGlobal"     ){fSMEvEvGlobalYmax      = value;} 
05605    if( QuantityCode == "SMEvEvProj"       ){fSMEvEvProjYmax        = value;} 
05606    if( QuantityCode == "SMEvSigGlobal"    ){fSMEvSigGlobalYmax     = value;}
05607    if( QuantityCode == "SMEvSigProj"      ){fSMEvSigProjYmax       = value;} 
05608    if( QuantityCode == "SMEvCorssGlobal"  ){fSMEvCorssGlobalYmax   = value;} 
05609    if( QuantityCode == "SMEvCorssProj"    ){fSMEvCorssProjYmax     = value;} 
05610    if( QuantityCode == "SMSigEvGlobal"    ){fSMSigEvGlobalYmax     = value;} 
05611    if( QuantityCode == "SMSigEvProj"      ){fSMSigEvProjYmax       = value;}
05612    if( QuantityCode == "SMSigSigGlobal"   ){fSMSigSigGlobalYmax    = value;} 
05613    if( QuantityCode == "SMSigSigProj"     ){fSMSigSigProjYmax      = value;} 
05614    if( QuantityCode == "SMSigCorssGlobal" ){fSMSigCorssGlobalYmax  = value;}
05615    if( QuantityCode == "SMSigCorssProj"   ){fSMSigCorssProjYmax    = value;}
05616    if( QuantityCode == "SMEvCorttMatrix"  ){fSMEvCorttMatrixYmax   = value;}
05617    if( QuantityCode == "SMEvCovttMatrix"  ){fSMEvCovttMatrixYmax   = value;}
05618    if( QuantityCode == "SMCorccInTowers"  ){fSMCorccInTowersYmax   = value;}
05619    if( QuantityCode == "Ev"               ){fSMEvEvGlobalYmax      = value;}
05620    if( QuantityCode == "Sigma"            ){fSMEvSigGlobalYmax     = value;}
05621    if( QuantityCode == "Evts"             ){fEvtsYmax              = value;}
05622    if( QuantityCode == "SampTime"         ){fSMEvEvGlobalYmax      = value;}
05623    if( QuantityCode == "EvolEvEv"         ){fSMEvEvGlobalYmax      = value;}
05624    if( QuantityCode == "EvolEvSig"        ){fSMEvSigGlobalYmax     = value;}
05625    if( QuantityCode == "EvolEvCorss"      ){fSMEvCorssGlobalYmax   = value;}
05626 }

void TCnaViewEB::PutYmin ( const   TString,
const Double_t &  value 
)

Definition at line 5572 of file TCnaViewEB.cc.

References fEvtsYmin, fSMCorccInTowersYmin, fSMEvCorssGlobalYmin, fSMEvCorssProjYmin, fSMEvCorttMatrixYmin, fSMEvCovttMatrixYmin, fSMEvEvGlobalYmin, fSMEvEvProjYmin, fSMEvSigGlobalYmin, fSMEvSigProjYmin, fSMFoundEvtsGlobalYmin, fSMFoundEvtsProjYmin, fSMSigCorssGlobalYmin, fSMSigCorssProjYmin, fSMSigEvGlobalYmin, fSMSigEvProjYmin, fSMSigSigGlobalYmin, and fSMSigSigProjYmin.

Referenced by Init(), TCnaDialogEB::ViewHistimeCrystalMeanCorss(), TCnaDialogEB::ViewHistimeCrystalMeanPedestals(), TCnaDialogEB::ViewHistimeCrystalMeanSigmas(), TCnaDialogEB::ViewHistoCrystalExpectationValuesOfSamples(), TCnaDialogEB::ViewHistoCrystalPedestalEventNumber(), TCnaDialogEB::ViewHistoCrystalSigmasOfSamples(), TCnaDialogEB::ViewHistoSuperModuleFoundEventsDistribution(), TCnaDialogEB::ViewHistoSuperModuleFoundEventsOfCrystals(), TCnaDialogEB::ViewHistoSuperModuleMeanOfCorssDistribution(), TCnaDialogEB::ViewHistoSuperModuleMeanOfCorssOfCrystals(), TCnaDialogEB::ViewHistoSuperModuleMeanOfSampleSigmasDistribution(), TCnaDialogEB::ViewHistoSuperModuleMeanOfSampleSigmasOfCrystals(), TCnaDialogEB::ViewHistoSuperModuleMeanPedestalsDistribution(), TCnaDialogEB::ViewHistoSuperModuleMeanPedestalsOfCrystals(), TCnaDialogEB::ViewHistoSuperModuleSigmaOfCorssDistribution(), TCnaDialogEB::ViewHistoSuperModuleSigmaOfCorssOfCrystals(), TCnaDialogEB::ViewHistoSuperModuleSigmaOfSampleSigmasDistribution(), TCnaDialogEB::ViewHistoSuperModuleSigmaOfSampleSigmasOfCrystals(), TCnaDialogEB::ViewHistoSuperModuleSigmaPedestalsDistribution(), TCnaDialogEB::ViewHistoSuperModuleSigmaPedestalsOfCrystals(), TCnaDialogEB::ViewMatrixCorrelationCrystals(), TCnaDialogEB::ViewMatrixCorrelationSamples(), TCnaDialogEB::ViewMatrixCorrelationTowers(), TCnaDialogEB::ViewMatrixCovarianceCrystals(), TCnaDialogEB::ViewMatrixCovarianceSamples(), TCnaDialogEB::ViewMatrixCovarianceTowers(), TCnaDialogEB::ViewSuperModuleCorccMeanOverSamples(), TCnaDialogEB::ViewSuperModuleFoundEvents(), TCnaDialogEB::ViewSuperModuleMeanOfCorss(), TCnaDialogEB::ViewSuperModuleMeanOfSampleSigmas(), TCnaDialogEB::ViewSuperModuleMeanPedestals(), TCnaDialogEB::ViewSuperModuleSigmaOfCorss(), TCnaDialogEB::ViewSuperModuleSigmaOfSampleSigmas(), TCnaDialogEB::ViewSuperModuleSigmaPedestals(), TCnaDialogEB::ViewTowerCorrelationSamples(), and TCnaDialogEB::ViewTowerCovarianceSamples().

05573 {
05574    if( QuantityCode == "SMFoundEvtsGlobal"){fSMFoundEvtsGlobalYmin = value;}
05575    if( QuantityCode == "SMFoundEvtsProj"  ){fSMFoundEvtsProjYmin   = value;}  
05576    if( QuantityCode == "SMEvEvGlobal"     ){fSMEvEvGlobalYmin      = value;} 
05577    if( QuantityCode == "SMEvEvProj"       ){fSMEvEvProjYmin        = value;} 
05578    if( QuantityCode == "SMEvSigGlobal"    ){fSMEvSigGlobalYmin     = value;}
05579    if( QuantityCode == "SMEvSigProj"      ){fSMEvSigProjYmin       = value;} 
05580    if( QuantityCode == "SMEvCorssGlobal"  ){fSMEvCorssGlobalYmin   = value;} 
05581    if( QuantityCode == "SMEvCorssProj"    ){fSMEvCorssProjYmin     = value;} 
05582    if( QuantityCode == "SMSigEvGlobal"    ){fSMSigEvGlobalYmin     = value;} 
05583    if( QuantityCode == "SMSigEvProj"      ){fSMSigEvProjYmin       = value;}
05584    if( QuantityCode == "SMSigSigGlobal"   ){fSMSigSigGlobalYmin    = value;} 
05585    if( QuantityCode == "SMSigSigProj"     ){fSMSigSigProjYmin      = value;} 
05586    if( QuantityCode == "SMSigCorssGlobal" ){fSMSigCorssGlobalYmin  = value;}
05587    if( QuantityCode == "SMSigCorssProj"   ){fSMSigCorssProjYmin    = value;}
05588    if( QuantityCode == "SMEvCorttMatrix"  ){fSMEvCorttMatrixYmin   = value;}
05589    if( QuantityCode == "SMEvCovttMatrix"  ){fSMEvCovttMatrixYmin   = value;}
05590    if( QuantityCode == "SMCorccInTowers"  ){fSMCorccInTowersYmin   = value;}
05591    if( QuantityCode == "Ev"               ){fSMEvEvGlobalYmin      = value;}
05592    if( QuantityCode == "Sigma"            ){fSMEvSigGlobalYmin     = value;}
05593    if( QuantityCode == "Evts"             ){fEvtsYmin              = value;}
05594    if( QuantityCode == "SampTime"         ){fSMEvEvGlobalYmin      = value;}
05595    if( QuantityCode == "EvolEvEv"         ){fSMEvEvGlobalYmin      = value;}
05596    if( QuantityCode == "EvolEvSig"        ){fSMEvSigGlobalYmin     = value;}
05597    if( QuantityCode == "EvolEvCorss"      ){fSMEvCorssGlobalYmin   = value;}
05598 }

void TCnaViewEB::ReInitCanvas ( const   TString  ) 

Definition at line 6974 of file TCnaViewEB.cc.

References fCanvEv, fCanvEvolEvCorss, fCanvEvolEvEv, fCanvEvolEvSig, fCanvEvts, fCanvSameEv, fCanvSameEvolEvCorss, fCanvSameEvolEvEv, fCanvSameEvolEvSig, fCanvSameEvts, fCanvSameSampTime, fCanvSameSigma, fCanvSameSMEvCorssGlobal, fCanvSameSMEvCorssProj, fCanvSameSMEvEvGlobal, fCanvSameSMEvEvProj, fCanvSameSMEvSigGlobal, fCanvSameSMEvSigProj, fCanvSameSMFoundEvtsGlobal, fCanvSameSMFoundEvtsProj, fCanvSameSMSigCorssGlobal, fCanvSameSMSigCorssProj, fCanvSameSMSigEvGlobal, fCanvSameSMSigEvProj, fCanvSameSMSigSigGlobal, fCanvSameSMSigSigProj, fCanvSampTime, fCanvSigma, fCanvSMEvCorssGlobal, fCanvSMEvCorssProj, fCanvSMEvEvGlobal, fCanvSMEvEvProj, fCanvSMEvSigGlobal, fCanvSMEvSigProj, fCanvSMFoundEvtsGlobal, fCanvSMFoundEvtsProj, fCanvSMSigCorssGlobal, fCanvSMSigCorssProj, fCanvSMSigEvGlobal, fCanvSMSigEvProj, fCanvSMSigSigGlobal, fCanvSMSigSigProj, fImpEv, fImpEvolEvCorss, fImpEvolEvEv, fImpEvolEvSig, fImpEvts, fImpSampTime, fImpSigma, fImpSMEvCorssGlobal, fImpSMEvCorssProj, fImpSMEvEvGlobal, fImpSMEvEvProj, fImpSMEvSigGlobal, fImpSMEvSigProj, fImpSMFoundEvtsGlobal, fImpSMFoundEvtsProj, fImpSMSigCorssGlobal, fImpSMSigCorssProj, fImpSMSigEvGlobal, fImpSMSigEvProj, fImpSMSigSigGlobal, fImpSMSigSigProj, fMemoColorEv, fMemoColorEvolEvCorss, fMemoColorEvolEvEv, fMemoColorEvolEvSig, fMemoColorEvts, fMemoColorSampTime, fMemoColorSigma, fMemoColorSMEvCorssGlobal, fMemoColorSMEvCorssProj, fMemoColorSMEvEvGlobal, fMemoColorSMEvEvProj, fMemoColorSMEvSigGlobal, fMemoColorSMEvSigProj, fMemoColorSMFoundEvtsGlobal, fMemoColorSMFoundEvtsProj, fMemoColorSMSigCorssGlobal, fMemoColorSMSigCorssProj, fMemoColorSMSigEvGlobal, fMemoColorSMSigEvProj, fMemoColorSMSigSigGlobal, fMemoColorSMSigSigProj, fMemoPlotEv, fMemoPlotEvolEvCorss, fMemoPlotEvolEvEv, fMemoPlotEvolEvSig, fMemoPlotEvts, fMemoPlotSampTime, fMemoPlotSigma, fMemoPlotSMEvCorssGlobal, fMemoPlotSMEvCorssProj, fMemoPlotSMEvEvGlobal, fMemoPlotSMEvEvProj, fMemoPlotSMEvSigGlobal, fMemoPlotSMEvSigProj, fMemoPlotSMFoundEvtsGlobal, fMemoPlotSMFoundEvtsProj, fMemoPlotSMSigCorssGlobal, fMemoPlotSMSigCorssProj, fMemoPlotSMSigEvGlobal, fMemoPlotSMSigEvProj, fMemoPlotSMSigSigGlobal, fMemoPlotSMSigSigProj, fNbOfListFileEvolEvCorss, fNbOfListFileEvolEvEv, fNbOfListFileEvolEvSig, fPadEv, fPadEvolEvCorss, fPadEvolEvEv, fPadEvolEvSig, fPadEvts, fPadSampTime, fPadSigma, fPadSMEvCorssGlobal, fPadSMEvCorssProj, fPadSMEvEvGlobal, fPadSMEvEvProj, fPadSMEvSigGlobal, fPadSMEvSigProj, fPadSMFoundEvtsGlobal, fPadSMFoundEvtsProj, fPadSMSigCorssGlobal, fPadSMSigCorssProj, fPadSMSigEvGlobal, fPadSMSigEvProj, fPadSMSigSigGlobal, fPadSMSigSigProj, fPavTxtEv, fPavTxtEvts, fPavTxtSampTime, fPavTxtSigma, fPavTxtSMEvCorssGlobal, fPavTxtSMEvCorssProj, fPavTxtSMEvEvGlobal, fPavTxtSMEvEvProj, fPavTxtSMEvSigGlobal, fPavTxtSMEvSigProj, fPavTxtSMFoundEvtsGlobal, fPavTxtSMFoundEvtsProj, fPavTxtSMSigCorssGlobal, fPavTxtSMSigCorssProj, fPavTxtSMSigEvGlobal, fPavTxtSMSigEvProj, fPavTxtSMSigSigGlobal, and fPavTxtSMSigSigProj.

Referenced by HistimePlot(), and HistoPlot().

06975 {
06976 // ReInit canvas in option same plot
06977  
06978   if(QuantityCode == "SMFoundEvtsGlobal")
06979     {         
06980       fImpSMFoundEvtsGlobal = 0;       fCanvSMFoundEvtsGlobal = 0;
06981       fPadSMFoundEvtsGlobal = 0;       fMemoPlotSMFoundEvtsGlobal = 0;
06982       fMemoColorSMFoundEvtsGlobal = 0; fCanvSameSMFoundEvtsGlobal++;
06983       fPavTxtSMFoundEvtsGlobal = 0; 
06984     }
06985 
06986   if(QuantityCode == "SMFoundEvtsProj")
06987     {         
06988       fImpSMFoundEvtsProj = 0;        fCanvSMFoundEvtsProj = 0;
06989       fPadSMFoundEvtsProj = 0;        fMemoPlotSMFoundEvtsProj = 0;
06990       fMemoColorSMFoundEvtsProj = 0;  fCanvSameSMFoundEvtsProj++;
06991       fPavTxtSMFoundEvtsProj = 0;
06992     }
06993 
06994   if(QuantityCode == "SMEvEvGlobal")
06995     {         
06996       fImpSMEvEvGlobal = 0;           fCanvSMEvEvGlobal = 0;
06997       fPadSMEvEvGlobal = 0;           fMemoPlotSMEvEvGlobal = 0;
06998       fMemoColorSMEvEvGlobal = 0;     fCanvSameSMEvEvGlobal++;
06999       fPavTxtSMEvEvGlobal = 0;   
07000     }
07001 
07002   if(QuantityCode == "SMEvEvProj")
07003     {         
07004       fImpSMEvEvProj = 0;             fCanvSMEvEvProj = 0;
07005       fPadSMEvEvProj = 0;             fMemoPlotSMEvEvProj = 0;
07006       fMemoColorSMEvEvProj = 0;       fCanvSameSMEvEvProj++;
07007       fPavTxtSMEvEvProj = 0; 
07008     }
07009 
07010   if(QuantityCode == "SMEvSigGlobal")
07011     {         
07012       fImpSMEvSigGlobal = 0;          fCanvSMEvSigGlobal = 0;
07013       fPadSMEvSigGlobal = 0;          fMemoPlotSMEvSigGlobal = 0;
07014       fMemoColorSMEvSigGlobal = 0;    fCanvSameSMEvSigGlobal++;
07015       fPavTxtSMEvSigGlobal = 0; 
07016     }
07017 
07018   if(QuantityCode == "SMEvSigProj")
07019     {         
07020       fImpSMEvSigProj = 0;            fCanvSMEvSigProj = 0;
07021       fPadSMEvSigProj = 0;            fMemoPlotSMEvSigProj = 0;
07022       fMemoColorSMEvSigProj = 0;      fCanvSameSMEvSigProj++;
07023       fPavTxtSMEvSigProj = 0;
07024     }
07025 
07026   if(QuantityCode == "SMEvCorssGlobal")
07027     {         
07028       fImpSMEvCorssGlobal = 0;        fCanvSMEvCorssGlobal = 0;
07029       fPadSMEvCorssGlobal = 0;        fMemoPlotSMEvCorssGlobal = 0;
07030       fMemoColorSMEvCorssGlobal = 0;  fCanvSameSMEvCorssGlobal++;
07031       fPavTxtSMEvCorssGlobal = 0;
07032     }
07033 
07034   if(QuantityCode == "SMEvCorssProj")
07035     {         
07036       fImpSMEvCorssProj = 0;          fCanvSMEvCorssProj = 0;
07037       fPadSMEvCorssProj = 0;          fMemoPlotSMEvCorssProj = 0;
07038       fMemoColorSMEvCorssProj = 0;    fCanvSameSMEvCorssProj++;
07039       fPavTxtSMEvCorssProj = 0;
07040     }
07041 
07042   if(QuantityCode == "SMSigEvGlobal")
07043     {         
07044       fImpSMSigEvGlobal = 0;          fCanvSMSigEvGlobal = 0;
07045       fPadSMSigEvGlobal = 0;          fMemoPlotSMSigEvGlobal = 0;
07046       fMemoColorSMSigEvGlobal = 0;    fCanvSameSMSigEvGlobal++;
07047       fPavTxtSMSigEvGlobal = 0;
07048     }
07049 
07050   if(QuantityCode == "SMSigEvProj")
07051     {         
07052       fImpSMSigEvProj = 0;            fCanvSMSigEvProj = 0;
07053       fPadSMSigEvProj= 0;             fMemoPlotSMSigEvProj = 0;
07054       fMemoColorSMSigEvProj = 0;      fCanvSameSMSigEvProj++;
07055       fPavTxtSMSigEvProj= 0;
07056     }
07057 
07058   if(QuantityCode == "SMSigSigGlobal")
07059     {         
07060       fImpSMSigSigGlobal = 0;         fCanvSMSigSigGlobal = 0;
07061       fPadSMSigSigGlobal = 0;         fMemoPlotSMSigSigGlobal = 0;
07062       fMemoColorSMSigSigGlobal = 0;   fCanvSameSMSigSigGlobal++;
07063       fPavTxtSMSigSigGlobal = 0;
07064     }
07065 
07066   if(QuantityCode == "SMSigSigProj")
07067     {         
07068       fImpSMSigSigProj = 0;           fCanvSMSigSigProj = 0;
07069       fPadSMSigSigProj = 0;           fMemoPlotSMSigSigProj = 0;
07070       fMemoColorSMSigSigProj = 0;     fCanvSameSMSigSigProj++;
07071       fPavTxtSMSigSigProj = 0;
07072     }
07073 
07074   if(QuantityCode == "SMSigCorssGlobal")
07075     {         
07076       fImpSMSigCorssGlobal = 0;       fCanvSMSigCorssGlobal = 0;
07077       fPadSMSigCorssGlobal = 0;       fMemoPlotSMSigCorssGlobal = 0;
07078       fMemoColorSMSigCorssGlobal = 0; fCanvSameSMSigCorssGlobal++;
07079       fPavTxtSMSigCorssGlobal = 0;
07080     }
07081 
07082   if(QuantityCode == "SMSigCorssProj")
07083     {         
07084       fImpSMSigCorssProj = 0;        fCanvSMSigCorssProj = 0;
07085       fPadSMSigCorssProj = 0;        fMemoPlotSMSigCorssProj = 0;
07086       fMemoColorSMSigCorssProj = 0;  fCanvSameSMSigCorssProj++;
07087       fPavTxtSMSigCorssProj = 0;
07088     }
07089 
07090   if(QuantityCode == "Ev")
07091     {         
07092       fImpEv = 0;             fCanvEv = 0;
07093       fPadEv = 0;             fMemoPlotEv = 0; 
07094       fMemoColorEv = 0;       fCanvSameEv++;
07095       fPavTxtEv = 0;
07096     }
07097 
07098   if(QuantityCode == "Sigma")
07099     {         
07100       fImpSigma = 0;          fCanvSigma = 0;
07101       fPadSigma = 0;          fMemoPlotSigma= 0;
07102       fMemoColorSigma = 0;    fCanvSameSigma++;
07103       fPavTxtSigma = 0;
07104     }
07105 
07106   if(QuantityCode == "Evts")
07107     {         
07108       fImpEvts = 0;          fCanvEvts = 0;
07109       fPadEvts = 0;          fMemoPlotEvts = 0;
07110       fMemoColorEvts = 0;    fCanvSameEvts++;
07111       fPavTxtEvts = 0;
07112     }
07113 
07114   if(QuantityCode == "SampTime")
07115     {         
07116       fImpSampTime = 0;       fCanvSampTime = 0;
07117       fPadSampTime = 0;       fMemoPlotSampTime = 0;
07118       fMemoColorSampTime = 0; fCanvSameSampTime++;
07119       fPavTxtSampTime = 0;
07120     }
07121 
07122   if(QuantityCode == "EvolEvEv")
07123     {         
07124       fImpEvolEvEv = 0;       fCanvEvolEvEv = 0;
07125       fPadEvolEvEv = 0;       fMemoPlotEvolEvEv = 0;
07126       fMemoColorEvolEvEv = 0; fCanvSameEvolEvEv++;
07127       fNbOfListFileEvolEvEv = 0;
07128     }
07129 
07130   if(QuantityCode == "EvolEvSig")
07131     {         
07132       fImpEvolEvSig = 0;       fCanvEvolEvSig = 0;
07133       fPadEvolEvSig = 0;       fMemoPlotEvolEvSig = 0;
07134       fMemoColorEvolEvSig = 0; fCanvSameEvolEvSig++;
07135       fNbOfListFileEvolEvSig = 0;
07136     }
07137 
07138   if(QuantityCode == "EvolEvCorss")
07139     {         
07140       fImpEvolEvCorss = 0;       fCanvEvolEvCorss = 0;
07141       fPadEvolEvCorss = 0;       fMemoPlotEvolEvCorss = 0;
07142       fMemoColorEvolEvCorss = 0; fCanvSameEvolEvCorss++;
07143       fNbOfListFileEvolEvCorss = 0;
07144     }
07145 }

UInt_t TCnaViewEB::SetCanvasHeight ( const   TString  ) 

Definition at line 5014 of file TCnaViewEB.cc.

References CanvasFormatH(), and CanvasFormatW().

Referenced by HistimePlot(), and HistoPlot().

05015 {
05016 //........................................ Taille/format canvas
05017   
05018   UInt_t canv_h = CanvasFormatH("petit");
05019 
05020   if (QuantityCode == "SampTime"          || QuantityCode == "SMFoundEvtsGlobal" ||
05021       QuantityCode == "SMEvEvGlobal"      || QuantityCode == "SMSigEvGlobal"     ||
05022       QuantityCode == "SMEvSigGlobal"     || QuantityCode == "SMSigSigGlobal"    ||
05023       QuantityCode == "SMEvCorssGlobal"   || QuantityCode == "SMSigCorssGlobal"  ||
05024       QuantityCode == "EvolEvEv"          || QuantityCode == "EvolEvSig"         ||
05025       QuantityCode == "EvolEvCorss")
05026     {
05027       canv_h = CanvasFormatW("moyen");    // format 29.7*21 ( = 21*29.7 en paysage)
05028     }
05029   return canv_h;
05030 }

TString TCnaViewEB::SetCanvasName ( const   TString,
const Int_t &  opt_visu,
const Int_t &  opt_scale,
const   TString,
const Int_t &  SMtower_X,
const Int_t &  TowEcha,
const Int_t &  sample 
)

Definition at line 4856 of file TCnaViewEB.cc.

References fCanvSameEv, fCanvSameEvolEvCorss, fCanvSameEvolEvEv, fCanvSameEvolEvSig, fCanvSameEvts, fCanvSameSampTime, fCanvSameSigma, fCanvSameSMEvCorssGlobal, fCanvSameSMEvCorssProj, fCanvSameSMEvEvGlobal, fCanvSameSMEvEvProj, fCanvSameSMEvSigGlobal, fCanvSameSMEvSigProj, fCanvSameSMFoundEvtsGlobal, fCanvSameSMFoundEvtsProj, fCanvSameSMSigCorssGlobal, fCanvSameSMSigCorssProj, fCanvSameSMSigEvGlobal, fCanvSameSMSigEvProj, fCanvSameSMSigSigGlobal, fCanvSameSMSigSigProj, fCdelete, fCnew, fFapAnaType, fFapFirstEvt, fFapNbOfEvts, fFapRunNumber, fFapSuMoNumber, fgMaxCar, fOnlyOnePlot, fOptScaleLiny, fOptScaleLogy, fOptVisLine, fOptVisPolm, and fSeveralPlot.

Referenced by HistimePlot(), and HistoPlot().

04859 {
04860   //......... Set Canvas name
04861   
04862   TString canvas_name;
04863   Int_t MaxCar = fgMaxCar;
04864   canvas_name.Resize(MaxCar);
04865   canvas_name = "?";
04866 
04867   char* f_in = new char[fgMaxCar];               fCnew++;
04868   
04869   TString  name_opt_plot;
04870   MaxCar = fgMaxCar;
04871   name_opt_plot.Resize(MaxCar);
04872   name_opt_plot = "?";
04873   if(opt_plot == fOnlyOnePlot){name_opt_plot = "fl";}
04874   if(opt_plot == fSeveralPlot){name_opt_plot = "sm";}
04875 
04876   TString  name_quantity;
04877   MaxCar = fgMaxCar;
04878   name_quantity.Resize(MaxCar);
04879   name_quantity = "?";
04880 
04881   Int_t    num_crys      = -1;
04882   Int_t    num_samp      = -1;
04883   Int_t    name_same     = -1;
04884 
04885   if(QuantityCode == "SMFoundEvtsGlobal")
04886     {name_quantity = "SMfegb";             name_same = fCanvSameSMFoundEvtsGlobal;}
04887   if(QuantityCode == "SMFoundEvtsProj"  )
04888     {name_quantity = "SMfepr";             name_same = fCanvSameSMFoundEvtsProj; }
04889   if(QuantityCode == "SMEvEvGlobal"     )
04890     {name_quantity = "SMeegb";             name_same = fCanvSameSMEvEvGlobal;}
04891   if(QuantityCode == "SMEvEvProj"       )
04892     {name_quantity = "SMeepr";             name_same = fCanvSameSMEvEvProj;}
04893   if(QuantityCode == "SMEvSigGlobal"    )
04894     {name_quantity = "SMesgb";             name_same = fCanvSameSMEvSigGlobal;}
04895   if(QuantityCode == "SMEvSigProj"      )
04896     {name_quantity = "SMespr";             name_same = fCanvSameSMEvSigProj;}
04897   if(QuantityCode == "SMEvCorssGlobal"  )
04898     {name_quantity = "SMecgb";             name_same = fCanvSameSMEvCorssGlobal;}
04899   if(QuantityCode == "SMEvCorssProj"    )
04900     {name_quantity = "SMecpr";             name_same = fCanvSameSMEvCorssProj;}
04901   if(QuantityCode == "SMSigEvGlobal"    )
04902     {name_quantity = "SMsegb";             name_same = fCanvSameSMSigEvGlobal;}
04903   if(QuantityCode == "SMSigEvProj"      )
04904     {name_quantity = "SMsepr";             name_same = fCanvSameSMSigEvProj;}
04905   if(QuantityCode == "SMSigSigGlobal"   )
04906     {name_quantity = "SMssgb";             name_same = fCanvSameSMSigSigGlobal;}
04907   if(QuantityCode == "SMSigSigProj"     )
04908     {name_quantity = "SMsspr";             name_same = fCanvSameSMSigSigProj;}
04909   if(QuantityCode == "SMSigCorssGlobal" )
04910     {name_quantity = "SMscgb";             name_same = fCanvSameSMSigCorssGlobal;}
04911   if(QuantityCode == "SMSigCorssProj"   )
04912     {name_quantity = "SMscpr";             name_same = fCanvSameSMSigCorssProj;}
04913   if(QuantityCode == "Ev"               )
04914     {name_quantity = "ev";                 name_same = fCanvSameEv;    num_crys = TowEcha;}
04915   if(QuantityCode == "Sigma"            )
04916     {name_quantity = "var";                name_same = fCanvSameSigma; num_crys = TowEcha;}
04917   if(QuantityCode == "Evts"             )
04918     {name_quantity = "evts";               name_same = fCanvSameEvts;  num_crys = TowEcha; num_samp = sample;}
04919   if(QuantityCode == "SampTime"         )
04920     {name_quantity = "stime";              name_same = fCanvSameSampTime;    num_crys = TowEcha;}         
04921   if(QuantityCode == "EvolEvEv"         )
04922     {name_quantity = "evolee";             name_same = fCanvSameEvolEvEv;    num_crys = TowEcha;}
04923   if(QuantityCode == "EvolEvSig"        )
04924     {name_quantity = "evoles";             name_same = fCanvSameEvolEvSig;   num_crys = TowEcha;}
04925   if(QuantityCode == "EvolEvCorss"      )
04926     {name_quantity = "evolec";             name_same = fCanvSameEvolEvCorss; num_crys = TowEcha;}
04927 
04928   TString name_visu;
04929   MaxCar = fgMaxCar;
04930   name_visu.Resize(MaxCar);
04931   name_visu = "?";
04932   if(opt_visu == fOptVisLine && opt_scale == fOptScaleLiny){name_visu = "l_liny";}
04933   if(opt_visu == fOptVisLine && opt_scale == fOptScaleLogy){name_visu = "l_logy";}
04934   if(opt_visu == fOptVisPolm && opt_scale == fOptScaleLiny){name_visu = "p_liny";}
04935   if(opt_visu == fOptVisPolm && opt_scale == fOptScaleLogy){name_visu = "p_logy";}
04936           
04937   if(opt_plot == fSeveralPlot)
04938     {
04939       sprintf(f_in, "%s_%s_%s_%d", name_opt_plot.Data(), name_visu.Data(),
04940               name_quantity.Data(), name_same);
04941     }
04942           
04943   if(opt_plot == fOnlyOnePlot)
04944     {
04945       if (QuantityCode == "SMFoundEvtsGlobal" || QuantityCode == "SMFoundEvtsProj" || 
04946           QuantityCode == "SMEvEvGlobal"      || QuantityCode == "SMEvEvProj"      ||
04947           QuantityCode == "SMEvSigGlobal"     || QuantityCode == "SMEvSigProj"     ||
04948           QuantityCode == "SMEvCorssGlobal"   || QuantityCode == "SMEvCorssProj"   ||
04949           QuantityCode == "SMSigEvGlobal"     || QuantityCode == "SMSigEvProj"     || 
04950           QuantityCode == "SMSigSigGlobal"    || QuantityCode == "SMSigSigProj"    ||
04951           QuantityCode == "SMSigCorssGlobal"  || QuantityCode == "SMSigCorssProj"   )
04952         {
04953           sprintf(f_in, "%s_%s_%s_%d_%s_SuMo_%d_%d_SM%d",
04954                   name_opt_plot.Data(), name_visu.Data(), fFapAnaType.Data(), fFapRunNumber,
04955                   name_quantity.Data(), fFapFirstEvt, fFapNbOfEvts, fFapSuMoNumber);
04956         }
04957           
04958       if (QuantityCode == "Ev" || QuantityCode == "Sigma" || QuantityCode == "SampTime" || 
04959           QuantityCode == "EvolEvEv" ||  QuantityCode == "EvolEvSig"  ||  QuantityCode == "EvolEvCorss" )
04960         {
04961           sprintf(f_in, "%s_%s_%s_%d_%s_t%d_c%d_%d_%d_SM%d",
04962                   name_opt_plot.Data(), name_visu.Data(), fFapAnaType.Data(), fFapRunNumber,
04963                   name_quantity.Data(), SMtower_X, num_crys,
04964                   fFapFirstEvt, fFapNbOfEvts, fFapSuMoNumber); 
04965         }
04966    
04967       if (QuantityCode == "Evts")
04968         {
04969           sprintf(f_in, "%s_%s_%s_%d_%s_t%d_c%d_s%d_%d_%d_SM%d",
04970                   name_opt_plot.Data(), name_visu.Data(), fFapAnaType.Data(), fFapRunNumber,
04971                   name_quantity.Data(),SMtower_X, num_crys, num_samp,
04972                   fFapFirstEvt, fFapNbOfEvts, fFapSuMoNumber);
04973         }
04974     }
04975 
04976   canvas_name = f_in;
04977   delete [] f_in;                  fCdelete++;
04978   return canvas_name.Data();
04979 
04980 }  // end of CanvasName()

UInt_t TCnaViewEB::SetCanvasWidth ( const   TString  ) 

Definition at line 4996 of file TCnaViewEB.cc.

References CanvasFormatH(), and CanvasFormatW().

Referenced by HistimePlot(), and HistoPlot().

04997 {
04998 //........................................ Taille/format canvas
04999   
05000   UInt_t canv_w = CanvasFormatW("petit");
05001 
05002   if (QuantityCode == "SampTime"          || QuantityCode == "SMFoundEvtsGlobal" ||
05003       QuantityCode == "SMEvEvGlobal"      || QuantityCode == "SMSigEvGlobal"     ||
05004       QuantityCode == "SMEvSigGlobal"     || QuantityCode == "SMSigSigGlobal"    ||
05005       QuantityCode == "SMEvCorssGlobal"   || QuantityCode == "SMSigCorssGlobal"  ||
05006       QuantityCode == "EvolEvEv"          || QuantityCode == "EvolEvSig"         ||
05007       QuantityCode == "EvolEvCorss" )
05008     {        
05009       canv_w = CanvasFormatH("moyen");    // format 29.7*21 ( = 21*29.7 en paysage)
05010     }
05011   return canv_w;
05012 }

Color_t TCnaViewEB::SetColorsForNumbers ( const   TString  ) 

Definition at line 6537 of file TCnaViewEB.cc.

References ColorDefinition().

Referenced by PutPaveLVRB(), TowerCrystalNumbering(), and ViewSuperModuleTowerNumberingPad().

06538 {
06539  //Set color of the numbers for SuperModule- or Tower-  numbering plots
06540 
06541   Color_t couleur = ColorDefinition("noir");        // default = "noir"
06542 
06543   if ( chtype_number == "crystal"     ){couleur = ColorDefinition("noir");}
06544   if ( chtype_number == "lvrb_top"    ){couleur = ColorDefinition("rouge");}
06545   if ( chtype_number == "lvrb_bottom" ){couleur = ColorDefinition("bleu_fonce");}
06546 
06547   return couleur;
06548 }

void TCnaViewEB::SetFile ( const   TString,
const Int_t &  xArgRunNumber,
const Int_t &  xArgFirstEvt,
const Int_t &  xArgNbOfEvts,
const Int_t &  xArgSuMoNumber,
const   TString,
const   TString 
)

Definition at line 3500 of file TCnaViewEB.cc.

References fCfgListOfRunsFilePath, fCfgResultsRootFilePath, fFapAnaType, fFapChanNumber, fFapFirstEvt, fFapNbOfEvts, fFapRunNumber, fFapSampNumber, fFapSuMoNumber, fFapTowXNumber, fFapTowYNumber, fgMaxCar, fStartDate, fStartTime, fStopDate, and fStopTime.

03505 {
03506 // Set parameters for reading the right CNA results file
03507 
03508   fFapAnaType      = xArgAnaType;
03509   fFapRunNumber    = xArgRunNumber;
03510   fFapFirstEvt     = xArgFirstEvt;
03511   fFapNbOfEvts     = xArgNbOfEvts;
03512   fFapSuMoNumber   = xArgSuMoNumber;
03513 
03514   fCfgResultsRootFilePath = xArgResultsRootFilePath;
03515   fCfgListOfRunsFilePath  = xArgListOfRunsFilePath;
03516 
03517   // Init parameters that will be set by reading the info which are in the CNA results file
03518   Int_t MaxCar = fgMaxCar;
03519   fStartDate.Resize(MaxCar);
03520   fStartDate = "(date not found)";
03521 
03522   MaxCar = fgMaxCar;
03523   fStopDate.Resize(MaxCar);
03524   fStopDate  = "(date not found)";
03525 
03526   fStartTime = (time_t)0;
03527   fStopTime  = (time_t)0;
03528 
03529   fFapChanNumber = 0;
03530   fFapSampNumber = 0;
03531   fFapTowXNumber = 0;
03532   fFapTowYNumber = 0;
03533 }

void TCnaViewEB::SetFile ( const   TString,
const Int_t &  xArgRunNumber,
const Int_t &  xArgFirstEvt,
const Int_t &  xArgNbOfEvts,
const Int_t &  xArgSuMoNumber 
)

Definition at line 3537 of file TCnaViewEB.cc.

References fFapAnaType, fFapChanNumber, fFapFirstEvt, fFapNbOfEvts, fFapRunNumber, fFapSampNumber, fFapSuMoNumber, fFapTowXNumber, fFapTowYNumber, fgMaxCar, fStartDate, fStartTime, fStopDate, and fStopTime.

03540 {
03541 // Set parameters for reading the right CNA results file
03542 
03543   fFapAnaType      = xArgAnaType;
03544   fFapRunNumber    = xArgRunNumber;
03545   fFapFirstEvt     = xArgFirstEvt;
03546   fFapNbOfEvts     = xArgNbOfEvts;
03547   fFapSuMoNumber   = xArgSuMoNumber;
03548 
03549   // Init parameters that will be set by reading the info which are in the CNA results file
03550   Int_t MaxCar = fgMaxCar;
03551   fStartDate.Resize(MaxCar);
03552   fStartDate = "(date not found)";
03553 
03554   MaxCar = fgMaxCar;
03555   fStopDate.Resize(MaxCar);
03556   fStopDate  = "(date not found)";
03557 
03558   fStartTime = (time_t)0;
03559   fStopTime  = (time_t)0;
03560 
03561   fFapChanNumber = 0;
03562   fFapSampNumber = 0;
03563   fFapTowXNumber = 0;
03564   fFapTowYNumber = 0;
03565 }

void TCnaViewEB::SetFile ( const Int_t &  xArgIndexRun  ) 

Definition at line 3467 of file TCnaViewEB.cc.

References fCfgListOfRunsFilePath, fCfgResultsRootFilePath, fFapAnaType, fFapChanNumber, fFapFirstEvt, fFapNbOfEvts, fFapRunNumber, fFapSampNumber, fFapSuMoNumber, fFapTowXNumber, fFapTowYNumber, fgMaxCar, fStartDate, fStartTime, fStopDate, fStopTime, fT1DAnaType, fT1DFirstEvt, fT1DListOfRunsFilePath, fT1DNbOfEvts, fT1DResultsRootFilePath, fT1DRunNumber, and fT1DSuMoNumber.

Referenced by ViewHistime(), TCnaDialogEB::ViewHistoCrystalExpectationValuesOfSamples(), TCnaDialogEB::ViewHistoCrystalPedestalEventNumber(), TCnaDialogEB::ViewHistoCrystalSigmasOfSamples(), TCnaDialogEB::ViewHistoSampleEventDistribution(), TCnaDialogEB::ViewHistoSuperModuleFoundEventsDistribution(), TCnaDialogEB::ViewHistoSuperModuleFoundEventsOfCrystals(), TCnaDialogEB::ViewHistoSuperModuleMeanOfCorssDistribution(), TCnaDialogEB::ViewHistoSuperModuleMeanOfCorssOfCrystals(), TCnaDialogEB::ViewHistoSuperModuleMeanOfSampleSigmasDistribution(), TCnaDialogEB::ViewHistoSuperModuleMeanOfSampleSigmasOfCrystals(), TCnaDialogEB::ViewHistoSuperModuleMeanPedestalsDistribution(), TCnaDialogEB::ViewHistoSuperModuleMeanPedestalsOfCrystals(), TCnaDialogEB::ViewHistoSuperModuleSigmaOfCorssDistribution(), TCnaDialogEB::ViewHistoSuperModuleSigmaOfCorssOfCrystals(), TCnaDialogEB::ViewHistoSuperModuleSigmaOfSampleSigmasDistribution(), TCnaDialogEB::ViewHistoSuperModuleSigmaOfSampleSigmasOfCrystals(), TCnaDialogEB::ViewHistoSuperModuleSigmaPedestalsDistribution(), TCnaDialogEB::ViewHistoSuperModuleSigmaPedestalsOfCrystals(), TCnaDialogEB::ViewMatrixCorrelationCrystals(), TCnaDialogEB::ViewMatrixCorrelationSamples(), TCnaDialogEB::ViewMatrixCorrelationTowers(), TCnaDialogEB::ViewMatrixCovarianceCrystals(), TCnaDialogEB::ViewMatrixCovarianceSamples(), TCnaDialogEB::ViewMatrixCovarianceTowers(), TCnaDialogEB::ViewSMTowerNumbering(), TCnaDialogEB::ViewSuperModuleCorccMeanOverSamples(), TCnaDialogEB::ViewSuperModuleFoundEvents(), TCnaDialogEB::ViewSuperModuleMeanOfCorss(), TCnaDialogEB::ViewSuperModuleMeanOfSampleSigmas(), TCnaDialogEB::ViewSuperModuleMeanPedestals(), TCnaDialogEB::ViewSuperModuleSigmaOfCorss(), TCnaDialogEB::ViewSuperModuleSigmaOfSampleSigmas(), TCnaDialogEB::ViewSuperModuleSigmaPedestals(), TCnaDialogEB::ViewTowerCorrelationSamples(), TCnaDialogEB::ViewTowerCovarianceSamples(), and TCnaDialogEB::ViewTowerCrystalNumbering().

03468 {
03469 // Set parameters for reading the right CNA results file
03470 
03471   fFapAnaType      = fT1DAnaType[xArgIndexRun];
03472   fFapRunNumber    = fT1DRunNumber[xArgIndexRun];
03473   fFapFirstEvt     = fT1DFirstEvt[xArgIndexRun];
03474   fFapNbOfEvts     = fT1DNbOfEvts[xArgIndexRun];
03475   fFapSuMoNumber   = fT1DSuMoNumber[xArgIndexRun];
03476 
03477   fCfgResultsRootFilePath = fT1DResultsRootFilePath[xArgIndexRun];
03478   fCfgListOfRunsFilePath  = fT1DListOfRunsFilePath[xArgIndexRun];
03479 
03480   // Init parameters that will be set by reading the info which are in the CNA results file
03481   Int_t MaxCar = fgMaxCar;
03482   fStartDate.Resize(MaxCar);
03483   fStartDate = "(date not found)";
03484 
03485   MaxCar = fgMaxCar;
03486   fStopDate.Resize(MaxCar);
03487   fStopDate  = "(date not found)";
03488 
03489   fStartTime = (time_t)0;
03490   fStopTime  = (time_t)0;
03491 
03492   fFapChanNumber = 0;
03493   fFapSampNumber = 0;
03494   fFapTowXNumber = 0;
03495   fFapTowYNumber = 0;
03496 }

void TCnaViewEB::SetGraphPresentation ( TGraph *  graph,
const   TString 
)

Definition at line 6620 of file TCnaViewEB.cc.

References SetViewGraphOffsets(), SetViewHistoPadMargins(), and SetViewHistoStyle().

Referenced by HistimePlot().

06621 {
06622 // Set presentation (axis title offsets, title size, label size, etc... 
06623 
06624   SetViewHistoStyle(QuantityType);
06625   SetViewHistoPadMargins(QuantityType);
06626 
06627   SetViewGraphOffsets(graph, QuantityType);
06628   
06629   //............................... Marker
06630   graph->SetMarkerStyle(1);
06631 
06632   if( (QuantityType == "NotSMRun") || (QuantityType == "NotSMNoRun") )
06633     {
06634       graph->SetMarkerStyle(20);
06635     }
06636 }

Int_t TCnaViewEB::SetHistoNumberOfBins ( const   TString,
const Int_t &  HisSize 
)

Definition at line 5493 of file TCnaViewEB.cc.

References fNbBinsProj.

Referenced by ViewHisto().

05494 {
05495 // Set histo number of bins
05496 
05497   Int_t nb_binx = HisSize;
05498 
05499   if(QuantityCode == "SMFoundEvtsGlobal"){nb_binx = HisSize;}
05500   if(QuantityCode == "SMFoundEvtsProj"  ){nb_binx = fNbBinsProj;}
05501   if(QuantityCode == "SMEvEvGlobal"     ){nb_binx = HisSize;}
05502   if(QuantityCode == "SMEvEvProj"       ){nb_binx = fNbBinsProj;}
05503   if(QuantityCode == "SMEvSigGlobal"    ){nb_binx = HisSize;}
05504   if(QuantityCode == "SMEvSigProj"      ){nb_binx = fNbBinsProj;}
05505   if(QuantityCode == "SMEvCorssGlobal"  ){nb_binx = HisSize;}
05506   if(QuantityCode == "SMEvCorssProj"    ){nb_binx = fNbBinsProj;}
05507   if(QuantityCode == "SMSigEvGlobal"    ){nb_binx = HisSize;}
05508   if(QuantityCode == "SMSigEvProj"      ){nb_binx = fNbBinsProj;} 
05509   if(QuantityCode == "SMSigSigGlobal"   ){nb_binx = HisSize;} 
05510   if(QuantityCode == "SMSigSigProj"     ){nb_binx = fNbBinsProj;}
05511   if(QuantityCode == "SMSigCorssGlobal" ){nb_binx = HisSize;}
05512   if(QuantityCode == "SMSigCorssProj"   ){nb_binx = fNbBinsProj;}
05513   if(QuantityCode == "Ev"               ){nb_binx = HisSize;}
05514   if(QuantityCode == "Sigma"            ){nb_binx = HisSize;}
05515   if(QuantityCode == "Evts"             ){nb_binx = HisSize;}
05516   if(QuantityCode == "SampTime"         ){nb_binx = HisSize;}
05517 
05518   return nb_binx;
05519 }

void TCnaViewEB::SetHistoPresentation ( TH1D *  histo,
const   TString 
)

Definition at line 6601 of file TCnaViewEB.cc.

References SetViewHistoOffsets(), SetViewHistoPadMargins(), SetViewHistoStats(), and SetViewHistoStyle().

Referenced by EtaPhiSuperModuleCorccMeanOverSamples(), HistoPlot(), SuperModuleTowerNumbering(), TowerCrystalNumbering(), ViewMatrix(), ViewSuperModule(), and ViewTower().

06602 {
06603 // Set presentation (axis title offsets, title size, label size, etc... 
06604 
06605   SetViewHistoStyle(QuantityType);
06606   SetViewHistoPadMargins(QuantityType);
06607 
06608   SetViewHistoOffsets(histo, QuantityType);
06609   SetViewHistoStats(histo, QuantityType);
06610   
06611   //............................... Marker
06612   histo->SetMarkerStyle(1);
06613 
06614   if( (QuantityType == "NotSMRun") || (QuantityType == "NotSMNoRun") )
06615     {
06616       histo->SetMarkerStyle(20);
06617     }
06618 }

void TCnaViewEB::SetHistoScaleX ( const   TString  ) 

Definition at line 583 of file TCnaViewEB.cc.

References fFlagScaleX.

00584 {
00585   fFlagScaleX = "LIN";
00586   if ( option_scale == "LOG" ){fFlagScaleX = "LOG";}
00587 }

void TCnaViewEB::SetHistoScaleY ( const   TString  ) 

Definition at line 588 of file TCnaViewEB.cc.

References fFlagScaleY.

Referenced by TCnaDialogEB::ViewHistimeCrystalMeanCorss(), TCnaDialogEB::ViewHistimeCrystalMeanPedestals(), TCnaDialogEB::ViewHistimeCrystalMeanSigmas(), TCnaDialogEB::ViewHistoCrystalExpectationValuesOfSamples(), TCnaDialogEB::ViewHistoCrystalPedestalEventNumber(), TCnaDialogEB::ViewHistoCrystalSigmasOfSamples(), TCnaDialogEB::ViewHistoSampleEventDistribution(), TCnaDialogEB::ViewHistoSuperModuleFoundEventsDistribution(), TCnaDialogEB::ViewHistoSuperModuleFoundEventsOfCrystals(), TCnaDialogEB::ViewHistoSuperModuleMeanOfCorssDistribution(), TCnaDialogEB::ViewHistoSuperModuleMeanOfCorssOfCrystals(), TCnaDialogEB::ViewHistoSuperModuleMeanOfSampleSigmasDistribution(), TCnaDialogEB::ViewHistoSuperModuleMeanOfSampleSigmasOfCrystals(), TCnaDialogEB::ViewHistoSuperModuleMeanPedestalsDistribution(), TCnaDialogEB::ViewHistoSuperModuleMeanPedestalsOfCrystals(), TCnaDialogEB::ViewHistoSuperModuleSigmaOfCorssDistribution(), TCnaDialogEB::ViewHistoSuperModuleSigmaOfCorssOfCrystals(), TCnaDialogEB::ViewHistoSuperModuleSigmaOfSampleSigmasDistribution(), TCnaDialogEB::ViewHistoSuperModuleSigmaOfSampleSigmasOfCrystals(), TCnaDialogEB::ViewHistoSuperModuleSigmaPedestalsDistribution(), and TCnaDialogEB::ViewHistoSuperModuleSigmaPedestalsOfCrystals().

00589 {
00590   fFlagScaleY = "LIN";
00591   if ( option_scale == "LOG" ){fFlagScaleY = "LOG";}
00592 }

TString TCnaViewEB::SetHistoXAxisTitle ( const   TString  ) 

Definition at line 5291 of file TCnaViewEB.cc.

Referenced by HistimePlot(), and HistoPlot().

05292 {
05293 // Set histo X axis title
05294 
05295   TString axis_x_var_name;
05296   
05297   if(QuantityCode == "SMFoundEvtsGlobal" || QuantityCode == "SMEvEvGlobal"    ||
05298      QuantityCode == "SMEvSigGlobal"     || QuantityCode == "SMEvCorssGlobal" ||
05299      QuantityCode == "SMSigEvGlobal"     || QuantityCode == "SMSigSigGlobal"  ||
05300      QuantityCode == "SMSigCorssGlobal" )
05301     {axis_x_var_name = "Crystal (electronic channel number)";}
05302   
05303   if(QuantityCode == "SMFoundEvtsProj")
05304     {axis_x_var_name = "Number of events";}
05305   
05306   if(QuantityCode == "SMEvEvProj")
05307     {axis_x_var_name = "Exp.val. of the exp. val of the samples";}
05308   
05309   if(QuantityCode == "SMEvSigProj")
05310     {axis_x_var_name = "Exp. val. of the sigmas of the samples";}
05311   
05312   if(QuantityCode == "SMEvCorssProj")
05313     {axis_x_var_name = "Exp. val. of the cor(samp,samp)";}
05314   
05315   if(QuantityCode == "SMSigEvProj")
05316     {axis_x_var_name = "Sigmas of the exp. val of the samples";} 
05317   
05318   if(QuantityCode == "SMSigSigProj")
05319     {axis_x_var_name = "Sigmas of the sigmas of the samples";}
05320   
05321   if(QuantityCode == "SMSigCorssProj")
05322     {axis_x_var_name = "Sigmas of the cor(samp,samp)";}
05323   
05324   if(QuantityCode == "Ev")
05325     {axis_x_var_name = "Sample";}
05326   
05327   if(QuantityCode == "Sigma")
05328     {axis_x_var_name = "Sample";}
05329   
05330   if(QuantityCode == "Evts")
05331     {axis_x_var_name = "ADC";}
05332   
05333   if(QuantityCode == "SampTime")
05334     {axis_x_var_name = "Event number in burst";}
05335 
05336   if(QuantityCode == "EvolEvEv" || QuantityCode == "EvolEvSig" || QuantityCode == "EvolEvCorss")
05337     {axis_x_var_name = "Time";}
05338     
05339   return axis_x_var_name; 
05340 }

Axis_t TCnaViewEB::SetHistoXinf ( TCnaReadEB MyRootFile,
const   TString,
const Int_t &  HisSize,
const Int_t &  SMtower_X,
const Int_t &  TowEcha,
const Int_t &  sample 
)

Definition at line 5414 of file TCnaViewEB.cc.

References fSMEvCorssGlobalYmin, fSMEvEvGlobalYmin, fSMEvSigGlobalYmin, fSMFoundEvtsGlobalYmin, fSMSigCorssGlobalYmin, fSMSigEvGlobalYmin, fSMSigSigGlobalYmin, and TCnaReadEB::ReadEventDistributionXmin().

Referenced by ViewHisto().

05416 {
05417 // Set histo Xinf
05418 
05419   Axis_t xinf_his = (Axis_t)0;
05420 
05421   if(QuantityCode == "SMFoundEvtsGlobal"){xinf_his = (Axis_t)0.;}
05422   if(QuantityCode == "SMEvEvGlobal"     ){xinf_his = (Axis_t)0.;}
05423   if(QuantityCode == "SMEvSigGlobal"    ){xinf_his = (Axis_t)0.;}
05424   if(QuantityCode == "SMEvCorssGlobal"  ){xinf_his = (Axis_t)0.;}
05425   if(QuantityCode == "SMSigEvGlobal"    ){xinf_his = (Axis_t)0.;} 
05426   if(QuantityCode == "SMSigSigGlobal"   ){xinf_his = (Axis_t)0.;}  
05427   if(QuantityCode == "SMSigCorssGlobal" ){xinf_his = (Axis_t)0.;}
05428 
05429   if(QuantityCode == "SMFoundEvtsProj"){xinf_his = (Axis_t)fSMFoundEvtsGlobalYmin;}
05430   if(QuantityCode == "SMEvEvProj"     ){xinf_his = (Axis_t)fSMEvEvGlobalYmin;}
05431   if(QuantityCode == "SMEvSigProj"    ){xinf_his = (Axis_t)fSMEvSigGlobalYmin;}
05432   if(QuantityCode == "SMEvCorssProj"  ){xinf_his = (Axis_t)fSMEvCorssGlobalYmin;}
05433   if(QuantityCode == "SMSigEvProj"    ){xinf_his = (Axis_t)fSMSigEvGlobalYmin;}
05434   if(QuantityCode == "SMSigSigProj"   ){xinf_his = (Axis_t)fSMSigSigGlobalYmin;}
05435   if(QuantityCode == "SMSigCorssProj" ){xinf_his = (Axis_t)fSMSigCorssGlobalYmin;}
05436 
05437   //........................ Histo already in ROOT file => no possibility to change xinf and xsup
05438   if(QuantityCode == "Evts")
05439     {xinf_his = (Axis_t)MyRootFile->ReadEventDistributionXmin(SMtower_X, TowEcha, sample);}
05440 
05441   if(QuantityCode == "Ev"         ){xinf_his = (Axis_t)0.;}
05442   if(QuantityCode == "Sigma"      ){xinf_his = (Axis_t)0.;}
05443   if(QuantityCode == "SampTime"   ){xinf_his = (Axis_t)0.;}
05444 
05445   if(QuantityCode == "EvolEvEv"   ){xinf_his = (Axis_t)0.;}
05446   if(QuantityCode == "EvolEvSig"  ){xinf_his = (Axis_t)0.;}
05447   if(QuantityCode == "EvolEvCorss"){xinf_his = (Axis_t)0.;}
05448 
05449   return xinf_his;
05450 }

Axis_t TCnaViewEB::SetHistoXsup ( TCnaReadEB MyRootFile,
const   TString,
const Int_t &  HisSize,
const Int_t &  SMtower_X,
const Int_t &  TowEcha,
const Int_t &  sample 
)

Definition at line 5452 of file TCnaViewEB.cc.

References fSMEvCorssGlobalYmax, fSMEvEvGlobalYmax, fSMEvSigGlobalYmax, fSMFoundEvtsGlobalYmax, fSMSigCorssGlobalYmax, fSMSigEvGlobalYmax, fSMSigSigGlobalYmax, TCnaReadEB::GetNumberOfBinsSampleAsFunctionOfTime(), and TCnaReadEB::ReadEventDistributionXmax().

Referenced by ViewHisto().

05454 {
05455 // Set histo Xsup
05456 
05457   Axis_t xsup_his = (Axis_t)0; 
05458 
05459   if(QuantityCode == "SMFoundEvtsGlobal"){xsup_his = (Axis_t)HisSize;}
05460   if(QuantityCode == "SMEvEvGlobal"     ){xsup_his = (Axis_t)HisSize;}
05461   if(QuantityCode == "SMEvSigGlobal"    ){xsup_his = (Axis_t)HisSize;}
05462   if(QuantityCode == "SMEvCorssGlobal"  ){xsup_his = (Axis_t)HisSize;}
05463   if(QuantityCode == "SMSigEvGlobal"    ){xsup_his = (Axis_t)HisSize;} 
05464   if(QuantityCode == "SMSigSigGlobal"   ){xsup_his = (Axis_t)HisSize;}  
05465   if(QuantityCode == "SMSigCorssGlobal" ){xsup_his = (Axis_t)HisSize;}
05466 
05467   if(QuantityCode == "SMFoundEvtsProj"){xsup_his = (Axis_t)fSMFoundEvtsGlobalYmax;}
05468   if(QuantityCode == "SMEvEvProj"     ){xsup_his = (Axis_t)fSMEvEvGlobalYmax;}
05469   if(QuantityCode == "SMEvSigProj"    ){xsup_his = (Axis_t)fSMEvSigGlobalYmax;}
05470   if(QuantityCode == "SMEvCorssProj"  ){xsup_his = (Axis_t)fSMEvCorssGlobalYmax;}
05471   if(QuantityCode == "SMSigEvProj"    ){xsup_his = (Axis_t)fSMSigEvGlobalYmax;}
05472   if(QuantityCode == "SMSigSigProj"   ){xsup_his = (Axis_t)fSMSigSigGlobalYmax;}
05473   if(QuantityCode == "SMSigCorssProj" ){xsup_his = (Axis_t)fSMSigCorssGlobalYmax;}
05474 
05475   //........................ Histo already in ROOT file => no possibility to change xinf and xsup
05476   if(QuantityCode == "Evts")
05477     {xsup_his = (Axis_t)MyRootFile->ReadEventDistributionXmax(SMtower_X, TowEcha, sample);}
05478 
05479   if(QuantityCode == "Ev"   ){xsup_his = (Axis_t)HisSize;}
05480   if(QuantityCode == "Sigma"){xsup_his = (Axis_t)HisSize;}
05481   
05482   if(QuantityCode == "SampTime")
05483     {xsup_his = (Axis_t)MyRootFile->GetNumberOfBinsSampleAsFunctionOfTime();}
05484 
05485   if(QuantityCode == "EvolEvEv"   ){xsup_his = (Axis_t)0.;}
05486   if(QuantityCode == "EvolEvSig"  ){xsup_his = (Axis_t)0.;}
05487   if(QuantityCode == "EvolEvCorss"){xsup_his = (Axis_t)0.;}
05488 
05489 
05490   return xsup_his;
05491 }

TString TCnaViewEB::SetHistoYAxisTitle ( const   TString  ) 

Definition at line 5342 of file TCnaViewEB.cc.

Referenced by HistimePlot(), and HistoPlot().

05343 {
05344 // Set histo Y axis title
05345 
05346   TString axis_y_var_name;
05347 
05348   if(QuantityCode == "SMFoundEvtsGlobal")
05349     {axis_y_var_name = "Number of events (mean over samples)";}
05350 
05351   if(QuantityCode == "SMFoundEvtsProj")
05352     {axis_y_var_name = "Number of crystals";}
05353 
05354   if(QuantityCode == "SMEvEvGlobal")
05355     {axis_y_var_name = "Mean of sample means (mean pedestal)";}
05356 
05357   if(QuantityCode == "SMEvEvProj")
05358     {axis_y_var_name = "Number of crystals";}
05359 
05360   if(QuantityCode == "SMEvSigGlobal")
05361     {axis_y_var_name = "Mean of sample sigmas";}
05362 
05363   if(QuantityCode == "SMEvSigProj")
05364     {axis_y_var_name = "Number of crystals";}
05365 
05366   if(QuantityCode == "SMEvCorssGlobal")
05367     {axis_y_var_name = "Mean of cor(s,s)";}
05368 
05369   if(QuantityCode == "SMEvCorssProj")
05370     {axis_y_var_name = "Number of crystals";}
05371 
05372   if(QuantityCode == "SMSigEvGlobal")
05373     {axis_y_var_name = "Sigma of sample means";} 
05374 
05375   if(QuantityCode == "SMSigEvProj")
05376     {axis_y_var_name = "Number of crystals";} 
05377 
05378   if(QuantityCode == "SMSigSigGlobal")
05379     {axis_y_var_name = "Sigma of sample sigmas";}  
05380  
05381   if(QuantityCode == "SMSigSigProj")
05382     {axis_y_var_name = "Number of crystals";}
05383          
05384   if(QuantityCode == "SMSigCorssGlobal")
05385     {axis_y_var_name = "Sigma of cor(s,s)";}
05386 
05387   if(QuantityCode == "SMSigCorssProj")
05388     {axis_y_var_name = "Number of crystals";}
05389 
05390   if(QuantityCode == "Ev")
05391     {axis_y_var_name = "Expectation value";}
05392 
05393   if(QuantityCode == "Sigma")
05394     {axis_y_var_name = "Sigma";}
05395 
05396   if(QuantityCode == "Evts")
05397     {axis_y_var_name = "Number of events";}
05398 
05399   if(QuantityCode == "SampTime")
05400     {axis_y_var_name = "Pedestal value";}
05401 
05402   if(QuantityCode == "EvolEvEv")
05403     {axis_y_var_name = "Mean Pedestal value";}
05404 
05405   if(QuantityCode == "EvolEvSig")
05406     {axis_y_var_name = "Mean sigma value";}
05407 
05408   if(QuantityCode == "EvolEvCorss")
05409     {axis_y_var_name = "Mean cor(s,s) value";}
05410 
05411   return axis_y_var_name;
05412 }

void TCnaViewEB::SetMemoFlagBusy ( const   TString  ) 

Definition at line 5824 of file TCnaViewEB.cc.

References fMemoPlotEv, fMemoPlotEvolEvCorss, fMemoPlotEvolEvEv, fMemoPlotEvolEvSig, fMemoPlotEvts, fMemoPlotSampTime, fMemoPlotSigma, fMemoPlotSMEvCorssGlobal, fMemoPlotSMEvCorssProj, fMemoPlotSMEvEvGlobal, fMemoPlotSMEvEvProj, fMemoPlotSMEvSigGlobal, fMemoPlotSMEvSigProj, fMemoPlotSMFoundEvtsGlobal, fMemoPlotSMFoundEvtsProj, fMemoPlotSMSigCorssGlobal, fMemoPlotSMSigCorssProj, fMemoPlotSMSigEvGlobal, fMemoPlotSMSigEvProj, fMemoPlotSMSigSigGlobal, and fMemoPlotSMSigSigProj.

05825 {
05826 // Set Memo Flag to BUSY
05827   if(QuantityCode == "SMFoundEvtsGlobal"){fMemoPlotSMFoundEvtsGlobal = 1;}
05828   if(QuantityCode == "SMFoundEvtsProj"  ){fMemoPlotSMFoundEvtsProj   = 1;}
05829   if(QuantityCode == "SMEvEvGlobal"     ){fMemoPlotSMEvEvGlobal      = 1;}
05830   if(QuantityCode == "SMEvEvProj"       ){fMemoPlotSMEvEvProj        = 1;}
05831   if(QuantityCode == "SMEvSigGlobal"    ){fMemoPlotSMEvSigGlobal     = 1;}
05832   if(QuantityCode == "SMEvSigProj"      ){fMemoPlotSMEvSigProj       = 1;}
05833   if(QuantityCode == "SMEvCorssGlobal"  ){fMemoPlotSMEvCorssGlobal   = 1;}
05834   if(QuantityCode == "SMEvCorssProj"    ){fMemoPlotSMEvCorssProj     = 1;}
05835   if(QuantityCode == "SMSigEvGlobal"    ){fMemoPlotSMSigEvGlobal     = 1;}
05836   if(QuantityCode == "SMSigEvProj"      ){fMemoPlotSMSigEvProj       = 1;} 
05837   if(QuantityCode == "SMSigSigGlobal"   ){fMemoPlotSMSigSigGlobal    = 1;} 
05838   if(QuantityCode == "SMSigSigProj"     ){fMemoPlotSMSigSigProj      = 1;}
05839   if(QuantityCode == "SMSigCorssGlobal" ){fMemoPlotSMSigCorssGlobal  = 1;}
05840   if(QuantityCode == "SMSigCorssProj"   ){fMemoPlotSMSigCorssProj    = 1;}
05841   if(QuantityCode == "Ev"               ){fMemoPlotEv                = 1;}
05842   if(QuantityCode == "Sigma"            ){fMemoPlotSigma             = 1;}
05843   if(QuantityCode == "Evts"             ){fMemoPlotEvts              = 1;}
05844   if(QuantityCode == "SampTime"         ){fMemoPlotSampTime          = 1;}
05845   if(QuantityCode == "EvolEvEv"         ){fMemoPlotEvolEvEv          = 1;}
05846   if(QuantityCode == "EvolEvSig"        ){fMemoPlotEvolEvSig         = 1;}
05847   if(QuantityCode == "EvolEvCorss"      ){fMemoPlotEvolEvCorss       = 1;}
05848 }

void TCnaViewEB::SetMemoFlagFree ( const   TString  ) 

Definition at line 5797 of file TCnaViewEB.cc.

References fMemoPlotEv, fMemoPlotEvolEvCorss, fMemoPlotEvolEvEv, fMemoPlotEvolEvSig, fMemoPlotEvts, fMemoPlotSampTime, fMemoPlotSigma, fMemoPlotSMEvCorssGlobal, fMemoPlotSMEvCorssProj, fMemoPlotSMEvEvGlobal, fMemoPlotSMEvEvProj, fMemoPlotSMEvSigGlobal, fMemoPlotSMEvSigProj, fMemoPlotSMFoundEvtsGlobal, fMemoPlotSMFoundEvtsProj, fMemoPlotSMSigCorssGlobal, fMemoPlotSMSigCorssProj, fMemoPlotSMSigEvGlobal, fMemoPlotSMSigEvProj, fMemoPlotSMSigSigGlobal, and fMemoPlotSMSigSigProj.

05798 {
05799 // Set Memo Flag to FREE
05800 
05801   if(QuantityCode == "SMFoundEvtsGlobal"){fMemoPlotSMFoundEvtsGlobal = 0;}
05802   if(QuantityCode == "SMFoundEvtsProj"  ){fMemoPlotSMFoundEvtsProj   = 0;}
05803   if(QuantityCode == "SMEvEvGlobal"     ){fMemoPlotSMEvEvGlobal      = 0;}
05804   if(QuantityCode == "SMEvEvProj"       ){fMemoPlotSMEvEvProj        = 0;}
05805   if(QuantityCode == "SMEvSigGlobal"    ){fMemoPlotSMEvSigGlobal     = 0;}
05806   if(QuantityCode == "SMEvSigProj"      ){fMemoPlotSMEvSigProj       = 0;}
05807   if(QuantityCode == "SMEvCorssGlobal"  ){fMemoPlotSMEvCorssGlobal   = 0;}
05808   if(QuantityCode == "SMEvCorssProj"    ){fMemoPlotSMEvCorssProj     = 0;}
05809   if(QuantityCode == "SMSigEvGlobal"    ){fMemoPlotSMSigEvGlobal     = 0;}
05810   if(QuantityCode == "SMSigEvProj"      ){fMemoPlotSMSigEvProj       = 0;} 
05811   if(QuantityCode == "SMSigSigGlobal"   ){fMemoPlotSMSigSigGlobal    = 0;} 
05812   if(QuantityCode == "SMSigSigProj"     ){fMemoPlotSMSigSigProj      = 0;}
05813   if(QuantityCode == "SMSigCorssGlobal" ){fMemoPlotSMSigCorssGlobal  = 0;}
05814   if(QuantityCode == "SMSigCorssProj"   ){fMemoPlotSMSigCorssProj    = 0;}
05815   if(QuantityCode == "Ev"               ){fMemoPlotEv                = 0;}
05816   if(QuantityCode == "Sigma"            ){fMemoPlotSigma             = 0;}
05817   if(QuantityCode == "Evts"             ){fMemoPlotEvts              = 0;}
05818   if(QuantityCode == "SampTime"         ){fMemoPlotSampTime          = 0;}
05819   if(QuantityCode == "EvolEvEv"         ){fMemoPlotEvolEvEv          = 0;}
05820   if(QuantityCode == "EvolEvSig"        ){fMemoPlotEvolEvSig         = 0;}
05821   if(QuantityCode == "EvolEvCorss"      ){fMemoPlotEvolEvCorss       = 0;}
05822 }

void TCnaViewEB::SetParametersCanvas ( const   TString  ) 

Definition at line 5898 of file TCnaViewEB.cc.

References fCanvEv, fCanvEvolEvCorss, fCanvEvolEvEv, fCanvEvolEvSig, fCanvEvts, fCanvSampTime, fCanvSigma, fCanvSMEvCorssGlobal, fCanvSMEvCorssProj, fCanvSMEvEvGlobal, fCanvSMEvEvProj, fCanvSMEvSigGlobal, fCanvSMEvSigProj, fCanvSMFoundEvtsGlobal, fCanvSMFoundEvtsProj, fCanvSMSigCorssGlobal, fCanvSMSigCorssProj, fCanvSMSigEvGlobal, fCanvSMSigEvProj, fCanvSMSigSigGlobal, fCanvSMSigSigProj, fcom_top_left, fImpEv, fImpEvolEvCorss, fImpEvolEvEv, fImpEvolEvSig, fImpEvts, fImpSampTime, fImpSigma, fImpSMEvCorssGlobal, fImpSMEvCorssProj, fImpSMEvEvGlobal, fImpSMEvEvProj, fImpSMEvSigGlobal, fImpSMEvSigProj, fImpSMFoundEvtsGlobal, fImpSMFoundEvtsProj, fImpSMSigCorssGlobal, fImpSMSigCorssProj, fImpSMSigEvGlobal, fImpSMSigEvProj, fImpSMSigSigGlobal, fImpSMSigSigProj, fMemoColorEv, fMemoColorEvolEvCorss, fMemoColorEvolEvEv, fMemoColorEvolEvSig, fMemoColorEvts, fMemoColorSampTime, fMemoColorSigma, fMemoColorSMEvCorssGlobal, fMemoColorSMEvCorssProj, fMemoColorSMEvEvGlobal, fMemoColorSMEvEvProj, fMemoColorSMEvSigGlobal, fMemoColorSMEvSigProj, fMemoColorSMFoundEvtsGlobal, fMemoColorSMFoundEvtsProj, fMemoColorSMSigCorssGlobal, fMemoColorSMSigCorssProj, fMemoColorSMSigEvGlobal, fMemoColorSMSigEvProj, fMemoColorSMSigSigGlobal, fMemoColorSMSigSigProj, fMemoPlotEv, fMemoPlotEvolEvCorss, fMemoPlotEvolEvEv, fMemoPlotEvolEvSig, fMemoPlotEvts, fMemoPlotSampTime, fMemoPlotSigma, fMemoPlotSMEvCorssGlobal, fMemoPlotSMEvCorssProj, fMemoPlotSMEvEvGlobal, fMemoPlotSMEvEvProj, fMemoPlotSMEvSigGlobal, fMemoPlotSMEvSigProj, fMemoPlotSMFoundEvtsGlobal, fMemoPlotSMFoundEvtsProj, fMemoPlotSMSigCorssGlobal, fMemoPlotSMSigCorssProj, fMemoPlotSMSigEvGlobal, fMemoPlotSMSigEvProj, fMemoPlotSMSigSigGlobal, fMemoPlotSMSigSigProj, fPadEv, fPadEvolEvCorss, fPadEvolEvEv, fPadEvolEvSig, fPadEvts, fPadSampTime, fPadSigma, fPadSMEvCorssGlobal, fPadSMEvCorssProj, fPadSMEvEvGlobal, fPadSMEvEvProj, fPadSMEvSigGlobal, fPadSMEvSigProj, fPadSMFoundEvtsGlobal, fPadSMFoundEvtsProj, fPadSMSigCorssGlobal, fPadSMSigCorssProj, fPadSMSigEvGlobal, fPadSMSigEvProj, fPadSMSigSigGlobal, fPadSMSigSigProj, fPavTxtEv, fPavTxtEvolEvCorss, fPavTxtEvolEvEv, fPavTxtEvolEvSig, fPavTxtEvts, fPavTxtSampTime, fPavTxtSigma, fPavTxtSMEvCorssGlobal, fPavTxtSMEvCorssProj, fPavTxtSMEvEvGlobal, fPavTxtSMEvEvProj, fPavTxtSMEvSigGlobal, fPavTxtSMEvSigProj, fPavTxtSMFoundEvtsGlobal, fPavTxtSMFoundEvtsProj, fPavTxtSMSigCorssGlobal, fPavTxtSMSigCorssProj, fPavTxtSMSigEvGlobal, fPavTxtSMSigEvProj, fPavTxtSMSigSigGlobal, and fPavTxtSMSigSigProj.

Referenced by HistimePlot(), and HistoPlot().

05899 {
05900 // Set parameters canvas according to QuantityCode
05901 
05902   Double_t x_margin_factor = 0.001;
05903   Double_t y_margin_factor = 0.125;
05904 
05905   if(QuantityCode == "SMFoundEvtsGlobal")
05906     {
05907       fImpSMFoundEvtsGlobal = (TRootCanvas*)fCanvSMFoundEvtsGlobal->GetCanvasImp();
05908       fPavTxtSMFoundEvtsGlobal = fcom_top_left;
05909       fCanvSMFoundEvtsGlobal->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
05910       fPadSMFoundEvtsGlobal = gPad;
05911       fMemoPlotSMFoundEvtsGlobal = 1; fMemoColorSMFoundEvtsGlobal = 0;
05912     }
05913 
05914   if(QuantityCode == "SMFoundEvtsProj")
05915     {
05916       fImpSMFoundEvtsProj = (TRootCanvas*)fCanvSMFoundEvtsProj->GetCanvasImp();
05917       fPavTxtSMFoundEvtsProj = fcom_top_left;
05918       fCanvSMFoundEvtsProj->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
05919       fPadSMFoundEvtsProj = gPad;
05920       fMemoPlotSMFoundEvtsProj = 1; fMemoColorSMFoundEvtsProj = 0;
05921     }
05922 
05923   if(QuantityCode == "SMEvEvGlobal")
05924     {
05925       fImpSMEvEvGlobal = (TRootCanvas*)fCanvSMEvEvGlobal->GetCanvasImp();
05926       fPavTxtSMEvEvGlobal = fcom_top_left;
05927       fCanvSMEvEvGlobal->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
05928       fPadSMEvEvGlobal = gPad;
05929       fMemoPlotSMEvEvGlobal = 1; fMemoColorSMEvEvGlobal = 0;
05930     }
05931 
05932   if(QuantityCode == "SMEvEvProj")
05933     {
05934       fImpSMEvEvProj = (TRootCanvas*)fCanvSMEvEvProj->GetCanvasImp();
05935       fPavTxtSMEvEvProj = fcom_top_left;
05936       fCanvSMEvEvProj->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
05937       fPadSMEvEvProj = gPad;
05938       fMemoPlotSMEvEvProj = 1; fMemoColorSMEvEvProj = 0;
05939     }
05940 
05941   if(QuantityCode == "SMEvSigGlobal")
05942     {
05943       fImpSMEvSigGlobal = (TRootCanvas*)fCanvSMEvSigGlobal->GetCanvasImp();
05944       fPavTxtSMEvSigGlobal = fcom_top_left;
05945       fCanvSMEvSigGlobal->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
05946       fPadSMEvSigGlobal = gPad; 
05947       fMemoPlotSMEvSigGlobal = 1; fMemoColorSMEvSigGlobal = 0;
05948     }
05949 
05950   if(QuantityCode == "SMEvSigProj")
05951     {
05952       fImpSMEvSigProj = (TRootCanvas*)fCanvSMEvSigProj->GetCanvasImp();
05953       fPavTxtSMEvSigProj = fcom_top_left;
05954       fCanvSMEvSigProj->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
05955       fPadSMEvSigProj = gPad;
05956       fMemoPlotSMEvSigProj = 1; fMemoColorSMEvSigProj = 0;
05957     }
05958 
05959   if(QuantityCode == "SMEvCorssGlobal")
05960     {
05961       fImpSMEvCorssGlobal = (TRootCanvas*)fCanvSMEvCorssGlobal->GetCanvasImp();
05962       fPavTxtSMEvCorssGlobal = fcom_top_left;
05963       fCanvSMEvCorssGlobal->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
05964       fPadSMEvCorssGlobal = gPad;
05965       fMemoPlotSMEvCorssGlobal = 1; fMemoColorSMEvCorssGlobal = 0;
05966     }
05967 
05968   if(QuantityCode == "SMEvCorssProj")
05969     {
05970       fImpSMEvCorssProj = (TRootCanvas*)fCanvSMEvCorssProj->GetCanvasImp();
05971       fPavTxtSMEvCorssProj = fcom_top_left;
05972       fCanvSMEvCorssProj->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
05973       fPadSMEvCorssProj = gPad;
05974       fMemoPlotSMEvCorssProj = 1; fMemoColorSMEvCorssProj = 0;
05975     }
05976 
05977   if(QuantityCode == "SMSigEvGlobal")
05978     {
05979       fImpSMSigEvGlobal = (TRootCanvas*)fCanvSMSigEvGlobal->GetCanvasImp();
05980       fPavTxtSMSigEvGlobal = fcom_top_left;
05981       fCanvSMSigEvGlobal->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
05982       fPadSMSigEvGlobal = gPad;
05983       fMemoPlotSMSigEvGlobal = 1; fMemoColorSMSigEvGlobal = 0;
05984     }
05985 
05986   if(QuantityCode == "SMSigEvProj")
05987     {
05988       fImpSMSigEvProj = (TRootCanvas*)fCanvSMSigEvProj->GetCanvasImp();
05989       fPavTxtSMSigEvProj = fcom_top_left;
05990       fCanvSMSigEvProj->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
05991       fPadSMSigEvProj = gPad;
05992       fMemoPlotSMSigEvProj = 1; fMemoColorSMSigEvProj = 0;
05993     }
05994 
05995   if(QuantityCode == "SMSigSigGlobal")
05996     {
05997       fImpSMSigSigGlobal = (TRootCanvas*)fCanvSMSigSigGlobal->GetCanvasImp();
05998       fPavTxtSMSigSigGlobal = fcom_top_left;
05999       fCanvSMSigSigGlobal->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
06000       fPadSMSigSigGlobal = gPad;
06001       fMemoPlotSMSigSigGlobal = 1; fMemoColorSMSigSigGlobal = 0;
06002     }
06003 
06004   if(QuantityCode == "SMSigSigProj")
06005     {
06006       fImpSMSigSigProj = (TRootCanvas*)fCanvSMSigSigProj->GetCanvasImp();
06007       fPavTxtSMSigSigProj = fcom_top_left;
06008       fCanvSMSigSigProj->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
06009       fPadSMSigSigProj = gPad;
06010       fMemoPlotSMSigSigProj = 1; fMemoColorSMSigSigProj = 0;
06011     }
06012 
06013   if(QuantityCode == "SMSigCorssGlobal")
06014     {
06015       fImpSMSigCorssGlobal = (TRootCanvas*)fCanvSMSigCorssGlobal->GetCanvasImp();
06016       fPavTxtSMSigCorssGlobal = fcom_top_left;
06017       fCanvSMSigCorssGlobal->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
06018       fPadSMSigCorssGlobal = gPad;
06019       fMemoPlotSMSigCorssGlobal = 1; fMemoColorSMSigCorssGlobal = 0;
06020     }
06021 
06022   if(QuantityCode == "SMSigCorssProj")
06023     {
06024       fImpSMSigCorssProj = (TRootCanvas*)fCanvSMSigCorssProj->GetCanvasImp();
06025       fPavTxtSMSigCorssProj = fcom_top_left;
06026       fCanvSMSigCorssProj->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
06027       fPadSMSigCorssProj = gPad;
06028       fMemoPlotSMSigCorssProj = 1; fMemoColorSMSigCorssProj = 0;
06029     }
06030 
06031   if(QuantityCode == "Ev")
06032     {
06033       fImpEv = (TRootCanvas*)fCanvEv->GetCanvasImp();
06034       fPavTxtEv = fcom_top_left;
06035       fCanvEv->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
06036       fPadEv = gPad;
06037       fMemoPlotEv = 1; fMemoColorEv = 0;
06038     }
06039 
06040   if(QuantityCode == "Sigma")
06041     {
06042       fImpSigma = (TRootCanvas*)fCanvSigma->GetCanvasImp();
06043       fPavTxtSigma = fcom_top_left;
06044       fCanvSigma->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
06045       fPadSigma = gPad;
06046       fMemoPlotSigma = 1; fMemoColorSigma = 0;
06047     }
06048 
06049   if(QuantityCode == "Evts")
06050     {
06051       fImpEvts = (TRootCanvas*)fCanvEvts->GetCanvasImp();
06052       fPavTxtEvts = fcom_top_left;
06053       fCanvEvts->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
06054       fPadEvts = gPad;
06055       fMemoPlotEvts = 1; fMemoColorEvts = 0;              
06056     }
06057 
06058   if(QuantityCode == "SampTime")
06059     {
06060       fImpSampTime = (TRootCanvas*)fCanvSampTime->GetCanvasImp();
06061       fPavTxtSampTime = fcom_top_left;
06062       fCanvSampTime->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
06063       fPadSampTime = gPad;
06064       fMemoPlotSampTime = 1; fMemoColorSampTime = 0;
06065     }
06066 
06067   if(QuantityCode == "EvolEvEv")
06068     {
06069       fImpEvolEvEv = (TRootCanvas*)fCanvEvolEvEv->GetCanvasImp();
06070       fPavTxtEvolEvEv = fcom_top_left;
06071       fCanvEvolEvEv->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
06072       fPadEvolEvEv = gPad;
06073       fMemoPlotEvolEvEv = 1; fMemoColorEvolEvEv = 0;
06074     }
06075   if(QuantityCode == "EvolEvSig")
06076     {
06077       fImpEvolEvSig = (TRootCanvas*)fCanvEvolEvSig->GetCanvasImp();
06078       fPavTxtEvolEvSig = fcom_top_left;
06079       fCanvEvolEvSig->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
06080       fPadEvolEvSig = gPad;
06081       fMemoPlotEvolEvSig = 1; fMemoColorEvolEvSig = 0;
06082     }
06083   if(QuantityCode == "EvolEvCorss")
06084     {
06085       fImpEvolEvCorss = (TRootCanvas*)fCanvEvolEvCorss->GetCanvasImp();
06086       fPavTxtEvolEvCorss = fcom_top_left;
06087       fCanvEvolEvCorss->Divide(1, 1, x_margin_factor , y_margin_factor); gPad->cd(1);
06088       fPadEvolEvCorss = gPad;
06089       fMemoPlotEvolEvCorss = 1; fMemoColorEvolEvCorss = 0;
06090     }
06091 }

void TCnaViewEB::SetViewGraphColors ( TGraph *  g_graph0,
const   TString,
const   TString 
)

Definition at line 6449 of file TCnaViewEB.cc.

References ColorDefinition(), ColorTab(), fMaxNbColLine, fMemoColorEvolEvCorss, fMemoColorEvolEvEv, fMemoColorEvolEvSig, fOnlyOnePlot, and fSeveralPlot.

Referenced by HistimePlot().

06450 {
06451 // Set colors for histo view
06452 
06453   Int_t MaxNbOfColors = fMaxNbColLine;
06454 
06455   if(QuantityCode == "EvolEvEv")
06456     {
06457       if(opt_plot == fOnlyOnePlot){g_graph0->SetMarkerColor(ColorDefinition("bleu38"));}
06458       if(opt_plot == fSeveralPlot){g_graph0->SetMarkerColor(ColorTab(fMemoColorEvolEvEv));
06459       fMemoColorEvolEvEv++;
06460       if(fMemoColorEvolEvEv>MaxNbOfColors){fMemoColorEvolEvEv = 0;}}
06461       gPad->SetGrid(1,1);
06462     }
06463 
06464   if(QuantityCode == "EvolEvSig")
06465     {
06466       if(opt_plot == fOnlyOnePlot){g_graph0->SetMarkerColor(ColorDefinition("rouge48"));}
06467       if(opt_plot == fSeveralPlot){g_graph0->SetMarkerColor(ColorTab(fMemoColorEvolEvSig));
06468       fMemoColorEvolEvSig++;
06469       if(fMemoColorEvolEvSig>MaxNbOfColors){fMemoColorEvolEvSig = 0;}}
06470       gPad->SetGrid(1,1);
06471     }
06472 
06473   if(QuantityCode == "EvolEvCorss")
06474     {
06475       if(opt_plot == fOnlyOnePlot){g_graph0->SetMarkerColor(ColorDefinition("vert31"));}
06476       if(opt_plot == fSeveralPlot){g_graph0->SetMarkerColor(ColorTab(fMemoColorEvolEvCorss));
06477       fMemoColorEvolEvCorss++;
06478       if(fMemoColorEvolEvCorss>MaxNbOfColors){fMemoColorEvolEvCorss = 0;}}
06479       gPad->SetGrid(1,1);
06480     }
06481 
06482   if(opt_plot == fSeveralPlot){g_graph0->SetLineWidth(2);}
06483 }

void TCnaViewEB::SetViewGraphOffsets ( TGraph *  graph,
const   TString 
)

Definition at line 6946 of file TCnaViewEB.cc.

Referenced by SetGraphPresentation().

06947 {
06948 // Set offsets of labels, title axis, etc... for histo view
06949 
06950   if( (QuantityType == "NotSMRun") || (QuantityType == "NotSMNoRun")  )
06951     {
06952       //....................... x axis
06953       graph->GetXaxis()->SetTitleOffset((Float_t)1.15);
06954       graph->GetXaxis()->SetTitleSize((Float_t)0.04);
06955 
06956       graph->GetXaxis()->SetLabelOffset((Float_t)0.005);
06957       graph->GetXaxis()->SetLabelSize((Float_t)0.04);
06958 
06959       graph->GetXaxis()->SetTickLength((Float_t)0.03);
06960       graph->GetXaxis()->SetNdivisions((Int_t)510);
06961 
06962       //....................... y axis
06963       graph->GetYaxis()->SetTitleOffset((Float_t)1.75);
06964       graph->GetYaxis()->SetTitleSize((Float_t)0.04);
06965 
06966       graph->GetYaxis()->SetLabelOffset((Float_t)0.01);
06967       graph->GetYaxis()->SetLabelSize((Float_t)0.04);
06968 
06969       graph->GetYaxis()->SetTickLength((Float_t)0.03);
06970       graph->GetYaxis()->SetNdivisions((Int_t)510);
06971     }
06972 }

void TCnaViewEB::SetViewHistoColors ( TH1D *  h_his0,
const   TString,
const   TString 
)

Definition at line 6281 of file TCnaViewEB.cc.

References ColorDefinition(), ColorTab(), fMaxNbColLine, fMemoColorEv, fMemoColorEvolEvCorss, fMemoColorEvolEvEv, fMemoColorEvolEvSig, fMemoColorEvts, fMemoColorSampTime, fMemoColorSigma, fMemoColorSMEvCorssGlobal, fMemoColorSMEvCorssProj, fMemoColorSMEvEvGlobal, fMemoColorSMEvEvProj, fMemoColorSMEvSigGlobal, fMemoColorSMEvSigProj, fMemoColorSMFoundEvtsGlobal, fMemoColorSMFoundEvtsProj, fMemoColorSMSigCorssGlobal, fMemoColorSMSigCorssProj, fMemoColorSMSigEvGlobal, fMemoColorSMSigEvProj, fMemoColorSMSigSigGlobal, fMemoColorSMSigSigProj, fOnlyOnePlot, and fSeveralPlot.

Referenced by HistoPlot().

06282 {
06283 // Set colors for histo view
06284   Int_t MaxNbOfColors = fMaxNbColLine;
06285               
06286   if(QuantityCode == "SMFoundEvtsGlobal")
06287     {
06288       if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(ColorDefinition("gris15"));}
06289       if(opt_plot == fSeveralPlot){h_his0->SetLineColor(ColorTab(fMemoColorSMFoundEvtsGlobal));
06290       fMemoColorSMFoundEvtsGlobal++;
06291       if(fMemoColorSMFoundEvtsGlobal>MaxNbOfColors){fMemoColorSMFoundEvtsGlobal = 0;}}
06292     }
06293   if(QuantityCode == "SMFoundEvtsProj")
06294     {
06295       if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(ColorDefinition("gris15"));}
06296       if(opt_plot == fSeveralPlot){h_his0->SetLineColor(ColorTab(fMemoColorSMFoundEvtsProj));
06297       fMemoColorSMFoundEvtsProj++;
06298       if(fMemoColorSMFoundEvtsProj>MaxNbOfColors){fMemoColorSMFoundEvtsProj = 0;}}
06299     }
06300   if(QuantityCode == "SMEvEvGlobal")
06301     {
06302       if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(ColorDefinition("bleu38"));}
06303       if(opt_plot == fSeveralPlot){h_his0->SetLineColor(ColorTab(fMemoColorSMEvEvGlobal));
06304       fMemoColorSMEvEvGlobal++;
06305       if(fMemoColorSMEvEvGlobal>MaxNbOfColors){fMemoColorSMEvEvGlobal = 0;}}
06306     }
06307   if(QuantityCode == "SMEvEvProj")
06308     {
06309       if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(ColorDefinition("bleu38"));}
06310       if(opt_plot == fSeveralPlot){h_his0->SetLineColor(ColorTab(fMemoColorSMEvEvProj));
06311       fMemoColorSMEvEvProj++;
06312       if(fMemoColorSMEvEvProj>MaxNbOfColors){fMemoColorSMEvEvProj = 0;}}
06313     }
06314   if(QuantityCode == "SMEvSigGlobal")
06315     {
06316       if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(ColorDefinition("rouge48"));}
06317       if(opt_plot == fSeveralPlot){h_his0->SetLineColor(ColorTab(fMemoColorSMEvSigGlobal));
06318       fMemoColorSMEvSigGlobal++;
06319       if(fMemoColorSMEvSigGlobal>MaxNbOfColors){fMemoColorSMEvSigGlobal = 0;}}
06320     }
06321   if(QuantityCode == "SMEvSigProj")
06322     {
06323       if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(ColorDefinition("rouge48"));}
06324       if(opt_plot == fSeveralPlot){h_his0->SetLineColor(ColorTab(fMemoColorSMEvSigProj));
06325       fMemoColorSMEvSigProj++;
06326       if(fMemoColorSMEvSigProj>MaxNbOfColors){fMemoColorSMEvSigProj = 0;}}
06327     }
06328               
06329   if(QuantityCode == "SMEvCorssGlobal")
06330     {
06331       if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(ColorDefinition("vert31"));}
06332       if(opt_plot == fSeveralPlot){h_his0->SetLineColor(ColorTab(fMemoColorSMEvCorssGlobal));
06333       fMemoColorSMEvCorssGlobal++;
06334       if(fMemoColorSMEvCorssGlobal>MaxNbOfColors){fMemoColorSMEvCorssGlobal = 0;}}
06335     }
06336   if(QuantityCode == "SMEvCorssProj")
06337     {
06338       if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(ColorDefinition("vert31"));}
06339       if(opt_plot == fSeveralPlot){h_his0->SetLineColor(ColorTab(fMemoColorSMEvCorssProj));
06340       fMemoColorSMEvCorssProj++;
06341       if(fMemoColorSMEvCorssProj>MaxNbOfColors){fMemoColorSMEvCorssProj = 0;}}
06342     }
06343   if(QuantityCode == "SMSigEvGlobal")
06344     {
06345       if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(ColorDefinition("rouge44"));}
06346       if(opt_plot == fSeveralPlot){h_his0->SetLineColor(ColorTab(fMemoColorSMSigEvGlobal));
06347       fMemoColorSMSigEvGlobal++;
06348       if(fMemoColorSMSigEvGlobal>MaxNbOfColors){fMemoColorSMSigEvGlobal = 0;}}
06349     }
06350   if(QuantityCode == "SMSigEvProj")
06351     {
06352       if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(ColorDefinition("rouge44"));}
06353       if(opt_plot == fSeveralPlot){h_his0->SetLineColor(ColorTab(fMemoColorSMSigEvProj));
06354       fMemoColorSMSigEvProj++;
06355       if(fMemoColorSMSigEvProj>MaxNbOfColors){fMemoColorSMSigEvProj = 0;}}
06356     }
06357   if(QuantityCode == "SMSigSigGlobal")
06358     {
06359       if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(ColorDefinition("rouge50"));}
06360       if(opt_plot == fSeveralPlot){h_his0->SetLineColor(ColorTab(fMemoColorSMSigSigGlobal));
06361       fMemoColorSMSigSigGlobal++;
06362       if(fMemoColorSMSigSigGlobal>MaxNbOfColors){fMemoColorSMSigSigGlobal = 0;}}
06363     }
06364   if(QuantityCode == "SMSigSigProj")
06365     {
06366       if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(ColorDefinition("rouge50"));}
06367       if(opt_plot == fSeveralPlot){h_his0->SetLineColor(ColorTab(fMemoColorSMSigSigProj));
06368       fMemoColorSMSigSigProj++;
06369       if(fMemoColorSMSigSigProj>MaxNbOfColors){fMemoColorSMSigSigProj = 0;}}
06370     }
06371 
06372   if(QuantityCode == "SMSigCorssGlobal")
06373     {
06374       if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(ColorDefinition("marron23"));}
06375       if(opt_plot == fSeveralPlot){h_his0->SetLineColor(ColorTab(fMemoColorSMSigCorssGlobal));
06376       fMemoColorSMSigCorssGlobal++;
06377       if(fMemoColorSMSigCorssGlobal>MaxNbOfColors){fMemoColorSMSigCorssGlobal = 0;}}
06378     }
06379   if(QuantityCode == "SMSigCorssProj")
06380     {
06381       if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(ColorDefinition("marron23"));}
06382       if(opt_plot == fSeveralPlot){h_his0->SetLineColor(ColorTab(fMemoColorSMSigCorssProj));
06383       fMemoColorSMSigCorssProj++;
06384       if(fMemoColorSMSigCorssProj>MaxNbOfColors){fMemoColorSMSigCorssProj = 0;}}
06385     }
06386               
06387   if(QuantityCode == "Ev")
06388     {
06389       if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(ColorDefinition("bleu38"));}
06390       if(opt_plot == fSeveralPlot){h_his0->SetLineColor(ColorTab(fMemoColorEv));
06391       fMemoColorEv++;
06392       if(fMemoColorEv>MaxNbOfColors){fMemoColorEv = 0;}}
06393     }
06394               
06395   if(QuantityCode == "Sigma")
06396     {
06397       if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(ColorDefinition("rouge50"));}
06398       if(opt_plot == fSeveralPlot){h_his0->SetLineColor(ColorTab(fMemoColorSigma));
06399       fMemoColorSigma++;
06400       if(fMemoColorSigma>MaxNbOfColors){fMemoColorSigma = 0;}}
06401     }
06402               
06403   if(QuantityCode == "Evts")
06404     {
06405       if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(ColorDefinition("jaune"));}
06406       if(opt_plot == fSeveralPlot){h_his0->SetLineColor(ColorTab(fMemoColorEvts));
06407       fMemoColorEvts++;
06408       if(fMemoColorEvts>MaxNbOfColors){fMemoColorEvts = 0;}}
06409     }
06410   if(QuantityCode == "SampTime")
06411     {
06412       if(opt_plot == fOnlyOnePlot){h_his0->SetFillColor(ColorDefinition("orange42"));}
06413       if(opt_plot == fSeveralPlot){h_his0->SetLineColor(ColorTab(fMemoColorSampTime));
06414       fMemoColorSampTime++;
06415       if(fMemoColorSampTime>MaxNbOfColors){fMemoColorSampTime = 0;}}
06416       gPad->SetGrid(1,0);
06417     }
06418 
06419   if(QuantityCode == "EvolEvEv")
06420     {
06421       if(opt_plot == fOnlyOnePlot){h_his0->SetMarkerColor(ColorDefinition("bleu38"));}
06422       if(opt_plot == fSeveralPlot){h_his0->SetMarkerColor(ColorTab(fMemoColorEvolEvEv));
06423       fMemoColorEvolEvEv++;
06424       if(fMemoColorEvolEvEv>MaxNbOfColors){fMemoColorEvolEvEv = 0;}}
06425       gPad->SetGrid(1,1);
06426     }
06427 
06428   if(QuantityCode == "EvolEvSig")
06429     {
06430       if(opt_plot == fOnlyOnePlot){h_his0->SetMarkerColor(ColorDefinition("rouge48"));}
06431       if(opt_plot == fSeveralPlot){h_his0->SetMarkerColor(ColorTab(fMemoColorEvolEvSig));
06432       fMemoColorEvolEvSig++;
06433       if(fMemoColorEvolEvSig>MaxNbOfColors){fMemoColorEvolEvSig = 0;}}
06434       gPad->SetGrid(1,1);
06435     }
06436 
06437   if(QuantityCode == "EvolEvCorss")
06438     {
06439       if(opt_plot == fOnlyOnePlot){h_his0->SetMarkerColor(ColorDefinition("vert31"));}
06440       if(opt_plot == fSeveralPlot){h_his0->SetMarkerColor(ColorTab(fMemoColorEvolEvCorss));
06441       fMemoColorEvolEvCorss++;
06442       if(fMemoColorEvolEvCorss>MaxNbOfColors){fMemoColorEvolEvCorss = 0;}}
06443       gPad->SetGrid(1,1);
06444     }
06445 
06446   if(opt_plot == fSeveralPlot){h_his0->SetLineWidth(2);}
06447 }

void TCnaViewEB::SetViewHistoOffsets ( TH1D *  histo,
const   TString 
)

Definition at line 6711 of file TCnaViewEB.cc.

Referenced by SetHistoPresentation(), and TowerCrystalNumbering().

06712 {
06713 // Set offsets of labels, title axis, etc... for histo view
06714 
06715   if(QuantityType == "Global")
06716     {
06717       //....................... x axis
06718       histo->GetXaxis()->SetTitleOffset((Float_t)1.05);
06719       histo->GetXaxis()->SetTitleSize((Float_t)0.04);
06720 
06721       histo->GetXaxis()->SetLabelOffset((Float_t)0.006);
06722       histo->GetXaxis()->SetLabelSize((Float_t)0.04);
06723 
06724       histo->GetXaxis()->SetTickLength((Float_t)0.03);
06725       histo->GetXaxis()->SetNdivisions((Int_t)510);
06726 
06727       //....................... y axis
06728       histo->GetYaxis()->SetTitleOffset((Float_t)1.25);
06729       histo->GetYaxis()->SetTitleSize((Float_t)0.04);
06730 
06731       histo->GetYaxis()->SetLabelOffset((Float_t)0.01);
06732       histo->GetYaxis()->SetLabelSize((Float_t)0.04);
06733 
06734       histo->GetYaxis()->SetTickLength((Float_t)0.03);
06735       histo->GetYaxis()->SetNdivisions((Int_t)510);
06736     }
06737  
06738   if(QuantityType == "Proj" || QuantityType == "EvtsProj" )
06739     {
06740       //....................... x axis
06741       histo->GetXaxis()->SetTitleOffset((Float_t)1.05);
06742       histo->GetXaxis()->SetTitleSize((Float_t)0.04);
06743 
06744       histo->GetXaxis()->SetLabelOffset((Float_t)0.006);
06745       histo->GetXaxis()->SetLabelSize((Float_t)0.04);
06746 
06747       histo->GetXaxis()->SetTickLength((Float_t)0.03);
06748       histo->GetXaxis()->SetNdivisions((Int_t)510);
06749 
06750       //....................... y axis
06751       histo->GetYaxis()->SetTitleOffset((Float_t)1.5);
06752       histo->GetYaxis()->SetTitleSize((Float_t)0.04);
06753 
06754       histo->GetYaxis()->SetLabelOffset((Float_t)0.01);
06755       histo->GetYaxis()->SetLabelSize((Float_t)0.04);
06756 
06757       histo->GetYaxis()->SetTickLength((Float_t)0.03);
06758       histo->GetYaxis()->SetNdivisions((Int_t)510);
06759     }
06760 
06761   if( (QuantityType == "NotSMRun") || (QuantityType == "NotSMNoRun") )
06762     {
06763       //....................... x axis
06764       histo->GetXaxis()->SetTitleOffset((Float_t)1.25);
06765       histo->GetXaxis()->SetTitleSize((Float_t)0.04);
06766 
06767       histo->GetXaxis()->SetLabelOffset((Float_t)0.005);
06768       histo->GetXaxis()->SetLabelSize((Float_t)0.04);
06769 
06770       histo->GetXaxis()->SetTickLength((Float_t)0.03);
06771       histo->GetXaxis()->SetNdivisions((Int_t)510);
06772 
06773       //....................... y axis
06774       histo->GetYaxis()->SetTitleOffset((Float_t)1.75);
06775       histo->GetYaxis()->SetTitleSize((Float_t)0.04);
06776 
06777       histo->GetYaxis()->SetLabelOffset((Float_t)0.01);
06778       histo->GetYaxis()->SetLabelSize((Float_t)0.04);
06779 
06780       histo->GetYaxis()->SetTickLength((Float_t)0.03);
06781       histo->GetYaxis()->SetNdivisions((Int_t)510);
06782     }
06783 
06784   if(QuantityType == "colz")
06785     {
06786       //....................... x axis
06787       histo->GetXaxis()->SetTitleOffset((Float_t)1.25);
06788       histo->GetXaxis()->SetTitleSize((Float_t)0.04);
06789 
06790       histo->GetXaxis()->SetLabelOffset((Float_t)0.005);
06791       histo->GetXaxis()->SetLabelSize((Float_t)0.04);
06792 
06793       histo->GetXaxis()->SetTickLength((Float_t)0.03);
06794       histo->GetXaxis()->SetNdivisions((Int_t)510);
06795 
06796       //....................... y axis
06797       histo->GetYaxis()->SetTitleOffset((Float_t)1.3);
06798       histo->GetYaxis()->SetTitleSize((Float_t)0.04);
06799 
06800       histo->GetYaxis()->SetLabelOffset((Float_t)0.01);
06801       histo->GetYaxis()->SetLabelSize((Float_t)0.04);
06802 
06803       histo->GetYaxis()->SetTickLength((Float_t)0.03);
06804       histo->GetYaxis()->SetNdivisions((Int_t)510);
06805     }
06806 
06807   if(QuantityType == "lego" || QuantityType == "surf1" || QuantityType == "surf4" )
06808     {
06809       //....................... x axis
06810       histo->GetXaxis()->SetTitleOffset((Float_t)1.7);
06811       histo->GetXaxis()->SetTitleSize((Float_t)0.04);
06812 
06813       histo->GetXaxis()->SetLabelOffset((Float_t)0.005);
06814       histo->GetXaxis()->SetLabelSize((Float_t)0.04);
06815 
06816       histo->GetXaxis()->SetTickLength((Float_t)0.03);
06817       histo->GetXaxis()->SetNdivisions((Int_t)510);
06818 
06819       //....................... y axis
06820       histo->GetYaxis()->SetTitleOffset((Float_t)1.85);
06821       histo->GetYaxis()->SetTitleSize((Float_t)0.04);
06822 
06823       histo->GetYaxis()->SetLabelOffset((Float_t)0.01);
06824       histo->GetYaxis()->SetLabelSize((Float_t)0.04);
06825 
06826       histo->GetYaxis()->SetTickLength((Float_t)0.03);
06827       histo->GetYaxis()->SetNdivisions((Int_t)510);
06828     }
06829 
06830   if(QuantityType == "tower")
06831     {
06832       //.......... x axis (remove labels and ticks)
06833       histo->GetXaxis()->SetTitleOffset((Float_t)9999.);
06834       histo->GetXaxis()->SetTitleSize((Float_t)0.05); 
06835  
06836       histo->GetXaxis()->SetLabelOffset((Float_t)9999.);
06837       histo->GetXaxis()->SetLabelSize((Float_t)0.);
06838 
06839       histo->GetXaxis()->SetNdivisions((Int_t)1);
06840       histo->GetXaxis()->SetTickLength((Float_t)0.);
06841 
06842       //.......... y axis (remove labels and ticks)
06843       histo->GetYaxis()->SetTitleOffset((Float_t)9999.);
06844       histo->GetYaxis()->SetTitleSize((Float_t)0.05);
06845      
06846       histo->GetYaxis()->SetLabelOffset((Float_t)9999.);
06847       histo->GetYaxis()->SetLabelSize((Float_t)0.);
06848 
06849       histo->GetYaxis()->SetNdivisions((Int_t)1);
06850       histo->GetYaxis()->SetTickLength((Float_t)0.);
06851     }
06852 
06853   if( QuantityType == "SM2D" || QuantityType == "SM2DTN")
06854     {
06855       //.......... x axis (remove labels and ticks)
06856       histo->GetXaxis()->SetTitleOffset((Float_t)9999.);
06857       histo->GetXaxis()->SetTitleSize((Float_t)0.075); 
06858  
06859       histo->GetXaxis()->SetLabelOffset((Float_t)9999.);
06860       histo->GetXaxis()->SetLabelSize((Float_t)0.);
06861 
06862       histo->GetXaxis()->SetNdivisions((Int_t)1);
06863       histo->GetXaxis()->SetTickLength((Float_t)0.);
06864 
06865       //.......... y axis (remove labels and ticks)
06866       histo->GetYaxis()->SetTitleOffset((Float_t)9999.);
06867       histo->GetYaxis()->SetTitleSize((Float_t)0.075);
06868      
06869       histo->GetYaxis()->SetLabelOffset((Float_t)9999.);
06870       histo->GetYaxis()->SetLabelSize((Float_t)0.);
06871 
06872       histo->GetYaxis()->SetNdivisions((Int_t)1);
06873       histo->GetYaxis()->SetTickLength((Float_t)0.);
06874     }
06875 }

void TCnaViewEB::SetViewHistoPadMargins ( const   TString  ) 

Definition at line 6877 of file TCnaViewEB.cc.

Referenced by SetGraphPresentation(), and SetHistoPresentation().

06878 {
06879 // Set active pad margins for histo view
06880 
06881 //.......... default
06882   gStyle->SetPadBottomMargin(0.125);              
06883   gStyle->SetPadTopMargin(0.125);
06884   gStyle->SetPadLeftMargin(0.125);
06885   gStyle->SetPadRightMargin(0.125); 
06886   
06887   if(QuantityType == "colz"  || QuantityType == "lego"  ||
06888      QuantityType == "surf1" || QuantityType == "surf4" ||
06889      QuantityType == "tower")  
06890     {
06891       gStyle->SetPadBottomMargin(0.125);                  
06892       gStyle->SetPadTopMargin(0.135);
06893       gStyle->SetPadLeftMargin(0.125);
06894       gStyle->SetPadRightMargin(0.125); 
06895     }
06896 
06897   if(QuantityType == "SM2D")
06898     {
06899       gStyle->SetPadBottomMargin(0.145);                  
06900       gStyle->SetPadTopMargin(0.135);
06901       gStyle->SetPadLeftMargin(0.115);
06902       gStyle->SetPadRightMargin(0.115); 
06903     }
06904 
06905   if(QuantityType == "SM2DTN")
06906     {
06907       gStyle->SetPadBottomMargin(0.145);                  
06908       gStyle->SetPadTopMargin(0.135);
06909       gStyle->SetPadLeftMargin(0.115);
06910       gStyle->SetPadRightMargin(0.115); 
06911     }
06912 
06913   if(QuantityType == "Global")
06914     {
06915       gStyle->SetPadBottomMargin((Float_t)0.125);                 
06916       gStyle->SetPadTopMargin((Float_t)0.175);
06917       gStyle->SetPadLeftMargin((Float_t)0.115);
06918       gStyle->SetPadRightMargin((Float_t)0.015);
06919     }
06920 
06921   if(QuantityType == "Proj" || QuantityType == "EvtsProj" )
06922     {
06923       gStyle->SetPadBottomMargin(0.115);
06924       gStyle->SetPadTopMargin(0.155);
06925       gStyle->SetPadLeftMargin(0.15);
06926       gStyle->SetPadRightMargin(0.05);
06927     }
06928 
06929   if( QuantityType == "NotSMRun" )
06930     {
06931       gStyle->SetPadBottomMargin(0.1275);                 
06932       gStyle->SetPadTopMargin(0.165);
06933       gStyle->SetPadLeftMargin(0.15);
06934       gStyle->SetPadRightMargin(0.05);
06935     }
06936 
06937   if( QuantityType == "NotSMNoRun" )
06938     {
06939       gStyle->SetPadBottomMargin(0.110);                  
06940       gStyle->SetPadTopMargin(0.185);
06941       gStyle->SetPadLeftMargin(0.15);
06942       gStyle->SetPadRightMargin(0.025);
06943     }
06944 }

void TCnaViewEB::SetViewHistoStats ( TH1D *  histo,
const   TString 
)

Definition at line 6698 of file TCnaViewEB.cc.

Referenced by SetHistoPresentation().

06699 {
06700   // Set stats for histo view
06701 
06702   Bool_t b_true  = 1;
06703   Bool_t b_false = 0;
06704 
06705   histo->SetStats(b_false);
06706               
06707   if(QuantityType == "Global"){histo->SetStats(b_false);}
06708   if(QuantityType == "Proj" || QuantityType == "EvtsProj" ){histo->SetStats(b_true);}
06709 }

void TCnaViewEB::SetViewHistoStyle ( const   TString  ) 

Definition at line 6638 of file TCnaViewEB.cc.

Referenced by SetGraphPresentation(), SetHistoPresentation(), and TowerCrystalNumbering().

06639 {
06640 // Set style parameters for histo view
06641 
06642   gStyle->SetPalette(1,0);          // Rainbow spectrum
06643 
06644   //...................... "standard" type (no QuantityType needed)
06645 
06646   //............................... Histo title size
06647   gStyle->SetTitleW(0.35);
06648   gStyle->SetTitleH(0.075);
06649   
06650   //............................... Date & Statistics box
06651   gStyle->SetOptDate(3);
06652   gStyle->SetStatW(0.55);  gStyle->SetStatH(0.2);
06653   gStyle->SetStatY(1);
06654 
06655 //............................ specific types
06656 
06657   if(QuantityType == "colz"  || QuantityType == "lego"  ||
06658      QuantityType == "surf1" || QuantityType == "surf4" ||
06659      QuantityType == "tower" )
06660     {
06661       //............................... Histo title size
06662       gStyle->SetTitleW(0.8);
06663       gStyle->SetTitleH(0.075);
06664       
06665       //............................... Date & Statistics box
06666       gStyle->SetOptDate(3);
06667       gStyle->SetStatW(0.55);  gStyle->SetStatH(0.2);
06668       gStyle->SetStatY(1);
06669     }
06670 
06671   if(QuantityType == "Global" || QuantityType == "Proj" || QuantityType == "EvtsProj"  )
06672     {
06673       //............................... Histo title size
06674       gStyle->SetTitleW(0.5);
06675       gStyle->SetTitleH(0.08);
06676 
06677       //............................... Date & Statistics box  
06678       gStyle->SetOptDate(3);
06679       gStyle->SetOptStat(1110);
06680       gStyle->SetStatW(0.375);  gStyle->SetStatH(0.180);
06681       gStyle->SetStatY(0.9875);
06682     }
06683    
06684   if( (QuantityType == "NotSMRun") || (QuantityType == "NotSMNoRun"))
06685     {
06686       //............................... Histo title size
06687       gStyle->SetTitleW(0.5);
06688       gStyle->SetTitleH(0.075);
06689 
06690       //............................... Date & Statistics box     
06691       gStyle->SetOptDate(3);
06692       gStyle->SetOptStat(1110);
06693       gStyle->SetStatW(0.375);   gStyle->SetStatH(0.180);
06694       gStyle->SetStatY(0.9875);
06695     }
06696 }

void TCnaViewEB::SqrtContourLevels ( const Int_t &  nb_niv,
Double_t *  cont_niv 
)

Definition at line 2702 of file TCnaViewEB.cc.

References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), and fTTBELL.

02703 {
02704 //Calculation of levels in z coordinate for 3D plots. Square root scale
02705   
02706   Int_t nb_niv2 = (nb_niv+1)/2;
02707   
02708   for (Int_t num_niv = 0; num_niv < nb_niv2; num_niv++)
02709     {
02710       Int_t ind_niv = num_niv + nb_niv2 - 1;
02711       if ( ind_niv < 0 || ind_niv > nb_niv )
02712         {
02713           cout << "!TCnaViewEB::ContourLevels(...)> *** ERROR *** "
02714                << "wrong contour levels for correlation matrix"
02715                << fTTBELL << endl;
02716         }
02717       else
02718         {
02719           cont_niv[ind_niv] =
02720             (Double_t)(num_niv*num_niv)/
02721             ((Double_t)((nb_niv2-1)*(nb_niv2-1)));
02722         }
02723     }
02724   for (Int_t num_niv = -1; num_niv > -nb_niv2; num_niv--)
02725     {
02726       Int_t ind_niv = num_niv + nb_niv2 - 1;
02727       if ( ind_niv < 0 || ind_niv > nb_niv )
02728         {
02729           cout << "!TCnaViewEB::ContourLevels(...)> *** ERROR *** "
02730                << "wrong contour levels for correlation matrix"
02731                << fTTBELL << endl;
02732         }
02733       else
02734         {
02735           cont_niv[ind_niv] =
02736             -(Double_t)(num_niv*num_niv)/
02737             ((Double_t)((nb_niv2-1)*(nb_niv2-1)));
02738         }
02739     }
02740 }

void TCnaViewEB::SuperModuleTowerNumbering ( const Int_t &  SMNumber  ) 

Definition at line 2248 of file TCnaViewEB.cc.

References CanvasFormatH(), CanvasFormatW(), fCdelete, fCdeleteRoot, fCnew, fCnewRoot, fcom_top_left, fFapSuMoBarrel, fFapSuMoNumber, fgMaxCar, TEBNumbering::GetSMHalfBarrel(), TEBParameters::MaxCrysEtaInTow(), TEBParameters::MaxCrysPhiInTow(), TEBParameters::MaxTowEtaInSM(), TEBParameters::MaxTowPhiInSM(), PutAllPavesViewSuperModule(), SetHistoPresentation(), and ViewSuperModuleTowerNumberingPad().

Referenced by TCnaDialogEB::ViewSMTowerNumbering().

02249 {
02250 //display the tower numbering of the super-module
02251 
02252   TEBParameters* MyEcal = new TEBParameters();   fCnew++;
02253 
02254   Int_t  GeoBidSizeEta = MyEcal->MaxTowEtaInSM()*MyEcal->MaxCrysEtaInTow();
02255   Int_t  GeoBidSizePhi = MyEcal->MaxTowPhiInSM()*MyEcal->MaxCrysPhiInTow();
02256 
02257   Int_t  nb_binx  = GeoBidSizeEta;
02258   Int_t  nb_biny  = GeoBidSizePhi;
02259   Axis_t xinf_bid = (Axis_t)0.;
02260   Axis_t xsup_bid = (Axis_t)GeoBidSizeEta;
02261   Axis_t yinf_bid = (Axis_t)0.;
02262   Axis_t ysup_bid = (Axis_t)GeoBidSizePhi;   
02263   
02264   TString axis_x_var_name = "  #eta  ";
02265   TString axis_y_var_name = "  #varphi  ";
02266 
02267   //------------------------------------------------------------------- SuperModuleTowerNumbering
02268   
02269   //............. matrices reading and histogram filling
02270   char* f_in_mat_tit = new char[fgMaxCar];                           fCnew++;
02271 
02272   sprintf(f_in_mat_tit, "SuperModule tower numbering");
02273 
02274   // il faut tracer un bidim vide pour pouvoir tracer la grille et les axes
02275 
02276   TH2D* h_empty_bid = new TH2D("grid_bidim_eta_phi", f_in_mat_tit,
02277                                nb_binx, xinf_bid, xsup_bid,
02278                                nb_biny, yinf_bid, ysup_bid);     fCnewRoot++; 
02279   h_empty_bid->Reset();
02280   
02281   h_empty_bid->GetXaxis()->SetTitle(axis_x_var_name);
02282   h_empty_bid->GetYaxis()->SetTitle(axis_y_var_name);
02283 
02284   // ------------------------------------------------ P L O T S   (SuperModuleTowerNumbering)
02285   
02286   char* f_in = new char[fgMaxCar];                           fCnew++;
02287   
02288   //...................... Taille/format canvas
02289   
02290   UInt_t canv_h = CanvasFormatW("etaphiSM");
02291   UInt_t canv_w = CanvasFormatH("etaphiSM");
02292   
02293   //............................................... options generales
02294 
02295   TEBNumbering* MyNumbering = new TEBNumbering();                fCnew++;
02296   fFapSuMoBarrel = MyNumbering->GetSMHalfBarrel(fFapSuMoNumber);
02297 
02298   //............................................... paves commentaires (SuperModuleTowerNumbering)
02299   PutAllPavesViewSuperModule();   
02300 
02301   //------------------------------------ Canvas name ----------------- (SuperModuleTowerNumbering)  
02302 
02303   sprintf(f_in, "tower_numbering_for_SuperModule_SM%d", SMNumber);
02304   
02305   SetHistoPresentation((TH1D*)h_empty_bid,"SM2DTN");
02306 
02307   TCanvas *NoiseCorrel = new TCanvas(f_in, f_in, canv_w, canv_h);   fCnewRoot++;
02308   
02309   // cout << "*TCnaViewEB::ViewSuperModule(...)> Plot is displayed on canvas ----> " << f_in << endl;
02310   
02311   delete [] f_in; f_in = 0;                                 fCdelete++;
02312 
02313   //------------------------ Canvas draw and update ------------ (SuperModuleTowerNumbering)  
02314   fcom_top_left->Draw();
02315 
02316   NoiseCorrel->Divide(1, 1, 0.001 , 0.125);
02317   gPad->cd(1);
02318   
02319   TPad *main_subpad = (TPad*)gPad;
02320   Int_t i_zonx = 1;
02321   Int_t i_zony = 1;
02322   main_subpad->Divide(i_zonx, i_zony, 0.001, 0.001);
02323   main_subpad->cd(1); 
02324 
02325   h_empty_bid->DrawCopy("COL");   // il faut tracer un bidim vide pour pouvoir tracer la grille et les axes
02326 
02327   ViewSuperModuleTowerNumberingPad(MyEcal, MyNumbering, SMNumber);
02328   gPad->Update();
02329   
02330   //..................... retour aux options standard
02331   Bool_t b_true = 1;
02332   h_empty_bid->SetStats(b_true);    
02333   
02334   h_empty_bid->Delete();              fCdeleteRoot++;      
02335   
02336   //      delete title_g1;                 fCdeleteRoot++;
02337   //      delete com_bot_left;             fCdeleteRoot++;
02338   //      delete NoiseCorrel;              fCdeleteRoot++;
02339   
02340   delete [] f_in_mat_tit;  f_in_mat_tit = 0;         fCdelete++;
02341 
02342   delete MyEcal;                                     fCdelete++;
02343   delete MyNumbering;                                fCdelete++;
02344 }

void TCnaViewEB::TopAxisForTowerNumbers ( TH1D *  h_his0,
const   TString,
const Int_t &  xMemoPlotSame,
const Int_t &  nb_of_towers,
const Int_t &  xFlagAutoYsupMargin,
const Int_t &  HisSize 
)

Definition at line 4337 of file TCnaViewEB.cc.

References fCnewRoot, fOnlyOnePlot, and fSeveralPlot.

Referenced by HistoPlot().

04340 {
04341 // Axis on top of the plot to indicate the tower numbers
04342 
04343   if( opt_plot == fOnlyOnePlot || ( (opt_plot == fSeveralPlot) && (xMemoPlotSame == 0) ) )
04344     {   
04345       Double_t Maxih           = (Double_t)h_his0->GetMaximum();
04346       Double_t Minih           = (Double_t)h_his0->GetMinimum();
04347 
04348       if(xFlagAutoYsupMargin == 1)
04349         {
04350           if( Minih >= Maxih ){Minih = (Double_t)0.; Maxih += Maxih;}  // ROOT default if ymin >= ymax
04351           Double_t MaxMarginFactor = (Double_t)0.05;    // frame top line = 5% above the maximum
04352           Maxih += (Maxih-Minih)*MaxMarginFactor;       // ROOT default if ymin < ymax
04353         }      
04354 
04355       Double_t tow_min     = 1;
04356       Double_t tow_max     = nb_of_towers;
04357 
04358       Int_t ndiv = 50207;
04359 
04360       TGaxis* tow_axis_x = 0;
04361 
04362       tow_axis_x = new TGaxis( 0. ,Maxih, (Double_t)HisSize, Maxih,
04363                                tow_min, tow_max+1, ndiv, "B-", 0.);         fCnewRoot++;
04364 
04365       tow_axis_x->SetTickSize(0.05);
04366       // tow_axis_x->SetName("tow_axis_x");
04367       tow_axis_x->SetTitleOffset((Float_t)(1.2));
04368       tow_axis_x->SetLabelOffset((Float_t)(0.0));
04369       TString  x_var_name  = "Tower number";
04370       tow_axis_x->SetTitle(x_var_name);
04371             
04372       gPad->SetGrid(1,0);
04373       tow_axis_x->Draw("SAME");
04374     } 
04375 } // end of TopAxisForTowerNumbers

void TCnaViewEB::TowerCrystalNumbering ( const Int_t &  SMNumber,
const Int_t &  SMtower 
)

Definition at line 1340 of file TCnaViewEB.cc.

References CanvasFormatH(), CanvasFormatW(), fCdelete, fCdeleteRoot, fCnew, fCnewRoot, fcom_bot_mid, fcom_top_left, fcom_top_mid, fFapSuMoBarrel, fFapSuMoNumber, fgMaxCar, TEBNumbering::GetSMCrysFromSMTowAndTowEcha(), TEBNumbering::GetSMHalfBarrel(), TEBNumbering::GetTowerLvrbType(), GetXSampInTow(), GetYSampInTow(), TEBParameters::MaxCrysEtaInTow(), TEBParameters::MaxCrysInTow(), TEBParameters::MaxCrysPhiInTow(), TEBParameters::MaxSampADC(), PutAllPavesViewTowerCrysNb(), SetColorsForNumbers(), SetHistoPresentation(), SetViewHistoOffsets(), SetViewHistoStyle(), and ViewTowerGrid().

Referenced by TCnaDialogEB::ViewTowerCrystalNumbering().

01341 {
01342   //display the crystal numbering of one tower
01343 
01344   TEBNumbering* MyNumbering = new TEBNumbering();             fCnew++;
01345   fFapSuMoBarrel = MyNumbering->GetSMHalfBarrel(fFapSuMoNumber);
01346 
01347   TEBParameters* MyEcalParameters = new TEBParameters();    fCnew++; 
01348 
01349   Int_t MatSize   = MyEcalParameters->MaxSampADC();
01350   Int_t size_eta  = MyEcalParameters->MaxCrysEtaInTow();
01351   Int_t size_phi  = MyEcalParameters->MaxCrysPhiInTow();
01352 
01353   //---------------------------------- bidim
01354 
01355   Int_t nb_bins  = MyEcalParameters->MaxSampADC();
01356   Int_t nx_gbins = nb_bins*size_eta;
01357   Int_t ny_gbins = nb_bins*size_phi;
01358 
01359   Axis_t xinf_gbid = (Axis_t)0.;
01360   Axis_t xsup_gbid = (Axis_t)MyEcalParameters->MaxSampADC()*size_eta;
01361   Axis_t yinf_gbid = (Axis_t)0.;
01362   Axis_t ysup_gbid = (Axis_t)MyEcalParameters->MaxSampADC()*size_phi;
01363 
01364   char* fg_name = "M0' crystals";
01365   char* fg_tit  = "Crystal numbering (electronic channel + numbers in SM)"; 
01366  
01367   TH2D *h_gbid;
01368   h_gbid = new TH2D(fg_name,  fg_tit,
01369                     nx_gbins, xinf_gbid, xsup_gbid,
01370                     ny_gbins, yinf_gbid, ysup_gbid);    fCnewRoot++;
01371   h_gbid->Reset();
01372 
01373   //-----------------  T R A C E  D E S   P L O T S ------ (TowerCrystalNumbering)
01374 
01375   char* f_in = new char[fgMaxCar];                           fCnew++;
01376           
01377   //...................... Taille/format canvas
01378   
01379   UInt_t canv_w = CanvasFormatW("petit");
01380   UInt_t canv_h = CanvasFormatH("petit");
01381 
01382   //........................................ couleurs
01383   //Color_t couleur_noir       = ColorDefinition("noir");
01384   //Color_t couleur_rouge      = ColorDefinition("rouge");
01385   //Color_t couleur_bleu_fonce = ColorDefinition("bleu_fonce");
01386 
01387   Color_t couleur_noir       = SetColorsForNumbers("crystal");
01388   Color_t couleur_rouge      = SetColorsForNumbers("lvrb_top");
01389   Color_t couleur_bleu_fonce = SetColorsForNumbers("lvrb_bottom");
01390 
01391   gStyle->SetPalette(1,0);          // Rainbow spectrum
01392 
01393   //.................................... options generales
01394   SetViewHistoStyle("tower");
01395           
01396   //.................................... paves commentaires (TowerCrystalNumbering)
01397   
01398   PutAllPavesViewTowerCrysNb(MyNumbering, SMNumber, SMtower);
01399 
01400   //---------------------------------------------- (TowerCrystalNumbering)
01401 
01402   //..................... Canvas name
01403   sprintf(f_in, "crystal_numbering_for_tower_X_%d_SM%d", SMtower, SMNumber);
01404   
01405   SetHistoPresentation((TH1D*)h_gbid, "tower");
01406 
01407   TCanvas *NoiseCor1 = new TCanvas(f_in, f_in, canv_w , canv_h);    fCnewRoot++;
01408   // cout << "*TCnaViewEB::TowerCrystalNumbering(...)> Plot is displayed on canvas ----> "
01409   //      << f_in << endl;
01410   
01411   NoiseCor1->Divide(1, 1, 0.001 , 0.125);
01412 
01413   fcom_top_left->Draw();
01414   fcom_top_mid->Draw();
01415   fcom_bot_mid->Draw();
01416   
01417   Bool_t b_true = 1; 
01418   Bool_t b_false = 0;
01419   gPad->cd(1);
01420   
01421   TVirtualPad *main_subpad = gPad;  
01422   Int_t i_zonx = 1;
01423   Int_t i_zony = 1;  
01424   main_subpad->Divide(i_zonx, i_zony);
01425   main_subpad->cd(1); 
01426 
01427   gStyle->SetMarkerColor(couleur_rouge);
01428   
01429   Int_t logy = 0;
01430   gPad->SetLogy(logy);
01431   
01432   //............................... bidim .......... (TowerCrystalNumbering)   
01433 
01434   h_gbid->SetStats(b_false); 
01435 
01436   SetViewHistoOffsets((TH1D*)h_gbid, "tower");
01437     
01438   h_gbid->DrawCopy("COLZ");
01439     
01440   //..... Ecriture des numeros de channels dans la grille..... (TowerCrystalNumbering)
01441   //      et des numeros SM des cristaux
01442 
01443   //............... prepa arguments fixes appels [TText]->DrawText()
01444   char* f_in_elec = new char[fgMaxCar];                                           fCnew++;
01445   TString TowerLvrbType = MyNumbering->GetTowerLvrbType(SMtower) ;
01446   TText *text_elec_num   = new TText();                                           fCnewRoot++;
01447   if ( TowerLvrbType == "top"    ){text_elec_num->SetTextColor(couleur_rouge);}
01448   if ( TowerLvrbType == "bottom" ){text_elec_num->SetTextColor(couleur_bleu_fonce);}
01449   text_elec_num->SetTextSize(0.06);
01450 
01451   char* f_in_sm = new char[fgMaxCar];                                             fCnew++;
01452   TText *text_sm_num = new TText();                                               fCnewRoot++;
01453   text_sm_num->SetTextColor(couleur_noir);
01454   text_sm_num->SetTextSize(0.04);
01455 
01456   //............... prepa arguments fixes appels GetXGeo(...) et GetYGeo(...)
01457   Int_t    i_samp  = 0;
01458   Double_t off_set = (Double_t)(MyEcalParameters->MaxSampADC()/3);
01459 
01460   //------------------ LOOP ON THE CRYSTAL ELECTRONIC CHANNEL NUMBER  (TowerCrystalNumbering)
01461 
01462   for (Int_t i_chan = 0; i_chan < MyEcalParameters->MaxCrysInTow(); i_chan++)
01463     {
01464       Int_t i_xgeo = GetXSampInTow(MyNumbering, MyEcalParameters, fFapSuMoNumber,
01465                                    SMtower,     i_chan,           i_samp);
01466       Int_t i_ygeo = GetYSampInTow(MyNumbering, MyEcalParameters, fFapSuMoNumber,
01467                                    SMtower,     i_chan,           i_samp);
01468 
01469       Double_t xgi    =  i_xgeo + off_set;
01470       Double_t ygj    =  i_ygeo + 2*off_set;
01471 
01472       Double_t xgi_sm =  i_xgeo + off_set;
01473       Double_t ygj_sm =  i_ygeo + off_set;
01474 
01475       Int_t i_crys_sm = MyNumbering->GetSMCrysFromSMTowAndTowEcha(SMtower, i_chan);
01476 
01477       //------------------------------------------------------- TowerCrystalNumbering
01478 
01479       sprintf(f_in_elec, "%d", i_chan);
01480       text_elec_num->DrawText(xgi, ygj, f_in_elec);
01481 
01482       sprintf(f_in_sm, "%d", i_crys_sm);
01483       text_sm_num->DrawText(xgi_sm, ygj_sm, f_in_sm);
01484     }
01485   text_sm_num->Delete();               fCdeleteRoot++;
01486   text_elec_num->Delete();             fCdeleteRoot++;
01487 
01488   ViewTowerGrid(MyNumbering, SMNumber, SMtower, MatSize, size_eta, size_phi, "CrystalNumbering");
01489 
01490   gPad->Update();
01491   h_gbid->SetStats(b_true);
01492 
01493   h_gbid->Delete();                             fCdeleteRoot++;
01494 
01495   delete [] f_in;       f_in      = 0;          fCdelete++; 
01496   delete [] f_in_sm;    f_in_sm   = 0;          fCdelete++;
01497   delete [] f_in_elec;  f_in_elec = 0;          fCdelete++;
01498 
01499   delete MyNumbering;                           fCdelete++;
01500   delete MyEcalParameters;                      fCdelete++;
01501 }

void TCnaViewEB::ViewHistime ( const   TString,
const Int_t &  SMtower_X,
const Int_t &  towEcha,
const   TString,
const Int_t &  opt_visu,
const   TString 
)

Definition at line 3032 of file TCnaViewEB.cc.

References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), fCdelete, fCnew, fFapSuMoBarrel, fFapSuMoNumber, fFlagScaleY, fNbOfExistingRuns, fOnlyOnePlot, fOptScaleLiny, fOptScaleLogy, fSeveralPlot, fStartEvolDate, fStartEvolRun, fStartEvolTime, fStopEvolDate, fStopEvolRun, fStopEvolTime, fT1DAnaType, fT1DFirstEvt, fT1DNbOfEvts, fT1DResultsRootFilePath, fT1DRunNumber, fT1DSuMoNumber, fTTBELL, GetListFileNumber(), GetListOfRunParameters(), GetMemoFlag(), GetOkViewHisto(), GetQuantityName(), GetQuantityType(), TCnaReadEB::GetReadyToReadRootFile(), TCnaReadEB::GetRootFileNameShort(), TCnaReadEB::GetSMEcha(), TEBNumbering::GetSMHalfBarrel(), TCnaReadEB::GetStartDate(), TCnaReadEB::GetStartTime(), GraphSetMinMax(), HistimePlot(), InitQuantityYmax(), InitQuantityYmin(), TCnaReadEB::LookAtRootFile(), TCnaReadEB::MaxCrysInSM(), TCnaReadEB::MaxTowInSM(), TCnaReadEB::PrintNoComment(), TCnaReadEB::ReadExpectationValuesOfCorrelationsBetweenSamples(), TCnaReadEB::ReadExpectationValuesOfExpectationValuesOfSamples(), TCnaReadEB::ReadExpectationValuesOfSigmasOfSamples(), and SetFile().

Referenced by HistimeCrystalMeanCorss(), HistimeCrystalMeanPedestals(), and HistimeCrystalMeanSigmas().

03036 {
03037 //Histogram of the quantities as a function of time (several runs)
03038  
03039   TCnaReadEB*  MyRootFile = new TCnaReadEB();                        fCnew++;
03040   MyRootFile->PrintNoComment();
03041 
03042   TString QuantityType = GetQuantityType(QuantityCode);
03043   
03044   //................................. Init YMin and YMax of histo
03045   if((opt_plot == fOnlyOnePlot) || (opt_plot == fSeveralPlot && GetMemoFlag(QuantityCode) == "Free") )
03046     {
03047       InitQuantityYmin(QuantityCode); 
03048       InitQuantityYmax(QuantityCode);
03049     }
03050 
03051   //........ GetListOfRunParameters(...) : performs the allocation of the arrays fT1Dxxx at first call
03052   //         increments the number of read file (fNbOfListFileEvolXXX) for option SAME of TCnaDialogEB
03053   //         and read the values of the arrays fT1Dxxx from the file run_par_file_name
03054 
03055   //............... Get the run parameters
03056 
03057   Int_t nb_of_runs_in_list = GetListOfRunParameters(run_par_file_name.Data(), QuantityCode);
03058 
03059   if( nb_of_runs_in_list > 0 )
03060     {
03061       //..............................  prepa x axis: time in hours
03062       //Double_t sec_in_day   = (Double_t)86400.;          //===> (number of seconds in a day)
03063       Double_t margin_frame_xaxis = (Double_t)25.;       //===> margin in x coordinates 
03064 
03065       Double_t thstart_evol = (Double_t)0.;
03066       Double_t thstop_evol  = (Double_t)0.;
03067 
03068       Int_t* exist_indic  = new Int_t[nb_of_runs_in_list];
03069 
03070       //---------------------------------------------------------------- (ViewHistime)
03071       //
03072       //     FIRST LOOP: OVER THE RUNS IN THE LIST OF THE ASCII FILE
03073       //
03074       //----------------------------------------------------------------
03075       fNbOfExistingRuns = (Int_t)0;
03076 
03077       for (Int_t i_run = 0; i_run < nb_of_runs_in_list; i_run++)
03078         {
03079           exist_indic[i_run] = 0;
03080 
03081           SetFile(i_run); // ==> set the attributes relative to the run (fFapRunNumber, etc...)
03082                           //     The arrays fT1D...[] have been obtained from the previous call
03083                           //     to GetListOfRunParameters(xFileNameRunList, QuantityCode)
03084 
03085           MyRootFile->GetReadyToReadRootFile(fT1DAnaType[i_run].Data(), fT1DRunNumber[i_run],
03086                                              fT1DFirstEvt[i_run],       fT1DNbOfEvts[i_run],
03087                                              fT1DSuMoNumber[i_run],     fT1DResultsRootFilePath[i_run].Data());
03088           // MyRootFile->PrintNoComment();
03089          
03090           if ( MyRootFile->LookAtRootFile() == kTRUE )
03091             {
03092               //------ At first list file: set fStartEvol... and fStopEvol... quantities  (ViewHistime)
03093               if( GetListFileNumber(QuantityCode) == 1 )
03094                 {
03095                   if( fNbOfExistingRuns == 0 ) 
03096                     {
03097                       fStartEvolTime = MyRootFile->GetStartTime();  // start time of the first run of the list
03098                       fStartEvolDate = MyRootFile->GetStartDate();
03099                       fStartEvolRun  = fT1DRunNumber[i_run]; 
03100                     }
03101                   else
03102                     {
03103                       fStopEvolTime = MyRootFile->GetStartTime();    // start time of the last  run of the list
03104                       fStopEvolDate = MyRootFile->GetStartDate();
03105                       fStopEvolRun  = fT1DRunNumber[i_run];
03106                     }
03107                 }
03108               //---- set flag of run existence and increase number of existing run (for the present list file)
03109               exist_indic[i_run] = 1;
03110               fNbOfExistingRuns++;
03111             }
03112           else
03113             {
03114               cout << "!TCnaViewEB::ViewHistime(...)> *ERROR* =====> "
03115                    << ": ROOT file not found for run " << fT1DRunNumber[i_run]
03116                    << ", first event: "  << fT1DFirstEvt[i_run]
03117                    << ", nb of events: " << fT1DNbOfEvts[i_run] << fTTBELL << endl << endl;
03118             }
03119         } // end of the first loop over the runs of the ascii file
03120           
03121       if( fNbOfExistingRuns > 0 )
03122         {
03123           //-------------------- recover the arrays after removing non existing ROOT files (ViewHistime)
03124           Int_t i_existing_run = (Int_t)0;
03125 
03126           for( Int_t i_run = 0; i_run < nb_of_runs_in_list;  i_run++)
03127             {
03128               if( exist_indic[i_run] == 1 )
03129                 {
03130                   fT1DAnaType[i_existing_run]              = fT1DAnaType[i_run];
03131                   fT1DRunNumber[i_existing_run]            = fT1DRunNumber[i_run];
03132                   fT1DFirstEvt[i_existing_run]             = fT1DFirstEvt[i_run];
03133                   fT1DNbOfEvts[i_existing_run]             = fT1DNbOfEvts[i_run];
03134                   fT1DSuMoNumber[i_existing_run]           = fT1DSuMoNumber[i_run];
03135                   fT1DResultsRootFilePath [i_existing_run] = fT1DResultsRootFilePath[i_run];
03136                   i_existing_run++;
03137                 }
03138             }    
03139 
03140           //---------------------- Get start and stop time values to set the axis limits (ViewHistime)
03141           //thstart_evol = (Double_t)fStartEvolTime/sec_in_day;
03142           //thstop_evol  = (Double_t)fStopEvolTime/sec_in_day;
03143           //
03144           //Axis_t xinf_his = (Axis_t)(-(thstop_evol-thstart_evol)/margin_frame_xaxis);
03145           //Axis_t xsup_his = (Axis_t)(thstop_evol-thstart_evol+(thstop_evol-thstart_evol)/margin_frame_xaxis);
03146 
03147           thstart_evol = (Double_t)fStartEvolTime;
03148           thstop_evol  = (Double_t)fStopEvolTime;
03149 
03150           Double_t xinf_lim = thstart_evol-(thstop_evol-thstart_evol)/margin_frame_xaxis;
03151           Double_t xsup_lim = thstop_evol +(thstop_evol-thstart_evol)/margin_frame_xaxis;
03152 
03153           Axis_t xinf_his = (Axis_t)(xinf_lim);
03154           Axis_t xsup_his = (Axis_t)(xsup_lim);
03155 
03156           //............................. SMEcha, sample
03157           Int_t SMEcha = MyRootFile->GetSMEcha(SMtower_X, towEcha);
03158           Int_t sample = 0;
03159          
03160           Double_t* time_coordx  = new Double_t[fNbOfExistingRuns];
03161           Double_t* hval_coordy  = new Double_t[fNbOfExistingRuns];
03162          
03163           //........... Set values to -1 
03164 
03165           for( Int_t i_run = 0; i_run < fNbOfExistingRuns;  i_run++)
03166             {
03167               time_coordx[i_run] = (Double_t)(-1);
03168               hval_coordy[i_run] = (Double_t)(-1);
03169             }    
03170  
03171           //---------------------------------------------------------------- (ViewHistime)
03172           //
03173           //                SECOND LOOP OVER THE EXISTING RUNS
03174           //
03175           //----------------------------------------------------------------
03176           for (Int_t i_run = 0; i_run < fNbOfExistingRuns; i_run++)
03177             {
03178               SetFile(i_run); // => set the attributes relative to the run (fFapRunNumber,...)
03179 
03180               MyRootFile->GetReadyToReadRootFile(fT1DAnaType[i_run].Data(), fT1DRunNumber[i_run],
03181                                                  fT1DFirstEvt[i_run],       fT1DNbOfEvts[i_run],
03182                                                  fT1DSuMoNumber[i_run],     fT1DResultsRootFilePath[i_run].Data());
03183 
03184               // MyRootFile->PrintNoComment();       
03185               if ( MyRootFile->LookAtRootFile() == kTRUE )
03186                 {
03187                   Bool_t ok_view_histo = GetOkViewHisto(MyRootFile, SMtower_X, towEcha, sample, QuantityCode);
03188                  
03189                   if( ok_view_histo == kTRUE )
03190                     {
03191                       //......................................... graph filling (ViewHistime)
03192 
03193                       time_t xStartTime = MyRootFile->GetStartTime();
03194                       //time_t xStopTime  = MyRootFile->GetStopTime();
03195                      
03196                       //Double_t thstart = (Double_t)xStartTime/sec_in_day;
03197                       Double_t thstart = (Double_t)xStartTime;
03198                       // Double_t thstop  = (Double_t)xStopTime/sec_in_day;
03199                       //time_coordx[i_run] = (Double_t)((thstart+thstop)/(Double_t)2. - thstart_evol);
03200 
03201                       time_coordx[i_run] = (Double_t)(thstart - xinf_lim);
03202 
03203                       TVectorD read_histo(MyRootFile->MaxCrysInSM());                        
03204 
03205                       if(QuantityCode == "EvolEvEv")
03206                         {read_histo = MyRootFile->ReadExpectationValuesOfExpectationValuesOfSamples();}
03207                       if(QuantityCode == "EvolEvSig")
03208                         {read_histo = MyRootFile->ReadExpectationValuesOfSigmasOfSamples();}
03209                       if(QuantityCode == "EvolEvCorss")
03210                         {read_histo = MyRootFile->ReadExpectationValuesOfCorrelationsBetweenSamples();}
03211                      
03212                       hval_coordy[i_run] = (Double_t)read_histo(SMEcha);
03213                     }
03214                   else
03215                     {
03216                       cout << "!TCnaViewEB::ViewHistime(...)> *ERROR* =====> possibly wrong values for: "
03217                            << endl
03218                            << "                             File: " << MyRootFile->GetRootFileNameShort()
03219                            << ", tower = " << SMtower_X << ", towEcha = " << towEcha << ", sample = " << sample
03220                            << ", quantity code = " << QuantityCode << ", quantity type = " << QuantityType
03221                            << fTTBELL << endl;
03222                     }
03223                 }
03224             }
03225 
03226           //------------------------------------------------- graph (ViewHistime)
03227                          
03228           TGraph* g_graph0 = new TGraph(fNbOfExistingRuns, time_coordx, hval_coordy);
03229           g_graph0->SetTitle(GetQuantityName(QuantityCode));
03230          
03231           //............................... histogram plot (ViewHistime)
03232          
03233           Int_t  nb_of_towers  = MyRootFile->MaxTowInSM();
03234                      
03235           Int_t opt_scale = fOptScaleLiny;
03236           if (fFlagScaleY == "LIN" ){opt_scale = fOptScaleLiny;}
03237           if (fFlagScaleY == "LOG" ){opt_scale = fOptScaleLogy;}
03238          
03239           //..... graph set ymin and ymax (from TCnaParameters) and consequently margin at top of the plot  
03240           Int_t  xFlagAutoYsupMargin = GraphSetMinMax(g_graph0, QuantityCode);
03241          
03242 
03243           TEBNumbering* MyNumbering = new TEBNumbering();         fCnew++;
03244           fFapSuMoBarrel = MyNumbering->GetSMHalfBarrel(fFapSuMoNumber);
03245           HistimePlot(g_graph0,  xinf_his, xsup_his, MyRootFile, MyNumbering,
03246                       QuantityCode, QuantityType,
03247                       nb_of_towers, SMtower_X,  towEcha,  sample,
03248                       opt_visu,     opt_scale,  opt_plot, xFlagAutoYsupMargin);
03249           delete MyNumbering;                                       fCdelete++;
03250                      
03251           //  g_graph0->Delete();         fCdeleteRoot++;  // *===> NE PAS DELETER LE GRAPH SINON CA EFFACE TOUT!
03252           delete [] time_coordx;          fCdelete++;   
03253           delete [] hval_coordy;          fCdelete++;  
03254         }
03255     }
03256   else
03257     {
03258       cout << "!TCnaViewEB::ViewHistime(...)> No run of the list in file " << run_par_file_name
03259            << " corresponds to an existing ROOT file."
03260            << fTTBELL << endl;
03261     }
03262 
03263   delete MyRootFile;                               fCdelete++;
03264 
03265 } // end of ViewHistime

void TCnaViewEB::ViewHisto ( const Int_t &  SMtower_X,
const Int_t &  TowEcha,
const Int_t &  sample,
const   TString,
const Int_t &  opt_visu,
const   TString 
)

Definition at line 2900 of file TCnaViewEB.cc.

References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), fCdelete, fCdeleteRoot, fCfgResultsRootFilePath, fCnew, fCnewRoot, fFapAnaType, fFapFirstEvt, fFapNbOfEvts, fFapRunNumber, fFapSuMoBarrel, fFapSuMoNumber, fFlagScaleY, FillHisto(), fOnlyOnePlot, fOptScaleLiny, fOptScaleLogy, fSeveralPlot, fStartDate, fStopDate, fTTBELL, GetHistoSize(), GetHistoValues(), GetMemoFlag(), GetOkViewHisto(), GetQuantityName(), GetQuantityType(), TCnaReadEB::GetReadyToReadRootFile(), TCnaReadEB::GetRootFileNameShort(), TEBNumbering::GetSMHalfBarrel(), TCnaReadEB::GetStartDate(), TCnaReadEB::GetStopDate(), HistoPlot(), HistoSetMinMax(), InitQuantityYmax(), InitQuantityYmin(), TCnaReadEB::LookAtRootFile(), TCnaReadEB::MaxTowInSM(), TCnaReadEB::PrintNoComment(), SetHistoNumberOfBins(), SetHistoXinf(), and SetHistoXsup().

Referenced by HistoCrystalExpectationValuesOfSamples(), HistoCrystalPedestalEventNumber(), HistoCrystalSigmasOfSamples(), HistoSampleEventDistribution(), HistoSuperModuleFoundEventsDistribution(), HistoSuperModuleFoundEventsOfCrystals(), HistoSuperModuleMeanOfCorssDistribution(), HistoSuperModuleMeanOfCorssOfCrystals(), HistoSuperModuleMeanOfSampleSigmasDistribution(), HistoSuperModuleMeanOfSampleSigmasOfCrystals(), HistoSuperModuleMeanPedestalsDistribution(), HistoSuperModuleMeanPedestalsOfCrystals(), HistoSuperModuleSigmaOfCorssDistribution(), HistoSuperModuleSigmaOfCorssOfCrystals(), HistoSuperModuleSigmaOfSampleSigmasDistribution(), HistoSuperModuleSigmaOfSampleSigmasOfCrystals(), HistoSuperModuleSigmaPedestalsDistribution(), and HistoSuperModuleSigmaPedestalsOfCrystals().

02904 {
02905 //Histogram of the quantities (one run)
02906 
02907   Int_t opt_scale = fOptScaleLiny;
02908   if (fFlagScaleY == "LIN" ){opt_scale = fOptScaleLiny;}
02909   if (fFlagScaleY == "LOG" ){opt_scale = fOptScaleLogy;}
02910 
02911   TString QuantityType = GetQuantityType(QuantityCode);
02912 
02913   TCnaReadEB*  MyRootFile = new TCnaReadEB();              fCnew++;
02914 
02915   MyRootFile->PrintNoComment();
02916 
02917   MyRootFile->GetReadyToReadRootFile(fFapAnaType,    fFapRunNumber,  fFapFirstEvt, fFapNbOfEvts,
02918                                      fFapSuMoNumber, fCfgResultsRootFilePath.Data());
02919       
02920   if ( MyRootFile->LookAtRootFile() == kTRUE )
02921     {
02922       //---------------------------------------------------------------------------- (ViewHisto)
02923       TString fp_name_short = MyRootFile->GetRootFileNameShort();
02924       // cout << "*TCnaViewEB::ViewHisto(...)> Data are analyzed from file ----> "
02925       //      << fp_name_short << endl;
02926 
02927       Bool_t ok_view_histo = GetOkViewHisto(MyRootFile, SMtower_X, TowEcha, sample, QuantityCode);
02928 
02929       if( ok_view_histo == kTRUE )
02930         {
02931           fStartDate = MyRootFile->GetStartDate();
02932           fStopDate  = MyRootFile->GetStopDate();
02933 
02934           Int_t   HisSize  = GetHistoSize(MyRootFile, QuantityCode);
02935 
02936           TVectorD read_histo(HisSize);
02937           Int_t i_data_exist = 0;
02938           read_histo = GetHistoValues(MyRootFile, QuantityCode, HisSize,
02939                                       SMtower_X, TowEcha, sample, i_data_exist);
02940           if ( i_data_exist > 0)
02941             {
02942               //................................. Set YMin and YMax of histo (ViewHisto)
02943               if((opt_plot == fOnlyOnePlot) || (opt_plot == fSeveralPlot && GetMemoFlag(QuantityCode) == "Free") )
02944                 {
02945                   InitQuantityYmin(QuantityCode);
02946                   InitQuantityYmax(QuantityCode);
02947                 }
02948               //..............................  prepa histogram booking (ViewHisto)
02949               
02950               Axis_t xinf_his = SetHistoXinf(MyRootFile, QuantityCode, HisSize, SMtower_X, TowEcha, sample);
02951               Axis_t xsup_his = SetHistoXsup(MyRootFile, QuantityCode, HisSize, SMtower_X, TowEcha, sample);
02952               Int_t   nb_binx = SetHistoNumberOfBins(QuantityCode, HisSize);
02953               
02954               //..............................  histogram booking (ViewHisto)
02955               
02956               TH1D* h_his0 = new TH1D("histo", GetQuantityName(QuantityCode),
02957                                       nb_binx, xinf_his, xsup_his);                   fCnewRoot++;
02958               
02959               //............................... histogram filling
02960               
02961               FillHisto(h_his0, read_histo, QuantityCode, HisSize, xinf_his, xsup_his, nb_binx);
02962               
02963               //... histogram set ymin and ymax (from TCnaParameters) and consequently margin at top of the plot
02964               
02965               Int_t  xFlagAutoYsupMargin = HistoSetMinMax(h_his0, QuantityCode);
02966               
02967               //............................... histogram plot 
02968               Int_t  nb_of_towers  = MyRootFile->MaxTowInSM();
02969               
02970               TEBNumbering* MyNumbering = new TEBNumbering();    fCnew++;
02971               fFapSuMoBarrel = MyNumbering->GetSMHalfBarrel(fFapSuMoNumber);
02972               
02973               HistoPlot(h_his0,       MyRootFile, MyNumbering,  HisSize,  QuantityCode, QuantityType,
02974                         nb_of_towers, SMtower_X,  TowEcha,      sample,
02975                         opt_visu,     opt_scale,  opt_plot,     xFlagAutoYsupMargin);
02976               
02977               delete MyNumbering;                                  fCdelete++;
02978               
02979               h_his0->Delete();                fCdeleteRoot++;
02980             }
02981         }
02982       else
02983         {
02984           cout << "!TCnaViewEB::ViewHisto(...)> *ERROR* =====> possibly wrong values for: "
02985                << endl
02986                << "                             File: " << fp_name_short
02987                << ", tower = " << SMtower_X << ", TowEcha = " << TowEcha << ", sample = " << sample
02988                << ", quantity code = " << QuantityCode << ", quantity type = " << QuantityType
02989                << fTTBELL << endl;
02990         }
02991     }
02992   else
02993     {
02994       cout << "!TCnaViewEB::ViewHisto(...)> *ERROR* =====> "
02995            << " ROOT file not found" << fTTBELL << endl;
02996     }
02997   delete MyRootFile;                               fCdelete++;
02998 
02999 }  // end of ViewHisto(...)

void TCnaViewEB::ViewMatrix ( const Int_t &  SMtower_X,
const Int_t &  SMtower_Y,
const Int_t &  element,
const Int_t &  opt_cov_cor,
const   TString,
const   TString 
)

Definition at line 700 of file TCnaViewEB.cc.

References CanvasFormatH(), CanvasFormatW(), GenMuonPlsPt100GeV_cfg::cout, TCnaReadEB::DataExist(), lat::endl(), fCdelete, fCdeleteRoot, fCfgResultsRootFilePath, fCnew, fCnewRoot, fcom_bot_left, fcom_bot_right, fcom_top_left, fcom_top_mid, fcom_top_right, fFapAnaType, fFapFirstEvt, fFapNbOfEvts, fFapRunNumber, fFapSuMoBarrel, fFapSuMoNumber, fgMaxCar, fOptMatCor, fOptMatCov, fOptMcc, fOptMss, fOptMtt, fStartDate, fStopDate, ftitle_g1, fTTBELL, TCnaReadEB::GetReadyToReadRootFile(), TCnaReadEB::GetRootFileNameShort(), TEBNumbering::GetSMHalfBarrel(), TCnaReadEB::GetStartDate(), TCnaReadEB::GetStopDate(), HistoSetMinMax(), i, InitQuantityYmax(), InitQuantityYmin(), j, TCnaReadEB::LookAtRootFile(), TCnaReadEB::MaxCrysInTow(), TCnaReadEB::MaxSampADC(), TCnaReadEB::MaxTowInSM(), TCnaReadEB::PrintNoComment(), PutAllPavesViewMatrix(), TCnaReadEB::ReadCorrelationsBetweenCrystalsMeanOverSamples(), TCnaReadEB::ReadCorrelationsBetweenSamples(), TCnaReadEB::ReadCorrelationsBetweenTowersMeanOverSamplesAndChannels(), TCnaReadEB::ReadCovariancesBetweenCrystalsMeanOverSamples(), TCnaReadEB::ReadCovariancesBetweenSamples(), TCnaReadEB::ReadCovariancesBetweenTowersMeanOverSamplesAndChannels(), TCnaReadEB::ReadTowerNumbers(), and SetHistoPresentation().

Referenced by CorrelationsBetweenCrystals(), CorrelationsBetweenSamples(), CorrelationsBetweenTowers(), CovariancesBetweenCrystals(), CovariancesBetweenSamples(), and CovariancesBetweenTowers().

00703 {
00704 //Plot of matrix
00705 
00706   TCnaReadEB*  MyRootFile = new TCnaReadEB();                              fCnew++;
00707   MyRootFile->PrintNoComment();
00708 
00709   MyRootFile->GetReadyToReadRootFile(fFapAnaType,    fFapRunNumber, fFapFirstEvt, fFapNbOfEvts,
00710                                      fFapSuMoNumber, fCfgResultsRootFilePath.Data());
00711   
00712   if ( MyRootFile->LookAtRootFile() == kTRUE )
00713     {
00714       TString fp_name_short = MyRootFile->GetRootFileNameShort();
00715 
00716       // cout << "*TCnaViewEB::ViewMatrix(...)> Data are analyzed from file ----> "
00717       //      << fp_name_short << endl;
00718       
00719       Int_t     nb_of_towers = MyRootFile->MaxTowInSM();
00720       TVectorD  vtow(nb_of_towers);
00721       vtow = MyRootFile->ReadTowerNumbers();
00722       
00723       if ( MyRootFile->DataExist() == kTRUE )
00724         {
00725           Int_t tower_X_ok = 0;
00726           Int_t tower_Y_ok = 0;
00727           
00728           if( SubsetCode == fOptMtt ){tower_X_ok = 1; tower_Y_ok = 1;}
00729           if( SubsetCode == fOptMss ){tower_Y_ok = 1;}
00730           
00731           for (Int_t index_tow = 0; index_tow < nb_of_towers; index_tow++)
00732             {
00733               if ( vtow(index_tow) == SMtower_X ){tower_X_ok = 1;}
00734               if ( vtow(index_tow) == SMtower_Y ){tower_Y_ok = 1;}
00735             }
00736           
00737           if( tower_X_ok == 1 && tower_Y_ok == 1 )
00738             {
00739               fStartDate    = MyRootFile->GetStartDate();
00740               fStopDate     = MyRootFile->GetStopDate();
00741               
00742               Int_t   MatSize  = -1; 
00743               Int_t   TowEcha  = -1;
00744               Int_t   sample   = -1;
00745               
00746               if( SubsetCode == fOptMtt ){
00747                 MatSize = MyRootFile->MaxTowInSM();}      
00748               if( SubsetCode == fOptMcc ){
00749                 MatSize = MyRootFile->MaxCrysInTow(); sample = element;}
00750               if( SubsetCode == fOptMss ){
00751                 MatSize = MyRootFile->MaxSampADC();  TowEcha = element;}
00752               
00753               if( (  SubsetCode == fOptMtt                                                               ) ||
00754                   ( (SubsetCode == fOptMss) && (TowEcha >= 0) && (TowEcha < MyRootFile->MaxCrysInTow() ) ) ||
00755                   ( (SubsetCode == fOptMcc) && (sample  >= 0) && (sample  < MyRootFile->MaxSampADC()   ) )    )
00756                 {
00757                   TMatrixD read_matrix(MatSize, MatSize);
00758                   
00759                   if ( SubsetCode == fOptMtt && opt_cov_cor == fOptMatCov )
00760                     {read_matrix = MyRootFile->ReadCovariancesBetweenTowersMeanOverSamplesAndChannels();}
00761                   if ( SubsetCode == fOptMtt && opt_cov_cor == fOptMatCor )
00762                     {read_matrix = MyRootFile->ReadCorrelationsBetweenTowersMeanOverSamplesAndChannels();}
00763                   if ( SubsetCode == fOptMss && opt_cov_cor == fOptMatCov )
00764                     {read_matrix = MyRootFile->ReadCovariancesBetweenSamples(SMtower_X, TowEcha);}
00765                   if ( SubsetCode == fOptMss && opt_cov_cor == fOptMatCor )
00766                     {read_matrix = MyRootFile->ReadCorrelationsBetweenSamples(SMtower_X, TowEcha);}
00767                   if ( SubsetCode == fOptMcc && opt_cov_cor == fOptMatCov ){
00768                     read_matrix = MyRootFile->ReadCovariancesBetweenCrystalsMeanOverSamples(SMtower_X, SMtower_Y);}  
00769                   if ( SubsetCode == fOptMcc && opt_cov_cor == fOptMatCor )
00770                     {read_matrix = MyRootFile->ReadCorrelationsBetweenCrystalsMeanOverSamples(SMtower_X, SMtower_Y);}
00771                   
00772                   if ( MyRootFile->DataExist() == kTRUE )
00773                     {
00774                       //......................... matrix title  (ViewMatrix)
00775                       char* f_in_mat_tit = new char[fgMaxCar];               fCnew++;
00776                       
00777                       if ( SubsetCode == fOptMtt && opt_cov_cor == fOptMatCov )
00778                         {sprintf(f_in_mat_tit, "TOWER x TOWER covariance matrix (mean over crystals & samples)");}
00779                       if ( SubsetCode == fOptMtt && opt_cov_cor == fOptMatCor )
00780                         {sprintf(f_in_mat_tit, "TOWER x TOWER correlation matrix (mean over crystals & samples)");}
00781                       if ( SubsetCode == fOptMss && opt_cov_cor == fOptMatCov )
00782                         {sprintf(f_in_mat_tit, "SAMPLE x SAMPLE covariance matrix");}
00783                       if ( SubsetCode == fOptMss && opt_cov_cor == fOptMatCor )
00784                         {sprintf(f_in_mat_tit, "SAMPLE x SAMPLE correlation matrix");}
00785                       if ( SubsetCode == fOptMcc && opt_cov_cor == fOptMatCov )
00786                         {sprintf(f_in_mat_tit, "CRYSTAL x CRYSTAL covariance matrix (mean over samples)");}
00787                       if ( SubsetCode == fOptMcc && opt_cov_cor == fOptMatCor )
00788                         {sprintf(f_in_mat_tit, "CRYSTAL x CRYSTAL correlation matrix (mean over samples)");}
00789                       
00790                       //................................. Axis parameters
00791                       TString axis_x_var_name;
00792                       TString axis_y_var_name;
00793                       
00794                       char* f_in_axis_x = new char[fgMaxCar];               fCnew++;
00795                       char* f_in_axis_y = new char[fgMaxCar];               fCnew++;
00796                       
00797                       if( SubsetCode == fOptMtt)
00798                         {axis_x_var_name = "  Tower number  "; axis_y_var_name = "  Tower number  ";}      
00799                       if( SubsetCode == fOptMss)
00800                         {axis_x_var_name = " Sample      "; axis_y_var_name = "    Sample ";}
00801                       if( SubsetCode == fOptMcc)
00802                         {sprintf(f_in_axis_x, " Crystal Tower %d   ", SMtower_X);
00803                         sprintf(f_in_axis_y, " Crystal Tower %d   ", SMtower_Y);
00804                         axis_x_var_name = f_in_axis_x; axis_y_var_name = f_in_axis_y;}
00805                       
00806                       Int_t  nb_binx  = MatSize;
00807                       Int_t  nb_biny  = MatSize;
00808                       Axis_t xinf_bid = (Axis_t)0.;
00809                       Axis_t xsup_bid = (Axis_t)MatSize;
00810                       Axis_t yinf_bid = (Axis_t)0.;
00811                       Axis_t ysup_bid = (Axis_t)MatSize;   
00812                       
00813                       //..............................  histogram filling (ViewMatrix)
00814                       
00815                       TH2D* h_fbid0 = new TH2D("bidim", f_in_mat_tit,
00816                                                nb_binx, xinf_bid, xsup_bid,
00817                                                nb_biny, yinf_bid, ysup_bid);     fCnewRoot++;
00818                       
00819                       h_fbid0->Reset();
00820                       
00821                       //.................................... Ymin and Ymax
00822                       Int_t  xFlagAutoYsupMargin = 0;
00823                       
00824                       if ( opt_cov_cor == fOptMatCor )
00825                         {
00826                           if (SubsetCode == fOptMss)
00827                             {
00828                               // h_fbid0->SetMinimum(GetYmin("SMEvCorssGlobal"));//same Ymin and Ymax as for SM histos
00829                               // h_fbid0->SetMaximum(GetYmax("SMEvCorssGlobal"));
00830                               //... histogram set ymin and ymax (from TCnaParameters)    
00831                               
00832                               xFlagAutoYsupMargin = HistoSetMinMax((TH1D*)h_fbid0, "SMEvCorssGlobal");
00833                             }
00834                           if ( SubsetCode == fOptMtt ||  SubsetCode == fOptMcc )
00835                             {
00836                               //h_fbid0->SetMinimum(GetYmin("SMEvCorttMatrix"));//same Ymin and Ymax as for SM histos
00837                               //h_fbid0->SetMaximum(GetYmax("SMEvCorttMatrix"));
00838                               
00839                               //... histogram set ymin and ymax (from TCnaParameters) 
00840                               xFlagAutoYsupMargin = HistoSetMinMax((TH1D*)h_fbid0, "SMEvCorttMatrix");
00841                             }
00842                           
00843                           // ************************** A GARDER EN RESERVE **************************
00844                           //............. special contour level for correlations (square root wise scale)
00845                           //Int_t nb_niv  = 9;
00846                           // Double_t* cont_niv = new Double_t[nb_niv];                  fCnew++;
00847                           // SqrtContourLevels(nb_niv, &cont_niv[0]);
00848                           //h_fbid0->SetContour(nb_niv, &cont_niv[0]);            
00849                           // delete [] cont_niv;                                  fCdelete++;
00850                           // ******************************** (FIN RESERVE) ************************** (ViewMatrix)
00851                           
00852                         }
00853                       
00854                       if ( opt_cov_cor == fOptMatCov )
00855                         {
00856                           if (SubsetCode == fOptMss)
00857                             {
00858                               //h_fbid0->SetMinimum(GetYmin("SMEvCovttMatrix"));//same Ymin and Ymax as for SM histos
00859                               //h_fbid0->SetMaximum(GetYmax("SMEvCovttMatrix"));
00860                               
00861                               //... histogram set ymin and ymax
00862                               
00863                               InitQuantityYmin("SMEvSigGlobal");
00864                               InitQuantityYmax("SMEvSigGlobal");
00865                               xFlagAutoYsupMargin = HistoSetMinMax((TH1D*)h_fbid0, "SMEvSigGlobal");
00866                             }
00867                           if ( SubsetCode == fOptMtt ||  SubsetCode == fOptMcc )
00868                             {
00869                               //h_fbid0->SetMinimum(GetYmin("SMEvCovttMatrix"));//same Ymin and Ymax as for SM histos
00870                               //h_fbid0->SetMaximum(GetYmax("SMEvCovttMatrix"));
00871                               
00872                               //... histogram set ymin and ymax (from TCnaParameters) 
00873                               xFlagAutoYsupMargin = HistoSetMinMax((TH1D*)h_fbid0, "SMEvCovttMatrix");
00874                             }
00875                         }
00876                       
00877                       
00878                       for(Int_t i = 0 ; i < MatSize ; i++)
00879                         {
00880                           Double_t xi = (Double_t)i;
00881                           for(Int_t j = 0 ; j < MatSize ; j++)
00882                             {
00883                               Double_t xj      = (Double_t)j;
00884                               Double_t mat_val = (Double_t)read_matrix(i,j);
00885                               h_fbid0->Fill(xi, xj, (Stat_t)mat_val);
00886                             }
00887                         }
00888                       
00889                       h_fbid0->GetXaxis()->SetTitle(axis_x_var_name);
00890                       h_fbid0->GetYaxis()->SetTitle(axis_y_var_name);
00891                       
00892                       // --------------------------------------- P L O T S  (ViewMatrix)
00893                       
00894                       char* f_in = new char[fgMaxCar];                            fCnew++;
00895                       
00896                       //...................... Taille/format canvas
00897                       
00898                       UInt_t canv_w = CanvasFormatW("petit");
00899                       UInt_t canv_h = CanvasFormatH("petit");
00900                       
00901                       //............................. options generales 
00902                       TString QuantityType;
00903                       Int_t MaxCar = fgMaxCar;
00904                       QuantityType.Resize(MaxCar);
00905                       QuantityType = "(no quantity type info)";
00906                       
00907                       if (option_plot == "COLZ"  ){QuantityType = "colz";}
00908                       if (option_plot == "LEGO2Z"){QuantityType = "lego";}
00909                       if (option_plot == "SURF1Z"){QuantityType = "surf1";}
00910                       if (option_plot == "SURF4" ){QuantityType = "surf4";}
00911                       
00912                       TEBNumbering* MyNumbering = new TEBNumbering();    fCnew++;
00913                       fFapSuMoBarrel = MyNumbering->GetSMHalfBarrel(fFapSuMoNumber);
00914                       PutAllPavesViewMatrix(MyRootFile, MyNumbering, SubsetCode, SMtower_X, SMtower_Y, TowEcha);
00915                       delete MyNumbering;                                  fCdelete++;
00916                       
00917                       //---------------------------------------- Canvas name (ViewMatrix)
00918                       TString  name_cov_cor;
00919                       MaxCar = fgMaxCar;
00920                       name_cov_cor.Resize(MaxCar);
00921                       name_cov_cor = "?";
00922                       if( opt_cov_cor == fOptMatCov){name_cov_cor = "cov";}
00923                       if( opt_cov_cor == fOptMatCor){name_cov_cor = "cor";}
00924                       
00925                       TString name_chan_samp;
00926                       MaxCar = fgMaxCar;
00927                       name_chan_samp.Resize(MaxCar);
00928                       name_chan_samp = "?";
00929                       
00930                       Int_t  num_element = -1;
00931                       if( SubsetCode == fOptMtt )
00932                         {name_chan_samp = "tt_moc"; num_element = 0;}
00933                       if( SubsetCode == fOptMss )
00934                         {name_chan_samp = "ss_c"; num_element = TowEcha;}
00935                       if( SubsetCode == fOptMcc )
00936                         {name_chan_samp = "cc_mos";}
00937                       
00938                       TString name_visu;
00939                       MaxCar = fgMaxCar;
00940                       name_visu.Resize(MaxCar);
00941                       name_visu = "?";
00942                       
00943                       name_visu = option_plot;
00944                       
00945                       if( SubsetCode == fOptMtt ){
00946                         sprintf(f_in, "%s_%s_%d_%s_%s_%d_%d_SM%d",
00947                                 name_visu.Data(),
00948                                 fFapAnaType.Data(), fFapRunNumber, name_cov_cor.Data(),
00949                                 name_chan_samp.Data(), fFapFirstEvt, fFapNbOfEvts, fFapSuMoNumber);}
00950                       
00951                       if( SubsetCode == fOptMss ){
00952                         sprintf(f_in, "%s_tx%d_ty%d_%s_%d_%s_%s%d_%d_%d_SM%d",
00953                                 name_visu.Data(), SMtower_X, SMtower_Y,
00954                                 fFapAnaType.Data(), fFapRunNumber, name_cov_cor.Data(),
00955                                 name_chan_samp.Data(), num_element, fFapFirstEvt, fFapNbOfEvts, fFapSuMoNumber);}
00956                       
00957                       if( SubsetCode == fOptMcc ){
00958                         sprintf(f_in, "%s_tx%d_ty%d_%s_%d_%s_%s_%d_%d_SM%d",
00959                                 name_visu.Data(), SMtower_X, SMtower_Y,
00960                                 fFapAnaType.Data(), fFapRunNumber, name_cov_cor.Data(),
00961                                 name_chan_samp.Data(), fFapFirstEvt, fFapNbOfEvts, fFapSuMoNumber);}
00962                       
00963                       //----------------------------------------------------------      (ViewMatrix)
00964                       
00965                       SetHistoPresentation((TH1D*)h_fbid0, QuantityType);
00966                       
00967                       TCanvas *NoiseCorrel =
00968                         new TCanvas(f_in, f_in, canv_w , canv_h);   fCnewRoot++;
00969                       
00970                       // cout << "*TCnaViewEB::ViewMatrix(...)> Plot is displayed on canvas ----> " << f_in << endl;
00971                       
00972                       delete [] f_in; f_in = 0;                         fCdelete++;
00973                       
00974                       ftitle_g1->Draw();
00975                       fcom_top_left->Draw();
00976                       if(SubsetCode == "Crystal"){fcom_top_mid->Draw();}
00977                       if(SubsetCode == "Sample") {fcom_top_mid->Draw(); fcom_top_right->Draw();}
00978                       fcom_bot_left->Draw();
00979                       fcom_bot_right->Draw();
00980                       
00981                       NoiseCorrel->Divide(1, 1, 0.001 , 0.125);
00982                       gPad->cd(1);
00983                       
00984                       TVirtualPad *main_subpad = gPad; 
00985                       Int_t i_zonx = 1;
00986                       Int_t i_zony = 1;  
00987                       main_subpad->Divide(i_zonx,i_zony);
00988                       gPad->cd(1);  
00989                       main_subpad->cd(1);
00990                       
00991                       //----------------------------------------------------------      (ViewMatrix)      
00992                       Int_t logy = 0;  
00993                       gPad->SetLogy(logy);
00994                       
00995                       if( SubsetCode == fOptMtt ){gPad->SetGrid(1,1);}
00996                       
00997                       h_fbid0->DrawCopy(option_plot);
00998                       
00999                       h_fbid0->SetStats((Bool_t)1);    
01000                       
01001                       gPad->Update();
01002                       
01003                       h_fbid0->Delete();                fCdeleteRoot++;
01004                       
01005                       //  title_g1->Delete();                 fCdeleteRoot++;
01006                       //  com_bot_left->Delete();                  fCdeleteRoot++;
01007                       //  delete NoiseCorrel;                 fCdeleteRoot++;
01008                       
01009                       delete [] f_in_mat_tit; f_in_mat_tit = 0;       fCdelete++;
01010                       delete [] f_in_axis_x;  f_in_axis_x  = 0;       fCdelete++;
01011                       delete [] f_in_axis_y;  f_in_axis_y  = 0;       fCdelete++;
01012 
01013                     } // end of if ( MyRootFile->DataExist() == kTRUE )
01014                 }
01015               else
01016                 {
01017                   if(SubsetCode == fOptMss)
01018                     {
01019                       cout << "*TCnaViewEB::ViewMatrix(...)> *ERROR* ==> Wrong channel number in tower. Value = "
01020                            << TowEcha << " (required range: [0, "
01021                            << MyRootFile->MaxCrysInTow()-1 << "] )"
01022                            << fTTBELL << endl;
01023                     }
01024 
01025                   if(SubsetCode == fOptMcc)
01026                     {
01027                       cout << "*TCnaViewEB::ViewMatrix(...)> *ERROR* ==> Wrong sample number. Value = "
01028                            << sample << " (required range: [0, "
01029                            << MyRootFile->MaxSampADC()-1 << "] )"
01030                            << fTTBELL << endl;
01031                     }
01032                 }
01033             }
01034           else    // else of the if ( tower_X_ok ==1 && tower_Y_ok ==1 )
01035             {
01036               //----------------------------------------------------------      (ViewMatrix)
01037               if ( tower_X_ok != 1 )
01038                 {
01039                   cout << "*TCnaViewEB::ViewMatrix(...)> *ERROR* =====> "
01040                        << " Tower_X = " << SMtower_X << ". Tower not found."
01041                        << " Available numbers = ";
01042                   for(Int_t i = 0; i < nb_of_towers; i++){if( vtow(i) > 0 ){cout << vtow(i) << ", ";}}
01043                   cout << fTTBELL << endl;
01044                 }
01045               if ( tower_Y_ok != 1 )
01046                 {
01047                   cout << "*TCnaViewEB::ViewMatrix(...)> *ERROR* =====> "
01048                        << " Tower_Y = " << SMtower_Y << ". Tower not found."
01049                        << " Available numbers = ";
01050                   for(Int_t i = 0; i < nb_of_towers; i++){if( vtow(i) > 0 ){cout << vtow(i) << ", ";}}
01051                   cout << fTTBELL << endl;
01052                 }
01053           
01054             }
01055 
01056         }  // end of if ( MyRootFile->DataExist() == kTRUE )
01057     }
01058   else
01059     {
01060       cout  << "*TCnaViewEB::ViewMatrix(...)> *ERROR* =====> "
01061             << " ROOT file not found" << fTTBELL << endl;
01062     }
01063   
01064   delete MyRootFile;                                                  fCdelete++;
01065   
01066 }  // end of ViewMatrix(...)

void TCnaViewEB::ViewSuperModule ( const   TString  ) 

Definition at line 1720 of file TCnaViewEB.cc.

References CanvasFormatH(), CanvasFormatW(), GenMuonPlsPt100GeV_cfg::cout, TCnaReadEB::DataExist(), lat::endl(), fCdelete, fCdeleteRoot, fCfgResultsRootFilePath, fCnew, fCnewRoot, fcom_bot_left, fcom_bot_right, fcom_top_left, fFapAnaType, fFapFirstEvt, fFapNbOfEvts, fFapRunNumber, fFapSuMoBarrel, fFapSuMoNumber, fgMaxCar, fStartDate, fStopDate, ftitle_g1, fTTBELL, TCnaReadEB::GetReadyToReadRootFile(), TCnaReadEB::GetRootFileNameShort(), TEBNumbering::GetSMHalfBarrel(), TCnaReadEB::GetSMTowFromIndex(), TCnaReadEB::GetStartDate(), TCnaReadEB::GetStopDate(), GetXCrysInSM(), GetYCrysInSM(), HistoSetMinMax(), TCnaReadEB::LookAtRootFile(), TEBParameters::MaxCrysEtaInTow(), TEBParameters::MaxCrysInSM(), TEBParameters::MaxCrysInTow(), TEBParameters::MaxCrysPhiInTow(), TEBParameters::MaxSampADC(), TEBParameters::MaxTowEtaInSM(), TEBParameters::MaxTowInSM(), TEBParameters::MaxTowPhiInSM(), TCnaReadEB::PrintNoComment(), PutAllPavesViewSuperModule(), TCnaReadEB::ReadExpectationValuesOfCorrelationsBetweenSamples(), TCnaReadEB::ReadExpectationValuesOfExpectationValuesOfSamples(), TCnaReadEB::ReadExpectationValuesOfSigmasOfSamples(), TCnaReadEB::ReadNumbersOfFoundEventsForSamples(), TCnaReadEB::ReadSigmasOfCorrelationsBetweenSamples(), TCnaReadEB::ReadSigmasOfExpectationValuesOfSamples(), TCnaReadEB::ReadSigmasOfSigmasOfSamples(), SetHistoPresentation(), ViewSuperModuleGrid(), and ViewSuperModuleTowerNumberingPad().

Referenced by EtaPhiSuperModuleFoundEvents(), EtaPhiSuperModuleMeanOfCorss(), EtaPhiSuperModuleMeanOfSampleSigmas(), EtaPhiSuperModuleMeanPedestals(), EtaPhiSuperModuleSigmaOfCorss(), EtaPhiSuperModuleSigmaOfSampleSigmas(), and EtaPhiSuperModuleSigmaPedestals().

01721 {
01722 // (eta, phi) matrices for all the towers of a super-module
01723 
01724   TCnaReadEB*  MyRootFile = new TCnaReadEB();                              fCnew++; 
01725   MyRootFile->PrintNoComment();
01726 
01727   MyRootFile->GetReadyToReadRootFile(fFapAnaType,    fFapRunNumber, fFapFirstEvt, fFapNbOfEvts,
01728                                      fFapSuMoNumber, fCfgResultsRootFilePath.Data());
01729   
01730   if ( MyRootFile->LookAtRootFile() == kTRUE )
01731     {
01732       TString QuantityType;
01733       Int_t MaxCar = fgMaxCar;
01734       QuantityType.Resize(MaxCar);
01735       QuantityType = "(no quantity type info)";
01736 
01737       TString fp_name_short = MyRootFile->GetRootFileNameShort(); 
01738       // cout << "*TCnaViewEB::ViewSuperModule(...)> Data are analyzed from file ----> "
01739       //      << fp_name_short << endl;
01740 
01741       fStartDate    = MyRootFile->GetStartDate();
01742       fStopDate     = MyRootFile->GetStopDate();
01743       
01744       //......................... matrix title  
01745       char* f_in_mat_tit = new char[fgMaxCar];               fCnew++;
01746       
01747       if (QuantityCode == "SMFoundEvtsGlobal") {sprintf(f_in_mat_tit, "Number of events (mean over samples)");}
01748       if (QuantityCode == "SMEvEvGlobal"     ) {sprintf(f_in_mat_tit, "Mean of sample means (mean pedestal)");}
01749       if (QuantityCode == "SMEvSigGlobal"    ) {sprintf(f_in_mat_tit, "Mean of sample sigmas");}
01750       if (QuantityCode == "SMEvCorssGlobal"  ) {sprintf(f_in_mat_tit, "Mean of cor(s,s)");}
01751       if (QuantityCode == "SMSigEvGlobal"    ) {sprintf(f_in_mat_tit, "Sigma of sample means");}
01752       if (QuantityCode == "SMSigSigGlobal"   ) {sprintf(f_in_mat_tit, "Sigma of sample sigmas");}
01753       if (QuantityCode == "SMSigCorssGlobal" ) {sprintf(f_in_mat_tit, "Sigma of cor(s,s)");}
01754       
01755       //................................. Axis parameters
01756 
01757       TEBParameters* MyEcal = new TEBParameters();   fCnew++;
01758 
01759       Int_t  GeoBidSizeEta = MyEcal->MaxTowEtaInSM()*MyEcal->MaxCrysEtaInTow();
01760       Int_t  GeoBidSizePhi = MyEcal->MaxTowPhiInSM()*MyEcal->MaxCrysPhiInTow();
01761 
01762       Int_t  nb_binx  = GeoBidSizeEta;
01763       Int_t  nb_biny  = GeoBidSizePhi;
01764       Axis_t xinf_bid = (Axis_t)0.;
01765       Axis_t xsup_bid = (Axis_t)GeoBidSizeEta;
01766       Axis_t yinf_bid = (Axis_t)0.;
01767       Axis_t ysup_bid = (Axis_t)GeoBidSizePhi;   
01768       
01769       TString axis_x_var_name = "  #eta  ";
01770       TString axis_y_var_name = "  #varphi  ";
01771 
01772       //--------------------------------------------------------- (ViewSuperModule)
01773 
01774       //............. matrices reading and histogram filling
01775       
01776       TH2D* h_geo_bid = new TH2D("geobidim_eta_phi", f_in_mat_tit,
01777                                  nb_binx, xinf_bid,  xsup_bid,
01778                                  nb_biny, yinf_bid,  ysup_bid);     fCnewRoot++;
01779 
01780       h_geo_bid->Reset();
01781 
01782       //... histogram set ymin and ymax (from TCnaParameters)
01783       Int_t  xFlagAutoYsupMargin = 0;      
01784       xFlagAutoYsupMargin = HistoSetMinMax((TH1D*)h_geo_bid, QuantityCode);
01785 
01786 
01787       // ************************** A GARDER EN RESERVE *******************************
01788       //............. special contour level for correlations (square root wise scale)
01789       //if ( QuantityCode == "SMEvCorssGlobal" )
01790       //{
01791       //  Int_t nb_niv  = 9;
01792       //  Double_t* cont_niv = new Double_t[nb_niv];           fCnew++;
01793       //  SqrtContourLevels(nb_niv, &cont_niv[0]);      
01794       //  h_geo_bid->SetContour(nb_niv, &cont_niv[0]);        
01795       //  delete [] cont_niv;                                  fCdelete++;
01796       //}
01797       // ******************************** (FIN RESERVE) *******************************
01798 
01799       //======================================================== (ViewSuperModule)
01800           
01801       Int_t nb_of_towers   = MyEcal->MaxTowInSM();
01802       Int_t nb_crys_in_tow = MyEcal->MaxCrysInTow();
01803       Int_t nb_of_samples  = MyEcal->MaxSampADC();
01804       Int_t nb_crys_in_sm  = MyEcal->MaxCrysInSM();
01805       
01806       TVectorD partial_histo(nb_crys_in_tow);
01807       TVectorD partial_histp(nb_crys_in_sm);
01808 
01809       TMatrixD partial_matrix(nb_crys_in_tow, nb_of_samples);
01810       TMatrixD read_matrix(nb_binx, nb_biny);
01811 
01812       if (QuantityCode == "SMEvEvGlobal" ){
01813         partial_histp = MyRootFile->ReadExpectationValuesOfExpectationValuesOfSamples();}
01814       if (QuantityCode == "SMEvSigGlobal" ){
01815         partial_histp = MyRootFile->ReadExpectationValuesOfSigmasOfSamples();}
01816       if (QuantityCode == "SMEvCorssGlobal" ){
01817         partial_histp = MyRootFile->ReadExpectationValuesOfCorrelationsBetweenSamples();}
01818       if (QuantityCode == "SMSigEvGlobal" ){
01819         partial_histp = MyRootFile->ReadSigmasOfExpectationValuesOfSamples();}
01820       if (QuantityCode == "SMSigSigGlobal" ){
01821         partial_histp = MyRootFile->ReadSigmasOfSigmasOfSamples();}
01822       if (QuantityCode == "SMSigCorssGlobal" ){
01823         partial_histp = MyRootFile->ReadSigmasOfCorrelationsBetweenSamples();}
01824 
01825       if ( MyRootFile->DataExist() == kTRUE )
01826         {
01827           TEBNumbering* MyNumbering = new TEBNumbering();                fCnew++;
01828           fFapSuMoBarrel = MyNumbering->GetSMHalfBarrel(fFapSuMoNumber);
01829           
01830           for(Int_t i_tow=0; i_tow<nb_of_towers; i_tow++)
01831             {
01832               Int_t SMtow = MyRootFile->GetSMTowFromIndex(i_tow);
01833               if (SMtow != -1)
01834                 {
01835                   if (QuantityCode == "SMFoundEvtsGlobal" )
01836                     {
01837                       partial_matrix = MyRootFile->ReadNumbersOfFoundEventsForSamples(SMtow);
01838                       
01839                       for(Int_t i_crys=0; i_crys<nb_crys_in_tow; i_crys++)
01840                         {
01841                           //.... average value over the samples
01842                           partial_histo(i_crys) = 0;
01843                           for(Int_t i_samp=0; i_samp<nb_of_samples; i_samp++)
01844                             {
01845                               partial_histo(i_crys) = partial_histo(i_crys) + partial_matrix(i_crys, i_samp);
01846                             }
01847                           partial_histo(i_crys) = partial_histo(i_crys)/nb_of_samples;
01848                         }
01849                     }
01850                   
01851                   //======================================================== (ViewSuperModule)
01852                   
01853                   //------------------ Geographical bidim filling (different from the case of a tower,
01854                   //                   here EB+ and EB- differences are important)
01855                   
01856                   for(Int_t i_TowEcha=0; i_TowEcha<nb_crys_in_tow; i_TowEcha++)
01857                     {
01858                       Int_t iSMEcha = (SMtow-1)*nb_crys_in_tow + i_TowEcha;
01859                       Int_t i_xgeo = GetXCrysInSM(MyNumbering, MyEcal, fFapSuMoNumber, SMtow, i_TowEcha);
01860                       Int_t i_ygeo = GetYCrysInSM(MyNumbering, MyEcal, fFapSuMoNumber, SMtow, i_TowEcha);
01861                       
01862                       if(i_xgeo >=0 && i_xgeo < nb_binx && i_ygeo >=0 && i_ygeo < nb_biny)
01863                         {
01864                           if(iSMEcha >= 0 && iSMEcha < nb_of_towers*nb_crys_in_tow){
01865                             read_matrix(i_xgeo, i_ygeo) = partial_histo(i_TowEcha);}
01866                           
01867                           if (QuantityCode != "SMFoundEvtsGlobal" )
01868                             {read_matrix(i_xgeo, i_ygeo) = partial_histp(iSMEcha);}
01869                           
01870                           h_geo_bid->Fill((Double_t)i_xgeo, (Double_t)i_ygeo,
01871                                           (Stat_t)read_matrix(i_xgeo, i_ygeo));
01872                         }          
01873                     }
01874                 }
01875             }
01876           
01877           // ------------------------------------------------ P L O T S   (ViewSuperModule)
01878           
01879           char* f_in = new char[fgMaxCar];                           fCnew++;
01880           
01881           //...................... Taille/format canvas
01882           
01883           UInt_t canv_h = CanvasFormatW("etaphiSM");
01884           UInt_t canv_w = CanvasFormatH("etaphiSM");
01885           
01886           //............................................... paves commentaires (ViewSuperModule)
01887           PutAllPavesViewSuperModule(MyRootFile);         
01888           
01889           //------------------------------------ Canvas name ----------------- (ViewSuperModule)  
01890           TString name_cov_cor;
01891           MaxCar = fgMaxCar;
01892           name_cov_cor.Resize(MaxCar);
01893           name_cov_cor = "?";
01894           
01895           if( QuantityCode == "SMFoundEvtsGlobal"){name_cov_cor = "SMFoundEvtsGlobal";}
01896           if( QuantityCode == "SMEvEvGlobal"     ){name_cov_cor = "SMEvEvGlobal";}
01897           if( QuantityCode == "SMEvSigGlobal"    ){name_cov_cor = "SMEvSigGlobal";}
01898           if( QuantityCode == "SMEvCorssGlobal"  ){name_cov_cor = "SMEvCorssGlobal";}
01899           if( QuantityCode == "SMSigEvGlobal"    ){name_cov_cor = "SMSigEvGlobal";}
01900           if( QuantityCode == "SMSigSigGlobal"   ){name_cov_cor = "SMSigSigGlobal";}
01901           if( QuantityCode == "SMSigCorssGlobal" ){name_cov_cor = "SMSigCorssGlobal";}
01902           
01903           TString name_visu;
01904           MaxCar = fgMaxCar;
01905           name_visu.Resize(MaxCar);
01906           name_visu = "colz";
01907           
01908           sprintf(f_in, "%s_EtaPhi_%s_%d_%s_%d_%d_SM%d",
01909                   name_visu.Data(), fFapAnaType.Data(), fFapRunNumber,
01910                   name_cov_cor.Data(),fFapFirstEvt, fFapNbOfEvts, fFapSuMoNumber);
01911           
01912           SetHistoPresentation((TH1D*)h_geo_bid, "SM2DTN");
01913           
01914           TCanvas *NoiseCorrel = new TCanvas(f_in, f_in, canv_w, canv_h);   fCnewRoot++;
01915           
01916           // cout << "*TCnaViewEB::ViewSuperModule(...)> Plot is displayed on canvas ----> " << f_in << endl;
01917           
01918           delete [] f_in; f_in = 0;                                 fCdelete++;
01919           
01920           //------------------------ Canvas draw and update ------------ (ViewSuperModule)  
01921           ftitle_g1->Draw();
01922           fcom_top_left->Draw();
01923           fcom_bot_left->Draw();
01924           fcom_bot_right->Draw();
01925           
01926           NoiseCorrel->Divide(1, 1, 0.001 , 0.125);
01927           gPad->cd(1);
01928           
01929           TPad *main_subpad = (TPad*)gPad;
01930           Int_t i_zonx = 1;
01931           Int_t i_zony = 1;
01932           main_subpad->Divide(i_zonx, i_zony, 0.001, 0.001);
01933           main_subpad->cd(1);
01934           
01935           h_geo_bid->GetXaxis()->SetTitle(axis_x_var_name);
01936           h_geo_bid->GetYaxis()->SetTitle(axis_y_var_name);
01937           
01938           h_geo_bid->DrawCopy("COLZ");
01939           
01940           // trace de la grille: un rectangle = une tour (ViewSuperModule) 
01941           ViewSuperModuleGrid(MyEcal, MyNumbering, fFapSuMoNumber, " ");
01942           gPad->Draw();
01943           gPad->Update();
01944           
01945 #define DEUP
01946 #ifndef DEUP
01947           //-------------------- deuxieme Pad
01948           sprintf(f_in_mat_tit, "SuperModule tower numbering");
01949           TH2D* h_empty_bid = new TH2D("emptybidim_eta_phi", f_in_mat_tit,
01950                                        nb_binx, xinf_bid,    xsup_bid,
01951                                        nb_biny, yinf_bid,    ysup_bid);          fCnewRoot++; 
01952           h_empty_bid->Reset();
01953           
01954           SetHistoPresentation((TH1D*)h_empty_bid, "SM2DTN");
01955           
01956           h_empty_bid->GetXaxis()->SetTitle(axis_x_var_name);
01957           h_empty_bid->GetYaxis()->SetTitle(axis_y_var_name);
01958           
01959           main_subpad->cd(2);      
01960           h_empty_bid->DrawCopy("COL");   // il faut retracer un bidim vide de meme taille que le precedent
01961           // pour pouvoir tracer la grille et les axes dans la 2eme pad
01962           
01963           ViewSuperModuleTowerNumberingPad(MyEcal, MyNumbering, fFapSuMoNumber);
01964           gPad->Draw();
01965           gPad->Update();
01966           
01967           // h_empty_bid->Delete();              fCdeleteRoot++;    
01968           
01969 #endif
01970           
01971           //..................... retour aux options standard
01972           Bool_t b_true = 1;
01973           h_geo_bid->SetStats(b_true);    
01974           h_geo_bid->Delete();                fCdeleteRoot++;
01975            
01976           //      delete title_g1;                 fCdeleteRoot++;
01977           //      delete com_bot_left;             fCdeleteRoot++;
01978           //      delete NoiseCorrel;              fCdeleteRoot++;
01979           
01980           delete MyNumbering;                              fCdelete++;
01981         }
01982       delete [] f_in_mat_tit;                            fCdelete++;
01983       delete MyEcal;                                     fCdelete++;
01984     }
01985   else
01986     {
01987       cout << "!TCnaViewEB::ViewSuperModule(...)> *ERROR* =====> "
01988            << " ROOT file not found" << fTTBELL << endl;
01989     }
01990   
01991   delete MyRootFile;                                                   fCdelete++;
01992   
01993 }  // end of ViewSuperModule(...)

void TCnaViewEB::ViewSuperModuleGrid ( TEBParameters MyEcal,
TEBNumbering MyNumbering,
const Int_t &  SMNumber,
const   TString 
)

Definition at line 2498 of file TCnaViewEB.cc.

References ColorDefinition(), f1, f2, fCdelete, fCnew, fCnewRoot, fgMaxCar, GetEtaPhiAxisTitle(), TEBNumbering::GetIEtaMax(), TEBNumbering::GetIEtaMin(), TEBNumbering::GetJPhiMax(), TEBNumbering::GetJPhiMin(), TEBNumbering::GetJYDirection(), TEBNumbering::GetPhiMax(), TEBNumbering::GetPhiMin(), TEBNumbering::GetSMHalfBarrel(), TEBNumbering::GetXDirection(), TEBNumbering::GetYDirection(), i, j, TEBParameters::MaxCrysEtaInTow(), TEBParameters::MaxCrysInTow(), TEBParameters::MaxCrysPhiInTow(), TEBParameters::MaxTowEtaInSM(), and TEBParameters::MaxTowPhiInSM().

Referenced by EtaPhiSuperModuleCorccMeanOverSamples(), ViewSuperModule(), and ViewSuperModuleTowerNumberingPad().

02500 {
02501  //Grid of one supermodule with axis eta and phi
02502 
02503   Int_t  GeoBidSizeEta = MyEcal->MaxTowEtaInSM()*MyEcal->MaxCrysEtaInTow();
02504   Int_t  GeoBidSizePhi = MyEcal->MaxTowPhiInSM()*MyEcal->MaxCrysPhiInTow();
02505 
02506   if ( c_option == "corcc")
02507     {
02508       GeoBidSizeEta = MyEcal->MaxTowEtaInSM()*MyEcal->MaxCrysInTow();
02509       GeoBidSizePhi = MyEcal->MaxTowPhiInSM()*MyEcal->MaxCrysInTow();
02510     }
02511 
02512   Int_t  nb_binx  = GeoBidSizeEta;
02513   Int_t  nb_biny  = GeoBidSizePhi;
02514   Axis_t xinf_bid = (Axis_t)0.;
02515   Axis_t xsup_bid = (Axis_t)GeoBidSizeEta;
02516   Axis_t yinf_bid = (Axis_t)0.;
02517   Axis_t ysup_bid = (Axis_t)GeoBidSizePhi;   
02518   
02519   //---------------- trace de la grille: un rectangle = une tour
02520 
02521   Int_t size_eta = MyEcal->MaxCrysEtaInTow();
02522   Int_t size_phi = MyEcal->MaxCrysPhiInTow();
02523   if ( c_option == "corcc")
02524     {
02525       size_eta = MyEcal->MaxCrysInTow();
02526       size_phi = MyEcal->MaxCrysInTow();
02527     }
02528   Int_t max_x    = nb_binx/size_eta;
02529   Int_t max_y    = nb_biny/size_phi;
02530 
02531   //............................. lignes horizontales
02532   Double_t yline = (Double_t)yinf_bid;
02533 
02534   Double_t xline_left  = (Double_t)xinf_bid;
02535   Double_t xline_right = (Double_t)xsup_bid;
02536   
02537   for( Int_t j = 0 ; j < max_y ; j++)
02538     {
02539       yline = yline + (Double_t)size_phi;
02540       TLine *lin;
02541       lin = new TLine(xline_left, yline, xline_right, yline); fCnewRoot++;
02542       lin->Draw();
02543       // delete lin;             fCdeleteRoot++;
02544     }
02545 
02546   //.......................... lignes verticales
02547   Double_t xline = (Double_t)xinf_bid - (Double_t)size_eta;
02548   
02549   Double_t yline_bot = (Double_t)yinf_bid;
02550   Double_t yline_top = (Double_t)ysup_bid;
02551   
02552   Color_t coul_surligne = ColorDefinition("noir");
02553   Color_t coul_textmodu = ColorDefinition("vert36");
02554 
02555   gStyle->SetTextColor(coul_textmodu);
02556   gStyle->SetTextSize(0.075);
02557 
02558   char* f_in = new char[fgMaxCar];                           fCnew++;
02559 
02560   for( Int_t i = 0 ; i < max_x ; i++)
02561     {  
02562       xline = xline + (Double_t)size_eta;
02563       TLine *lin;
02564       lin = new TLine(xline, yline_bot, xline, yline_top); fCnewRoot++;
02565       
02566       //............. Surlignage separateur des modules
02567       if( (MyNumbering->GetSMHalfBarrel(SMNumber) == "barrel-") && (i == 4 || i == 8 || i == 12) )
02568         {lin->SetLineWidth(2); lin->SetLineColor(coul_surligne);}      
02569       if( (MyNumbering->GetSMHalfBarrel(SMNumber) == "barrel+") && (i == 5 || i == 9 || i == 13) )
02570         {lin->SetLineWidth(2); lin->SetLineColor(coul_surligne);}
02571        
02572       lin->Draw();
02573       // delete lin;             fCdeleteRoot++;
02574 
02575       //............. Numeros des modules
02576       if( (MyNumbering->GetSMHalfBarrel(SMNumber) == "barrel-") && (i == 7 || i == 10 || i == 14)  )
02577         {
02578           if( i ==  7 ){sprintf( f_in, "M3");}
02579           if( i == 10 ){sprintf( f_in, "M2");}
02580           if( i == 14 ){sprintf( f_in, "M1");}
02581 
02582           TText *text_num_module = new TText(xline, yline_top + 1, f_in);        fCnewRoot++;
02583           text_num_module->Draw();
02584         }      
02585       if( (MyNumbering->GetSMHalfBarrel(SMNumber) == "barrel+") && (i == 7 || i == 11 || i == 15)  )
02586         {
02587           if( i ==  7 ){sprintf( f_in, "M2");}
02588           if( i == 11 ){sprintf( f_in, "M3");}
02589           if( i == 15 ){sprintf( f_in, "M4");}
02590          
02591           TText *text_num_module = new TText(xline, yline_top + 1, f_in);        fCnewRoot++;
02592           text_num_module->Draw();
02593         }
02594     }
02595 
02596   delete [] f_in;                                       fCdelete++;
02597 
02598   //------------------ trace axes en eta et phi --------------- ViewSupermoduleGrid
02599 
02600   Int_t MatSize      = MyEcal->MaxCrysEtaInTow();
02601   if ( c_option == "corcc"){MatSize = MyEcal->MaxCrysInTow();}
02602 
02603   Int_t size_eta_sm  = MyEcal->MaxTowEtaInSM();
02604   Int_t size_phi_sm  = MyEcal->MaxTowPhiInSM();
02605 
02606   //...................................................... Axe i(eta) (bottom x) ViewSupermoduleGrid
02607   Double_t eta_min = MyNumbering->GetIEtaMin(SMNumber);
02608   Double_t eta_max = MyNumbering->GetIEtaMax(SMNumber);
02609 
02610   TString  x_var_name  = GetEtaPhiAxisTitle("ietaSM");;
02611   TString  x_direction = MyNumbering->GetXDirection(SMNumber);
02612 
02613   TF1 *f1 = new TF1("f1", x_direction.Data(), eta_min, eta_max);          fCnewRoot++;
02614     TGaxis* sup_axis_x = 0;
02615 
02616   if( x_direction == "-x" ) // NEVER  IN THIS CASE: xmin->xmax <=> right->left ("-x") direction
02617     {sup_axis_x = new TGaxis( (Float_t)0., (Float_t)0., (Float_t)(size_eta_sm*MatSize), (Float_t)0.,
02618                               "f1", size_eta_sm, "C" , 0.);   fCnewRoot++;}
02619 
02620   if( x_direction == "x" )  // ALWAYS IN THIS CASE: xmin->xmax <=> left->right ("x") direction    
02621     {sup_axis_x = new TGaxis( (Float_t)0., (Float_t)0., (Float_t)(size_eta_sm*MatSize), (Float_t)0.,
02622                               "f1", size_eta_sm, "C" , 0.);   fCnewRoot++;}
02623   
02624   sup_axis_x->SetTitle(x_var_name);
02625   sup_axis_x->SetTitleSize((Float_t)0.085);
02626   sup_axis_x->SetTitleOffset((Float_t)0.725);
02627   sup_axis_x->SetLabelSize((Float_t)0.06);
02628   sup_axis_x->SetLabelOffset((Float_t)0.02);
02629   //  gStyle->SetTickLength((Float_t)0.,"X");            // ==> NE MARCHE PAS
02630   sup_axis_x->Draw("SAME");
02631 
02632   //...................................................... Axe phi (y) ViewSupermoduleGrid
02633   Double_t phi_min     = MyNumbering->GetPhiMin(SMNumber);
02634   Double_t phi_max     = MyNumbering->GetPhiMax(SMNumber);
02635 
02636   TString  y_var_name  = GetEtaPhiAxisTitle("phi");
02637   TString  y_direction = MyNumbering->GetYDirection(SMNumber);
02638 
02639   TF1 *f2 = new TF1("f2", y_direction.Data(), phi_min, phi_max);           fCnewRoot++;
02640   TGaxis* sup_axis_y = 0;
02641   
02642   if ( y_direction == "-x" ) // ALWAYS IN THIS CASE: ymin->ymax <=> top->bottom ("-x") direction
02643     {sup_axis_y = new TGaxis(-(Float_t)1.5*(Float_t)size_eta, (Float_t)0.,
02644                              -(Float_t)1.5*(Float_t)size_eta, (Float_t)(size_phi_sm*MatSize),
02645                              "f2", (Int_t)size_phi_sm, "C", 0.);   fCnewRoot++;}
02646   
02647   if ( y_direction == "x" )  // NEVER  IN THIS CASE: ymin->ymax <=> bottom->top ("x") direction
02648     {sup_axis_y = new TGaxis(-(Float_t)1.5*(Float_t)size_eta, (Float_t)0.,
02649                              -(Float_t)1.5*(Float_t)size_eta, (Float_t)(size_phi_sm*MatSize),
02650                              "f2", (Int_t)size_phi_sm, "C", 0.);   fCnewRoot++;}
02651   
02652   sup_axis_y->SetTitle(y_var_name);
02653   sup_axis_y->SetTitleSize((Float_t)0.07);
02654   sup_axis_y->SetTitleOffset((Float_t)0.2);
02655   sup_axis_y->SetLabelSize((Float_t)0.06);
02656   sup_axis_y->SetLabelOffset((Float_t)0.015);
02657   sup_axis_y->SetTickSize((Float_t)0.);            // ==> NE MARCHE PAS
02658   sup_axis_y->Draw("SAME");
02659 
02660   //...................................................... Axe jphi (jy) ViewSupermoduleGrid
02661   Double_t jphi_min     = MyNumbering->GetJPhiMin(SMNumber);
02662   Double_t jphi_max     = MyNumbering->GetJPhiMax(SMNumber);
02663 
02664   TString  jy_var_name  = " ";
02665   TString  jy_direction = MyNumbering->GetJYDirection(SMNumber);
02666 
02667   TF1 *f3 = new TF1("f3", jy_direction.Data(), jphi_min, jphi_max);           fCnewRoot++;
02668   TGaxis* sup_axis_jy = 0;
02669   
02670   //............; essai
02671   sup_axis_jy = new TGaxis((Float_t)0., (Float_t)0.,
02672                            (Float_t)0., (Float_t)(size_phi_sm*MatSize),
02673                            "f3", (Int_t)size_phi_sm, "C", 0.);   fCnewRoot++;
02674   
02675   if ( jy_direction == "-x" ) // IN THIS CASE FOR EB+: ymin->ymax <=> top->bottom ("-x") direction
02676     {jy_var_name  = GetEtaPhiAxisTitle("jphiSMB+");}
02677   
02678   if ( jy_direction == "x" )  // IN THIS CASE FOR EB-: ymin->ymax <=> bottom->top ("x") direction
02679     {jy_var_name  = GetEtaPhiAxisTitle("jphiSMB-");}
02680   
02681   sup_axis_jy->SetTitle(jy_var_name);
02682   sup_axis_jy->SetTitleSize((Float_t)0.07);
02683   sup_axis_jy->SetTitleOffset((Float_t)0.3);
02684   sup_axis_jy->SetLabelSize((Float_t)0.06);
02685   sup_axis_jy->SetLabelOffset((Float_t)0.015);
02686   sup_axis_jy->SetTickSize((Float_t)0.);        // ==> NE MARCHE PAS
02687   sup_axis_jy->Draw("SAME");
02688 
02689   //--------------------------- ViewSupermoduleGrid
02690           
02691   f1 = 0;
02692   f2 = 0;
02693   f3 = 0;
02694 
02695 } // end of ViewSuperModuleGrid

void TCnaViewEB::ViewSuperModuleTowerNumberingPad ( TEBParameters MyEcal,
TEBNumbering MyNumbering,
const Int_t &  SMNumber 
)

Definition at line 2353 of file TCnaViewEB.cc.

References ColorDefinition(), fCdelete, fCnew, fCnewRoot, fgMaxCar, TEBNumbering::GetEta(), TEBNumbering::GetPhi(), TEBNumbering::GetPhiMin(), TEBNumbering::GetSMHalfBarrel(), TEBNumbering::GetTowerLvrbType(), TEBParameters::MaxCrysEtaInTow(), TEBParameters::MaxCrysPhiInTow(), TEBParameters::MaxTowEtaInSM(), TEBParameters::MaxTowInSM(), TEBParameters::MaxTowPhiInSM(), SetColorsForNumbers(), and ViewSuperModuleGrid().

Referenced by SuperModuleTowerNumbering(), and ViewSuperModule().

02355 {
02356 //display the tower numbering of the super-module in a Pad
02357 
02358   gStyle->SetTitleW(0.4);        // taille titre histos
02359   gStyle->SetTitleH(0.08);
02360 
02361   ViewSuperModuleGrid(MyEcal, MyNumbering, SMNumber, " ");
02362 
02363   //Color_t couleur_bleu_fonce   = ColorDefinition("bleu_fonce");
02364   //Color_t couleur_rouge        = ColorDefinition("rouge");
02365 
02366   Color_t couleur_rouge      = SetColorsForNumbers("lvrb_top");
02367   Color_t couleur_bleu_fonce = SetColorsForNumbers("lvrb_bottom");
02368 
02369   //..... Ecriture des numeros de tours dans la grille..... (ViewSuperModuleTowerNumberingPad)
02370 
02371   char* f_in = new char[fgMaxCar];                           fCnew++;
02372   gStyle->SetTextSize(0.075);
02373 
02374   // x_channel, y_channel: coordinates of the text "Txx"
02375   Int_t y_channel = 12;
02376   Int_t x_channel =  0;    // => defined here after according to the Lvrb type
02377 
02378   Int_t max_tow_phi = MyEcal->MaxTowPhiInSM()*MyEcal->MaxCrysPhiInTow();
02379 
02380   //------------------ LOOP ON THE SM_TOWER NUMBER   (ViewSuperModuleTowerNumberingPad)
02381 
02382   TText *text_SMtow_num = new TText();        fCnewRoot++;
02383 
02384   for (Int_t i_SMtow = 1; i_SMtow <= MyEcal->MaxTowInSM(); i_SMtow++)
02385     {
02386       if(MyNumbering->GetTowerLvrbType(i_SMtow) == "top")
02387         {x_channel =  7; text_SMtow_num->SetTextColor(couleur_rouge);}
02388       if(MyNumbering->GetTowerLvrbType(i_SMtow) == "bottom")
02389         {x_channel = 17; text_SMtow_num->SetTextColor(couleur_bleu_fonce);}
02390 
02391       //................................ x from eta
02392       Double_t x_from_eta = MyNumbering->GetEta(SMNumber, i_SMtow, x_channel);
02393       if( MyNumbering->GetSMHalfBarrel(SMNumber) == "barrel-")
02394         {x_from_eta = (MyEcal->MaxTowEtaInSM()-1)*MyEcal->MaxCrysEtaInTow() + x_from_eta + (Double_t)2;}
02395 
02396       //................................ y from phi
02397       Double_t y_from_phi = max_tow_phi - 1
02398         - (MyNumbering->GetPhi(SMNumber, i_SMtow, y_channel) - MyNumbering->GetPhiMin(SMNumber));
02399       if( MyNumbering->GetSMHalfBarrel(SMNumber) == "barrel-")
02400         {y_from_phi = - y_from_phi + MyEcal->MaxTowPhiInSM()*MyEcal->MaxCrysPhiInTow() - (Double_t)1;}
02401 
02402       sprintf(f_in, "%d", i_SMtow);
02403       text_SMtow_num->DrawText(x_from_eta, y_from_phi, f_in);  // <=== prend du temps si on mets "T%d" dans le sprintf
02404     }
02405 
02406   // delete text_SMtow_num;             fCdeleteRoot++;
02407 
02408   //.................................................... legende (ViewSuperModuleTowerNumberingPad)
02409   Double_t offset_tow_tex_eta = (Double_t)8.;
02410   Double_t offset_tow_tex_phi = (Double_t)15.;
02411 
02412   Color_t couleur_noir = ColorDefinition("noir");
02413   Double_t x_legend    = (Double_t)0.;
02414   Double_t y_legend    = (Double_t)0.;
02415 
02416   Int_t ref_tower = MyEcal->MaxTowInSM();
02417 
02418   //.................................................  LVRB TOP (ViewSuperModuleTowerNumberingPad)
02419   gStyle->SetTextSize(0.075);  
02420   gStyle->SetTextColor(couleur_rouge);
02421   x_legend = MyNumbering->GetEta(SMNumber, ref_tower, x_channel);
02422   y_legend = MyNumbering->GetPhi(SMNumber, ref_tower, y_channel) - MyNumbering->GetPhiMin(SMNumber);
02423 
02424   if( MyNumbering->GetSMHalfBarrel(SMNumber) == "barrel+" )
02425     {
02426       x_legend = x_legend + offset_tow_tex_eta;
02427       y_legend = y_legend + offset_tow_tex_phi;
02428     }
02429   if( MyNumbering->GetSMHalfBarrel(SMNumber) == "barrel-" )
02430     {
02431       x_legend = -x_legend + offset_tow_tex_eta;
02432       y_legend =  y_legend + offset_tow_tex_phi;
02433     }
02434 
02435   sprintf( f_in, "xx");
02436   TText *text_legend_rouge = new TText(x_legend, y_legend, f_in);        fCnewRoot++;
02437   text_legend_rouge->Draw();
02438   // delete text_SMtow_num;             fCdeleteRoot++;
02439   gStyle->SetTextSize(0.05);
02440   gStyle->SetTextColor(couleur_noir);
02441   x_legend = x_legend - (Double_t)3.5;
02442   y_legend = y_legend - (Double_t)2.;
02443   sprintf(f_in, "       LVRB     ");
02444   TText *text_legend_rouge_expl = new TText(x_legend, y_legend, f_in);        fCnewRoot++;
02445   text_legend_rouge_expl->Draw();
02446   y_legend = y_legend - (Double_t)1.75;
02447   sprintf(f_in, "    at the top  ");
02448   TText *text_legend_rouge_expm = new TText(x_legend, y_legend, f_in);        fCnewRoot++;
02449   text_legend_rouge_expm->Draw();
02450   // delete text_SMtow_num;             fCdeleteRoot++;
02451   
02452   //.................................................  LVRB BOTTOM (ViewSuperModuleTowerNumberingPad)
02453   gStyle->SetTextSize(0.075);  
02454   gStyle->SetTextColor(couleur_bleu_fonce);
02455   x_legend = MyNumbering->GetEta(SMNumber, ref_tower, x_channel);
02456   y_legend = MyNumbering->GetPhi(SMNumber, ref_tower, y_channel) - MyNumbering->GetPhiMin(SMNumber); 
02457 
02458   if( MyNumbering->GetSMHalfBarrel(SMNumber) == "barrel+" )
02459     {
02460       x_legend = x_legend + offset_tow_tex_eta;
02461       y_legend = y_legend + offset_tow_tex_phi/3;
02462     }
02463   if( MyNumbering->GetSMHalfBarrel(SMNumber) == "barrel-" )
02464     {
02465       x_legend = -x_legend + offset_tow_tex_eta;
02466       y_legend =  y_legend + offset_tow_tex_phi/3;
02467     }
02468 
02469   sprintf(f_in, "xx");
02470   TText *text_legend_bleu = new TText(x_legend, y_legend, f_in);        fCnewRoot++;
02471   text_legend_bleu->Draw();
02472   // delete text_SMtow_num;             fCdeleteRoot++;
02473   gStyle->SetTextSize(0.05);
02474   gStyle->SetTextColor(couleur_noir);
02475   x_legend = x_legend - (Double_t)3.5;
02476   y_legend = y_legend - (Double_t)2.;
02477   sprintf( f_in, "       LVRB     ");
02478   TText *text_legend_bleu_expl = new TText(x_legend, y_legend, f_in);        fCnewRoot++;
02479   text_legend_bleu_expl->Draw();
02480   y_legend = y_legend - (Double_t)1.75;
02481   sprintf( f_in, "  at the bottom ");
02482   TText *text_legend_bleu_expm = new TText(x_legend, y_legend, f_in);        fCnewRoot++;
02483   text_legend_bleu_expm->Draw();
02484   // delete text_SMtow_num;             fCdeleteRoot++;
02485   
02486   delete [] f_in;                                       fCdelete++;
02487 
02488   gStyle->SetTextColor(couleur_noir);
02489 }

void TCnaViewEB::ViewTower ( const Int_t &  SMtower,
const Int_t &  opt_cov_cor 
)

Definition at line 1095 of file TCnaViewEB.cc.

References CanvasFormatH(), CanvasFormatW(), GenMuonPlsPt100GeV_cfg::cout, TCnaReadEB::DataExist(), lat::endl(), fCdelete, fCdeleteRoot, fCfgResultsRootFilePath, fCnew, fCnewRoot, fcom_bot_left, fcom_bot_right, fcom_top_left, fcom_top_mid, fFapAnaType, fFapFirstEvt, fFapNbOfEvts, fFapRunNumber, fFapSuMoBarrel, fFapSuMoNumber, fgMaxCar, fOptMatCor, fOptMatCov, fStartDate, fStopDate, ftitle_g1, fTTBELL, TCnaReadEB::GetReadyToReadRootFile(), TCnaReadEB::GetRootFileNameShort(), TEBNumbering::GetSMHalfBarrel(), TCnaReadEB::GetStartDate(), TCnaReadEB::GetStopDate(), GetXSampInTow(), GetYSampInTow(), HistoSetMinMax(), i, TCnaReadEB::LookAtRootFile(), TEBParameters::MaxCrysEtaInTow(), TEBParameters::MaxCrysInTow(), TEBParameters::MaxCrysPhiInTow(), TEBParameters::MaxSampADC(), TEBParameters::MaxTowInSM(), TCnaReadEB::PrintNoComment(), PutAllPavesViewTower(), TCnaReadEB::ReadCorrelationsBetweenSamples(), TCnaReadEB::ReadCovariancesBetweenSamples(), TCnaReadEB::ReadTowerNumbers(), SetHistoPresentation(), and ViewTowerGrid().

Referenced by CorrelationsBetweenSamples(), and CovariancesBetweenSamples().

01096 {
01097   
01098   TCnaReadEB*  MyRootFile = new TCnaReadEB();                              fCnew++; 
01099   MyRootFile->PrintNoComment();
01100 
01101   MyRootFile->GetReadyToReadRootFile(fFapAnaType,    fFapRunNumber, fFapFirstEvt, fFapNbOfEvts,
01102                                      fFapSuMoNumber, fCfgResultsRootFilePath.Data());
01103   
01104   if ( MyRootFile->LookAtRootFile() == kTRUE )
01105     {
01106       TString fp_name_short = MyRootFile->GetRootFileNameShort(); 
01107       // cout << "*TCnaViewEB::ViewTower(...)> Data are analyzed from file ----> "
01108       //      << fp_name_short << endl;
01109       
01110       TEBParameters* MyEcal = new TEBParameters();   fCnew++;
01111 
01112       Int_t     nb_of_towers = MyEcal->MaxTowInSM();
01113       TVectorD  vtow(nb_of_towers);
01114       vtow = MyRootFile->ReadTowerNumbers();
01115       
01116       if ( MyRootFile->DataExist() == kTRUE )
01117         {
01118           Int_t tower_ok = 0;
01119           for (Int_t index_tow = 0; index_tow < nb_of_towers; index_tow++)
01120             {
01121               if ( vtow(index_tow) == SMtower ){tower_ok++;}
01122             }
01123           
01124           if( tower_ok == 1)
01125             {
01126               fStartDate    = MyRootFile->GetStartDate();
01127               fStopDate     = MyRootFile->GetStopDate();
01128               
01129               //......................... matrix title  
01130               char* f_in_mat_tit = new char[fgMaxCar];               fCnew++;
01131               
01132               if ( opt_cov_cor == fOptMatCov )
01133                 {sprintf(f_in_mat_tit, "Covariances between samples for each crystal. Tower view.");}
01134               if ( opt_cov_cor == fOptMatCor )
01135                 {sprintf(f_in_mat_tit, "Correlations between samples for each crystal. Tower view.");}
01136       
01137               //................................. Bidim parameters
01138               Int_t  GeoBidSize = MyEcal->MaxSampADC()*MyEcal->MaxCrysEtaInTow(); 
01139               Int_t  nb_binx  = GeoBidSize;
01140               Int_t  nb_biny  = GeoBidSize;
01141               Axis_t xinf_bid = (Axis_t)0.;
01142               Axis_t xsup_bid = (Axis_t)GeoBidSize;
01143               Axis_t yinf_bid = (Axis_t)0.;
01144               Axis_t ysup_bid = (Axis_t)GeoBidSize;   
01145       
01146               //--------------------------------------------------------- (ViewTower)
01147               //............. matrices reading and histogram filling
01148       
01149               TH2D* h_geo_bid = new TH2D("geobidim", f_in_mat_tit,
01150                                          nb_binx, xinf_bid, xsup_bid,
01151                                          nb_biny, yinf_bid, ysup_bid);     fCnewRoot++;
01152           
01153               h_geo_bid->Reset();
01154           
01155               if ( opt_cov_cor == fOptMatCor )
01156                 {
01157                   // h_geo_bid->SetMinimum(GetYmin("SMEvCorssGlobal"));
01158                   // same Ymin and Ymax as for SM histograms
01159                   // h_geo_bid->SetMaximum(GetYmax("SMEvCorssGlobal"));
01160               
01161                   //... histogram set ymin and ymax (from TCnaParameters)
01162                   Int_t  xFlagAutoYsupMargin = 0;      
01163                   xFlagAutoYsupMargin = HistoSetMinMax((TH1D*)h_geo_bid, "SMEvCorssGlobal");
01164 
01165               
01166                   // ************************** A GARDER EN RESERVE *******************************
01167                   //............. special  contour level for correlations (square root wise scale)
01168                   //Int_t nb_niv  = 9;
01169                   //Double_t* cont_niv = new Double_t[nb_niv];                  fCnew++;
01170                   //SqrtContourLevels(nb_niv, &cont_niv[0]);
01171                   //h_geo_bid->SetContour(nb_niv, &cont_niv[0]);              
01172                   //delete [] cont_niv;                                  fCdelete++;
01173                   // ******************************** (FIN RESERVE) *******************************
01174                 }
01175 
01176               if ( opt_cov_cor == fOptMatCov )
01177                 {
01178                   //h_geo_bid->SetMinimum(GetYmin("SMEvCovttMatrix"));
01179                   //same Ymin and Ymax as for SM Cov(tower,tower)
01180                   //h_geo_bid->SetMaximum(GetYmax("SMEvCovttMatrix")); 
01181 
01182                   //... histogram set ymin and ymax (from TCnaParameters)
01183                   Int_t  xFlagAutoYsupMargin = 0;      
01184                   xFlagAutoYsupMargin = HistoSetMinMax((TH1D*)h_geo_bid, "SMEvSigGlobal");  
01185                 }
01186 
01187               //======================================================== (ViewTower)
01188           
01189               //----------------------------------------------- Geographical bidim filling
01190 
01191               Int_t  MatSize = MyEcal->MaxSampADC();
01192               TMatrixD read_matrix(MatSize, MatSize);
01193 
01194               TEBNumbering* MyNumbering = new TEBNumbering();    fCnew++;
01195               fFapSuMoBarrel = MyNumbering->GetSMHalfBarrel(fFapSuMoNumber);
01196 
01197               Int_t i_data_exist = 0;
01198 
01199               for(Int_t n_crys = 0; n_crys < MyEcal->MaxCrysInTow(); n_crys++)
01200                 {
01201                   if( opt_cov_cor == fOptMatCov )
01202                     {read_matrix = MyRootFile->ReadCovariancesBetweenSamples(SMtower, n_crys);}
01203                   if ( opt_cov_cor == fOptMatCor )
01204                     {read_matrix = MyRootFile->ReadCorrelationsBetweenSamples(SMtower, n_crys);}
01205                   
01206                   if( MyRootFile->DataExist() == kFALSE )
01207                     {
01208                       cout << "*TCnaViewEB::ViewTower> Exiting loop over the channels." << endl;
01209                       break;
01210                     }
01211                   else
01212                     {
01213                       i_data_exist++;
01214                       for(Int_t i_samp = 0 ; i_samp < MatSize ; i_samp++)
01215                         {
01216                           Int_t i_xgeo = GetXSampInTow(MyNumbering, MyEcal, fFapSuMoNumber,
01217                                                        SMtower,     n_crys, i_samp);
01218                           for(Int_t j_samp = 0; j_samp < MatSize ; j_samp++)
01219                             {
01220                               Int_t j_ygeo = GetYSampInTow(MyNumbering, MyEcal, fFapSuMoNumber,
01221                                                            SMtower,     n_crys, j_samp);
01222                               h_geo_bid->Fill((Double_t)i_xgeo, (Double_t)j_ygeo,
01223                                               (Stat_t)read_matrix(i_samp, j_samp));
01224                             }
01225                         }
01226                     }
01227                 }
01228               
01229               if( i_data_exist > 0 )
01230                 {
01231                   // ------------------------------------------------ P L O T S   (ViewTower)
01232                   
01233                   char* f_in = new char[fgMaxCar];                           fCnew++;
01234                   
01235                   //...................... Taille/format canvas
01236                   
01237                   UInt_t canv_w = CanvasFormatW("petit");
01238                   UInt_t canv_h = CanvasFormatH("petit");
01239                   
01240                   //.................................................. paves commentaires (ViewTower)     
01241                   PutAllPavesViewTower(MyRootFile, SMtower);
01242                   
01243                   //------------------------------------ Canvas name ----------------- (ViewTower)  
01244                   TString name_cov_cor;
01245                   Int_t MaxCar = fgMaxCar;
01246                   name_cov_cor.Resize(MaxCar);
01247                   name_cov_cor = "?";
01248                   if( opt_cov_cor == fOptMatCov){name_cov_cor = "cov_vtow";}
01249                   if( opt_cov_cor == fOptMatCor){name_cov_cor = "cor_vtow";}
01250                   
01251                   TString name_visu;
01252                   MaxCar = fgMaxCar;
01253                   name_visu.Resize(MaxCar);
01254                   name_visu = "colz";
01255                   
01256                   sprintf(f_in, "%s_%d_%s_%d_%s_%d_%d_SM%d",
01257                           name_visu.Data(), SMtower, fFapAnaType.Data(), fFapRunNumber,
01258                           name_cov_cor.Data(),fFapFirstEvt, fFapNbOfEvts, fFapSuMoNumber); 
01259                   
01260                   SetHistoPresentation((TH1D*)h_geo_bid, "tower");
01261                   
01262                   TCanvas *NoiseCorrel = new TCanvas(f_in, f_in, canv_w, canv_h);   fCnewRoot++;
01263                   
01264                   // cout << "*TCnaViewEB::ViewTower(...)> Plot is displayed on canvas ----> " << f_in << endl;
01265                   
01266                   delete [] f_in; f_in = 0;                                 fCdelete++;
01267                   
01268                   //------------------------ Canvas draw and update ------------ (ViewTower)  
01269                   ftitle_g1->Draw();
01270                   fcom_top_left->Draw();
01271                   fcom_top_mid->Draw();
01272                   fcom_bot_left->Draw();
01273                   fcom_bot_right->Draw();
01274                   
01275                   //      Bool_t b_true = 1;  Bool_t b_false = 0;
01276                   
01277                   NoiseCorrel->Divide(1, 1, 0.001 , 0.125);
01278                   gPad->cd(1);
01279                   
01280                   TVirtualPad *main_subpad = gPad;
01281                   Int_t i_zonx = 1;
01282                   Int_t i_zony = 1;
01283                   main_subpad->Divide(i_zonx,i_zony);
01284                   gPad->cd(1);
01285                   main_subpad->cd(1);
01286                   
01287                   Int_t logy = 0;  
01288                   gPad->SetLogy(logy);
01289                   
01290                   h_geo_bid->DrawCopy("COLZ");
01291                   
01292                   //--------------------------------------------------------------------------- (ViewTower)       
01293                   Int_t size_eta    = MyEcal->MaxCrysEtaInTow();
01294                   Int_t size_phi    = MyEcal->MaxCrysPhiInTow();
01295                   
01296                   ViewTowerGrid(MyNumbering, fFapSuMoNumber, SMtower, MatSize, size_eta, size_phi, " ");
01297                   
01298                   gPad->Update();
01299                   
01300                   h_geo_bid->SetStats((Bool_t)1);    
01301 
01302                   //      delete title_g1;                 fCdeleteRoot++;
01303                   //      delete com_bot_left;             fCdeleteRoot++;
01304                   //      delete NoiseCorrel;              fCdeleteRoot++;
01305                   
01306                 }
01307               delete MyNumbering;                              fCdelete++;
01308               delete [] f_in_mat_tit;                          fCdelete++;
01309                   
01310               h_geo_bid->Delete();                fCdeleteRoot++;
01311             }
01312           else
01313             {
01314               cout << "!TCnaViewEB::ViewTower(...)> *ERROR* =====> "
01315                    << " Tower " << SMtower << " not found."
01316                    << " Available numbers = ";
01317               for(Int_t i = 0; i < nb_of_towers; i++){if( vtow(i) > 0 ){cout << vtow(i) << ", ";}}
01318               cout << fTTBELL << endl;  
01319             }
01320         }  // end of if ( myRootFile_>DataExist() == kTRUE )
01321       delete MyEcal;                                   fCdelete++;
01322     }
01323   else
01324     {
01325       cout << "!TCnaViewEB::ViewTower(...)> *ERROR* =====> "
01326            << " ROOT file not found" << fTTBELL << endl;
01327     }
01328   
01329   delete MyRootFile;                                                   fCdelete++;
01330   
01331 }  // end of ViewTower(...)

void TCnaViewEB::ViewTowerGrid ( TEBNumbering MyNumbering,
const Int_t &  SMNumber,
const Int_t &  SMtower,
const Int_t &  MatSize,
const Int_t &  size_eta,
const Int_t &  size_phi,
const   TString 
)

Definition at line 1577 of file TCnaViewEB.cc.

References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), f1, f2, fCnewRoot, fTTBELL, GetEtaPhiAxisTitle(), TEBNumbering::GetIEtaMax(), TEBNumbering::GetIEtaMin(), TEBNumbering::GetJPhiMax(), TEBNumbering::GetJPhiMin(), TEBNumbering::GetJYDirection(), TEBNumbering::GetPhiMax(), TEBNumbering::GetPhiMin(), TEBNumbering::GetXDirection(), TEBNumbering::GetYDirection(), i, and j.

Referenced by TowerCrystalNumbering(), and ViewTower().

01581 {
01582   //Grid of one tower with axis eta and phi
01583   //.......................... lignes verticales
01584   Double_t xline = 0.;
01585   
01586   Double_t yline_bot = 0.;
01587   Double_t yline_top = (Double_t)(MatSize*size_eta);
01588   
01589   for( Int_t i = 0 ; i < size_eta ; i++)
01590     {  
01591       xline = xline + (Double_t)MatSize;
01592       TLine *lin;
01593       lin = new TLine(xline, yline_bot, xline, yline_top); fCnewRoot++;
01594       lin->Draw();
01595       // delete lin;             fCdeleteRoot++;
01596     }
01597   //............................. lignes horizontales
01598   Double_t xline_left  = 0;
01599   Double_t xline_right = (Double_t)(MatSize*size_eta);
01600   
01601   Double_t yline = -(Double_t)MatSize;
01602   
01603   for( Int_t j = 0 ; j < size_eta+1 ; j++)
01604     {
01605       yline = yline + (Double_t)MatSize;
01606       TLine *lin;
01607       lin = new TLine(xline_left, yline, xline_right, yline); fCnewRoot++;
01608       lin->Draw();
01609       // delete lin;             fCdeleteRoot++;
01610     }
01611  
01612   //------------------ trace axes en eta et phi --------------- ViewTowerGrid
01613 
01614   //...................................................... Axe i(eta) (x bottom)  (ViewTowerGrid)
01615 
01616   Double_t eta_min = MyNumbering->GetIEtaMin(SMNumber, SMtower);
01617   Double_t eta_max = MyNumbering->GetIEtaMax(SMNumber, SMtower);
01618 
01619   TString  x_var_name  = GetEtaPhiAxisTitle("ietaTow");
01620   TString  x_direction = MyNumbering->GetXDirection(SMNumber);
01621 
01622   TF1 *f1 = new TF1("f1", x_direction.Data(), eta_min, eta_max);                fCnewRoot++;
01623 
01624   TGaxis* sup_axis_x = 0;
01625 
01626   if ( x_direction == "-x" )   // NEVER  IN THIS CASE: xmin->xmax <=> right->left ("-x") direction
01627     {sup_axis_x = new TGaxis( -(Float_t)MatSize, (Float_t)0, (Float_t)(size_eta*MatSize), (Float_t)0.,
01628                               "f1", size_eta, "BC" , 0.);                                fCnewRoot++;
01629     cout << "TCnaViewEB::ViewTowerGrid()> non foreseen case. eta with -x direction." << fTTBELL << endl;}
01630 
01631   if ( x_direction == "x" )    // ALWAYS IN THIS CASE: xmin->xmax <=> left->right ("x") direction
01632     {sup_axis_x = new TGaxis( (Float_t)0.      , (Float_t)0., (Float_t)(size_eta*MatSize), (Float_t)0.,
01633                               "f1", size_eta, "C" , 0.);                                fCnewRoot++;}
01634   
01635   sup_axis_x->SetTitle(x_var_name);
01636   sup_axis_x->SetTitleSize((Float_t)0.05);
01637   sup_axis_x->SetTitleOffset((Float_t)0.05);
01638   sup_axis_x->SetLabelSize((Float_t)0.04);
01639   sup_axis_x->SetLabelOffset((Float_t)0.02);
01640   sup_axis_x->SetTickSize((Float_t)0.0001);                  // <===== NE MARCHE PAS
01641   sup_axis_x->Draw("SAME");
01642   f1 = 0;
01643 
01644   //...................................................... Axe phi (y right)  (ViewTowerGrid)
01645   if( chopt == "CrystalNumbering" )
01646     {
01647       Double_t phi_min     = MyNumbering->GetPhiMin(SMNumber, SMtower);
01648       Double_t phi_max     = MyNumbering->GetPhiMax(SMNumber, SMtower);
01649       
01650       TString  y_var_name  = GetEtaPhiAxisTitle("phi");
01651       TString  y_direction = MyNumbering->GetYDirection(SMNumber);
01652       
01653       TF1 *f2 = new TF1("f2", y_direction.Data(), phi_min, phi_max);               fCnewRoot++;
01654       TGaxis* sup_axis_y = 0;
01655       
01656       if ( y_direction == "-x" )  // ALWAYS IN THIS CASE: ymin->ymax <=> top->bottom ("-x") direction
01657         {sup_axis_y = new TGaxis( (Float_t)(size_eta*MatSize), (Float_t)0.,
01658                                   (Float_t)(size_eta*MatSize), (Float_t)(size_phi*MatSize),
01659                                   "f2", size_phi, "+C", 0.);                fCnewRoot++;}
01660       
01661       if ( y_direction == "x" )   // NEVER  IN THIS CASE: ymin->ymax <=> bottom->top ("x") direction
01662         {sup_axis_y = new TGaxis( (Float_t)0.,  (Float_t)0., (Float_t) 0., (Float_t)(size_phi*MatSize),
01663                                   "f2", size_phi, "BC", 0.);                fCnewRoot++;}
01664       
01665       sup_axis_y->SetTitle(y_var_name);
01666       sup_axis_y->SetTitleSize(0.05);
01667       sup_axis_y->SetTitleOffset(-0.085);
01668       sup_axis_y->SetLabelSize(0.04);
01669       sup_axis_y->SetLabelOffset(0.04);
01670       sup_axis_y->SetTickSize((Float_t)0.);                  // <===== NE MARCHE PAS
01671       sup_axis_y->Draw("SAME");
01672       f2 = 0;
01673     }
01674   //...................................................... Axe j(phi) (y left)  (ViewTowerGrid)
01675 
01676   Double_t j_phi_min     = MyNumbering->GetJPhiMin(SMNumber, SMtower);
01677   Double_t j_phi_max     = MyNumbering->GetJPhiMax(SMNumber, SMtower);
01678 
01679   TString  jy_var_name  = GetEtaPhiAxisTitle("jphiTow");
01680   TString  jy_direction = MyNumbering->GetJYDirection(SMNumber);
01681 
01682   TF1 *f3 = new TF1("f3", jy_direction.Data(), j_phi_min, j_phi_max);               fCnewRoot++;
01683   TGaxis* sup_axis_jy = 0;
01684 
01685   sup_axis_jy = new TGaxis( (Float_t)0., (Float_t)0.,
01686                             (Float_t)0., (Float_t)(size_phi*MatSize),
01687                             "f3", size_phi, "C", 0.);                fCnewRoot++;
01688   
01689   sup_axis_jy->SetTitle(jy_var_name);
01690   sup_axis_jy->SetTitleSize(0.05);
01691   sup_axis_jy->SetTitleOffset(-0.085);
01692   sup_axis_jy->SetLabelSize(0.04);
01693   sup_axis_jy->SetLabelOffset(0.04);
01694   sup_axis_jy->SetTickSize((Float_t)0.);                  // <===== NE MARCHE PAS
01695   sup_axis_jy->Draw("SAME");
01696   f3 = 0;
01697 
01698 } // end of ViewTowerGrid


Member Data Documentation

TCanvas* TCnaViewEB::fCanvEv [private]

Definition at line 213 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), CreateCanvas(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvas* TCnaViewEB::fCanvEvolEvCorss [private]

Definition at line 219 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), CreateCanvas(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvas* TCnaViewEB::fCanvEvolEvEv [private]

Definition at line 217 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), CreateCanvas(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvas* TCnaViewEB::fCanvEvolEvSig [private]

Definition at line 218 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), CreateCanvas(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvas* TCnaViewEB::fCanvEvts [private]

Definition at line 215 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), CreateCanvas(), Init(), ReInitCanvas(), and SetParametersCanvas().

Int_t TCnaViewEB::fCanvSameEv [private]

Definition at line 296 of file TCnaViewEB.h.

Referenced by Init(), ReInitCanvas(), and SetCanvasName().

Int_t TCnaViewEB::fCanvSameEvolEvCorss [private]

Definition at line 297 of file TCnaViewEB.h.

Referenced by Init(), ReInitCanvas(), and SetCanvasName().

Int_t TCnaViewEB::fCanvSameEvolEvEv [private]

Definition at line 297 of file TCnaViewEB.h.

Referenced by Init(), ReInitCanvas(), and SetCanvasName().

Int_t TCnaViewEB::fCanvSameEvolEvSig [private]

Definition at line 297 of file TCnaViewEB.h.

Referenced by Init(), ReInitCanvas(), and SetCanvasName().

Int_t TCnaViewEB::fCanvSameEvts [private]

Definition at line 296 of file TCnaViewEB.h.

Referenced by Init(), ReInitCanvas(), and SetCanvasName().

Int_t TCnaViewEB::fCanvSameSampTime [private]

Definition at line 296 of file TCnaViewEB.h.

Referenced by Init(), ReInitCanvas(), and SetCanvasName().

Int_t TCnaViewEB::fCanvSameSigma [private]

Definition at line 296 of file TCnaViewEB.h.

Referenced by Init(), ReInitCanvas(), and SetCanvasName().

Int_t TCnaViewEB::fCanvSameSMEvCorssGlobal [private]

Definition at line 292 of file TCnaViewEB.h.

Referenced by Init(), ReInitCanvas(), and SetCanvasName().

Int_t TCnaViewEB::fCanvSameSMEvCorssProj [private]

Definition at line 292 of file TCnaViewEB.h.

Referenced by Init(), ReInitCanvas(), and SetCanvasName().

Int_t TCnaViewEB::fCanvSameSMEvEvGlobal [private]

Definition at line 290 of file TCnaViewEB.h.

Referenced by Init(), ReInitCanvas(), and SetCanvasName().

Int_t TCnaViewEB::fCanvSameSMEvEvProj [private]

Definition at line 290 of file TCnaViewEB.h.

Referenced by Init(), ReInitCanvas(), and SetCanvasName().

Int_t TCnaViewEB::fCanvSameSMEvSigGlobal [private]

Definition at line 291 of file TCnaViewEB.h.

Referenced by Init(), ReInitCanvas(), and SetCanvasName().

Int_t TCnaViewEB::fCanvSameSMEvSigProj [private]

Definition at line 291 of file TCnaViewEB.h.

Referenced by Init(), ReInitCanvas(), and SetCanvasName().

Int_t TCnaViewEB::fCanvSameSMFoundEvtsGlobal [private]

Definition at line 289 of file TCnaViewEB.h.

Referenced by Init(), ReInitCanvas(), and SetCanvasName().

Int_t TCnaViewEB::fCanvSameSMFoundEvtsProj [private]

Definition at line 289 of file TCnaViewEB.h.

Referenced by Init(), ReInitCanvas(), and SetCanvasName().

Int_t TCnaViewEB::fCanvSameSMSigCorssGlobal [private]

Definition at line 295 of file TCnaViewEB.h.

Referenced by Init(), ReInitCanvas(), and SetCanvasName().

Int_t TCnaViewEB::fCanvSameSMSigCorssProj [private]

Definition at line 295 of file TCnaViewEB.h.

Referenced by Init(), ReInitCanvas(), and SetCanvasName().

Int_t TCnaViewEB::fCanvSameSMSigEvGlobal [private]

Definition at line 293 of file TCnaViewEB.h.

Referenced by Init(), ReInitCanvas(), and SetCanvasName().

Int_t TCnaViewEB::fCanvSameSMSigEvProj [private]

Definition at line 293 of file TCnaViewEB.h.

Referenced by Init(), ReInitCanvas(), and SetCanvasName().

Int_t TCnaViewEB::fCanvSameSMSigSigGlobal [private]

Definition at line 294 of file TCnaViewEB.h.

Referenced by Init(), ReInitCanvas(), and SetCanvasName().

Int_t TCnaViewEB::fCanvSameSMSigSigProj [private]

Definition at line 294 of file TCnaViewEB.h.

Referenced by Init(), ReInitCanvas(), and SetCanvasName().

TCanvas* TCnaViewEB::fCanvSampTime [private]

Definition at line 216 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), CreateCanvas(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvas* TCnaViewEB::fCanvSigma [private]

Definition at line 214 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), CreateCanvas(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvas* TCnaViewEB::fCanvSMEvCorssGlobal [private]

Definition at line 205 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), CreateCanvas(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvas* TCnaViewEB::fCanvSMEvCorssProj [private]

Definition at line 206 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), CreateCanvas(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvas* TCnaViewEB::fCanvSMEvEvGlobal [private]

Definition at line 201 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), CreateCanvas(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvas* TCnaViewEB::fCanvSMEvEvProj [private]

Definition at line 202 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), CreateCanvas(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvas* TCnaViewEB::fCanvSMEvSigGlobal [private]

Definition at line 203 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), CreateCanvas(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvas* TCnaViewEB::fCanvSMEvSigProj [private]

Definition at line 204 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), CreateCanvas(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvas* TCnaViewEB::fCanvSMFoundEvtsGlobal [private]

Definition at line 199 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), CreateCanvas(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvas* TCnaViewEB::fCanvSMFoundEvtsProj [private]

Definition at line 200 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), CreateCanvas(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvas* TCnaViewEB::fCanvSMSigCorssGlobal [private]

Definition at line 211 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), CreateCanvas(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvas* TCnaViewEB::fCanvSMSigCorssProj [private]

Definition at line 212 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), CreateCanvas(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvas* TCnaViewEB::fCanvSMSigEvGlobal [private]

Definition at line 207 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), CreateCanvas(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvas* TCnaViewEB::fCanvSMSigEvProj [private]

Definition at line 208 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), CreateCanvas(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvas* TCnaViewEB::fCanvSMSigSigGlobal [private]

Definition at line 209 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), CreateCanvas(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvas* TCnaViewEB::fCanvSMSigSigProj [private]

Definition at line 210 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), CreateCanvas(), Init(), ReInitCanvas(), and SetParametersCanvas().

Int_t TCnaViewEB::fCdelete [private]

Definition at line 42 of file TCnaViewEB.h.

Referenced by EtaPhiSuperModuleCorccMeanOverSamples(), HistimePlot(), HistoPlot(), Init(), PutPaveAnalysisRun(), PutPaveAnalysisRunList(), PutPaveCrystal(), PutPaveCrystalSample(), PutPaveGeneralComment(), PutPaveSuperModule(), PutPaveTakenEvents(), PutPaveTakenEventsRunList(), PutPaveTower(), PutPaveTowersXY(), SetCanvasName(), SuperModuleTowerNumbering(), TowerCrystalNumbering(), ViewHistime(), ViewHisto(), ViewMatrix(), ViewSuperModule(), ViewSuperModuleGrid(), ViewSuperModuleTowerNumberingPad(), and ViewTower().

Int_t TCnaViewEB::fCdeleteRoot [private]

Definition at line 43 of file TCnaViewEB.h.

Referenced by EtaPhiSuperModuleCorccMeanOverSamples(), Init(), SuperModuleTowerNumbering(), TowerCrystalNumbering(), ViewHisto(), ViewMatrix(), ViewSuperModule(), and ViewTower().

TString TCnaViewEB::fCfgListOfRunsFilePath [private]

Definition at line 73 of file TCnaViewEB.h.

Referenced by GetListOfRunParameters(), GetPathForListOfRunFiles(), and SetFile().

TString TCnaViewEB::fCfgResultsRootFilePath [private]

Definition at line 72 of file TCnaViewEB.h.

Referenced by EtaPhiSuperModuleCorccMeanOverSamples(), GetListOfRunParameters(), GetPathForResultsRootFiles(), SetFile(), ViewHisto(), ViewMatrix(), ViewSuperModule(), and ViewTower().

Int_t TCnaViewEB::fCnaCommand [private]

Definition at line 41 of file TCnaViewEB.h.

Referenced by Init().

Int_t TCnaViewEB::fCnaError [private]

Definition at line 41 of file TCnaViewEB.h.

Referenced by GetPathForListOfRunFiles(), GetPathForResultsRootFiles(), and Init().

Int_t TCnaViewEB::fCnew [private]

Definition at line 42 of file TCnaViewEB.h.

Referenced by AllocArraysForEvol(), EtaPhiSuperModuleCorccMeanOverSamples(), HistimePlot(), HistoPlot(), Init(), PutPaveAnalysisRun(), PutPaveAnalysisRunList(), PutPaveCrystal(), PutPaveCrystalSample(), PutPaveGeneralComment(), PutPaveSuperModule(), PutPaveTakenEvents(), PutPaveTakenEventsRunList(), PutPaveTower(), PutPaveTowersXY(), SetCanvasName(), SuperModuleTowerNumbering(), TowerCrystalNumbering(), ViewHistime(), ViewHisto(), ViewMatrix(), ViewSuperModule(), ViewSuperModuleGrid(), ViewSuperModuleTowerNumberingPad(), and ViewTower().

Int_t TCnaViewEB::fCnewRoot [private]

Definition at line 43 of file TCnaViewEB.h.

Referenced by CreateCanvas(), EtaPhiSuperModuleCorccMeanOverSamples(), HistimePlot(), HistoPlot(), Init(), PutPaveAnalysisRun(), PutPaveAnalysisRunList(), PutPaveCrystal(), PutPaveCrystalSample(), PutPaveGeneralComment(), PutPaveLVRB(), PutPaveSuperModule(), PutPaveTakenEvents(), PutPaveTakenEventsRunList(), PutPaveTower(), PutPaveTowersXY(), SuperModuleTowerNumbering(), TopAxisForTowerNumbers(), TowerCrystalNumbering(), ViewHisto(), ViewMatrix(), ViewSuperModule(), ViewSuperModuleGrid(), ViewSuperModuleTowerNumberingPad(), ViewTower(), and ViewTowerGrid().

TPaveText* TCnaViewEB::fcom_bot_left [private]

Definition at line 168 of file TCnaViewEB.h.

Referenced by EtaPhiSuperModuleCorccMeanOverSamples(), HistimePlot(), HistoPlot(), PutAllPavesViewHisto(), PutAllPavesViewMatrix(), PutAllPavesViewSuperModule(), PutAllPavesViewTower(), ViewMatrix(), ViewSuperModule(), and ViewTower().

TPaveText* TCnaViewEB::fcom_bot_mid [private]

Definition at line 169 of file TCnaViewEB.h.

Referenced by PutAllPavesViewTowerCrysNb(), and TowerCrystalNumbering().

TPaveText* TCnaViewEB::fcom_bot_right [private]

Definition at line 170 of file TCnaViewEB.h.

Referenced by EtaPhiSuperModuleCorccMeanOverSamples(), HistimePlot(), HistoPlot(), PutAllPavesViewHisto(), PutAllPavesViewMatrix(), PutAllPavesViewSuperModule(), PutAllPavesViewTower(), ViewMatrix(), ViewSuperModule(), and ViewTower().

TPaveText* TCnaViewEB::fcom_top_left [private]

Definition at line 164 of file TCnaViewEB.h.

Referenced by EtaPhiSuperModuleCorccMeanOverSamples(), HistimePlot(), HistoPlot(), PutAllPavesViewHisto(), PutAllPavesViewMatrix(), PutAllPavesViewSuperModule(), PutAllPavesViewTower(), PutAllPavesViewTowerCrysNb(), SetParametersCanvas(), SuperModuleTowerNumbering(), TowerCrystalNumbering(), ViewMatrix(), ViewSuperModule(), and ViewTower().

TPaveText* TCnaViewEB::fcom_top_left_memo [private]

Definition at line 165 of file TCnaViewEB.h.

Referenced by PutAllPavesViewHisto().

TPaveText* TCnaViewEB::fcom_top_mid [private]

Definition at line 166 of file TCnaViewEB.h.

Referenced by HistimePlot(), HistoPlot(), PutAllPavesViewHisto(), PutAllPavesViewMatrix(), PutAllPavesViewTower(), PutAllPavesViewTowerCrysNb(), TowerCrystalNumbering(), ViewMatrix(), and ViewTower().

TPaveText* TCnaViewEB::fcom_top_right [private]

Definition at line 167 of file TCnaViewEB.h.

Referenced by HistimePlot(), HistoPlot(), PutAllPavesViewHisto(), PutAllPavesViewMatrix(), and ViewMatrix().

TVirtualPad* TCnaViewEB::fCurrentPad [private]

Definition at line 221 of file TCnaViewEB.h.

Referenced by HistoPlot(), and Init().

Double_t TCnaViewEB::fEvolEvCorssYmax [private]

Definition at line 159 of file TCnaViewEB.h.

Referenced by GraphSetMinMax(), and InitQuantityYmax().

Double_t TCnaViewEB::fEvolEvCorssYmin [private]

Definition at line 158 of file TCnaViewEB.h.

Referenced by GraphSetMinMax(), and InitQuantityYmin().

Double_t TCnaViewEB::fEvolEvEvYmax [private]

Definition at line 155 of file TCnaViewEB.h.

Referenced by GraphSetMinMax(), and InitQuantityYmax().

Double_t TCnaViewEB::fEvolEvEvYmin [private]

Definition at line 154 of file TCnaViewEB.h.

Referenced by GraphSetMinMax(), and InitQuantityYmin().

Double_t TCnaViewEB::fEvolEvSigYmax [private]

Definition at line 157 of file TCnaViewEB.h.

Referenced by GraphSetMinMax(), and InitQuantityYmax().

Double_t TCnaViewEB::fEvolEvSigYmin [private]

Definition at line 156 of file TCnaViewEB.h.

Referenced by GraphSetMinMax(), and InitQuantityYmin().

Double_t TCnaViewEB::fEvtsYmax [private]

Definition at line 151 of file TCnaViewEB.h.

Referenced by InitQuantityYmax(), and PutYmax().

Double_t TCnaViewEB::fEvtsYmin [private]

Definition at line 150 of file TCnaViewEB.h.

Referenced by InitQuantityYmin(), and PutYmin().

Double_t TCnaViewEB::fEvYmax [private]

Definition at line 147 of file TCnaViewEB.h.

Referenced by HistoSetMinMax(), and InitQuantityYmax().

Double_t TCnaViewEB::fEvYmin [private]

Definition at line 146 of file TCnaViewEB.h.

Referenced by HistoSetMinMax(), and InitQuantityYmin().

TString TCnaViewEB::fFapAnaType [private]

Definition at line 64 of file TCnaViewEB.h.

Referenced by EtaPhiSuperModuleCorccMeanOverSamples(), HistimePlot(), HistoPlot(), PutPaveAnalysisRun(), SetCanvasName(), SetFile(), ViewHisto(), ViewMatrix(), ViewSuperModule(), and ViewTower().

Int_t TCnaViewEB::fFapChanNumber [private]

Definition at line 77 of file TCnaViewEB.h.

Referenced by SetFile().

TString TCnaViewEB::fFapFileRuns [private]

Definition at line 54 of file TCnaViewEB.h.

Referenced by GetListOfRunParameters(), and Init().

Int_t TCnaViewEB::fFapFirstEvt [private]

Definition at line 66 of file TCnaViewEB.h.

Referenced by EtaPhiSuperModuleCorccMeanOverSamples(), HistimePlot(), HistoPlot(), PutPaveTakenEvents(), SetCanvasName(), SetFile(), ViewHisto(), ViewMatrix(), ViewSuperModule(), and ViewTower().

Int_t TCnaViewEB::fFapMaxNbOfRuns [private]

Definition at line 52 of file TCnaViewEB.h.

Referenced by GetListOfRunParameters(), and Init().

Int_t TCnaViewEB::fFapNbOfEvts [private]

Definition at line 67 of file TCnaViewEB.h.

Referenced by EtaPhiSuperModuleCorccMeanOverSamples(), HistimePlot(), HistoPlot(), PutPaveTakenEvents(), SetCanvasName(), SetFile(), ViewHisto(), ViewMatrix(), ViewSuperModule(), and ViewTower().

Int_t TCnaViewEB::fFapNbOfRuns [private]

Definition at line 53 of file TCnaViewEB.h.

Referenced by GetListOfRunParameters(), and Init().

Int_t TCnaViewEB::fFapRunNumber [private]

Definition at line 65 of file TCnaViewEB.h.

Referenced by EtaPhiSuperModuleCorccMeanOverSamples(), HistoPlot(), PutPaveAnalysisRun(), PutPaveGeneralComment(), SetCanvasName(), SetFile(), ViewHisto(), ViewMatrix(), ViewSuperModule(), and ViewTower().

Int_t TCnaViewEB::fFapSampNumber [private]

Definition at line 78 of file TCnaViewEB.h.

Referenced by SetFile().

TString TCnaViewEB::fFapSuMoBarrel [private]

Definition at line 69 of file TCnaViewEB.h.

Referenced by EtaPhiSuperModuleCorccMeanOverSamples(), PutPaveSuperModule(), SuperModuleTowerNumbering(), TowerCrystalNumbering(), ViewHistime(), ViewHisto(), ViewMatrix(), ViewSuperModule(), and ViewTower().

Int_t TCnaViewEB::fFapSuMoNumber [private]

Definition at line 68 of file TCnaViewEB.h.

Referenced by EtaPhiSuperModuleCorccMeanOverSamples(), HistimePlot(), HistoPlot(), PutPaveSuperModule(), SetCanvasName(), SetFile(), SuperModuleTowerNumbering(), TowerCrystalNumbering(), ViewHistime(), ViewHisto(), ViewMatrix(), ViewSuperModule(), and ViewTower().

Int_t TCnaViewEB::fFapTowXNumber [private]

Definition at line 75 of file TCnaViewEB.h.

Referenced by SetFile().

Int_t TCnaViewEB::fFapTowYNumber [private]

Definition at line 76 of file TCnaViewEB.h.

Referenced by SetFile().

ifstream TCnaViewEB::fFcin_f [private]

Definition at line 48 of file TCnaViewEB.h.

Referenced by GetListOfRunParameters().

ifstream TCnaViewEB::fFcin_lor [private]

Definition at line 50 of file TCnaViewEB.h.

Referenced by GetPathForListOfRunFiles().

ifstream TCnaViewEB::fFcin_rr [private]

Definition at line 49 of file TCnaViewEB.h.

Referenced by GetPathForResultsRootFiles().

TString TCnaViewEB::fFileForListOfRunFilePath [private]

Definition at line 71 of file TCnaViewEB.h.

Referenced by GetPathForListOfRunFiles().

TString TCnaViewEB::fFileForResultsRootFilePath [private]

Definition at line 70 of file TCnaViewEB.h.

Referenced by GetPathForResultsRootFiles().

TString TCnaViewEB::fFlagScaleX [private]

Definition at line 96 of file TCnaViewEB.h.

Referenced by Init(), and SetHistoScaleX().

TString TCnaViewEB::fFlagScaleY [private]

Definition at line 97 of file TCnaViewEB.h.

Referenced by Init(), SetHistoScaleY(), ViewHistime(), and ViewHisto().

Int_t TCnaViewEB::fgMaxCar [private]

Definition at line 39 of file TCnaViewEB.h.

Referenced by AllocArraysForEvol(), EtaPhiSuperModuleCorccMeanOverSamples(), GetMemoFlag(), GetPathForListOfRunFiles(), GetPathForResultsRootFiles(), GetQuantityName(), GetQuantityType(), HistimePlot(), HistoPlot(), Init(), PutPaveAnalysisRun(), PutPaveAnalysisRunList(), PutPaveCrystal(), PutPaveCrystalSample(), PutPaveGeneralComment(), PutPaveSuperModule(), PutPaveTakenEvents(), PutPaveTakenEventsRunList(), PutPaveTower(), PutPaveTowersXY(), SetCanvasName(), SetFile(), SuperModuleTowerNumbering(), TowerCrystalNumbering(), ViewMatrix(), ViewSuperModule(), ViewSuperModuleGrid(), ViewSuperModuleTowerNumberingPad(), and ViewTower().

TCanvasImp* TCnaViewEB::fImpEv [private]

Definition at line 259 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvasImp* TCnaViewEB::fImpEvolEvCorss [private]

Definition at line 265 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvasImp* TCnaViewEB::fImpEvolEvEv [private]

Definition at line 263 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvasImp* TCnaViewEB::fImpEvolEvSig [private]

Definition at line 264 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvasImp* TCnaViewEB::fImpEvts [private]

Definition at line 261 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvasImp* TCnaViewEB::fImpSampTime [private]

Definition at line 262 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvasImp* TCnaViewEB::fImpSigma [private]

Definition at line 260 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvasImp* TCnaViewEB::fImpSMEvCorssGlobal [private]

Definition at line 251 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvasImp* TCnaViewEB::fImpSMEvCorssProj [private]

Definition at line 252 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvasImp* TCnaViewEB::fImpSMEvEvGlobal [private]

Definition at line 247 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvasImp* TCnaViewEB::fImpSMEvEvProj [private]

Definition at line 248 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvasImp* TCnaViewEB::fImpSMEvSigGlobal [private]

Definition at line 249 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvasImp* TCnaViewEB::fImpSMEvSigProj [private]

Definition at line 250 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvasImp* TCnaViewEB::fImpSMFoundEvtsGlobal [private]

Definition at line 245 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvasImp* TCnaViewEB::fImpSMFoundEvtsProj [private]

Definition at line 246 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvasImp* TCnaViewEB::fImpSMSigCorssGlobal [private]

Definition at line 257 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvasImp* TCnaViewEB::fImpSMSigCorssProj [private]

Definition at line 258 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvasImp* TCnaViewEB::fImpSMSigEvGlobal [private]

Definition at line 253 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvasImp* TCnaViewEB::fImpSMSigEvProj [private]

Definition at line 254 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvasImp* TCnaViewEB::fImpSMSigSigGlobal [private]

Definition at line 255 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCanvasImp* TCnaViewEB::fImpSMSigSigProj [private]

Definition at line 256 of file TCnaViewEB.h.

Referenced by ActivePad(), ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

Int_t TCnaViewEB::fMaxNbColLine [private]

Definition at line 197 of file TCnaViewEB.h.

Referenced by ColorTab(), Init(), SetViewGraphColors(), and SetViewHistoColors().

Int_t TCnaViewEB::fMemoColorEv [private]

Definition at line 194 of file TCnaViewEB.h.

Referenced by GetViewHistoColor(), Init(), ReInitCanvas(), SetParametersCanvas(), and SetViewHistoColors().

Int_t TCnaViewEB::fMemoColorEvolEvCorss [private]

Definition at line 195 of file TCnaViewEB.h.

Referenced by GetViewHistoColor(), Init(), ReInitCanvas(), SetParametersCanvas(), SetViewGraphColors(), and SetViewHistoColors().

Int_t TCnaViewEB::fMemoColorEvolEvEv [private]

Definition at line 195 of file TCnaViewEB.h.

Referenced by GetViewHistoColor(), Init(), ReInitCanvas(), SetParametersCanvas(), SetViewGraphColors(), and SetViewHistoColors().

Int_t TCnaViewEB::fMemoColorEvolEvSig [private]

Definition at line 195 of file TCnaViewEB.h.

Referenced by GetViewHistoColor(), Init(), ReInitCanvas(), SetParametersCanvas(), SetViewGraphColors(), and SetViewHistoColors().

Int_t TCnaViewEB::fMemoColorEvts [private]

Definition at line 194 of file TCnaViewEB.h.

Referenced by GetViewHistoColor(), Init(), ReInitCanvas(), SetParametersCanvas(), and SetViewHistoColors().

Int_t TCnaViewEB::fMemoColorSampTime [private]

Definition at line 194 of file TCnaViewEB.h.

Referenced by GetViewHistoColor(), Init(), ReInitCanvas(), SetParametersCanvas(), and SetViewHistoColors().

Int_t TCnaViewEB::fMemoColorSigma [private]

Definition at line 194 of file TCnaViewEB.h.

Referenced by GetViewHistoColor(), Init(), ReInitCanvas(), SetParametersCanvas(), and SetViewHistoColors().

Int_t TCnaViewEB::fMemoColorSMEvCorssGlobal [private]

Definition at line 190 of file TCnaViewEB.h.

Referenced by GetViewHistoColor(), Init(), ReInitCanvas(), SetParametersCanvas(), and SetViewHistoColors().

Int_t TCnaViewEB::fMemoColorSMEvCorssProj [private]

Definition at line 190 of file TCnaViewEB.h.

Referenced by GetViewHistoColor(), Init(), ReInitCanvas(), SetParametersCanvas(), and SetViewHistoColors().

Int_t TCnaViewEB::fMemoColorSMEvEvGlobal [private]

Definition at line 188 of file TCnaViewEB.h.

Referenced by GetViewHistoColor(), Init(), ReInitCanvas(), SetParametersCanvas(), and SetViewHistoColors().

Int_t TCnaViewEB::fMemoColorSMEvEvProj [private]

Definition at line 188 of file TCnaViewEB.h.

Referenced by GetViewHistoColor(), Init(), ReInitCanvas(), SetParametersCanvas(), and SetViewHistoColors().

Int_t TCnaViewEB::fMemoColorSMEvSigGlobal [private]

Definition at line 189 of file TCnaViewEB.h.

Referenced by GetViewHistoColor(), Init(), ReInitCanvas(), SetParametersCanvas(), and SetViewHistoColors().

Int_t TCnaViewEB::fMemoColorSMEvSigProj [private]

Definition at line 189 of file TCnaViewEB.h.

Referenced by GetViewHistoColor(), Init(), ReInitCanvas(), SetParametersCanvas(), and SetViewHistoColors().

Int_t TCnaViewEB::fMemoColorSMFoundEvtsGlobal [private]

Definition at line 187 of file TCnaViewEB.h.

Referenced by GetViewHistoColor(), Init(), ReInitCanvas(), SetParametersCanvas(), and SetViewHistoColors().

Int_t TCnaViewEB::fMemoColorSMFoundEvtsProj [private]

Definition at line 187 of file TCnaViewEB.h.

Referenced by GetViewHistoColor(), Init(), ReInitCanvas(), SetParametersCanvas(), and SetViewHistoColors().

Int_t TCnaViewEB::fMemoColorSMSigCorssGlobal [private]

Definition at line 193 of file TCnaViewEB.h.

Referenced by GetViewHistoColor(), Init(), ReInitCanvas(), SetParametersCanvas(), and SetViewHistoColors().

Int_t TCnaViewEB::fMemoColorSMSigCorssProj [private]

Definition at line 193 of file TCnaViewEB.h.

Referenced by GetViewHistoColor(), Init(), ReInitCanvas(), SetParametersCanvas(), and SetViewHistoColors().

Int_t TCnaViewEB::fMemoColorSMSigEvGlobal [private]

Definition at line 191 of file TCnaViewEB.h.

Referenced by GetViewHistoColor(), Init(), ReInitCanvas(), SetParametersCanvas(), and SetViewHistoColors().

Int_t TCnaViewEB::fMemoColorSMSigEvProj [private]

Definition at line 191 of file TCnaViewEB.h.

Referenced by GetViewHistoColor(), Init(), ReInitCanvas(), SetParametersCanvas(), and SetViewHistoColors().

Int_t TCnaViewEB::fMemoColorSMSigSigGlobal [private]

Definition at line 192 of file TCnaViewEB.h.

Referenced by GetViewHistoColor(), Init(), ReInitCanvas(), SetParametersCanvas(), and SetViewHistoColors().

Int_t TCnaViewEB::fMemoColorSMSigSigProj [private]

Definition at line 192 of file TCnaViewEB.h.

Referenced by GetViewHistoColor(), Init(), ReInitCanvas(), SetParametersCanvas(), and SetViewHistoColors().

Int_t TCnaViewEB::fMemoPlotEv [private]

Definition at line 184 of file TCnaViewEB.h.

Referenced by GetMemoFlag(), Init(), ReInitCanvas(), SetMemoFlagBusy(), SetMemoFlagFree(), and SetParametersCanvas().

Int_t TCnaViewEB::fMemoPlotEvolEvCorss [private]

Definition at line 185 of file TCnaViewEB.h.

Referenced by GetMemoFlag(), Init(), ReInitCanvas(), SetMemoFlagBusy(), SetMemoFlagFree(), and SetParametersCanvas().

Int_t TCnaViewEB::fMemoPlotEvolEvEv [private]

Definition at line 185 of file TCnaViewEB.h.

Referenced by GetMemoFlag(), Init(), ReInitCanvas(), SetMemoFlagBusy(), SetMemoFlagFree(), and SetParametersCanvas().

Int_t TCnaViewEB::fMemoPlotEvolEvSig [private]

Definition at line 185 of file TCnaViewEB.h.

Referenced by GetMemoFlag(), Init(), ReInitCanvas(), SetMemoFlagBusy(), SetMemoFlagFree(), and SetParametersCanvas().

Int_t TCnaViewEB::fMemoPlotEvts [private]

Definition at line 184 of file TCnaViewEB.h.

Referenced by GetMemoFlag(), Init(), ReInitCanvas(), SetMemoFlagBusy(), SetMemoFlagFree(), and SetParametersCanvas().

Int_t TCnaViewEB::fMemoPlotSampTime [private]

Definition at line 184 of file TCnaViewEB.h.

Referenced by GetMemoFlag(), Init(), ReInitCanvas(), SetMemoFlagBusy(), SetMemoFlagFree(), and SetParametersCanvas().

Int_t TCnaViewEB::fMemoPlotSigma [private]

Definition at line 184 of file TCnaViewEB.h.

Referenced by GetMemoFlag(), Init(), ReInitCanvas(), SetMemoFlagBusy(), SetMemoFlagFree(), and SetParametersCanvas().

Int_t TCnaViewEB::fMemoPlotSMEvCorssGlobal [private]

Definition at line 180 of file TCnaViewEB.h.

Referenced by GetMemoFlag(), Init(), ReInitCanvas(), SetMemoFlagBusy(), SetMemoFlagFree(), and SetParametersCanvas().

Int_t TCnaViewEB::fMemoPlotSMEvCorssProj [private]

Definition at line 180 of file TCnaViewEB.h.

Referenced by GetMemoFlag(), Init(), ReInitCanvas(), SetMemoFlagBusy(), SetMemoFlagFree(), and SetParametersCanvas().

Int_t TCnaViewEB::fMemoPlotSMEvEvGlobal [private]

Definition at line 178 of file TCnaViewEB.h.

Referenced by GetMemoFlag(), Init(), ReInitCanvas(), SetMemoFlagBusy(), SetMemoFlagFree(), and SetParametersCanvas().

Int_t TCnaViewEB::fMemoPlotSMEvEvProj [private]

Definition at line 178 of file TCnaViewEB.h.

Referenced by GetMemoFlag(), Init(), ReInitCanvas(), SetMemoFlagBusy(), SetMemoFlagFree(), and SetParametersCanvas().

Int_t TCnaViewEB::fMemoPlotSMEvSigGlobal [private]

Definition at line 179 of file TCnaViewEB.h.

Referenced by GetMemoFlag(), Init(), ReInitCanvas(), SetMemoFlagBusy(), SetMemoFlagFree(), and SetParametersCanvas().

Int_t TCnaViewEB::fMemoPlotSMEvSigProj [private]

Definition at line 179 of file TCnaViewEB.h.

Referenced by GetMemoFlag(), Init(), ReInitCanvas(), SetMemoFlagBusy(), SetMemoFlagFree(), and SetParametersCanvas().

Int_t TCnaViewEB::fMemoPlotSMFoundEvtsGlobal [private]

Definition at line 177 of file TCnaViewEB.h.

Referenced by GetMemoFlag(), Init(), ReInitCanvas(), SetMemoFlagBusy(), SetMemoFlagFree(), and SetParametersCanvas().

Int_t TCnaViewEB::fMemoPlotSMFoundEvtsProj [private]

Definition at line 177 of file TCnaViewEB.h.

Referenced by GetMemoFlag(), Init(), ReInitCanvas(), SetMemoFlagBusy(), SetMemoFlagFree(), and SetParametersCanvas().

Int_t TCnaViewEB::fMemoPlotSMSigCorssGlobal [private]

Definition at line 183 of file TCnaViewEB.h.

Referenced by GetMemoFlag(), Init(), ReInitCanvas(), SetMemoFlagBusy(), SetMemoFlagFree(), and SetParametersCanvas().

Int_t TCnaViewEB::fMemoPlotSMSigCorssProj [private]

Definition at line 183 of file TCnaViewEB.h.

Referenced by GetMemoFlag(), Init(), ReInitCanvas(), SetMemoFlagBusy(), SetMemoFlagFree(), and SetParametersCanvas().

Int_t TCnaViewEB::fMemoPlotSMSigEvGlobal [private]

Definition at line 181 of file TCnaViewEB.h.

Referenced by GetMemoFlag(), Init(), ReInitCanvas(), SetMemoFlagBusy(), SetMemoFlagFree(), and SetParametersCanvas().

Int_t TCnaViewEB::fMemoPlotSMSigEvProj [private]

Definition at line 181 of file TCnaViewEB.h.

Referenced by GetMemoFlag(), Init(), ReInitCanvas(), SetMemoFlagBusy(), SetMemoFlagFree(), and SetParametersCanvas().

Int_t TCnaViewEB::fMemoPlotSMSigSigGlobal [private]

Definition at line 182 of file TCnaViewEB.h.

Referenced by GetMemoFlag(), Init(), ReInitCanvas(), SetMemoFlagBusy(), SetMemoFlagFree(), and SetParametersCanvas().

Int_t TCnaViewEB::fMemoPlotSMSigSigProj [private]

Definition at line 182 of file TCnaViewEB.h.

Referenced by GetMemoFlag(), Init(), ReInitCanvas(), SetMemoFlagBusy(), SetMemoFlagFree(), and SetParametersCanvas().

Int_t TCnaViewEB::fNbBinsProj [private]

Definition at line 197 of file TCnaViewEB.h.

Referenced by Init(), and SetHistoNumberOfBins().

Int_t TCnaViewEB::fNbOfExistingRuns [private]

Definition at line 87 of file TCnaViewEB.h.

Referenced by Init(), and ViewHistime().

Int_t TCnaViewEB::fNbOfListFileEvolEvCorss [private]

Definition at line 299 of file TCnaViewEB.h.

Referenced by GetListFileNumber(), GetListOfRunParameters(), Init(), and ReInitCanvas().

Int_t TCnaViewEB::fNbOfListFileEvolEvEv [private]

Definition at line 299 of file TCnaViewEB.h.

Referenced by GetListFileNumber(), GetListOfRunParameters(), Init(), and ReInitCanvas().

Int_t TCnaViewEB::fNbOfListFileEvolEvSig [private]

Definition at line 299 of file TCnaViewEB.h.

Referenced by GetListFileNumber(), GetListOfRunParameters(), Init(), and ReInitCanvas().

TString TCnaViewEB::fOnlyOnePlot [private]

Definition at line 172 of file TCnaViewEB.h.

Referenced by HistimePlot(), HistoPlot(), Init(), PutAllPavesViewHisto(), SetCanvasName(), SetViewGraphColors(), SetViewHistoColors(), TopAxisForTowerNumbers(), ViewHistime(), and ViewHisto().

Int_t TCnaViewEB::fOptGlobal [private]

Definition at line 175 of file TCnaViewEB.h.

Int_t TCnaViewEB::fOptMatCor [private]

Definition at line 99 of file TCnaViewEB.h.

Referenced by CorrelationsBetweenCrystals(), CorrelationsBetweenSamples(), CorrelationsBetweenTowers(), Init(), ViewMatrix(), and ViewTower().

Int_t TCnaViewEB::fOptMatCov [private]

Definition at line 99 of file TCnaViewEB.h.

Referenced by CovariancesBetweenCrystals(), CovariancesBetweenSamples(), CovariancesBetweenTowers(), Init(), ViewMatrix(), and ViewTower().

TString TCnaViewEB::fOptMcc [private]

Definition at line 105 of file TCnaViewEB.h.

Referenced by CorrelationsBetweenCrystals(), CovariancesBetweenCrystals(), Init(), and ViewMatrix().

TString TCnaViewEB::fOptMss [private]

Definition at line 106 of file TCnaViewEB.h.

Referenced by CorrelationsBetweenSamples(), CovariancesBetweenSamples(), Init(), and ViewMatrix().

TString TCnaViewEB::fOptMtt [private]

Definition at line 107 of file TCnaViewEB.h.

Referenced by CorrelationsBetweenTowers(), CovariancesBetweenTowers(), Init(), and ViewMatrix().

Int_t TCnaViewEB::fOptProj [private]

Definition at line 175 of file TCnaViewEB.h.

Int_t TCnaViewEB::fOptScaleLiny [private]

Definition at line 94 of file TCnaViewEB.h.

Referenced by HistimePlot(), HistoPlot(), Init(), SetCanvasName(), ViewHistime(), and ViewHisto().

Int_t TCnaViewEB::fOptScaleLogy [private]

Definition at line 94 of file TCnaViewEB.h.

Referenced by HistimePlot(), HistoPlot(), Init(), SetCanvasName(), ViewHistime(), and ViewHisto().

Int_t TCnaViewEB::fOptVisColz [private]

Definition at line 92 of file TCnaViewEB.h.

Int_t TCnaViewEB::fOptVisLego [private]

Definition at line 92 of file TCnaViewEB.h.

Int_t TCnaViewEB::fOptVisLine [private]

Definition at line 93 of file TCnaViewEB.h.

Referenced by HistimePlot(), HistoCrystalExpectationValuesOfSamples(), HistoCrystalPedestalEventNumber(), HistoCrystalSigmasOfSamples(), HistoPlot(), HistoSampleEventDistribution(), HistoSuperModuleFoundEventsDistribution(), HistoSuperModuleFoundEventsOfCrystals(), HistoSuperModuleMeanOfCorssDistribution(), HistoSuperModuleMeanOfCorssOfCrystals(), HistoSuperModuleMeanOfSampleSigmasDistribution(), HistoSuperModuleMeanOfSampleSigmasOfCrystals(), HistoSuperModuleMeanPedestalsDistribution(), HistoSuperModuleMeanPedestalsOfCrystals(), HistoSuperModuleSigmaOfCorssDistribution(), HistoSuperModuleSigmaOfCorssOfCrystals(), HistoSuperModuleSigmaOfSampleSigmasDistribution(), HistoSuperModuleSigmaOfSampleSigmasOfCrystals(), HistoSuperModuleSigmaPedestalsDistribution(), HistoSuperModuleSigmaPedestalsOfCrystals(), Init(), and SetCanvasName().

Int_t TCnaViewEB::fOptVisPolm [private]

Definition at line 93 of file TCnaViewEB.h.

Referenced by HistimeCrystalMeanCorss(), HistimeCrystalMeanPedestals(), HistimeCrystalMeanSigmas(), HistimePlot(), HistoPlot(), Init(), and SetCanvasName().

Int_t TCnaViewEB::fOptVisSurf1 [private]

Definition at line 92 of file TCnaViewEB.h.

Int_t TCnaViewEB::fOptVisSurf4 [private]

Definition at line 92 of file TCnaViewEB.h.

TVirtualPad* TCnaViewEB::fPadEv [private]

Definition at line 237 of file TCnaViewEB.h.

Referenced by ActivePad(), Init(), ReInitCanvas(), and SetParametersCanvas().

TVirtualPad* TCnaViewEB::fPadEvolEvCorss [private]

Definition at line 243 of file TCnaViewEB.h.

Referenced by ActivePad(), Init(), ReInitCanvas(), and SetParametersCanvas().

TVirtualPad* TCnaViewEB::fPadEvolEvEv [private]

Definition at line 241 of file TCnaViewEB.h.

Referenced by ActivePad(), Init(), ReInitCanvas(), and SetParametersCanvas().

TVirtualPad* TCnaViewEB::fPadEvolEvSig [private]

Definition at line 242 of file TCnaViewEB.h.

Referenced by ActivePad(), Init(), ReInitCanvas(), and SetParametersCanvas().

TVirtualPad* TCnaViewEB::fPadEvts [private]

Definition at line 239 of file TCnaViewEB.h.

Referenced by ActivePad(), Init(), ReInitCanvas(), and SetParametersCanvas().

TVirtualPad* TCnaViewEB::fPadSampTime [private]

Definition at line 240 of file TCnaViewEB.h.

Referenced by ActivePad(), Init(), ReInitCanvas(), and SetParametersCanvas().

TVirtualPad* TCnaViewEB::fPadSigma [private]

Definition at line 238 of file TCnaViewEB.h.

Referenced by ActivePad(), Init(), ReInitCanvas(), and SetParametersCanvas().

TVirtualPad* TCnaViewEB::fPadSMEvCorssGlobal [private]

Definition at line 229 of file TCnaViewEB.h.

Referenced by ActivePad(), Init(), ReInitCanvas(), and SetParametersCanvas().

TVirtualPad* TCnaViewEB::fPadSMEvCorssProj [private]

Definition at line 230 of file TCnaViewEB.h.

Referenced by ActivePad(), Init(), ReInitCanvas(), and SetParametersCanvas().

TVirtualPad* TCnaViewEB::fPadSMEvEvGlobal [private]

Definition at line 225 of file TCnaViewEB.h.

Referenced by ActivePad(), Init(), ReInitCanvas(), and SetParametersCanvas().

TVirtualPad* TCnaViewEB::fPadSMEvEvProj [private]

Definition at line 226 of file TCnaViewEB.h.

Referenced by ActivePad(), Init(), ReInitCanvas(), and SetParametersCanvas().

TVirtualPad* TCnaViewEB::fPadSMEvSigGlobal [private]

Definition at line 227 of file TCnaViewEB.h.

Referenced by ActivePad(), Init(), ReInitCanvas(), and SetParametersCanvas().

TVirtualPad* TCnaViewEB::fPadSMEvSigProj [private]

Definition at line 228 of file TCnaViewEB.h.

Referenced by ActivePad(), Init(), ReInitCanvas(), and SetParametersCanvas().

TVirtualPad* TCnaViewEB::fPadSMFoundEvtsGlobal [private]

Definition at line 223 of file TCnaViewEB.h.

Referenced by ActivePad(), Init(), ReInitCanvas(), and SetParametersCanvas().

TVirtualPad* TCnaViewEB::fPadSMFoundEvtsProj [private]

Definition at line 224 of file TCnaViewEB.h.

Referenced by ActivePad(), Init(), ReInitCanvas(), and SetParametersCanvas().

TVirtualPad* TCnaViewEB::fPadSMSigCorssGlobal [private]

Definition at line 235 of file TCnaViewEB.h.

Referenced by ActivePad(), Init(), ReInitCanvas(), and SetParametersCanvas().

TVirtualPad* TCnaViewEB::fPadSMSigCorssProj [private]

Definition at line 236 of file TCnaViewEB.h.

Referenced by ActivePad(), Init(), ReInitCanvas(), and SetParametersCanvas().

TVirtualPad* TCnaViewEB::fPadSMSigEvGlobal [private]

Definition at line 231 of file TCnaViewEB.h.

Referenced by ActivePad(), Init(), ReInitCanvas(), and SetParametersCanvas().

TVirtualPad* TCnaViewEB::fPadSMSigEvProj [private]

Definition at line 232 of file TCnaViewEB.h.

Referenced by ActivePad(), Init(), ReInitCanvas(), and SetParametersCanvas().

TVirtualPad* TCnaViewEB::fPadSMSigSigGlobal [private]

Definition at line 233 of file TCnaViewEB.h.

Referenced by ActivePad(), Init(), ReInitCanvas(), and SetParametersCanvas().

TVirtualPad* TCnaViewEB::fPadSMSigSigProj [private]

Definition at line 234 of file TCnaViewEB.h.

Referenced by ActivePad(), Init(), ReInitCanvas(), and SetParametersCanvas().

TCnaParameters* TCnaViewEB::fParameters [private]

Definition at line 46 of file TCnaViewEB.h.

Referenced by Init(), and PutPaveGeneralComment().

TPaveText* TCnaViewEB::fPavTxtEv [private]

Definition at line 281 of file TCnaViewEB.h.

Referenced by ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TPaveText* TCnaViewEB::fPavTxtEvolEvCorss [private]

Definition at line 287 of file TCnaViewEB.h.

Referenced by ActivePavTxt(), Init(), and SetParametersCanvas().

TPaveText* TCnaViewEB::fPavTxtEvolEvEv [private]

Definition at line 285 of file TCnaViewEB.h.

Referenced by ActivePavTxt(), Init(), and SetParametersCanvas().

TPaveText* TCnaViewEB::fPavTxtEvolEvSig [private]

Definition at line 286 of file TCnaViewEB.h.

Referenced by ActivePavTxt(), Init(), and SetParametersCanvas().

TPaveText* TCnaViewEB::fPavTxtEvts [private]

Definition at line 283 of file TCnaViewEB.h.

Referenced by ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TPaveText* TCnaViewEB::fPavTxtSampTime [private]

Definition at line 284 of file TCnaViewEB.h.

Referenced by ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TPaveText* TCnaViewEB::fPavTxtSigma [private]

Definition at line 282 of file TCnaViewEB.h.

Referenced by ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TPaveText* TCnaViewEB::fPavTxtSMEvCorssGlobal [private]

Definition at line 273 of file TCnaViewEB.h.

Referenced by ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TPaveText* TCnaViewEB::fPavTxtSMEvCorssProj [private]

Definition at line 274 of file TCnaViewEB.h.

Referenced by ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TPaveText* TCnaViewEB::fPavTxtSMEvEvGlobal [private]

Definition at line 269 of file TCnaViewEB.h.

Referenced by ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TPaveText* TCnaViewEB::fPavTxtSMEvEvProj [private]

Definition at line 270 of file TCnaViewEB.h.

Referenced by ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TPaveText* TCnaViewEB::fPavTxtSMEvSigGlobal [private]

Definition at line 271 of file TCnaViewEB.h.

Referenced by ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TPaveText* TCnaViewEB::fPavTxtSMEvSigProj [private]

Definition at line 272 of file TCnaViewEB.h.

Referenced by ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TPaveText* TCnaViewEB::fPavTxtSMFoundEvtsGlobal [private]

Definition at line 267 of file TCnaViewEB.h.

Referenced by ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TPaveText* TCnaViewEB::fPavTxtSMFoundEvtsProj [private]

Definition at line 268 of file TCnaViewEB.h.

Referenced by ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TPaveText* TCnaViewEB::fPavTxtSMSigCorssGlobal [private]

Definition at line 279 of file TCnaViewEB.h.

Referenced by ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TPaveText* TCnaViewEB::fPavTxtSMSigCorssProj [private]

Definition at line 280 of file TCnaViewEB.h.

Referenced by ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TPaveText* TCnaViewEB::fPavTxtSMSigEvGlobal [private]

Definition at line 275 of file TCnaViewEB.h.

Referenced by ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TPaveText* TCnaViewEB::fPavTxtSMSigEvProj [private]

Definition at line 276 of file TCnaViewEB.h.

Referenced by ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TPaveText* TCnaViewEB::fPavTxtSMSigSigGlobal [private]

Definition at line 277 of file TCnaViewEB.h.

Referenced by ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

TPaveText* TCnaViewEB::fPavTxtSMSigSigProj [private]

Definition at line 278 of file TCnaViewEB.h.

Referenced by ActivePavTxt(), Init(), ReInitCanvas(), and SetParametersCanvas().

Double_t TCnaViewEB::fSampTimeYmax [private]

Definition at line 153 of file TCnaViewEB.h.

Referenced by HistoSetMinMax(), and InitQuantityYmax().

Double_t TCnaViewEB::fSampTimeYmin [private]

Definition at line 152 of file TCnaViewEB.h.

Referenced by HistoSetMinMax(), and InitQuantityYmin().

TString TCnaViewEB::fSeveralPlot [private]

Definition at line 173 of file TCnaViewEB.h.

Referenced by HistimePlot(), HistoPlot(), Init(), PutAllPavesViewHisto(), SetCanvasName(), SetViewGraphColors(), SetViewHistoColors(), TopAxisForTowerNumbers(), ViewHistime(), and ViewHisto().

Double_t TCnaViewEB::fSigmaYmax [private]

Definition at line 149 of file TCnaViewEB.h.

Referenced by HistoSetMinMax(), and InitQuantityYmax().

Double_t TCnaViewEB::fSigmaYmin [private]

Definition at line 148 of file TCnaViewEB.h.

Referenced by HistoSetMinMax(), and InitQuantityYmin().

Double_t TCnaViewEB::fSMCorccInTowersYmax [private]

Definition at line 143 of file TCnaViewEB.h.

Referenced by GetYmax(), HistoSetMinMax(), InitQuantityYmax(), and PutYmax().

Double_t TCnaViewEB::fSMCorccInTowersYmin [private]

Definition at line 142 of file TCnaViewEB.h.

Referenced by GetYmin(), HistoSetMinMax(), InitQuantityYmin(), and PutYmin().

Double_t TCnaViewEB::fSMEvCorssGlobalYmax [private]

Definition at line 122 of file TCnaViewEB.h.

Referenced by GetYmax(), HistoSetMinMax(), InitQuantityYmax(), PutYmax(), and SetHistoXsup().

Double_t TCnaViewEB::fSMEvCorssGlobalYmin [private]

Definition at line 121 of file TCnaViewEB.h.

Referenced by GetYmin(), HistoSetMinMax(), InitQuantityYmin(), PutYmin(), and SetHistoXinf().

Double_t TCnaViewEB::fSMEvCorssProjYmax [private]

Definition at line 124 of file TCnaViewEB.h.

Referenced by HistoSetMinMax(), InitQuantityYmax(), and PutYmax().

Double_t TCnaViewEB::fSMEvCorssProjYmin [private]

Definition at line 123 of file TCnaViewEB.h.

Referenced by HistoSetMinMax(), InitQuantityYmin(), and PutYmin().

Double_t TCnaViewEB::fSMEvCorttMatrixYmax [private]

Definition at line 139 of file TCnaViewEB.h.

Referenced by GetYmax(), HistoSetMinMax(), InitQuantityYmax(), and PutYmax().

Double_t TCnaViewEB::fSMEvCorttMatrixYmin [private]

Definition at line 138 of file TCnaViewEB.h.

Referenced by GetYmin(), HistoSetMinMax(), InitQuantityYmin(), and PutYmin().

Double_t TCnaViewEB::fSMEvCovttMatrixYmax [private]

Definition at line 141 of file TCnaViewEB.h.

Referenced by GetYmax(), InitQuantityYmax(), and PutYmax().

Double_t TCnaViewEB::fSMEvCovttMatrixYmin [private]

Definition at line 140 of file TCnaViewEB.h.

Referenced by GetYmin(), InitQuantityYmin(), and PutYmin().

Double_t TCnaViewEB::fSMEvEvGlobalYmax [private]

Definition at line 114 of file TCnaViewEB.h.

Referenced by GetYmax(), HistoSetMinMax(), InitQuantityYmax(), PutYmax(), and SetHistoXsup().

Double_t TCnaViewEB::fSMEvEvGlobalYmin [private]

Definition at line 113 of file TCnaViewEB.h.

Referenced by GetYmin(), HistoSetMinMax(), InitQuantityYmin(), PutYmin(), and SetHistoXinf().

Double_t TCnaViewEB::fSMEvEvProjYmax [private]

Definition at line 116 of file TCnaViewEB.h.

Referenced by HistoSetMinMax(), InitQuantityYmax(), and PutYmax().

Double_t TCnaViewEB::fSMEvEvProjYmin [private]

Definition at line 115 of file TCnaViewEB.h.

Referenced by HistoSetMinMax(), InitQuantityYmin(), and PutYmin().

Double_t TCnaViewEB::fSMEvSigGlobalYmax [private]

Definition at line 118 of file TCnaViewEB.h.

Referenced by GetYmax(), HistoSetMinMax(), InitQuantityYmax(), PutYmax(), and SetHistoXsup().

Double_t TCnaViewEB::fSMEvSigGlobalYmin [private]

Definition at line 117 of file TCnaViewEB.h.

Referenced by GetYmin(), HistoSetMinMax(), InitQuantityYmin(), PutYmin(), and SetHistoXinf().

Double_t TCnaViewEB::fSMEvSigProjYmax [private]

Definition at line 120 of file TCnaViewEB.h.

Referenced by HistoSetMinMax(), InitQuantityYmax(), and PutYmax().

Double_t TCnaViewEB::fSMEvSigProjYmin [private]

Definition at line 119 of file TCnaViewEB.h.

Referenced by HistoSetMinMax(), InitQuantityYmin(), and PutYmin().

Double_t TCnaViewEB::fSMFoundEvtsGlobalYmax [private]

Definition at line 110 of file TCnaViewEB.h.

Referenced by GetYmax(), HistoSetMinMax(), InitQuantityYmax(), PutYmax(), and SetHistoXsup().

Double_t TCnaViewEB::fSMFoundEvtsGlobalYmin [private]

Definition at line 109 of file TCnaViewEB.h.

Referenced by GetYmin(), HistoSetMinMax(), InitQuantityYmin(), PutYmin(), and SetHistoXinf().

Double_t TCnaViewEB::fSMFoundEvtsProjYmax [private]

Definition at line 112 of file TCnaViewEB.h.

Referenced by HistoSetMinMax(), InitQuantityYmax(), and PutYmax().

Double_t TCnaViewEB::fSMFoundEvtsProjYmin [private]

Definition at line 111 of file TCnaViewEB.h.

Referenced by HistoSetMinMax(), InitQuantityYmin(), and PutYmin().

Double_t TCnaViewEB::fSMSigCorssGlobalYmax [private]

Definition at line 134 of file TCnaViewEB.h.

Referenced by GetYmax(), HistoSetMinMax(), InitQuantityYmax(), PutYmax(), and SetHistoXsup().

Double_t TCnaViewEB::fSMSigCorssGlobalYmin [private]

Definition at line 133 of file TCnaViewEB.h.

Referenced by GetYmin(), HistoSetMinMax(), InitQuantityYmin(), PutYmin(), and SetHistoXinf().

Double_t TCnaViewEB::fSMSigCorssProjYmax [private]

Definition at line 136 of file TCnaViewEB.h.

Referenced by HistoSetMinMax(), InitQuantityYmax(), and PutYmax().

Double_t TCnaViewEB::fSMSigCorssProjYmin [private]

Definition at line 135 of file TCnaViewEB.h.

Referenced by HistoSetMinMax(), InitQuantityYmin(), and PutYmin().

Double_t TCnaViewEB::fSMSigEvGlobalYmax [private]

Definition at line 126 of file TCnaViewEB.h.

Referenced by GetYmax(), HistoSetMinMax(), InitQuantityYmax(), PutYmax(), and SetHistoXsup().

Double_t TCnaViewEB::fSMSigEvGlobalYmin [private]

Definition at line 125 of file TCnaViewEB.h.

Referenced by GetYmin(), InitQuantityYmin(), PutYmin(), and SetHistoXinf().

Double_t TCnaViewEB::fSMSigEvProjYmax [private]

Definition at line 128 of file TCnaViewEB.h.

Referenced by HistoSetMinMax(), InitQuantityYmax(), and PutYmax().

Double_t TCnaViewEB::fSMSigEvProjYmin [private]

Definition at line 127 of file TCnaViewEB.h.

Referenced by HistoSetMinMax(), InitQuantityYmin(), and PutYmin().

Double_t TCnaViewEB::fSMSigSigGlobalYmax [private]

Definition at line 130 of file TCnaViewEB.h.

Referenced by GetYmax(), HistoSetMinMax(), InitQuantityYmax(), PutYmax(), and SetHistoXsup().

Double_t TCnaViewEB::fSMSigSigGlobalYmin [private]

Definition at line 129 of file TCnaViewEB.h.

Referenced by GetYmin(), HistoSetMinMax(), InitQuantityYmin(), PutYmin(), and SetHistoXinf().

Double_t TCnaViewEB::fSMSigSigProjYmax [private]

Definition at line 132 of file TCnaViewEB.h.

Referenced by HistoSetMinMax(), InitQuantityYmax(), and PutYmax().

Double_t TCnaViewEB::fSMSigSigProjYmin [private]

Definition at line 131 of file TCnaViewEB.h.

Referenced by HistoSetMinMax(), InitQuantityYmin(), and PutYmin().

TString TCnaViewEB::fStartDate [private]

Definition at line 81 of file TCnaViewEB.h.

Referenced by EtaPhiSuperModuleCorccMeanOverSamples(), PutPaveTakenEvents(), SetFile(), ViewHisto(), ViewMatrix(), ViewSuperModule(), and ViewTower().

TString TCnaViewEB::fStartEvolDate [private]

Definition at line 84 of file TCnaViewEB.h.

Referenced by PutPaveTakenEventsRunList(), and ViewHistime().

Int_t TCnaViewEB::fStartEvolRun [private]

Definition at line 86 of file TCnaViewEB.h.

Referenced by PutPaveTakenEventsRunList(), and ViewHistime().

time_t TCnaViewEB::fStartEvolTime [private]

Definition at line 83 of file TCnaViewEB.h.

Referenced by ViewHistime().

time_t TCnaViewEB::fStartTime [private]

Definition at line 80 of file TCnaViewEB.h.

Referenced by SetFile().

TString TCnaViewEB::fStopDate [private]

Definition at line 81 of file TCnaViewEB.h.

Referenced by EtaPhiSuperModuleCorccMeanOverSamples(), PutPaveTakenEvents(), SetFile(), ViewHisto(), ViewMatrix(), ViewSuperModule(), and ViewTower().

TString TCnaViewEB::fStopEvolDate [private]

Definition at line 84 of file TCnaViewEB.h.

Referenced by PutPaveTakenEventsRunList(), and ViewHistime().

Int_t TCnaViewEB::fStopEvolRun [private]

Definition at line 86 of file TCnaViewEB.h.

Referenced by PutPaveTakenEventsRunList(), and ViewHistime().

time_t TCnaViewEB::fStopEvolTime [private]

Definition at line 83 of file TCnaViewEB.h.

Referenced by ViewHistime().

time_t TCnaViewEB::fStopTime [private]

Definition at line 80 of file TCnaViewEB.h.

Referenced by SetFile().

TString* TCnaViewEB::fT1DAnaType [private]

Definition at line 56 of file TCnaViewEB.h.

Referenced by AllocArraysForEvol(), GetListOfRunParameters(), Init(), SetFile(), and ViewHistime().

Int_t* TCnaViewEB::fT1DFirstEvt [private]

Definition at line 58 of file TCnaViewEB.h.

Referenced by AllocArraysForEvol(), GetListOfRunParameters(), Init(), SetFile(), and ViewHistime().

TString* TCnaViewEB::fT1DListOfRunsFilePath [private]

Definition at line 62 of file TCnaViewEB.h.

Referenced by AllocArraysForEvol(), GetListOfRunParameters(), Init(), and SetFile().

Int_t* TCnaViewEB::fT1DNbOfEvts [private]

Definition at line 59 of file TCnaViewEB.h.

Referenced by AllocArraysForEvol(), GetListOfRunParameters(), Init(), SetFile(), and ViewHistime().

TString* TCnaViewEB::fT1DResultsRootFilePath [private]

Definition at line 61 of file TCnaViewEB.h.

Referenced by AllocArraysForEvol(), GetListOfRunParameters(), Init(), SetFile(), and ViewHistime().

Int_t* TCnaViewEB::fT1DRunNumber [private]

Definition at line 57 of file TCnaViewEB.h.

Referenced by AllocArraysForEvol(), GetListOfRunParameters(), HistimePlot(), Init(), SetFile(), and ViewHistime().

Int_t* TCnaViewEB::fT1DSuMoNumber [private]

Definition at line 60 of file TCnaViewEB.h.

Referenced by AllocArraysForEvol(), GetListOfRunParameters(), Init(), SetFile(), and ViewHistime().

Int_t TCnaViewEB::fTextPaveAlign [private]

Definition at line 101 of file TCnaViewEB.h.

Referenced by HistimePlot(), HistoPlot(), and Init().

Int_t TCnaViewEB::fTextPaveFont [private]

Definition at line 102 of file TCnaViewEB.h.

Referenced by HistimePlot(), HistoPlot(), and Init().

Float_t TCnaViewEB::fTextPaveSize [private]

Definition at line 103 of file TCnaViewEB.h.

Referenced by HistimePlot(), HistoPlot(), and Init().

TPaveText* TCnaViewEB::ftitle_g1 [private]

Definition at line 163 of file TCnaViewEB.h.

Referenced by EtaPhiSuperModuleCorccMeanOverSamples(), HistimePlot(), HistoPlot(), PutAllPavesViewHisto(), PutAllPavesViewMatrix(), PutAllPavesViewSuperModule(), PutAllPavesViewTower(), ViewMatrix(), ViewSuperModule(), and ViewTower().

Int_t TCnaViewEB::fTowerSizeInCrystals [private]

Definition at line 89 of file TCnaViewEB.h.

TString TCnaViewEB::fTTBELL [private]

Definition at line 45 of file TCnaViewEB.h.

Referenced by EtaPhiSuperModuleCorccMeanOverSamples(), GetListOfRunParameters(), GetOkViewHisto(), GetPathForListOfRunFiles(), GetPathForResultsRootFiles(), HistimePlot(), HistoPlot(), Init(), SqrtContourLevels(), ViewHistime(), ViewHisto(), ViewMatrix(), ViewSuperModule(), ViewTower(), and ViewTowerGrid().

Double_t TCnaViewEB::fXinf [private]

Definition at line 301 of file TCnaViewEB.h.

Referenced by HistimePlot().

Double_t TCnaViewEB::fXsup [private]

Definition at line 301 of file TCnaViewEB.h.

Referenced by HistimePlot().

Double_t TCnaViewEB::fYinf [private]

Definition at line 301 of file TCnaViewEB.h.

Referenced by HistimePlot().

Double_t TCnaViewEB::fYsup [private]

Definition at line 301 of file TCnaViewEB.h.

Referenced by HistimePlot().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:33:17 2009 for CMSSW by  doxygen 1.5.4