]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCcalibPID.h
Some of the coding violations corrected
[u/mrichter/AliRoot.git] / TPC / AliTPCcalibPID.h
index 0dee9108adeca0dcd8a0b1b1acf2b69681e24801..55cb62a430c209a520c52984eedc191ca3016f63 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef ALITPCCALIBCPID_H
-#define ALITPCCALIBCPID_H
+#ifndef ALITPCCALIBPID_H
+#define ALITPCCALIBPID_H
 
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
@@ -27,44 +27,52 @@ public:
   virtual void           Process(AliESDEvent *event);
   virtual Long64_t       Merge(TCollection *li);
   virtual void           Analyze();
-  void                   MakeReport();
+  void                   MakeReport(const char * outputpath);
+  void                   DrawRatioTot(Int_t ipad, const char* outputpath);
+  void                   DrawRatioMax(Int_t ipad, const char* outputpath);
+  void                   DrawRatiodEdx(Float_t demin, Float_t demax, const char* outputpath);
+  void                   DrawResolBGQtot(Int_t minClusters, Int_t maxClusters, Float_t minp, Float_t maxp,  const char *outputpath, Bool_t resol=kTRUE); //
+  void                   DrawResolBGQmax(Int_t minClusters, Int_t maxClusters, Float_t minp, Float_t maxp, const char *outputpath, Bool_t resol=kTRUE);
   //
+  TH1F   *          GetHistNTracks() const {return fHistNTracks;};
+  TH1F   *          GetHistClusters() const {return fClusters;};
+  TH2F   *          GetHistPileUp() const {return fPileUp;};
+  TH2F   *          GetHistLandau() const {return fLandau;};
   //
-  TH1F   *          GetHistNTracks(){return fHistNTracks;};
-  TH1F   *          GetHistClusters(){return fClusters;};
-  TH2F   *          GetHistPileUp(){return fPileUp;};
-  TH2F   *          GetHistLandau(){return fLandau;};
-  //
-  THnSparseS *      GetHistQmax(){return fDeDxQmax;};
-  THnSparseS *      GetHistQtot(){return fDeDxQtot;};
-  THnSparseS *      GetHistRatio(){return fDeDxRatio;};
-  THnSparseS *      GetHistShortMediumRatio(){return fDeDxShortMediumRatio;};
-  THnSparseS *      GetHistLongMediumRatio(){return fDeDxLongMediumRatio;};
+  THnSparseS *      GetHistQmax() const {return fDeDxQmax;};
+  THnSparseS *      GetHistQtot() const {return fDeDxQtot;};
+  THnSparseS *      GetHistRatioMaxTot() const {return fDeDxRatioMaxTot;};
+  THnSparseS *      GetHistRatioQmax() const {return fDeDxRatioQmax;};
+  THnSparseS *      GetHistRatioQtot() const {return fDeDxRatioQtot;};
+  THnSparseS *      GetHistRatioTruncQmax() const {return fDeDxRatioTruncQmax;};
+  THnSparseS *      GetHistRatioTruncQtot() const {return fDeDxRatioTruncQtot;};
   //
   void SetMIPvalue(Float_t mip){fMIP = mip;};
   void SetLowerTrunc(Float_t lowerTrunc){fLowerTrunc = lowerTrunc;};
   void SetUpperTrunc(Float_t upperTrunc){fUpperTrunc = upperTrunc;};
   void SetUseShapeNorm(Bool_t useShapeNorm){fUseShapeNorm = useShapeNorm;};
-  void SetUsePosNorm(Bool_t usePosNorm){fUsePosNorm = usePosNorm;};
+  void SetUsePosNorm(Int_t usePosNorm){fUsePosNorm = usePosNorm;};
   void SetPadNorm(Int_t padNorm){fUsePadNorm = padNorm;};
   void SetIsCosmic(Bool_t isCosmic){fIsCosmic = isCosmic;};
   //
   //
   static void       BinLogX(THnSparse * h, Int_t axisDim);   // method for correct histogram binning
-
-
+  void DumpTree(THnSparse * hndim, const char * outname);
+  void DumpTrees();
+  void     Process(AliESDtrack *track, Int_t runNo=-1){AliTPCcalibBase::Process(track,runNo);};
+  void     Process(AliTPCseed *track){return AliTPCcalibBase::Process(track);}
 private:
   //
   // parameter specifications
   //
-  Float_t fMIP;
-  Float_t fLowerTrunc;
-  Float_t fUpperTrunc;
-  Bool_t  fUseShapeNorm;
-  Bool_t  fUsePosNorm;
-  Int_t   fUsePadNorm;
+  Float_t fMIP;                  // MIP position to be in fMIP
+  Float_t fLowerTrunc;           // lower truncation for dEdx
+  Float_t fUpperTrunc;           // upper truncation for dEdx
+  Bool_t  fUseShapeNorm;         // switch - use shape normalization 
+  Int_t  fUsePosNorm;            // switch use position normalization
+  Int_t   fUsePadNorm;           // switch use pad normalization
   //
-  Bool_t  fIsCosmic;
+  Bool_t  fIsCosmic;             // swith is cosmic - to be removed once event specie in ESD introduced 
   //
   // histograms
   //
@@ -75,9 +83,15 @@ private:
   //
   THnSparseS * fDeDxQmax;               //  histogram which shows dEdx (Qmax) as a function of z,sin(phi),tan(theta),p,betaGamma
   THnSparseS * fDeDxQtot;               //  histogram which shows dEdx (Qtot) as a function of z,sin(phi),tan(theta),p,betaGamma
-  THnSparseS * fDeDxRatio;              //  histogram which shows dEdx ratio (Qmax/Qtot) as a function of z,sin(phi),tan(theta),p,betaGamma
-  THnSparseS * fDeDxShortMediumRatio;   //  histogram which shows dEdx ratio (QmaxShort/QmaxMedium) as a function of z,sin(phi),tan(theta),p,betaGamma
-  THnSparseS * fDeDxLongMediumRatio;    //  histogram which shows dEdx ratio (QmaxLong/QmaxMedium) as a function of z,sin(phi),tan(theta),p,betaGamma
+  //
+  // ratio histograms
+  //
+  THnSparseS * fDeDxRatioMaxTot;              //  histogram which shows dEdx ratio (Qmax/Qtot) as a function of z,sin(phi),tan(theta),dEdx,dEdx*dl
+  THnSparseS * fDeDxRatioQmax;   // dEdx ratio (tracklet/track) as a function of z,sin(phi),tan(theta),dEdx,dEdx*dl
+  THnSparseS * fDeDxRatioQtot;   // dEdx ratio (tracklet/track) as a function of z,sin(phi),tan(theta),dEdx,dEdx*dl
+  THnSparseS * fDeDxRatioTruncQtot;   // dEdx ratio (tracklet/track) as a function of z,sin(phi),tan(theta),dEdx,dEdx*dl
+  THnSparseS * fDeDxRatioTruncQmax;   // dEdx ratio (tracklet/track) as a function of z,sin(phi),tan(theta),dEdx,dEdx*dl
+
   //
   AliTPCcalibPID(const AliTPCcalibPID&); 
   AliTPCcalibPID& operator=(const AliTPCcalibPID&);