]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDCalibTask.h
changes from fzhou
[u/mrichter/AliRoot.git] / TRD / AliTRDCalibTask.h
index 7bc07dc7063893e4195e8168d7b4dbdee3efdd36..06450476a3dd23684b1b3919ad9ab68c8ad22c6b 100644 (file)
@@ -78,7 +78,8 @@ class AliTRDCalibTask : public AliAnalysisTaskSE {
   void SetCutWithVdriftCalib(Bool_t cutWithVdriftCalib)                {fCutWithVdriftCalib = cutWithVdriftCalib;};
   void SetMinNbTRDtracklets(Int_t minNbTRDtracklets)                   {fMinNbTRDtracklets = minNbTRDtracklets;};
   void SetMinTRDMometum(Double_t minTRDMomentum)                       {fMinTRDMomentum = minTRDMomentum;};
+  void SetScaleGainWithTPCSignal(Bool_t scaleGainWithTPCSignal)        {fScaleGainWithTPCSignal = scaleGainWithTPCSignal;}; 
+
   void SetVersionGainUsed(Int_t versionGainUsed)                       { fVersionGainUsed = versionGainUsed;   }
   void SetSubVersionGainUsed(Int_t subVersionGainUsed)                 { fSubVersionGainUsed = subVersionGainUsed;   }
   void SetVersionGainLocalUsed(Int_t versionGainLocalUsed)             { fVersionGainLocalUsed = versionGainLocalUsed;   }
@@ -100,12 +101,14 @@ class AliTRDCalibTask : public AliAnalysisTaskSE {
   void SetMaxEvent(Int_t nbevents)                                     { fMaxEvent = nbevents; };
   void SetDebug(Int_t debug)                                           { fDebug = debug; };
 
+  Bool_t IsPHQon() const {return fPHQon;}
+  void SetPHQon(const Bool_t kphq){ fPHQon = kphq; }
+
  private:
   Bool_t SetVersionSubversion();
   Bool_t ParticleGood(int i) const;
 
   AliESDEvent  *fESD;                            //! ESD object
-  AliESDfriend *fESDfriend;                      //! ESD friend
   const AliESDtrack *fkEsdTrack;                  //! ESD track
   AliESDfriendTrack *fFriendTrack;               //! ESD friend track
   TObject *fCalibObject;                         //! calibration objects attached to the ESD friend
@@ -173,6 +176,7 @@ class AliTRDCalibTask : public AliAnalysisTaskSE {
   Bool_t      fCutWithVdriftCalib;               // CutWithVdriftCalib for the gain and PH
   Int_t       fMinNbTRDtracklets;                // Min number of TRD tracklets
   Float_t     fMinTRDMomentum;                   // Min TRD momentum  
+  Bool_t      fScaleGainWithTPCSignal;           // Scale the TPC gain with the TPC signal
 
   Int_t       fLow;                              // lower limit of nb of TRD clusters per tracklet
   Int_t       fHigh;                             // higher limit of nb of TRD clusters per tracklet
@@ -201,12 +205,13 @@ class AliTRDCalibTask : public AliAnalysisTaskSE {
 
   Int_t       fMaxEvent;                         // max events
   Int_t       fCounter;                          // max events
-  Int_t       fDebug;                            // fDebug
+
+  Bool_t fPHQon;                                  //switch of phq
 
   AliTRDCalibTask(const AliTRDCalibTask&); 
   AliTRDCalibTask& operator=(const AliTRDCalibTask&); 
 
-  ClassDef(AliTRDCalibTask, 2); 
+  ClassDef(AliTRDCalibTask, 3); 
 };
 
 #endif