test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MEEEGeom.h
Go to the documentation of this file.
1 #ifndef MEEEGeom_hh
2 #define MEEEGeom_hh
3 
4 //
5 // Authors : Gautier Hamel de Monchenault and Julie Malcles, Saclay
6 //
7 
8 #include <vector>
9 #include <map>
10 #include <list>
11 
12 #include <TPolyLine.h>
13 #include <TGraph.h>
14 
15 class MEEEGeom
16 {
17  // static functions
18 public:
19 
21 
22  typedef int SuperCrysCoord;
23  typedef int CrysCoord;
24 
25  typedef std::pair<float,float> EtaPhiPoint;
26 
27  static int dee( SuperCrysCoord iX, SuperCrysCoord iY, int iz );
28  static int quadrant( SuperCrysCoord iX, SuperCrysCoord iY );
29  static int sector( SuperCrysCoord iX, SuperCrysCoord iY );
30  static int sm( SuperCrysCoord iX, SuperCrysCoord iY, int iz );
31  static int lmmod( SuperCrysCoord iX, SuperCrysCoord iY );
32  static int sc_in_quad( SuperCrysCoord iX, SuperCrysCoord iY );
33  static int sc( SuperCrysCoord iX, SuperCrysCoord iY );
34  static int dcc( SuperCrysCoord iX, SuperCrysCoord iY, int iz );
35  static int lmr( SuperCrysCoord iX, SuperCrysCoord iY, int iz );
36  static int side( SuperCrysCoord iX, SuperCrysCoord iY, int iz );
37 
38  static int crystal_in_sc( CrysCoord ix, CrysCoord iy );
39  static int crystal( CrysCoord ix, CrysCoord iy );
40 
41  static int dee( int ilmr );
42  static bool near( int ilmr );
43 
44  static TString smName( int ism );
45  static int smFromDcc( int idcc );
46  static int dccFromSm( int ism );
47 
48  static bool pnTheory; // if true: theoretical PN cabling for all dees
49  static std::pair<int, int> pn( int dee, int ilmod );
50  static std::pair<int,int> memFromLmr( int ilmr );
51  static std::vector<int> lmmodFromLmr( int ilmr );
52  static int deeFromMem( int imem );
53  static int apdRefTower( int ilmr, int ilmmod );
54  static std::vector<int> apdRefChannels( int ilmmod );
55 
56  static TGraph* getGraphBoundary( int type, int num, int iz=-1, int xside=0 );
57  static void getBoundary( std::list< std::pair< float, float > >& l, int type, int num, int iz=-1, int xside=0 );
58 
59  static int sc_type( SuperCrysCoord iX, SuperCrysCoord iY );
60 
61  virtual ~MEEEGeom() {}
62 
63 protected:
64 
65  //GHM ClassDef(MEEEGeom,0) // MEEEGeom -- Monitoring utility for survey of Ecal
66 
67 };
68 
69 #endif
70 
static std::pair< int, int > memFromLmr(int ilmr)
Definition: MEEEGeom.cc:904
int CrysCoord
Definition: MEEEGeom.h:23
type
Definition: HCALResponse.h:21
static int lmmod(SuperCrysCoord iX, SuperCrysCoord iY)
Definition: MEEEGeom.cc:94
static int crystal(CrysCoord ix, CrysCoord iy)
Definition: MEEEGeom.cc:398
static void getBoundary(std::list< std::pair< float, float > > &l, int type, int num, int iz=-1, int xside=0)
Definition: MEEEGeom.cc:486
static int apdRefTower(int ilmr, int ilmmod)
Definition: MEEEGeom.cc:1006
static int smFromDcc(int idcc)
Definition: MEEEGeom.cc:439
static int side(SuperCrysCoord iX, SuperCrysCoord iY, int iz)
Definition: MEEEGeom.cc:939
static bool near(int ilmr)
Definition: MEEEGeom.cc:932
static int dcc(SuperCrysCoord iX, SuperCrysCoord iY, int iz)
Definition: MEEEGeom.cc:222
static int sc_type(SuperCrysCoord iX, SuperCrysCoord iY)
Definition: MEEEGeom.cc:176
static bool pnTheory
Definition: MEEEGeom.h:48
virtual ~MEEEGeom()
Definition: MEEEGeom.h:61
static int sc_in_quad(SuperCrysCoord iX, SuperCrysCoord iY)
Definition: MEEEGeom.cc:142
static std::pair< int, int > pn(int dee, int ilmod)
Definition: MEEEGeom.cc:615
static int dccFromSm(int ism)
Definition: MEEEGeom.cc:429
static TString smName(int ism)
Definition: MEEEGeom.cc:415
static int sm(SuperCrysCoord iX, SuperCrysCoord iY, int iz)
Definition: MEEEGeom.cc:83
static int sector(SuperCrysCoord iX, SuperCrysCoord iY)
Definition: MEEEGeom.cc:31
static std::vector< int > lmmodFromLmr(int ilmr)
Definition: MEEEGeom.cc:948
int SuperCrysCoord
Definition: MEEEGeom.h:22
static TGraph * getGraphBoundary(int type, int num, int iz=-1, int xside=0)
Definition: MEEEGeom.cc:460
static int deeFromMem(int imem)
Definition: MEEEGeom.cc:602
std::pair< float, float > EtaPhiPoint
Definition: MEEEGeom.h:25
static std::vector< int > apdRefChannels(int ilmmod)
Definition: MEEEGeom.cc:1097
static int crystal_in_sc(CrysCoord ix, CrysCoord iy)
Definition: MEEEGeom.cc:299
static int dee(SuperCrysCoord iX, SuperCrysCoord iY, int iz)
Definition: MEEEGeom.cc:284
static int quadrant(SuperCrysCoord iX, SuperCrysCoord iY)
Definition: MEEEGeom.cc:16
int ism(int ieta, int iphi)
Definition: EcalPyUtils.cc:56
static int sc(SuperCrysCoord iX, SuperCrysCoord iY)
Definition: MEEEGeom.cc:211
static int lmr(SuperCrysCoord iX, SuperCrysCoord iY, int iz)
Definition: MEEEGeom.cc:250
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run