R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BNeulandQCalFiller.cxx
Go to the documentation of this file.
1
/******************************************************************************
2
* Copyright (C) 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH *
3
* Copyright (C) 2019-2025 Members of R3B Collaboration *
4
* *
5
* This software is distributed under the terms of the *
6
* GNU General Public Licence (GPL) version 3, *
7
* copied verbatim in the file "LICENSE". *
8
* *
9
* In applying this license GSI does not waive the privileges and immunities *
10
* granted to it by virtue of its status as an Intergovernmental Organization *
11
* or submit itself to any jurisdiction. *
12
******************************************************************************/
13
14
#include "
R3BNeulandQCalFiller.h
"
15
#include "
R3BEventHeader.h
"
16
#include "
R3BNeulandTacquilaMappedData.h
"
17
#include "TClonesArray.h"
18
#include <FairRootManager.h>
19
20
R3BNeulandQCalFiller::R3BNeulandQCalFiller
()
21
{
22
data =
new
TClonesArray(
"R3BNeulandTacquilaMappedData"
, 100);
23
header =
new
R3BEventHeader
();
24
}
25
26
R3BNeulandQCalFiller::~R3BNeulandQCalFiller
()
27
{
28
delete
data;
29
delete
header;
30
}
31
32
InitStatus
R3BNeulandQCalFiller::Init
()
33
{
34
FairRootManager::Instance()->Register(
"NeulandTacquilaMappedData"
,
"Neuland"
, data, kTRUE);
35
FairRootManager::Instance()->Register(
"R3BEventHeader"
,
""
, header, kTRUE);
36
return
kSUCCESS;
37
}
38
39
void
R3BNeulandQCalFiller::Exec
(Option_t* option)
40
{
41
Int_t value;
42
i++;
43
for
(Int_t j = 0; j < 100; j++)
44
{
45
value = j + 100;
46
if
(i > 5000)
47
value += std::rand() % 10 - 5;
48
new
((*data)[j])
R3BNeulandTacquilaMappedData
(0, 0, 0, value, 1, j / 2 + 1, j % 2 + 1);
49
}
50
header =
new
(header)
R3BEventHeader
();
51
header->
SetTrigger
(2);
52
}
53
54
ClassImp
(
R3BNeulandQCalFiller
)
R3BEventHeader.h
ClassImp
ClassImp(R3B::Neuland::Cal2HitPar)
R3BNeulandQCalFiller.h
R3BNeulandTacquilaMappedData.h
R3BEventHeader
Definition
R3BEventHeader.h:20
R3BEventHeader::SetTrigger
void SetTrigger(const int trigger)
Definition
R3BEventHeader.h:28
R3BNeulandQCalFiller
Definition
R3BNeulandQCalFiller.h:23
R3BNeulandQCalFiller::~R3BNeulandQCalFiller
~R3BNeulandQCalFiller()
Definition
R3BNeulandQCalFiller.cxx:26
R3BNeulandQCalFiller::Exec
virtual void Exec(Option_t *option)
Definition
R3BNeulandQCalFiller.cxx:39
R3BNeulandQCalFiller::Init
virtual InitStatus Init()
Definition
R3BNeulandQCalFiller.cxx:32
R3BNeulandQCalFiller::R3BNeulandQCalFiller
R3BNeulandQCalFiller()
Definition
R3BNeulandQCalFiller.cxx:20
R3BNeulandTacquilaMappedData
Definition
R3BNeulandTacquilaMappedData.h:21
neuland
calibration
legacy
R3BNeulandQCalFiller.cxx
Generated by
1.13.2