ROOT logo
#ifndef AliEMCALSensorTemp_H
#define AliEMCALSensorTemp_H
/* Copyright(c) 2006-07, ALICE Experiment at CERN, All rights reserved. *
 * See cxx source for full Copyright notice                               */


////////////////////////////////////////////////////////////////////////////
//              Container class for temperature sensor positions            
////////////////////////////////////////////////////////////////////////////


#include "TMath.h"
#include "AliSplineFit.h"
#include "AliDCSSensor.h"
#include "TTree.h"

class TObject;
class TClonesArray;
class TObjArray;
class TGraph;
class TVector3;
class TFile;
class TString;
class TTimeStamp;


////////////////////////////////////////////////////////////////////////
//              Class AliEMCALSensorTempSensors
////////////////////////////////////////////////////////////////////////

const TString kAmandaString = "PT_%02d.Temperature";

class AliEMCALSensorTemp : public AliDCSSensor {

public:
  AliEMCALSensorTemp();
  AliEMCALSensorTemp(const AliEMCALSensorTemp& source);
  virtual ~AliEMCALSensorTemp(){}
  AliEMCALSensorTemp& operator=(const AliEMCALSensorTemp& source);
  
  Int_t       GetSide()   const {return fSide;	 }
  Int_t       GetSector() const {return fSector;	 }
  Int_t       GetNum()	  const {return fNum;	 }

  void SetSide   (Int_t side)      {fSide   = side;	 }
  void SetSector (Int_t sector)    {fSector = sector;}
  void SetNum    (Int_t num)       {fNum    = num;   }


  static TClonesArray * ReadList(const char *fname,
                                 const TString& amandaString = kAmandaString);
  static TClonesArray * ReadTree(TTree *tree, 
                                 const TString& amandaString = kAmandaString);

protected:
  // A SuperModule is defined in hardware land with a sector and a side index
  Int_t fSide;      // EMCAL side; 0:Shaft Side (A) -- 1:Muon Side (C)
  Int_t fSector;    // Number of sector             (0-5)
  Int_t fNum;       // Number within a SuperModule: 8 sensors => index range 0-7

  ClassDef(AliEMCALSensorTemp,1)
};
#endif
 AliEMCALSensorTemp.h:1
 AliEMCALSensorTemp.h:2
 AliEMCALSensorTemp.h:3
 AliEMCALSensorTemp.h:4
 AliEMCALSensorTemp.h:5
 AliEMCALSensorTemp.h:6
 AliEMCALSensorTemp.h:7
 AliEMCALSensorTemp.h:8
 AliEMCALSensorTemp.h:9
 AliEMCALSensorTemp.h:10
 AliEMCALSensorTemp.h:11
 AliEMCALSensorTemp.h:12
 AliEMCALSensorTemp.h:13
 AliEMCALSensorTemp.h:14
 AliEMCALSensorTemp.h:15
 AliEMCALSensorTemp.h:16
 AliEMCALSensorTemp.h:17
 AliEMCALSensorTemp.h:18
 AliEMCALSensorTemp.h:19
 AliEMCALSensorTemp.h:20
 AliEMCALSensorTemp.h:21
 AliEMCALSensorTemp.h:22
 AliEMCALSensorTemp.h:23
 AliEMCALSensorTemp.h:24
 AliEMCALSensorTemp.h:25
 AliEMCALSensorTemp.h:26
 AliEMCALSensorTemp.h:27
 AliEMCALSensorTemp.h:28
 AliEMCALSensorTemp.h:29
 AliEMCALSensorTemp.h:30
 AliEMCALSensorTemp.h:31
 AliEMCALSensorTemp.h:32
 AliEMCALSensorTemp.h:33
 AliEMCALSensorTemp.h:34
 AliEMCALSensorTemp.h:35
 AliEMCALSensorTemp.h:36
 AliEMCALSensorTemp.h:37
 AliEMCALSensorTemp.h:38
 AliEMCALSensorTemp.h:39
 AliEMCALSensorTemp.h:40
 AliEMCALSensorTemp.h:41
 AliEMCALSensorTemp.h:42
 AliEMCALSensorTemp.h:43
 AliEMCALSensorTemp.h:44
 AliEMCALSensorTemp.h:45
 AliEMCALSensorTemp.h:46
 AliEMCALSensorTemp.h:47
 AliEMCALSensorTemp.h:48
 AliEMCALSensorTemp.h:49
 AliEMCALSensorTemp.h:50
 AliEMCALSensorTemp.h:51
 AliEMCALSensorTemp.h:52
 AliEMCALSensorTemp.h:53
 AliEMCALSensorTemp.h:54
 AliEMCALSensorTemp.h:55
 AliEMCALSensorTemp.h:56
 AliEMCALSensorTemp.h:57
 AliEMCALSensorTemp.h:58
 AliEMCALSensorTemp.h:59
 AliEMCALSensorTemp.h:60
 AliEMCALSensorTemp.h:61
 AliEMCALSensorTemp.h:62
 AliEMCALSensorTemp.h:63