Project
Loading...
Searching...
No Matches
HmpidDecodeRawFile.h
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
18
19
#ifndef COMMON_HMPIDDECODERAWFILE_H_
20
#define COMMON_HMPIDDECODERAWFILE_H_
21
22
#include <ctype.h>
23
#include <stdio.h>
24
#include <stdlib.h>
25
#include <unistd.h>
26
#include <string.h>
27
#include <unistd.h>
28
29
#include "
HMPIDReconstruction/HmpidDecoder.h
"
30
31
#define MAXFILENAMEBUFFER 512
32
#define MAXRAWFILEBUFFER RAWBLOCKDIMENSION_W * 4 + 8
33
34
namespace
o2
35
{
36
namespace
hmpid
37
{
38
39
class
HmpidDecodeRawFile
:
public
HmpidDecoder
40
{
41
public
:
42
HmpidDecodeRawFile
(
int
* EqIds,
int
* CruIds,
int
* LinkIds,
int
numOfEquipments);
43
HmpidDecodeRawFile
(
int
numOfEquipments);
44
~HmpidDecodeRawFile
();
45
46
bool
setUpStream
(
void
* InpuFileName,
long
Size
);
47
48
private
:
49
bool
getBlockFromStream(uint32_t** streamPtr, uint32_t
Size
);
50
bool
getHeaderFromStream(uint32_t** streamPtr);
51
bool
getWordFromStream(uint32_t* word);
52
int
fileExists(
char
* filewithpath);
53
void
setPad(
HmpidEquipment
* eq,
int
col
,
int
dil,
int
ch, uint16_t
charge
);
54
55
private
:
56
FILE* fh;
57
char
mInputFile[
MAXFILENAMEBUFFER
];
58
uint32_t mFileBuffer[
MAXRAWFILEBUFFER
];
59
};
60
61
}
// namespace hmpid
62
}
// namespace o2
63
#endif
/* COMMON_HMPIDDECODERAWFILE_H_ */
charge
int16_t charge
Definition
RawEventData.h:5
MAXRAWFILEBUFFER
#define MAXRAWFILEBUFFER
Definition
HmpidDecodeRawFile.h:32
MAXFILENAMEBUFFER
#define MAXFILENAMEBUFFER
Definition
HmpidDecodeRawFile.h:31
HmpidDecoder.h
Base Class to decode HMPID Raw Data stream.
col
uint32_t col
Definition
RawData.h:4
Measurement::Size
@ Size
o2::hmpid::HmpidDecodeRawFile
Definition
HmpidDecodeRawFile.h:40
o2::hmpid::HmpidDecodeRawFile::~HmpidDecodeRawFile
~HmpidDecodeRawFile()
Destructor.
Definition
HmpidDecodeRawFile.cxx:48
o2::hmpid::HmpidDecodeRawFile::setUpStream
bool setUpStream(void *InpuFileName, long Size)
Definition
HmpidDecodeRawFile.cxx:59
o2::hmpid::HmpidDecoder
Definition
HmpidDecoder.h:55
o2::hmpid::HmpidEquipment
Definition
HmpidEquipment.h:67
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
BitstreamReader.h:24
Detectors
HMPID
reconstruction
include
HMPIDReconstruction
HmpidDecodeRawFile.h
Generated on Tue Feb 25 2025 23:16:18 for Project by
1.9.8