#ifndef ALICALORAWANALYZERCOMPARISON_H #define ALICALORAWANALYZERCOMPARISON_H /************************************************************************** * This file is property of and copyright by the Experimental Nuclear * * Physics Group, Dep. of Physics * * University of Oslo, Norway, 2007 * * * * Author: Per Thomas Hille for the ALICE HLT Project.* * Contributors are mentioned in the code where appropriate. * * Please report bugs to perthi@fys.uio.no * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ #define NANALYZERS 5 #include #include "AliCaloBunchInfo.h" #include "AliCaloFitResults.h" #define NZCOLSSMOD 48 #define NXROWSSMOD 24 using namespace std; class AliCaloRawAnalyzer; class TH2D; class TH1D; class AliCaloRawAnalyzerComparison { public: AliCaloRawAnalyzerComparison(); virtual ~AliCaloRawAnalyzerComparison(); void Evaluate( const vector &bunchvector, const UInt_t altrocfg1, const UInt_t altrocfg2, const int event, const int col, const int row ); void EventChanged(); void WriteHistograms(); private: void IntiHistograms( vector analyzers, AliCaloRawAnalyzer* ref ); TH1D *fAmpHistograms[NANALYZERS][NZCOLSSMOD][NXROWSSMOD]; TH2D *fAmplitudeVsEvent[NANALYZERS]; // Amplitude vs envent number TH2D *fTofVsEvent[NANALYZERS]; // Tof vs event number TH2D *fRefAmpVsAnalyzers[NANALYZERS]; // Amplidue from give analyzer vs reference TH2D *fRefTofVsAnalyzers[NANALYZERS]; // Amplidue from give analyzer vs reference TH1D *fAmpDiff[NANALYZERS]; // Difference in amplitude between reference TH1D *fTofDiff[NANALYZERS]; // Difference in tof between reference TH1D *fTofResDifferential[NANALYZERS]; //differntial tof resolution TH1D *fTofResAbsolute[NANALYZERS]; //differntial tof resolution vector fRawAnalyzers; AliCaloRawAnalyzer *fReferenceAnalyzer; int fMod; int fMonCol1; int fMonRow1; int fMonCol2; int fMonRow2; AliCaloFitResults fMon1[NANALYZERS]; AliCaloFitResults fMon2[NANALYZERS]; }; #endif