Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-09-07 04:38:16

0001 #ifndef RPCPatts_Constants_h
0002 #define RPCPatts_Constants_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     RPCPatts
0006 // Class  :     constants
0007 //
0008 /**\class constants constants.h L1Trigger/RPCPatts/interface/constants.h
0009 
0010  Description: Contains some constants ;)
0011 
0012  Usage:
0013     <usage>
0014 
0015 */
0016 //
0017 // Original Author:  TMF
0018 //         Created:  Wed Oct  3 10:28:12 CEST 2007
0019 //
0020 #include <cmath>
0021 namespace RPCpg {
0022   const int mu = 0;
0023   const int mubar = 1;
0024   const int muundefined = 10;
0025 
0026   const unsigned int maxPlanes_s = 6;
0027   const unsigned int empty_s = 99;  // note NOT_CONNECTED?
0028   const unsigned int ptBins_s = 32;
0029 
0030   static const double pts[33] = {0.0, 0.01, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0,  4.5,  5.,   6.,
0031                                  7.,  8.,   10., 12., 14., 16., 18., 20.,  25.,  30.,  35.,
0032                                  40., 45.,  50., 60., 70., 80., 90., 100., 120., 140., 160.};
0033   double rate(double x);  // rate from pt = x [Gev/c] to inf
0034 
0035 }  // namespace RPCpg
0036 
0037 #include <vector>
0038 #include <map>
0039 #include <string>
0040 namespace RPCPatGen {
0041 
0042   // Quality
0043   struct TQualityStruct {
0044     TQualityStruct(const std::string &str, short int qual, short int tabNum)
0045         : m_qualStr(str), m_qual(qual), m_tabNum(tabNum) {}
0046     std::string m_qualStr;
0047     short int m_qual;
0048     short int m_tabNum;
0049   };
0050   typedef std::vector<TQualityStruct> TQualVec;
0051   typedef std::map<int, TQualVec> TTowerToQualMap;
0052 
0053   typedef std::vector<int> TOrSize;
0054   typedef std::map<int, TOrSize> TOrSizeMap;       /// key - tower number, value - vector of ORSizes
0055   typedef std::map<int, TOrSizeMap> TPtOrSizeMap;  /// key - ptCode, value - TOrSize
0056 
0057 }  // namespace RPCPatGen
0058 
0059 #endif