|
ATLAS Offline Software
|
Go to the documentation of this file.
24 for(; itr!=itr_e; ++itr) {
25 const unsigned int channel = (*itr).first;
29 std::string
file = *(
static_cast<const std::string*
>((atr[
"file"]).addressOfData()));
30 std::string
data = *(
static_cast<const std::string*
>((atr[
"data"]).addressOfData()));
31 std::string
version = *(
static_cast<const std::string*
>((atr[
"version"]).addressOfData()));
32 std::string
type = *(
static_cast<const std::string*
>((atr[
"type"]).addressOfData()));
56 const int numberOfCoincidenceType = 4;
59 { 0, 1, 2, 2, 3, 4, 5, 5, 6, 7, 8, 8 };
61 {
"0a",
"1a",
"2a",
"2b",
"3a",
"4a",
"5a",
"5b",
"6a",
"7a",
"8a",
"8b"};
64 {
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7"};
65 const std::string coincidenceTypeName[numberOfCoincidenceType] = {
"HH",
"HL",
"LH",
"LL"};
79 uint32_t phimod2 = moduleName[iModule].find(
'b') != std::string::npos ? 1 : 0;
83 for(
int iCoinType=0; iCoinType!=numberOfCoincidenceType; iCoinType++){
87 fn =
"RPhiCoincidenceMapRun3_" + sideName[iSide] + octantName[iOctant]
88 + moduleName[iModule] + coincidenceTypeName[iCoinType] +
".db";
90 fn =
"RPhiCoincidenceMapRun3_" + moduleName[iModule] + coincidenceTypeName[iCoinType] +
".db";
93 bool Forward_type1=(moduleName[iModule]==
"2b"||moduleName[iModule]==
"5a"||moduleName[iModule]==
"8b");
94 bool Forward_type2=(moduleName[iModule]==
"2a"||moduleName[iModule]==
"5b"||moduleName[iModule]==
"8a");
96 if(iOctant%2==0 && Forward_type1){
continue;}
97 if(iOctant%2==1 && Forward_type2){
continue;}
99 int lDR, hDR, lDPhi, hDPhi;
109 std::istringstream
header(buf);
112 header >> roi >> lDR >> hDR >> lDPhi >> hDPhi;
128 uint32_t theaddr = octaddr + modaddr + cwaddr + draddr + iphi;
130 if (
pt ==
'X')
continue;
159 return (ssid+(modid<<8)+(phimod2<<12) + (
type<<16) );
static constexpr uint8_t PHIMOD2_MASK
Mask for extracting the phi(F or B) from the GLOBALADDR.
char data[hepevt_bytes_allocation_ATLAS]
const_iterator end() const
std::vector< std::string > m_file[LUT_NUM]
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
TGCTriggerBWCWReader(int lutType)
std::unordered_map< uint32_t, int8_t > m_ptmap_bw
const_iterator begin() const
Access to Chan/AttributeList pairs via iterators.
std::string getData(int cwtype, std::string file) const
This class is a collection of AttributeLists where each one is associated with a channel number....
static constexpr uint8_t ROI_SHIFT
Bit position of the module number bits in the GLOBALADDR.
static constexpr uint8_t TYPE_SHIFT
Bit position of the octant bits in the GLOBALADDR.
std::string getType(int cwtype, int channel=0) const
int subSectorAdd(int ssid, int modid, int phimod2, int type) const
int getType(int lDR, int hDR, int lDPhi, int hDPhi) const
static constexpr uint8_t DR_MASK
Mask for extracting the deltaR from the GLOBALADDR.
static constexpr uint8_t DPHI_HIGH_RANGE
Range of DPhi in the BW coincidence window for 3-station.
static constexpr uint8_t OCTANT_MASK
Mask for extracting the octant from the GLOBALADDR.
static constexpr uint8_t DR_HIGH_RANGE
Range of DR in the BW coincidence window for 3-station.
Class to provide easy MsgStream access and capabilities.
std::vector< std::string > m_type[LUT_NUM]
std::vector< std::string > m_data[LUT_NUM]
static constexpr uint8_t DR_SHIFT
Bit position of the deltaR bits in the GLOBALADDR.
static constexpr uint8_t OCTANT_SHIFT
Bit position of the octant bits in the GLOBALADDR.
std::vector< std::string > m_version[LUT_NUM]
static constexpr uint8_t MODULE_MASK
Mask for extracting the module number from the GLOBALADDR.
static constexpr uint8_t SIDE_SHIFT
Bit position of the side bit in the GLOBALADDR.
bool loadParameters(TGCTriggerLUTs *writeCdo, const CondAttrListCollection *readKey) override
int ir
counter of the current depth
ChanAttrListMap::const_iterator const_iterator
static constexpr uint8_t TYPE_MASK
Mask for extracting the octant from the GLOBALADDR.
static constexpr uint8_t SIDE_MASK
Mask for extracting the side from the GLOBALADDR.
bool readLUT(TGCTriggerLUTs *writeCdo) override
static constexpr uint8_t MODULE_SHIFT
Bit position of the module number bits in the GLOBALADDR.
std::map< std::string, std::string > m_datamap[LUT_NUM]
static constexpr uint8_t ROI_MASK
Mask for extracting the module number from the GLOBALADDR.
static constexpr uint8_t PHIMOD2_SHIFT
Bit position of the module number bits in the GLOBALADDR.