LCOV - code coverage report
Current view: top level - TPC/TPCbase - AliTPCSensorTemp.h (source / functions) Hit Total Coverage
Test: coverage.info Lines: 2 11 18.2 %
Date: 2016-06-14 17:26:59 Functions: 3 17 17.6 %

          Line data    Source code
       1             : #ifndef AliTPCSensorTemp_H
       2             : #define AliTPCSensorTemp_H
       3             : /* Copyright(c) 2006-07, ALICE Experiment at CERN, All rights reserved. *
       4             :  * See cxx source for full Copyright notice                               */
       5             : 
       6             : 
       7             : /// \class AliTPCSensorTemp
       8             : /// \brief Container class for temperature sensor positions
       9             : 
      10             : 
      11             : #include "AliDCSSensor.h"
      12             : #include "TTree.h"
      13             : 
      14             : class TObject;
      15             : class TClonesArray;
      16             : class TObjArray;
      17             : class TGraph;
      18             : class TVector3;
      19             : class TFile;
      20             : class TString;
      21             : class TTimeStamp;
      22             : 
      23             : 
      24             : ////////////////////////////////////////////////////////////////////////
      25             : //              Class AliTPCSensorTempSensors
      26             : ////////////////////////////////////////////////////////////////////////
      27             : 
      28         222 : const TString kAmandaStringTPC("tpc_temp:PT_%d.Temperature");
      29             : 
      30             : class AliTPCSensorTemp : public AliDCSSensor {
      31             : 
      32             : public:
      33             :   AliTPCSensorTemp();
      34             :   AliTPCSensorTemp(const AliTPCSensorTemp& source);
      35           0 :   virtual ~AliTPCSensorTemp(){}
      36             :   AliTPCSensorTemp& operator=(const AliTPCSensorTemp& source);
      37             : 
      38           0 :   Int_t       GetType()   const {return fType;   }
      39           0 :   Int_t       GetSide()   const {return fSide;   }
      40           0 :   Int_t       GetSector() const {return fSector;         }
      41           0 :   Int_t       GetNum()    const {return fNum;    }
      42             : 
      43           0 :   void SetType   (Int_t type)      {fType   = type;   }
      44           0 :   void SetSide   (Int_t side)      {fSide   = side;      }
      45           0 :   void SetSector (Int_t sector)    {fSector = sector;}
      46           0 :   void SetNum    (Int_t num)       {fNum    = num;   }
      47             : 
      48             : 
      49             :   static TClonesArray * ReadList(const char *fname,
      50             :                                  const TString& amandaString = kAmandaStringTPC);
      51             :   static TClonesArray * ReadTree(TTree *tree,
      52             :                                  const TString& amandaString = kAmandaStringTPC);
      53             : 
      54             : protected:
      55             :   Int_t fType;      ///< Position of sensors on fieldcage
      56             :                     //  (0=ROC,1=OFC,2=IFC,3=TPC,4=ELM,5=TS,6=COOL)
      57             :   Int_t fSide;      ///< TPC side; 0:Shaft Side (A) -- 1:Muon Side (C)
      58             :   Int_t fSector;    ///< Number of sector             (0-17)
      59             :   Int_t fNum;       ///< Position depands from type of sensor.
      60             :                     //    fType=0(0-4) from inside to outside
      61             :                     //    fType=1(0-5) fom A side to C side
      62             :                     //    fType=2(0-5) fom A side to C side
      63             :                     //    fType=3(0)   one per sector
      64             :                     //    fType=4()
      65             :                     //    fType=5()
      66             :                     //  fType=6(0-1) 0:input -- 1:output
      67             : 
      68             : 
      69             :   /// \cond CLASSIMP
      70        2498 :   ClassDef(AliTPCSensorTemp,1)
      71             :   /// \endcond
      72             : };
      73             : #endif

Generated by: LCOV version 1.11