ATLAS Offline Software
Loading...
Searching...
No Matches
RpcOnlineDBEntry.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
6#include <stdlib.h>
7#include <iostream>
8#include <sstream>
9#include <algorithm>
10
11namespace MuonCalib{
12
13 // initialize from whole string read from file
14
15 RpcOnlineDBEntry::RpcOnlineDBEntry(uint64_t theID, uint64_t mask1, uint64_t mask2, uint64_t mask3):m_mask1(mask1), m_mask2(mask2), m_mask3(mask3), m_id(theID) {
16 }
17
18 uint64_t RpcOnlineDBEntry::getID() const {
19
20 return m_id;
21
22 }
23
24 void RpcOnlineDBEntry::getColumns(std::string &mask1, std::string &mask2,std::string &mask3) const{
25
26 std::ostringstream mask1_str,mask2_str,mask3_str;
27
28 mask1_str<<std::hex<<m_mask1<<std::dec;
29 mask2_str<<std::hex<<m_mask2<<std::dec;
30 mask3_str<<std::hex<<m_mask3<<std::dec;
31
32
33 mask1=mask1_str.str();
34 mask2=mask2_str.str();
35 mask3=mask3_str.str();
36
37 // std::cout<<"giving columns are "<<
38
39 }
40
41}// End namespace MuonCalib
static const uint32_t mask3
void getColumns(std::string &mask1, std::string &mask2, std::string &mask3) const
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.