CbmRoot
Loading...
Searching...
No Matches
CbmTrdModuleRec.cxx
Go to the documentation of this file.
1/* Copyright (C) 2018-2021 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Florian Uhlig [committer] */
4
5#include "CbmTrdModuleRec.h"
6
7#include <TClonesArray.h>
8
9//_______________________________________________________________________________
12 , fCalled(0)
13 , fClusters(new TClonesArray("CbmTrdCluster", 100))
14 , fHits(new TClonesArray("CbmTrdHit", 100))
15{
16}
17
18//_______________________________________________________________________________
19CbmTrdModuleRec::CbmTrdModuleRec(Int_t mod, Int_t ly, Int_t rot)
20 : CbmTrdModuleAbstract(mod, ly, rot)
21 , fCalled(0)
22 , fClusters(new TClonesArray("CbmTrdCluster", 100))
23 , fHits(new TClonesArray("CbmTrdHit", 100))
24{
25}
26
27//_______________________________________________________________________________
29{
30 if (fHits) {
31 fHits->Delete();
32 delete fHits;
33 }
34 if (fClusters) {
35 fClusters->Delete();
36 delete fClusters;
37 }
38}
39
40//_______________________________________________________________________________
41void CbmTrdModuleRec::Clear(Option_t* opt)
42{
43 fCalled++;
44 if (strcmp(opt, "hit") == 0 && fHits) fHits->Clear();
45 if (strcmp(opt, "cls") == 0 && fClusters) fClusters->Clear();
46}
47
ClassImp(CbmConverterManager)
Abstract class for the TRD module It provides access to the basic properties of the chamber as follow...
Abstract class for module wise cluster finding and hit reconstruction.
virtual ~CbmTrdModuleRec()
virtual void Clear(Option_t *opt="")
Clear local storage.
CbmTrdModuleRec()
Default constructor.
UInt_t fCalled
counter for the number of calls
TClonesArray * fClusters
module wise storage of reconstructed cluster
TClonesArray * fHits
module wise storage of reconstructed hits