CMS 3D CMS Logo

MEEBGeom.h
Go to the documentation of this file.
1 #ifndef MEEBGeom_hh
2 #define MEEBGeom_hh
3 
4 //
5 // Authors : Gautier Hamel de Monchenault and Julie Malcles, Saclay
6 //
7 
8 #include <vector>
9 #include <map>
10 
11 #include <TPolyLine.h>
12 #include <TGraph.h>
13 #include <TString.h>
14 
15 class MEEBGeom {
16  // static functions
17 public:
19 
20  typedef int EBLocalCoord; // ix from 0 to 84, iy from 0 to 19 (note ix=etaSM-1, iy=phiSM-1)
21  typedef int EBGlobalCoord; // ieta from 1 to 85 (EB+) or -85 to -1 (EB-) and iphi from 1 to 360 (or -9 to 350)
22  typedef int EBTTLocalCoord; // iX=ix/5 from 0 to 3, iY=iy/5 from 0 to 16
23  typedef std::pair<float, float> EtaPhiPoint;
24  typedef std::pair<EBGlobalCoord, EBGlobalCoord> EtaPhiCoord;
25  typedef std::pair<EBLocalCoord, EBLocalCoord> XYCoord;
26 
28  static int sm(EBGlobalCoord ieta, EBGlobalCoord iphi);
33  static int tt(EBGlobalCoord ieta, EBGlobalCoord iphi);
35 
36  static TString smName(int ism);
37  static int smFromDcc(int idcc);
38  static int dccFromSm(int ism);
39 
40  static std::pair<int, int> pn(int ilmmod);
41  static std::pair<int, int> memFromLmr(int ilmr);
42  static std::vector<int> lmmodFromLmr(int ilmr);
43 
44  static int apdRefTower(int ilmmod);
45  static std::vector<int> apdRefChannels(int ilmmod);
46 
47  // get local from crystal number
48  static XYCoord localCoord(int icr);
49 
50  // get local from global
52 
53  // get global from local
55  static EtaPhiPoint globalCoord(int ism, float x, float y);
56  static EtaPhiCoord globalCoord(int ism, int icrystal);
57 
58  static TGraph* getGraphBoundary(int type, int num, bool global = false);
59  static int crystal_channel(EBLocalCoord ix, EBLocalCoord iy);
60  static int electronic_channel(EBLocalCoord ix, EBLocalCoord iy);
61 
62  static int tt_type(EBTTLocalCoord iX, EBTTLocalCoord iY);
63  static int hv_channel(EBTTLocalCoord iX, EBTTLocalCoord iY);
64  static int lv_channel(EBTTLocalCoord iX, EBTTLocalCoord iY);
65  static int lm_channel(EBTTLocalCoord iX, EBTTLocalCoord iY);
66  static int tt_channel(EBTTLocalCoord iX, EBTTLocalCoord iY);
67 
68  virtual ~MEEBGeom() {}
69 
70 private:
71  //GHM ClassDef(MEEBGeom,0) // MEEBGeom -- Monitoring utility for survey of Ecal
72 };
73 
74 #endif
DDAxes::y
MEEBGeom::tt_type
static int tt_type(EBTTLocalCoord iX, EBTTLocalCoord iY)
Definition: MEEBGeom.cc:229
MEEBGeom::lmmodFromLmr
static std::vector< int > lmmodFromLmr(int ilmr)
Definition: MEEBGeom.cc:479
MEEBGeom::electronic_channel
static int electronic_channel(EBLocalCoord ix, EBLocalCoord iy)
Definition: MEEBGeom.cc:326
MEEBGeom::smName
static TString smName(int ism)
Definition: MEEBGeom.cc:79
MEEBGeom::sm
static int sm(EBGlobalCoord ieta, EBGlobalCoord iphi)
Definition: MEEBGeom.cc:26
MEEBGeom::lmr
static int lmr(EBGlobalCoord ieta, EBGlobalCoord iphi)
Definition: MEEBGeom.cc:110
MEEBGeom::iLMModule
Definition: MEEBGeom.h:18
MEEBGeom::dcc
static int dcc(EBGlobalCoord ieta, EBGlobalCoord iphi)
Definition: MEEBGeom.cc:48
MEEBGeom
Definition: MEEBGeom.h:15
MEEBGeom::iSide
Definition: MEEBGeom.h:18
DDAxes::x
MEEBGeom::pn
static std::pair< int, int > pn(int ilmmod)
Definition: MEEBGeom.cc:447
LEDCalibrationChannels.iphi
iphi
Definition: LEDCalibrationChannels.py:64
MEEBGeom::side
static int side(EBGlobalCoord ieta, EBGlobalCoord iphi)
Definition: MEEBGeom.cc:105
MEEBGeom::globalCoord
static EtaPhiCoord globalCoord(int ism, EBLocalCoord ix, EBLocalCoord iy)
Definition: MEEBGeom.cc:149
MEEBGeom::iSuperModule
Definition: MEEBGeom.h:18
MEEBGeom::iCrystal
Definition: MEEBGeom.h:18
MEEBGeom::XYCoord
std::pair< EBLocalCoord, EBLocalCoord > XYCoord
Definition: MEEBGeom.h:25
MEEBGeom::iEcalBarrel
Definition: MEEBGeom.h:18
MEEBGeom::barrel
static int barrel(EBGlobalCoord ieta, EBGlobalCoord iphi)
Definition: MEEBGeom.cc:14
MEEBGeom::EBTTLocalCoord
int EBTTLocalCoord
Definition: MEEBGeom.h:22
MEEBGeom::EtaPhiCoord
std::pair< EBGlobalCoord, EBGlobalCoord > EtaPhiCoord
Definition: MEEBGeom.h:24
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
MEEBGeom::memFromLmr
static std::pair< int, int > memFromLmr(int ilmr)
Definition: MEEBGeom.cc:473
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
MEEBGeom::EBGlobalCoord
int EBGlobalCoord
Definition: MEEBGeom.h:21
MEEBGeom::hv_channel
static int hv_channel(EBTTLocalCoord iX, EBTTLocalCoord iY)
Definition: MEEBGeom.cc:257
MEEBGeom::lv_channel
static int lv_channel(EBTTLocalCoord iX, EBTTLocalCoord iY)
Definition: MEEBGeom.cc:285
MEEBGeom::iDCC
Definition: MEEBGeom.h:18
MEEBGeom::lm_channel
static int lm_channel(EBTTLocalCoord iX, EBTTLocalCoord iY)
Definition: MEEBGeom.cc:201
MEEBGeom::apdRefTower
static int apdRefTower(int ilmmod)
Definition: MEEBGeom.cc:490
EgammaValidation_cff.num
num
Definition: EgammaValidation_cff.py:34
MEEBGeom::iTriggerTower
Definition: MEEBGeom.h:18
MEEBGeom::smFromDcc
static int smFromDcc(int idcc)
Definition: MEEBGeom.cc:67
ecalpyutils::ism
int ism(int ieta, int iphi)
Definition: EcalPyUtils.cc:51
MEEBGeom::dccFromSm
static int dccFromSm(int ism)
Definition: MEEBGeom.cc:53
MEEBGeom::tt
static int tt(EBGlobalCoord ieta, EBGlobalCoord iphi)
Definition: MEEBGeom.cc:95
MEEBGeom::~MEEBGeom
virtual ~MEEBGeom()
Definition: MEEBGeom.h:68
MEEBGeom::getGraphBoundary
static TGraph * getGraphBoundary(int type, int num, bool global=false)
Definition: MEEBGeom.cc:346
MEEBGeom::lmmod
static int lmmod(EBGlobalCoord ieta, EBGlobalCoord iphi)
Definition: MEEBGeom.cc:90
MEEBGeom::localCoord
static XYCoord localCoord(int icr)
Definition: MEEBGeom.cc:142
MEEBGeom::EtaPhiPoint
std::pair< float, float > EtaPhiPoint
Definition: MEEBGeom.h:23
MEEBGeom::tt_channel
static int tt_channel(EBTTLocalCoord iX, EBTTLocalCoord iY)
Definition: MEEBGeom.cc:313
MEEBGeom::EBUnit
EBUnit
Definition: MEEBGeom.h:18
MEEBGeom::apdRefChannels
static std::vector< int > apdRefChannels(int ilmmod)
Definition: MEEBGeom.cc:526
MEEBGeom::EBLocalCoord
int EBLocalCoord
Definition: MEEBGeom.h:20
MEEBGeom::crystal
static int crystal(EBGlobalCoord ieta, EBGlobalCoord iphi)
Definition: MEEBGeom.cc:100
MEEBGeom::crystal_channel
static int crystal_channel(EBLocalCoord ix, EBLocalCoord iy)
Definition: MEEBGeom.cc:319
MEEBGeom::iLMRegion
Definition: MEEBGeom.h:18