LCOV - code coverage report
Current view: top level - STEER/AOD - AliAODTZERO.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 10 22 45.5 %
Date: 2016-06-14 17:26:59 Functions: 11 28 39.3 %

          Line data    Source code
       1             : #ifndef ALIAODTZERO_H
       2             : #define ALIAODTZERO_H
       3             : 
       4             : //-------------------------------------------------------------------------
       5             : //     Container class for AOD TZERO data
       6             : //     Author: Filip Krizek
       7             : //     filip.krizek@cern.ch 23/02/2012
       8             : //-------------------------------------------------------------------------
       9             : 
      10             : #include <TObject.h>
      11             : #include <TBits.h>
      12             : 
      13             : class AliAODTZERO : public TObject 
      14             : {
      15             : public:
      16             :   AliAODTZERO();
      17             :   AliAODTZERO(const AliAODTZERO& source);
      18             :   AliAODTZERO &operator=(const AliAODTZERO& source);
      19             : 
      20           0 :   virtual ~AliAODTZERO() {};
      21             : 
      22             :   // Getters 
      23             :   //1st
      24           0 :   Double32_t GetT0TOF(Int_t i)  const {return fT0TOF[i];}
      25           0 :   const Double32_t * GetT0TOF() const {return fT0TOF;}
      26             :   //best
      27           0 :   Double32_t GetT0TOFbest(Int_t i)  const {return fT0TOFbest[i];}
      28           0 :   const Double32_t * GetT0TOFbest() const {return fT0TOFbest;}
      29             :  
      30           0 :   Bool_t GetBackgroundFlag() const {return fBackground;}
      31           0 :   Bool_t GetPileupFlag()     const {return fPileup;}
      32           0 :   Bool_t GetSatellite()      const {return fSattelite;}
      33             :   
      34           0 :   Float_t GetT0VertexRaw()      const {return fT0VertexRaw;}
      35           0 :   Double32_t GetT0zVertex()      const {return fT0zVertex;}
      36             : 
      37           0 :   Float_t GetAmp(Int_t pmt)  const {return fT0Amp[pmt];}
      38             :   
      39             :   //Setters
      40          48 :   void SetT0TOF(Int_t icase, Double32_t time) { fT0TOF[icase] = time;}
      41          48 :   void SetT0TOFbest(Int_t icase, Double32_t time) { fT0TOFbest[icase] = time;}
      42             :    
      43           8 :   void SetBackgroundFlag(Bool_t back = false) {fBackground = back;}
      44           8 :   void SetPileupFlag(Bool_t back = false) {fPileup  = back;}
      45           8 :   void SetSatelliteFlag(Bool_t sat = false) { fSattelite = sat;}
      46             :   
      47          16 :   void SetT0VertexRaw(Float_t vtx) { fT0VertexRaw = vtx;}
      48          16 :   void SetT0zVertex(Double32_t z) {fT0zVertex = z;}
      49         416 :   void SetAmp(Int_t pmt, Float_t amp) {fT0Amp[pmt]=amp;}
      50             :   //pile up bits
      51          16 :   void SetPileupBits(TBits pileup) {fPileupBits=pileup;}
      52           0 :   TBits GetT0PileupBits() const {return fPileupBits;}
      53             :      
      54             :   
      55             : protected:
      56             :   Double32_t   fT0TOF[3];    // interaction time in ps with 1st time( A&C, A, C)
      57             :   Bool_t       fPileup;      // pile-up flag
      58             :   Bool_t       fSattelite;   // sattelite flag
      59             :   Bool_t       fBackground;  // sattelite flag
      60             :   Double32_t   fT0TOFbest[3];// interaction time in ps ( A&C, A, C) with best time
      61             :   Float_t      fT0VertexRaw; // raw T0 vertex without any cuts 
      62             :   Double32_t   fT0zVertex;    // reconstructed T0 vertex
      63             :   Float_t fT0Amp[26];          //amplitude on PMTs and MPD
      64             :   TBits fPileupBits;     //BC number
      65             : 
      66         294 :   ClassDef(AliAODTZERO,5)
      67             : };
      68             : 
      69             : #endif

Generated by: LCOV version 1.11