]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFT0maker.h
defects from coverity fixed
[u/mrichter/AliRoot.git] / TOF / AliTOFT0maker.h
index bb679efe88ce747183be8c41425ebfb82f6bf75f..6086fe6f37a3aa6fc116f85d9d85a9bc91bf6fdd 100644 (file)
@@ -26,7 +26,7 @@ class AliTOFT0maker : public TObject {
 public:
   
   AliTOFT0maker() ; // default constructor
-  AliTOFT0maker(AliESDpid *externalPID, AliTOFcalib *tofCalib); // overloaded constructor
+  AliTOFT0maker(AliESDpid *externalPID, AliTOFcalib *tofCalib=NULL); // overloaded constructor
   virtual ~AliTOFT0maker() ; // dtor
   
   // return (fCalculated[0]=event time -- fCalculated[1]=sigma event time in ps -- fCalculated[2]=mean event time for each fill -- fCalculated[3]=number of tracks at the TOF level) if you can subtruct the event time; return NULL if there is no event time
@@ -37,7 +37,7 @@ public:
   
   void      SetTimeResolution(Double_t timeresolution){fTimeResolution=timeresolution;};// TOF timeresolution in [ps]
   Double_t  GetTimeResolution() const {return fTimeResolution;} // Get TOF Time Resolution
-  void SetT0FillWidth(Float_t width){fT0width = width;}; // in ps
+  void SetT0FillWidth(Float_t width){if(width > 50) fT0width = width; else fT0width=150;}; // in ps
   
   void LoadChannelMap(char *filename="$ALICE_ROOT/TOF/enableMap.104892.root"); //load the enable channel map
   void ApplyMask(AliESDEvent * const esd); // Apply the channel mask
@@ -47,9 +47,13 @@ public:
   
   Float_t  TuneForMC(AliESDEvent *esd); // set enabled channeld, add a smeared t0, add a TOF smearing, return true(smeared) T0 event
   
-  void SetT0spread(Float_t t0spread){fT0spreadExt=t0spread;};
+  void SetT0spread(Float_t t0spread){fT0spreadExt=t0spread;}; // get T0spread
+  Float_t GetT0spread() const {return fT0spreadExt;} // get T0spread
+
   void SetT0fill(Float_t t0fill){fT0fillExt=t0fill;};
   
+  void WriteInESD(AliESDEvent *esd);
+
  private:
   
   AliTOFT0maker(const AliTOFT0maker &);