CMS 3D CMS Logo

Constants.h
Go to the documentation of this file.
1 #ifndef RPCPatts_Constants_h
2 #define RPCPatts_Constants_h
3 // -*- C++ -*-
4 //
5 // Package: RPCPatts
6 // Class : constants
7 //
16 //
17 // Original Author: TMF
18 // Created: Wed Oct 3 10:28:12 CEST 2007
19 //
20 #include <cmath>
21 namespace RPCpg {
22  const int mu = 0;
23  const int mubar = 1;
24  const int muundefined = 10;
25 
26  const unsigned int maxPlanes_s = 6;
27  const unsigned int empty_s = 99; // note NOT_CONNECTED?
28  const unsigned int ptBins_s = 32;
29 
30  static const double pts[33] = {
31  0.0, 0.01,
32  1.5, 2.0, 2.5, 3.0, 3.5, 4.0, 4.5,
33  5., 6., 7., 8.,
34  10., 12., 14., 16., 18.,
35  20., 25., 30., 35., 40., 45.,
36  50., 60., 70., 80., 90., 100., 120., 140., 160.};
37  double rate(double x); // rate from pt = x [Gev/c] to inf
38 
39 }
40 
41 #include <vector>
42 #include <map>
43 #include <string>
44 namespace RPCPatGen{
45 
46  // Quality
48  TQualityStruct(const std::string &str, short int qual, short int tabNum):
49  m_qualStr(str),m_qual(qual),m_tabNum(tabNum){};
51  short int m_qual;
52  short int m_tabNum;
53  };
54  typedef std::vector<TQualityStruct> TQualVec;
55  typedef std::map<int,TQualVec> TTowerToQualMap;
56 
57  typedef std::vector<int> TOrSize;
58  typedef std::map<int, TOrSize> TOrSizeMap;
59  typedef std::map<int, TOrSizeMap> TPtOrSizeMap;
60 
61 }
62 
63 
64 #endif
std::map< int, TOrSize > TOrSizeMap
Definition: Constants.h:58
const unsigned int maxPlanes_s
Definition: Constants.h:26
std::map< int, TQualVec > TTowerToQualMap
Definition: Constants.h:55
const int muundefined
Definition: Constants.h:24
static const double pts[33]
Definition: Constants.h:30
TQualityStruct(const std::string &str, short int qual, short int tabNum)
Definition: Constants.h:48
const int mu
Definition: Constants.h:22
const int mubar
Definition: Constants.h:23
std::vector< TQualityStruct > TQualVec
Definition: Constants.h:54
const unsigned int ptBins_s
Definition: Constants.h:28
double rate(double x)
Definition: Constants.cc:3
const unsigned int empty_s
Definition: Constants.h:27
std::map< int, TOrSizeMap > TPtOrSizeMap
key - tower number, value - vector of ORSizes
Definition: Constants.h:59
std::vector< int > TOrSize
Definition: Constants.h:57
#define str(s)