PandaRoot
BSEmcSubCluster.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 #ifndef BSEMCSUBCLUSTER_HH
14 #define BSEMCSUBCLUSTER_HH
15 
16 #include <string> // for string
17 
18 #include "Rtypes.h" // for BSEmcSubCluster::Class, BSEmcSubCluster::S...
19 #include "RtypesCore.h" // for Int_t
20 
21 #include "BSEmcCluster.h" // for BSEmcCluster
22 #include "BSEmcDataBranchNames.h"
23 
24 class TBuffer;
25 class TClass;
26 class TMemberInspector;
27 
33 class BSEmcSubCluster : public BSEmcCluster {
34 
35  public:
36  // Constructors
38  BSEmcSubCluster(const BSEmcSubCluster &t_other);
39 
40  // Destructor
41  virtual ~BSEmcSubCluster();
42 
43  Int_t GetParentClusterIndex() const { return fClusterIndex; }
44  void SetParentClusterIndex(Int_t clusterIndex) { fClusterIndex = clusterIndex; }
45  Int_t GetCentralCrystalId() const { return fCentralCrystalId; }
46  void SetCentralCrystalId(Int_t centralCrystal) { fCentralCrystalId = centralCrystal; }
47 
48  protected:
49  // Data members
50  Int_t fClusterIndex{-1}; // Index of cluster the subcluster is made off in TClonesArray
51  Int_t fCentralCrystalId{-1};
52 
53  private:
54  ClassDef(BSEmcSubCluster, 2)
55 };
56 #endif /*BSEMCSUBCLUSTER_HH*/
void SetCentralCrystalId(Int_t centralCrystal)
a cluster (group of neighboring crystals) of hit emc crystals
Definition: BSEmcCluster.h:66
void SetParentClusterIndex(Int_t clusterIndex)
Int_t GetCentralCrystalId() const
Int_t GetParentClusterIndex() const
virtual ~BSEmcSubCluster()
represents a reconstructed (splitted) emc cluster