ATLAS Offline Software
Loading...
Searching...
No Matches
TFileChecker.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef XAODROOTACCESS_TOOLS_TFILECHECKER_H
8#define XAODROOTACCESS_TOOLS_TFILECHECKER_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 // Forward declaration(s):
29 class TEvent;
30
39 class ATLAS_NOT_THREAD_SAFE TFileChecker : public ::TObject {
40
41 public:
44
46 StatusCode check( TEvent& event );
47
49 void setStopOnError( ::Bool_t value );
51 ::Bool_t stopOnError() const;
52
54 void addIgnoredVariable( const std::string& name );
56 void setIgnoredVariables( const std::set< std::string >& value );
58 const std::set< std::string >& ignoredVariables() const;
59
60 private:
63 const std::string& name );
64
66 ::Bool_t m_stopOnError;
68 std::set< std::string > m_ignoredVariables;
69
71 std::set< std::string > m_orpannedContainers;
72
73 ClassDef( xAOD::TFileChecker, 0 )
74
75 }; // class TFileChecker
76
77} // namespace xAOD
78
79#endif // XAODROOTACCESS_TOOLS_TFILECHECKER_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.
Tool for running sanity checks on xAOD files.
const std::set< std::string > & ignoredVariables() const
Get the list of variables which are ignored in the test.
StatusCode checkContainer(const SG::AuxVectorBase &vec, const std::string &name)
Check the health of a container.
void addIgnoredVariable(const std::string &name)
Add a variable to be ignored in the test.
void setIgnoredVariables(const std::set< std::string > &value)
Set the list of variables to be ignored in the test.
::Bool_t stopOnError() const
Check whether the validation will stop when an error is found.
std::set< std::string > m_ignoredVariables
List of variables to ignore in the test.
::Bool_t m_stopOnError
Stop the validation when an issue is found?
TFileChecker()
Default constructor.
StatusCode check(TEvent &event)
Execute all sanity checks on a given file.
std::set< std::string > m_orpannedContainers
List of containers without an auxiliary store.
void setStopOnError(::Bool_t value)
Set whether the validation should stop when an error is found.
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