ROOT logo
#ifndef HEMCCELLGEOMPAR_H
#define HEMCCELLGEOMPAR_H

#include "hparset.h"
#include "TObjArray.h"
#include "hgeomtransform.h"

class HEmcDetector;
class HEmcGeomPar;
class HGeomVector;

class HEmcCellGeomPar : public HParSet {
protected:
  TObjArray*    labPos;    // lab position of cell center
  HEmcDetector* pDet;      // pointer to EMC detector
  HEmcGeomPar*  pGeomPar;  // pointer to EMC geometry detector
  Int_t         nMaxCells; // maximum number of cells in one module
  HGeomTransform trMod2Lab[6]; // transformation lab.sys. <==> module sys. for 6 sectors 
public:
  HEmcCellGeomPar(const Char_t* name="EmcCellGeomPar",
                  const Char_t* title="Emc cell geometry parameters",
                  const Char_t* context="GeomProduction");
  ~HEmcCellGeomPar(void);

  void   clear(void);
  Bool_t init(HParIo*,Int_t*);
  Int_t  getSize(void) {return labPos->GetEntries();}
  void   printParam(void);

  const HGeomVector*  getLabPos(Int_t,Int_t) const ;
  const HGeomVector*  getLabPos(Int_t,Int_t,Int_t) const ;
  
  const HEmcDetector*   getEmcDetector(void) const     {return pDet;}
  const HGeomTransform* getTransMod2Lab(Int_t s) const {return s>=0&&s<6 ? &trMod2Lab[s] : NULL;}

  ClassDef(HEmcCellGeomPar,0) // Class for EMC cell geometry
};

#endif /* !HEMCCELLGEOMPAR_H */
 hemccellgeompar.h:1
 hemccellgeompar.h:2
 hemccellgeompar.h:3
 hemccellgeompar.h:4
 hemccellgeompar.h:5
 hemccellgeompar.h:6
 hemccellgeompar.h:7
 hemccellgeompar.h:8
 hemccellgeompar.h:9
 hemccellgeompar.h:10
 hemccellgeompar.h:11
 hemccellgeompar.h:12
 hemccellgeompar.h:13
 hemccellgeompar.h:14
 hemccellgeompar.h:15
 hemccellgeompar.h:16
 hemccellgeompar.h:17
 hemccellgeompar.h:18
 hemccellgeompar.h:19
 hemccellgeompar.h:20
 hemccellgeompar.h:21
 hemccellgeompar.h:22
 hemccellgeompar.h:23
 hemccellgeompar.h:24
 hemccellgeompar.h:25
 hemccellgeompar.h:26
 hemccellgeompar.h:27
 hemccellgeompar.h:28
 hemccellgeompar.h:29
 hemccellgeompar.h:30
 hemccellgeompar.h:31
 hemccellgeompar.h:32
 hemccellgeompar.h:33
 hemccellgeompar.h:34
 hemccellgeompar.h:35
 hemccellgeompar.h:36
 hemccellgeompar.h:37
 hemccellgeompar.h:38
 hemccellgeompar.h:39