PandaRoot
PndSdsTask.h
Go to the documentation of this file.
1
//****************************************************************************
2
//* This file is part of PandaRoot. *
3
//* *
4
//* PandaRoot is distributed under the terms of the *
5
//* GNU General Public License (GPL) version 3, *
6
//* copied verbatim in the file "LICENSE". *
7
//* *
8
//* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9
//* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10
//* The authors are listed in the file "AUTHORS". *
11
//****************************************************************************
12
13
/*
14
* PndSdsTask.h
15
*
16
* Created on: Jul 7, 2010
17
* Author: stockman
18
*/
19
20
#ifndef PNDSDSTASK_H_
21
#define PNDSDSTASK_H_
22
#include <
PndPersistencyTask.h
>
23
#include "FairRootManager.h"
24
25
#include <iostream>
26
27
class
PndSdsTask
:
public
PndPersistencyTask
{
28
public
:
29
PndSdsTask
();
30
31
PndSdsTask
(
const
char
*name, Int_t iVerbose = 1)
32
:
PndPersistencyTask
(name, iVerbose),
fInBranchName
(
""
),
fOutBranchName
(
""
),
fFolderName
(
""
),
fInBranchId
(-1),
fOutBranchId
(-1){};
33
virtual
~PndSdsTask
();
34
35
virtual
void
SetBranchNames
() = 0;
36
virtual
void
SetInBranchId
()
37
{
38
FairRootManager *ioman = FairRootManager::Instance();
39
fInBranchId
= ioman->GetBranchId(
fInBranchName
);
40
fOutBranchId
= ioman->GetBranchId(
fOutBranchName
);
41
std::cout <<
"InBranchId: "
<<
fInBranchId
<<
" for Branch: "
<<
fInBranchName
.Data() << std::endl;
42
std::cout <<
"OutBranchId: "
<<
fOutBranchId
<<
" for Branch: "
<<
fOutBranchName
.Data() << std::endl;
43
}
44
45
protected
:
46
TString
fInBranchName
;
47
TString
fOutBranchName
;
48
TString
fFolderName
;
49
50
Int_t
fInBranchId
;
51
Int_t
fOutBranchId
;
52
53
ClassDef
(
PndSdsTask
, 1);
54
};
55
56
#endif
/* PNDSDSTASK_H_ */
PndSdsTask::ClassDef
ClassDef(PndSdsTask, 1)
PndSdsTask::fInBranchId
Int_t fInBranchId
Definition:
PndSdsTask.h:50
PndPersistencyTask.h
PndSdsTask::fOutBranchName
TString fOutBranchName
Definition:
PndSdsTask.h:47
PndSdsTask::PndSdsTask
PndSdsTask(const char *name, Int_t iVerbose=1)
Definition:
PndSdsTask.h:31
PndSdsTask::fOutBranchId
Int_t fOutBranchId
Definition:
PndSdsTask.h:51
PndSdsTask::fInBranchName
TString fInBranchName
Definition:
PndSdsTask.h:46
PndSdsTask::SetBranchNames
virtual void SetBranchNames()=0
PndPersistencyTask
Definition:
PndPersistencyTask.h:32
PndSdsTask::fFolderName
TString fFolderName
Definition:
PndSdsTask.h:48
PndSdsTask
Definition:
PndSdsTask.h:27
PndSdsTask::PndSdsTask
PndSdsTask()
PndSdsTask::~PndSdsTask
virtual ~PndSdsTask()
PndSdsTask::SetInBranchId
virtual void SetInBranchId()
Definition:
PndSdsTask.h:36
home
gitlab-runner
builds
Vxspf1vo
0
PandaRootGroup
PandaRoot
detectors
sds
PndSdsTask.h
Generated on Fri Nov 29 2024 06:04:44 for PandaRoot by
1.8.13