CbmRoot
Loading...
Searching...
No Matches
CbmMvdSensorPlugin.cxx
Go to the documentation of this file.
1
/* Copyright (C) 2012-2015 Institut fuer Kernphysik, Goethe-Universitaet Frankfurt, Frankfurt
2
SPDX-License-Identifier: GPL-3.0-only
3
Authors: Michael Deveaux, Philipp Sitzmann [committer], Florian Uhlig */
4
5
// -------------------------------------------------------------------------
6
// ----- CbmMvdSensorPlugin source file -----
7
// ----- Created 02.02.2012 by M. Deveaux -----
8
// -------------------------------------------------------------------------
9
#include "
CbmMvdSensorPlugin.h
"
10
11
#include "TH1.h"
12
13
// ----- Default constructor -------------------------------------------
14
CbmMvdSensorPlugin::CbmMvdSensorPlugin
()
15
: TObject()
16
, fNextPlugin(nullptr)
17
, fPreviousPlugin(nullptr)
18
, bFlag(false)
19
, initialized(kFALSE)
20
, fShowDebugHistos(kFALSE)
21
, fName(
"CbmMvdSensorPlugin"
)
22
, fPluginIDNumber(-1)
23
{
24
}
25
// -------------------------------------------------------------------------
26
// ----- constructor -------------------------------------------
27
CbmMvdSensorPlugin::CbmMvdSensorPlugin
(
const
char
* name)
28
: TObject()
29
, fNextPlugin(nullptr)
30
, fPreviousPlugin(nullptr)
31
, bFlag(false)
32
, initialized(kFALSE)
33
, fShowDebugHistos(kFALSE)
34
, fName(name)
35
, fPluginIDNumber(-1)
36
{
37
}
38
// -------------------------------------------------------------------------
39
40
TH1*
CbmMvdSensorPlugin::GetHistogram
(UInt_t number)
41
{
42
if
(
fHistoArray
) {
43
if
(number < (UInt_t)
fHistoArray
->GetEntriesFast()) {
return
(TH1*)
fHistoArray
->At(number); }
44
}
45
return
0;
46
}
47
48
// ----- Destructor ----------------------------------------------------
49
CbmMvdSensorPlugin::~CbmMvdSensorPlugin
() {}
50
// -------------------------------------------------------------------------
51
52
53
ClassImp
(
CbmMvdSensorPlugin
)
ClassImp
ClassImp(CbmConverterManager)
CbmMvdSensorPlugin.h
CbmMvdSensorPlugin
Definition
CbmMvdSensorPlugin.h:39
CbmMvdSensorPlugin::GetHistogram
virtual TH1 * GetHistogram(UInt_t number)
Definition
CbmMvdSensorPlugin.cxx:40
CbmMvdSensorPlugin::~CbmMvdSensorPlugin
virtual ~CbmMvdSensorPlugin()
Definition
CbmMvdSensorPlugin.cxx:49
CbmMvdSensorPlugin::fHistoArray
TObjArray * fHistoArray
Definition
CbmMvdSensorPlugin.h:94
CbmMvdSensorPlugin::CbmMvdSensorPlugin
CbmMvdSensorPlugin()
Definition
CbmMvdSensorPlugin.cxx:14
core
detectors
mvd
plugins
CbmMvdSensorPlugin.cxx
Generated on Sun Dec 22 2024 23:04:09 for CbmRoot by
1.12.0