]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCGoofieValues.h
Additional forgotten commit
[u/mrichter/AliRoot.git] / TPC / AliTPCGoofieValues.h
index 757864fe95d24e7ea8dd1a29b0681b9b7d91dd45..a7ff54b985ab53e1c6cdd0428d37c6763af1853e 100644 (file)
-/*!\class AliTPCGoofieValues\r
-   \brief TPC calibration class for Goofie values \r
-\r
-   Header: AliTPCGoofieValues.h,v 2.0.\r
-\r
-   Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved.\r
-\r
-   See cxx source for full Copyright notice \r
-\r
-   TPC Calibration Class for GOOFIE values. Drift velocity, gas composition and the gain. \r
-\r
-   The class AliTPCGoofieValues allows the access to GoofieValues. \r
-\r
-   The only constructor is loading data from ASCI file. \r
-\r
-   The methods make Tgraphs and TSplines of the time dependence of the values. \r
-\r
-   One method allows save the the graphs and spline togather with tree of allvalues into file.        \r
-\r
-*/\r
-\r
-\r
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *\r
- * See cxx source for full Copyright notice                               */\r
-\r
-\r
-///////////////////////////////////////////////////////////////////////////////\r
-//                                                                           //\r
-//  TPC calibration class for Goofie values                                  //\r
-//                                                                           //\r
-///////////////////////////////////////////////////////////////////////////////\r
-\r
-\r
-#include "TSystem.h"\r
-#include "TString.h"\r
-#include "TChain.h"\r
-#include "TFile.h"\r
-#include "TTimeStamp.h"\r
-#include "TGraph.h"\r
-#include "TTree.h"\r
-#include "TSpline.h"\r
-\r
-class AliTPCGoofieValues : public TNamed{\r
-public:\r
-  AliTPCGoofieValues(); ///< default ctor\r
-  //AliTPCGoofieValues(const char *fname); ///< ctor using log file, not implemented\r
-  AliTPCGoofieValues(const char *fname); ///< ctor using an ASCII file\r
-  virtual ~AliTPCGoofieValues();///< default dtor\r
-  \r
-  \r
-  Long64_t GetLinesInFile();///< return lines in ASCII file \r
-  Double_t GetStartTime();///< return StartTime\r
-  Double_t GetEndTime();///< return EndTime\r
-  Double_t GetTimeOfRun();///< return TimeOfRun\r
-  Double_t GetTempGrad(Double_t timeSec);///< return TempGrad\r
-  \r
-  Double_t EvalTempGrad(Double_t timeSec);///< evaluate temperature gradients for a certain time in seconds\r
-  Double_t EvalAverageTemp(Double_t timeSec);///< evaluate average temperatures for a certain time in seconds\r
-  Double_t EvalPress(Double_t timeSec);///< evaluate pressure for a certain time in seconds\r
-  Double_t EvalVdrift(Double_t timeSec);///< evaluate  drift velocities for a certain time in seconds\r
-  Double_t EvalVdriftcor(Double_t timeSec);///< evaluate drift velocities corrected for a certain time in seconds\r
-  Double_t EvalGainF(Double_t timeSec);///< evaluate near gain for a certain time in seconds\r
-  Double_t EvalGainN(Double_t timeSec);///< evaluate far gain for a certain time in seconds\r
-  Double_t EvalCO2(Double_t timeSec);///< evaluate  CO2 content for a certain time in seconds\r
-  Double_t EvalN2(Double_t timeSec);///< evaluate  N2 content for a certain time in seconds\r
-  \r
-  void FillAllGraphs();  ///< fill all the graphs after the tree\r
-  void FillAllSplines();  ///< fill all the graphs after the splines\r
-  \r
-  void FillAverageTempGraph();///<graph of average temperatures \r
-  void FillTempGradGraph();///<graph of temperature gradients\r
-  void FillPressGraph();///<graph of pressures\r
-  void FillVdriftGraph();///<graph of drift velocities\r
-  void FillVdriftcorGraph();///<graph of drift velocities corrected\r
-  void FillGainFGraph();///<graph of near gain\r
-  void FillGainNGraph();///<graph of far gain\r
-  void FillCO2Graph();///<graph of CO2 content\r
-  void FillN2Graph();///<graph of N2 content\r
-  \r
-  void FillAverageTempSpline();///< spline of average temperatures \r
-  void FillTempGradSpline();///<spline of  temperature gradients\r
-  void FillPressSpline();///<spline of pressures\r
-  void FillVdriftSpline();///<spline of drift velocities\r
-  void FillVdriftcorSpline();///<spline of drift velocities corrected\r
-  void FillGainFSpline();///<spline of near gain\r
-  void FillGainNSpline();///<spline of far gain\r
-  void FillCO2Spline();///<spline of CO2 content\r
-  void FillN2Spline();///<spline of  N2 content\r
-  TTree * GetTree(){return fGoofieValues;}\r
-  void PrintTree(); ///< test: print tree values onto screen\r
-  Bool_t    IsFolder() const {return kTRUE;}\r
-protected:\r
-  Long64_t fLinesInFile;// lines in ASCII file\r
-  Double_t fStartTime;// StartTime\r
-  Double_t fEndTime;// EndTime\r
-  Double_t fTimeOfRun;//TimeOfRun\r
-  Double_t fTempGrad;//TempGrad\r
-  \r
-  TGraph* fAverageTempGraph;//->graph of average temperatures \r
-  TGraph* fTempGradGraph;//->graph of temperature gradients\r
-  TGraph* fPressGraph;//->graph of pressures\r
-  TGraph* fVdriftGraph;//->graph of drift velocities\r
-  TGraph* fVdriftcorGraph;//->graph of drift velocities corrected\r
-  TGraph* fGainFGraph;//->graph of near gain\r
-  TGraph* fGainNGraph;//->graph of far gain\r
-  TGraph* fCO2Graph;//->graph of CO2 content\r
-  TGraph* fN2Graph;//->graph of N2 content\r
-  \r
-  TSpline* fAverageTempSpline;// spline of average temperatures \r
-  TSpline* fTempGradSpline;//spline of  temperature gradients\r
-  TSpline* fPressSpline;//spline of pressures\r
-  TSpline* fVdriftSpline;//spline of drift velocities\r
-  TSpline* fVdriftcorSpline;//spline of drift velocities corrected\r
-  TSpline* fGainFSpline;//spline of near gain\r
-  TSpline* fGainNSpline;//spline of far gain\r
-  TSpline* fCO2Spline;//spline of CO2 content\r
-  TSpline* fN2Spline;//spline of  N2 content\r
-  \r
-protected:\r
-  TTree *fGoofieValues;   // tree with all Goofie values in branches\r
-  \r
-  ClassDef(AliTPCGoofieValues,1)  //Basic ROOT object\r
-};\r
+/*!\class AliTPCGoofieValues
+   \brief TPC calibration class for Goofie values 
+
+   Header: AliTPCGoofieValues.h,v 2.0.
+
+   Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved.
+
+   See cxx source for full Copyright notice 
+
+   TPC Calibration Class for GOOFIE values. Drift velocity, gas composition and the gain. 
+
+   The class AliTPCGoofieValues allows the access to GoofieValues. 
+
+   The only constructor is loading data from ASCI file. 
+
+   The methods make Tgraphs and TSplines of the time dependence of the values. 
+
+   One method allows save the the graphs and spline togather with tree of allvalues into file.        
+
+*/
+
+
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+
+///////////////////////////////////////////////////////////////////////////////
+//                                                                           //
+//  TPC calibration class for Goofie values                                  //
+//                                                                           //
+///////////////////////////////////////////////////////////////////////////////
+
+
+#include "TSystem.h"
+#include "TString.h"
+#include "TChain.h"
+#include "TFile.h"
+#include "TTimeStamp.h"
+#include "TGraph.h"
+#include "TTree.h"
+#include "TSpline.h"
+
+class AliTPCGoofieValues : public TNamed{
+public:
+  AliTPCGoofieValues(); ///< default ctor
+  //AliTPCGoofieValues(const char *fname); ///< ctor using log file, not implemented
+  AliTPCGoofieValues(const char *fname); ///< ctor using an ASCII file
+  virtual ~AliTPCGoofieValues();///< default dtor
+  
+  
+  Long64_t GetLinesInFile();///< return lines in ASCII file 
+  Double_t GetStartTime();///< return StartTime
+  Double_t GetEndTime();///< return EndTime
+  Double_t GetTimeOfRun();///< return TimeOfRun
+  Double_t GetTempGrad(Double_t timeSec);///< return TempGrad
+  
+  Double_t EvalTempGrad(Double_t timeSec);///< evaluate temperature gradients for a certain time in seconds
+  Double_t EvalAverageTemp(Double_t timeSec);///< evaluate average temperatures for a certain time in seconds
+  Double_t EvalPress(Double_t timeSec);///< evaluate pressure for a certain time in seconds
+  Double_t EvalVdrift(Double_t timeSec);///< evaluate  drift velocities for a certain time in seconds
+  Double_t EvalVdriftcor(Double_t timeSec);///< evaluate drift velocities corrected for a certain time in seconds
+  Double_t EvalGainF(Double_t timeSec);///< evaluate near gain for a certain time in seconds
+  Double_t EvalGainN(Double_t timeSec);///< evaluate far gain for a certain time in seconds
+  Double_t EvalCO2(Double_t timeSec);///< evaluate  CO2 content for a certain time in seconds
+  Double_t EvalN2(Double_t timeSec);///< evaluate  N2 content for a certain time in seconds
+  
+  void FillAllGraphs();  ///< fill all the graphs after the tree
+  void FillAllSplines();  ///< fill all the graphs after the splines
+  
+  void FillAverageTempGraph();///<graph of average temperatures 
+  void FillTempGradGraph();///<graph of temperature gradients
+  void FillPressGraph();///<graph of pressures
+  void FillVdriftGraph();///<graph of drift velocities
+  void FillVdriftcorGraph();///<graph of drift velocities corrected
+  void FillGainFGraph();///<graph of near gain
+  void FillGainNGraph();///<graph of far gain
+  void FillCO2Graph();///<graph of CO2 content
+  void FillN2Graph();///<graph of N2 content
+  
+  void FillAverageTempSpline();///< spline of average temperatures 
+  void FillTempGradSpline();///<spline of  temperature gradients
+  void FillPressSpline();///<spline of pressures
+  void FillVdriftSpline();///<spline of drift velocities
+  void FillVdriftcorSpline();///<spline of drift velocities corrected
+  void FillGainFSpline();///<spline of near gain
+  void FillGainNSpline();///<spline of far gain
+  void FillCO2Spline();///<spline of CO2 content
+  void FillN2Spline();///<spline of  N2 content
+  TTree * GetTree(){return fGoofieValues;}
+  void PrintTree(); ///< test: print tree values onto screen
+  Bool_t    IsFolder() const {return kTRUE;}
+protected:
+  Long64_t fLinesInFile;// lines in ASCII file
+  Double_t fStartTime;// StartTime
+  Double_t fEndTime;// EndTime
+  Double_t fTimeOfRun;//TimeOfRun
+  Double_t fTempGrad;//TempGrad
+  
+  TGraph* fAverageTempGraph;//->graph of average temperatures 
+  TGraph* fTempGradGraph;//->graph of temperature gradients
+  TGraph* fPressGraph;//->graph of pressures
+  TGraph* fVdriftGraph;//->graph of drift velocities
+  TGraph* fVdriftcorGraph;//->graph of drift velocities corrected
+  TGraph* fGainFGraph;//->graph of near gain
+  TGraph* fGainNGraph;//->graph of far gain
+  TGraph* fCO2Graph;//->graph of CO2 content
+  TGraph* fN2Graph;//->graph of N2 content
+  
+  TSpline* fAverageTempSpline;// spline of average temperatures 
+  TSpline* fTempGradSpline;//spline of  temperature gradients
+  TSpline* fPressSpline;//spline of pressures
+  TSpline* fVdriftSpline;//spline of drift velocities
+  TSpline* fVdriftcorSpline;//spline of drift velocities corrected
+  TSpline* fGainFSpline;//spline of near gain
+  TSpline* fGainNSpline;//spline of far gain
+  TSpline* fCO2Spline;//spline of CO2 content
+  TSpline* fN2Spline;//spline of  N2 content
+  
+protected:
+  TTree *fGoofieValues;   // tree with all Goofie values in branches
+
+private:
+  AliTPCGoofieValues(const AliTPCGoofieValues&); // Not implemented
+  AliTPCGoofieValues& operator=(const AliTPCGoofieValues&); // Not implemented
+
+  
+  ClassDef(AliTPCGoofieValues,1)  //Basic ROOT object
+};