GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
TObjectWrapper.h
Go to the documentation of this file.
1// Author: Ryan Dunlop 10/16
2
3/** \addtogroup GRSIProof
4 * @{
5 */
6
7#ifndef TOBJECTWRAPPER_H
8#define TOBJECTWRAPPER_H
9
10#include "Globals.h"
11
12#include <iostream>
13#include <sstream>
14#include <vector>
15#include <ctime>
16#include <fstream>
17#include <streambuf>
18
19#include "TFragment.h"
20
21/////////////////////////////////////////////////////////////////
22///
23/// \class TObjectWrapper
24///
25/// This Class allows proof to work with GRSI
26///
27///
28/////////////////////////////////////////////////////////////////
29
30template <typename T>
31class TObjectWrapper : public TObject {
32public:
33 explicit TObjectWrapper(T* ptr) : pT(ptr) {}
34 T* operator->() { return pT; }
35
36private:
37 T* pT;
38
39 /// \cond CLASSIMP
40 ClassDefOverride(TObjectWrapper, 1) // NOLINT(readability-else-after-return)
41 /// \endcond
42};
43/*! @} */
44#endif
TObjectWrapper(T *ptr)