Project
Loading...
Searching...
No Matches
FileMetaData.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
13
14#ifndef _ALICEO2_FILE_METADATA_H
15#define _ALICEO2_FILE_METADATA_H
16
17#include <string>
18#include <vector>
19#include <cstdint>
20
21namespace o2
22{
23namespace framework
24{
25class DataTakingContext;
26}
27namespace dataformats
28{
29
30struct FileMetaData { // https://docs.google.com/document/d/1nH9EZEFBSpuZwOWs3RBcfy-6aRChgAqClBv6G06MjH4/edit
31 std::string LHCPeriod{}; // 1, LHC data taking period + detector name, in case of individual detector data stream, required
32 std::string lurl{}; // 3, the local EPN path to the CTF or calibration file, required
33 std::string type{}; // 4, raw or calib or other; default is other, optional
34 std::string guid{}; // 7, default is auto-generated, optional
35 std::string surl{}; // 8, the remote storage path where we store the data file, optional
36 std::string curl{}; // 9, the Grid catalogue path, optional
37 std::string md5{}; // 10, default the checksum of the lurl file; only filled after a successful transfer, if needed, optional
38 std::string xxhash{}; // 11, default calculated from the lurl file, only filled after a successful transfer, if needed, optional
39 std::string seName{}; // 12, default is taken from the configuration file, optional
40 std::string seioDaemons{}; // 13, default is taken from the configuration file, optional
41 std::string priority{}; // 14, low or high; default is low, optional
42 std::string detComposition{}; // 17, contains a list of detectors, optional
43 std::string run{}; // 2, run number, required
44 long ctime{}; // 5, default the timestamp of the lurl file, optional
45 size_t size{}; // 6, default the size of the lurl file, optional
46 int persistent{}; // 16, default is forever, optional
47 std::vector<uint32_t> tfOrbits; // 15, comma-sep. list of 1st orbits of TFs, optional
48 bool fillFileData(const std::string& fname, bool fillmd5 = false, const std::string& tmpEnding = "");
50 std::string asString() const;
51};
52
53std::ostream& operator<<(std::ostream& stream, const FileMetaData& m);
54
55} // namespace dataformats
56} // namespace o2
57
58#endif
const GLfloat * m
Definition glcorearb.h:4066
GLsizeiptr size
Definition glcorearb.h:659
GLint GLint GLsizei GLint GLenum GLenum type
Definition glcorearb.h:275
GLuint GLuint stream
Definition glcorearb.h:1806
std::ostream & operator<<(std::ostream &os, const o2::dataformats::MeanVertexObject &o)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::string asString() const
bool fillFileData(const std::string &fname, bool fillmd5=false, const std::string &tmpEnding="")
std::vector< uint32_t > tfOrbits
void setDataTakingContext(const o2::framework::DataTakingContext &dtc)