Project
Loading...
Searching...
No Matches
HalfSAMPAData.cxx
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
14
16#include <fairlogger/Logger.h>
17
18using namespace o2::tpc;
19
24
26 : mID(id), mLow(low)
27// , mData(16,0)
28{
29}
30
31HalfSAMPAData::HalfSAMPAData(int id, bool low, std::array<short, 16>& data)
32 : mID(id), mLow(low)
33{
34 // if (data.size() != 16)
35 // LOG(error) << "Vector does not contain 16 elements.";
36
37 mData = data;
38}
39
41
42std::ostream& HalfSAMPAData::Print(std::ostream& output) const
43{
44 // for (int i = mLow ? 0 : 16 ; i < (mLow ? 16 : 32); ++i)
45 // {
46 // output << "Channel " << i << ": " << mData[i] << std::endl;
47 // }
48
49 output
50 << mData[0] << "\t"
51 << mData[1] << "\t"
52 << mData[2] << "\t"
53 << mData[3] << "\t"
54 << mData[4] << "\t"
55 << mData[5] << "\t"
56 << mData[6] << "\t"
57 << mData[7] << "\t"
58 << mData[8] << "\t"
59 << mData[9] << "\t"
60 << mData[10] << "\t"
61 << mData[11] << "\t"
62 << mData[12] << "\t"
63 << mData[13] << "\t"
64 << mData[14] << "\t"
65 << mData[15];
66 return output;
67}
Class for data from one half SAMPA.
void output(const std::map< std::string, ChannelStat > &channels)
Definition rawdump.cxx:197
Class to store data from one half SAMPA.
std::ostream & Print(std::ostream &output) const
HalfSAMPAData()
Default constructor.
~HalfSAMPAData()
Destructor.
GLboolean * data
Definition glcorearb.h:298
GLuint id
Definition glcorearb.h:650
Global TPC definitions and constants.
Definition SimTraits.h:167