Project
Loading...
Searching...
No Matches
TPCSectorHeader.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
12#ifndef O2_TPCSECTORHEADER_H
13#define O2_TPCSECTORHEADER_H
14
15#include "Headers/DataHeader.h"
17
18namespace o2
19{
20namespace tpc
21{
22
26 // Required to do the lookup
27 constexpr static const o2::header::HeaderType sHeaderType = "TPCSectH";
28 static const uint32_t sVersion = 2;
29 static constexpr int NSectors = o2::tpc::constants::MAXSECTOR;
30
32 : BaseHeader(sizeof(TPCSectorHeader), sHeaderType, o2::header::gSerializationMethodNone, sVersion), sectorBits(((uint64_t)0x1) << s)
33 {
34 }
35
36 int sector() const
37 {
38 for (int s = 0; s < NSectors; s++) {
39 if ((sectorBits >> s) == 0x1) {
40 return s;
41 }
42 }
43 if (sectorBits != 0) {
44 return NSectors;
45 }
46 return -1;
47 }
48
50 union {
52 struct {
56 };
57 };
58};
59} // namespace tpc
60} // namespace o2
61
62#endif // O2_TPCSECTORHEADER_H
std::vector< std::string > header
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error s
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char Directory with events to Events directory is and not inside events Show standalone event Run event generator maximum time bin of continuous for triggered for automatic continuous for automatic continuous triggered uint64_t
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
the base header struct Every header type must begin (i.e. derive) with this. Don't use this struct di...
Definition DataHeader.h:354
static constexpr int NSectors
static constexpr const o2::header::HeaderType sHeaderType
static const uint32_t sVersion