00001 #ifndef ArchNPtGainTestResult_H 00002 #define ArchNPtGainTestResult_H 00003 00004 #include "Sct/SctNames.h" 00005 #include "ArchTestResult.h" 00006 #include "SctData/NPtGainTestResult.h" 00007 #include "TVectorD.h" 00008 #include <vector> 00009 #include <boost/shared_ptr.hpp> 00010 00011 00012 using boost::shared_ptr; 00013 using namespace SctData; 00014 using namespace Sct; 00015 00016 00017 class ArchNPtGainTestResult: public ArchTestResult { 00018 00019 private: 00020 00021 vector<const NPtGainTestResultData*> chipData; //The chip fits...maybe useless 00022 vector<const NPtGainTestResultData*> channelData; //The channel fits...maybe useless 00023 unsigned int NChipData; 00024 unsigned int NChannelData; 00025 00026 vector<shared_ptr<TF1> > Chipfit; 00027 vector<shared_ptr<TGraph> > ChipGraph; //Graph of the points that were fitted. 00028 TVectorD* vChipGain; //Gain at the special point chip by chip. 00029 TVectorD* vChipNoise; //Noise at the special point chip by chip. 00030 TVectorD* vChipOffset; //Offset at the special point chip by chip. 00031 00032 vector<shared_ptr<TF1> > Channelfit; 00033 vector<shared_ptr<TGraph> > ChannelGraph; //Graph of the points that were fitted. 00034 TVectorD* vChannelGain; //Gain at the special point channel by channel. 00035 TVectorD* vChannelNoise; //Noise at the special point channel by channel. 00036 TVectorD* vChannelOffset; //Offset at the special point channel by channel. 00037 00038 00039 00040 public: 00041 00042 ArchNPtGainTestResult(); 00043 ArchNPtGainTestResult(NPtGainTestResult &); 00044 ~ArchNPtGainTestResult(); 00045 00046 void SaveNPtGainTestDataOnly(); 00047 void SaveNPtGain(); 00048 void TestSummary(NPtGainTestResult &); 00049 00050 }; 00051 00052 00053 #endif