ATLAS Offline Software
Loading...
Searching...
No Matches
TVirtualManager.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef XAODROOTACCESS_TOOLS_TVIRTUALMANAGER_H
8#define XAODROOTACCESS_TOOLS_TVIRTUALMANAGER_H
9
10// ROOT include(s):
11#include <Rtypes.h>
12
13namespace xAOD {
14
25
26 public:
28 virtual ~TVirtualManager() {}
29
31 virtual ::Int_t getEntry( ::Int_t getall = 0 ) = 0;
32
34 virtual const void* object() const = 0;
36 virtual void* object() = 0;
38 virtual void setObject( void* obj ) = 0;
39
41 virtual ::Bool_t create() = 0;
43 virtual ::Bool_t isSet() const = 0;
45 virtual void reset() = 0;
46
47 }; // class TVirtualManager
48
49} // namespace xAOD
50
51#endif // XAODROOTACCESS_TOOLS_TVIRTUALMANAGER_H
Interface class for the "manager classes".
virtual void setObject(void *obj)=0
Function replacing the object being handled.
virtual void * object()=0
Function getting a pointer to the object being handled.
virtual::Bool_t create()=0
Create the object for the current event.
virtual void reset()=0
Reset the object at the end of processing of an event.
virtual ~TVirtualManager()
Virtual destructor, to make vtable happy...
virtual::Bool_t isSet() const =0
Check if the object was set for the current event.
virtual const void * object() const =0
Function getting a const pointer to the object being handled.
virtual::Int_t getEntry(::Int_t getall=0)=0
Function for updating the object in memory if needed.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.