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
15#include "R3BEventHeader.h"
17#include "TClonesArray.h"
18#include <FairRootManager.h>
19
21{
22 data = new TClonesArray("R3BNeulandTacquilaMappedData", 100);
23 header = new R3BEventHeader();
24}
25
27{
28 delete data;
29 delete header;
30}
31
33{
34 FairRootManager::Instance()->Register("NeulandTacquilaMappedData", "Neuland", data, kTRUE);
35 FairRootManager::Instance()->Register("R3BEventHeader", "", header, kTRUE);
36 return kSUCCESS;
37}
38
39void 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
ClassImp(R3B::Neuland::Cal2HitPar)
void SetTrigger(const int trigger)
virtual void Exec(Option_t *option)
virtual InitStatus Init()