Hall A ROOT/C++ Analyzer (podd)
Loading...
Searching...
No Matches
THaPostProcess.cxx
Go to the documentation of this file.
1
//
2
// abstract class to optionally handle the raw buffer of
3
// EVERY EVENT (regardless of type) that comes through
4
// the pipeline/
5
6
#include "
THaPostProcess.h
"
7
#include "
TList.h
"
8
9
TList
*
THaPostProcess::fgModules
=
nullptr
;
10
11
using namespace
std
;
12
13
//_____________________________________________________________________________
14
THaPostProcess::THaPostProcess
() : fIsInit(0)
15
{
16
// Constructor
17
18
if
( !
fgModules
)
fgModules
=
new
TList
;
19
fgModules
->
Add
(
this
);
20
21
// Tell analyzer not to use the return code from Process by default
22
// (backwards compatibility for existing modules)
23
ResetBit
(
kUseReturnCode
);
24
}
25
26
//_____________________________________________________________________________
27
THaPostProcess::~THaPostProcess
()
28
{
29
// Destructor
30
31
fgModules
->
Remove
(
this
);
32
if
(
fgModules
->
GetSize
() == 0 ) {
33
delete
fgModules
;
fgModules
=
nullptr
;
34
}
35
}
36
37
//_____________________________________________________________________________
38
ClassImp
(
THaPostProcess
)
THaPostProcess.h
TList.h
TCollection::GetSize
virtual Int_t GetSize() const
THaPostProcess
Definition
THaPostProcess.h:11
THaPostProcess::kUseReturnCode
@ kUseReturnCode
Definition
THaPostProcess.h:19
THaPostProcess::THaPostProcess
THaPostProcess()
Definition
THaPostProcess.cxx:14
THaPostProcess::~THaPostProcess
virtual ~THaPostProcess()
Definition
THaPostProcess.cxx:27
THaPostProcess::fgModules
static TList * fgModules
Definition
THaPostProcess.h:24
TList
TList::Add
void Add(TObject *obj) override
TList::Remove
TObject * Remove(const TObjLinkPtr_t &lnk)
TObject::ResetBit
void ResetBit(UInt_t f)
std
STL namespace.
ClassImp
ClassImp(TPyArg)
Podd
THaPostProcess.cxx
Generated by
1.9.8