ATLAS Offline Software
Loading...
Searching...
No Matches
RFileChecker.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef XAODROOTACCESS_TOOLS_RFILECHECKER_H
8#define XAODROOTACCESS_TOOLS_RFILECHECKER_H
9
10// System include(s):
11#include <set>
12#include <string>
13
14// ROOT include(s):
15#include <TObject.h>
16
17// Local include(s):
20
21// Forward declaration(s):
22namespace SG {
23 class AuxVectorBase;
24}
25
26namespace xAOD {
27
28 namespace Experimental {
29
30 // Forward declaration(s):
31 class REvent;
32
41 class ATLAS_NOT_THREAD_SAFE RFileChecker : public ::TObject {
42
43 public:
46
48 StatusCode check( REvent& event );
49
51 void setStopOnError( ::Bool_t value );
53 ::Bool_t stopOnError() const;
54
56 void addIgnoredVariable( const std::string& name );
58 void setIgnoredVariables( const std::set< std::string >& value );
60 const std::set< std::string >& ignoredVariables() const;
61
62 private:
65 const std::string& name );
66
68 ::Bool_t m_stopOnError;
70 std::set< std::string > m_ignoredVariables;
71
73 std::set< std::string > m_orpannedContainers;
74
76
77 }; // class RFileChecker
78
79 } // namespace Experimental
80
81
82} // namespace xAOD
83
84#endif // XAODROOTACCESS_TOOLS_RFILECHECKER_H
std::vector< size_t > vec
Define macros for attributes used to control the static checker.
Manage index tracking and synchronization of auxiliary data.
Tool for accessing xAOD files outside of Athena, version RNTuple.
Definition REvent.h:28
Tool for running sanity checks on xAOD files.
void setStopOnError(::Bool_t value)
Set whether the validation should stop when an error is found.
const std::set< std::string > & ignoredVariables() const
Get the list of variables which are ignored in the test.
RFileChecker()
Default constructor.
std::set< std::string > m_ignoredVariables
List of variables to ignore in the test.
std::set< std::string > m_orpannedContainers
List of containers without an auxiliary store.
void addIgnoredVariable(const std::string &name)
Add a variable to be ignored in the test.
::Bool_t stopOnError() const
Check whether the validation will stop when an error is found.
StatusCode check(REvent &event)
Execute all sanity checks on a given file.
StatusCode checkContainer(const SG::AuxVectorBase &vec, const std::string &name)
Check the health of a container.
::Bool_t m_stopOnError
Stop the validation when an issue is found?
void setIgnoredVariables(const std::set< std::string > &value)
Set the list of variables to be ignored in the test.
Forward declaration.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
void ErrorHandler ATLAS_NOT_THREAD_SAFE(Int_t level, Bool_t abort, const char *location, const char *message)
Function filtering the warnings coming from ROOT.
Definition Init.cxx:105