CMS 3D CMS Logo

FEDNumbering.cc
Go to the documentation of this file.
1 
6 #include <cassert>
7 
8 using namespace std;
9 
10 namespace {
11 
12  constexpr std::array<bool, FEDNumbering::FEDNumbering::MAXFEDID + 1> initIn() {
13  std::array<bool, FEDNumbering::MAXFEDID + 1> in = {{false}};
14 
15  int i = 0;
16  for (i = 0; i < FEDNumbering::lastFEDId(); i++)
17  in[i] = false;
19  in[i] = true;
20  }
22  in[i] = true;
23  }
25  in[i] = true;
26  }
28  in[i] = true;
29  }
31  in[i] = true;
32  }
34  in[i] = true;
35  }
37  in[i] = true;
38  }
40  in[i] = true;
41  }
43  in[i] = true;
44  }
46  in[i] = true;
47  }
49  in[i] = true;
50  }
52  in[i] = true;
53  }
55  in[i] = true;
56  }
58  in[i] = true;
59  }
61  in[i] = true;
62  }
64  in[i] = true;
65  }
67  in[i] = true;
68  }
70  in[i] = true;
71  }
73  in[i] = true;
74  }
76  in[i] = true;
77  }
79  in[i] = true;
80  }
82  in[i] = true;
83  }
85  in[i] = true;
86  }
88  in[i] = true;
89  }
91  in[i] = true;
92  }
94  in[i] = true;
95  }
97  in[i] = true;
98  }
99  return in;
100  }
101 
102  constexpr std::array<bool, FEDNumbering::MAXFEDID + 1> in_ = initIn();
103 
104 } // namespace
105 
106 bool FEDNumbering::inRange(int i) { return in_[i]; }
108  if ((i >= MINTriggerGTPFEDID && i <= MAXTriggerGTPFEDID) || (i >= MINTriggerEGTPFEDID && i <= MAXTriggerEGTPFEDID))
109  return false;
110  return in_[i];
111 }
FEDNumbering.h
FEDNumbering::MAXCASTORFEDID
Definition: FEDNumbering.h:46
FEDNumbering::MAXTCDSuTCAFEDID
Definition: FEDNumbering.h:102
FEDNumbering::MINECALFEDID
Definition: FEDNumbering.h:43
mps_fire.i
i
Definition: mps_fire.py:355
FEDNumbering::MINTriggerEGTPFEDID
Definition: FEDNumbering.h:63
FEDNumbering::MINTriggerUpgradeFEDID
Definition: FEDNumbering.h:113
FEDNumbering::lastFEDId
static constexpr int lastFEDId()
Definition: FEDNumbering.h:19
FEDNumbering::MINDAQeFEDFEDID
Definition: FEDNumbering.h:95
FEDNumbering::MAXCSCTFSPFEDID
Definition: FEDNumbering.h:94
FEDNumbering::MAXCSCFEDID
Definition: FEDNumbering.h:52
FEDNumbering::MINPreShowerFEDID
Definition: FEDNumbering.h:31
FEDNumbering::MINTCDSuTCAFEDID
Definition: FEDNumbering.h:101
FEDNumbering::MAXLUMISCALERSFEDID
Definition: FEDNumbering.h:50
FEDNumbering::MAXCSCDDUFEDID
Definition: FEDNumbering.h:90
FEDNumbering::MINRPCFEDID
Definition: FEDNumbering.h:59
FEDNumbering::MINDTUROSFEDID
Definition: FEDNumbering.h:111
FEDNumbering::MINDAQmFEDFEDID
Definition: FEDNumbering.h:99
FEDNumbering::MINCSCContingencyFEDID
Definition: FEDNumbering.h:91
FEDNumbering::MINCASTORFEDID
Definition: FEDNumbering.h:45
FEDNumbering::MAXSiPixelFEDID
Definition: FEDNumbering.h:28
FEDNumbering::MINTriggerGCTFEDID
Definition: FEDNumbering.h:65
FEDNumbering::inRangeNoGT
static bool inRangeNoGT(int)
Definition: FEDNumbering.cc:107
FEDNumbering::MAXTriggerGTPFEDID
Definition: FEDNumbering.h:62
FEDNumbering::MAXCSCContingencyFEDID
Definition: FEDNumbering.h:92
FEDNumbering::MAXTriggerEGTPFEDID
Definition: FEDNumbering.h:64
FEDNumbering::MAXDTFEDID
Definition: FEDNumbering.h:56
FEDNumbering::MAXSiStripFEDID
Definition: FEDNumbering.h:30
FEDNumbering::MAXTriggerGCTFEDID
Definition: FEDNumbering.h:66
FEDNumbering::MAXDAQeFEDFEDID
Definition: FEDNumbering.h:96
FEDNumbering::MINLUMISCALERSFEDID
Definition: FEDNumbering.h:49
recoMuon::in
Definition: RecoMuonEnumerators.h:6
FEDNumbering::MAXHCALuTCAFEDID
Definition: FEDNumbering.h:104
FEDNumbering::inRange
static bool inRange(int)
Definition: FEDNumbering.cc:106
FEDNumbering::MINCSCFEDID
Definition: FEDNumbering.h:51
FEDNumbering::MAXPreShowerFEDID
Definition: FEDNumbering.h:32
FEDNumbering::MINDTFEDID
Definition: FEDNumbering.h:55
FEDNumbering::MAXDAQmFEDFEDID
Definition: FEDNumbering.h:100
FEDNumbering::MINHCALuTCAFEDID
Definition: FEDNumbering.h:103
FEDNumbering::MAXSiPixeluTCAFEDID
Definition: FEDNumbering.h:106
FEDNumbering::MINSiPixelFEDID
Definition: FEDNumbering.h:27
FEDNumbering::MAXTriggerLTCmtccFEDID
Definition: FEDNumbering.h:70
FEDNumbering::MINDTTFFEDID
Definition: FEDNumbering.h:57
FEDNumbering::MINSiPixeluTCAFEDID
Definition: FEDNumbering.h:105
std
Definition: JetResolutionObject.h:76
FEDNumbering::MAXCSCTFFEDID
Definition: FEDNumbering.h:54
FEDNumbering::MAXDTTFFEDID
Definition: FEDNumbering.h:58
FEDNumbering::MINHCALFEDID
Definition: FEDNumbering.h:47
FEDNumbering::MINCSCDDUFEDID
Definition: FEDNumbering.h:89
FEDNumbering::MAXTriggerLTCFEDID
Definition: FEDNumbering.h:68
FEDNumbering::MINTriggerLTCFEDID
Definition: FEDNumbering.h:67
FEDNumbering::MAXRPCFEDID
Definition: FEDNumbering.h:60
FEDNumbering::MINCSCTFFEDID
Definition: FEDNumbering.h:53
FEDNumbering::MAXHCALFEDID
Definition: FEDNumbering.h:48
FEDNumbering::MAXDTUROSFEDID
Definition: FEDNumbering.h:112
FEDNumbering::MAXECALFEDID
Definition: FEDNumbering.h:44
FEDNumbering::MAXTriggerUpgradeFEDID
Definition: FEDNumbering.h:114
FEDNumbering::MINTriggerLTCmtccFEDID
Definition: FEDNumbering.h:69
FEDNumbering::MINCSCTFSPFEDID
Definition: FEDNumbering.h:93
FEDNumbering::MINTriggerGTPFEDID
Definition: FEDNumbering.h:61
FEDNumbering::MINSiStripFEDID
Definition: FEDNumbering.h:29