Added data member fGainFactor
authorkowal2 <kowal2@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 7 Feb 2008 10:19:44 +0000 (10:19 +0000)
committerkowal2 <kowal2@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 7 Feb 2008 10:19:44 +0000 (10:19 +0000)
TPC/AliTPC.cxx
TPC/AliTPC.h

index 0bcba24..08bf095 100644 (file)
@@ -100,7 +100,8 @@ ClassImp(AliTPC)
                   fNoiseDepth(0),
                   fNoiseTable(0),
                   fCurrentNoise(0),
-                  fActiveSectors(0)
+                  fActiveSectors(0),
+                   fGainFactor(1.)
                    
 
 {
@@ -133,7 +134,8 @@ AliTPC::AliTPC(const char *name, const char *title)
                   fNoiseDepth(0),
                   fNoiseTable(0),
                   fCurrentNoise(0),
-                   fActiveSectors(0)
+                   fActiveSectors(0),
+                   fGainFactor(1.)
                   
 {
   //
@@ -1796,6 +1798,7 @@ void AliTPC::MakeSector(Int_t isec,Int_t nrows,TTree *TH,
   AliTPCcalibDB* const calib=AliTPCcalibDB::Instance();
 
   Float_t gasgain = fTPCParam->GetGasGain();
+  gasgain = gasgain/fGainFactor;
   Int_t i;
   Float_t xyz[5]; 
 
index db201b3..ef140bc 100644 (file)
@@ -96,6 +96,8 @@ public:
    void    SetActiveSectors(Int_t flag=1); //loop over al hits and set active only hitted sectors
    Bool_t  TrackInVolume(Int_t id,Int_t track);  //return true if current track is in volume
    void    SetPrimaryIonisation(Bool_t flag = kTRUE) {fPrimaryIonisation = flag;}
+   void    SetGainFactor(Float_t gain){fGainFactor=gain;} //gas gain scaling factor
+   Float_t GetGainFactor()const {return fGainFactor;}//gas gain scaling factor
 // static functions
    static AliTPCParam* LoadTPCParam(TFile *file); 
 protected:
@@ -136,9 +138,9 @@ protected:
   Float_t *  fNoiseTable;  //! table with noise
   Int_t      fCurrentNoise; //! index of the noise in  the noise table 
   Bool_t*    fActiveSectors; //! bool indicating which sectors are active
+  Float_t    fGainFactor; // scaling factor
 
-  ClassDef(AliTPC,12)  // Time Projection Chamber class
+  ClassDef(AliTPC,13)  // Time Projection Chamber class
 };