Offline_Class_ROOT_Template_README.h
Go to the documentation of this file.
1 // replace %c% with the class name
2 // replace %n% with the namespace name
3 
4 #ifndef _io_%c%_ROOT_h_ // don't use pragma once
5 #define _io_%c%_ROOT_h_
6 
7 #ifndef __CINT__
8 # include <%n%/%c%.h>
9 #endif
10 #include <io/EventIO.h>
11 #include <any_other_ROOT_class_needed.h>
12 #include <Rtypes.h>
13 
14 
15 namespace io {
16 
24  class %c%_ROOT {
25 
26  public:
27  %c%_ROOT() { } // don't use = default since root 5 cint doesn't understand it
28 #if you_have_pointer_data_members
29  ~%c%_ROOT(); // needs to be implemented with deletes
30  %c%_ROOT(const %c%_ROOT& c) { *this = c; }
31  %c%_ROOT& operator=(const %c%_ROOT& c); // needs to be implemented with deep copy
32 #endif
33 #ifndef __CINT__ // hide the converted constructor and converter streamer from root
34  %c%_ROOT(const %n%::%c%& h); // this converts offline object to _ROOT object
35  void operator>>(%n%::%c%& h) const; // this converts _ROOT object >> offline object
36 #endif
37 
38  ClassDefNV(%c%_ROOT, DONT_CHANGE_THIS_NUMBER);
39 
40  };
41 
42 }
43 
44 
45 #endif
void operator>>(const fevt::Eye &, TEyeEvent &)
#define DONT_CHANGE_THIS_NUMBER
Definition: EventIO.h:21

, generated on Tue Sep 26 2023.