PandaRoot
BSEmcPrecluster.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 //--------------------------------------------------------------------------
14 // File and Version Information:
15 // $Id:$
16 //
17 // Description:
18 // Class BSEmcPreclusters. An extension of PndEmcCluster - for testing
19 // purposes only.
20 //
21 // Environment:
22 // Software developed for the BaBar Detector at the SLAC B-Factory.
23 // Adapted for the PANDA experiment at GSI
24 //
25 // Author List:
26 //
27 //------------------------------------------------------------------------
28 //#pragma once
29 #ifndef BSEMCPRECLUSTER_HH
30 #define BSEMCPRECLUSTER_HH
31 
32 #include <vector>
33 
34 #include "Rtypes.h" // for BSEmcPrecluster::Class, BSEmcPrecluster::S...
35 #include "RtypesCore.h" // for Double_t, Int_t
36 
37 #include "BSEmcCluster.h" // for BSEmcCluster
38 #include "BSEmcDataBranchNames.h"
39 
40 class TBuffer;
41 class TClass;
42 class TMemberInspector;
43 
44 //#include <vector> // for vector
45 
51 class BSEmcPrecluster : public BSEmcCluster {
52 
53  public:
54  void AddDigiInfo(Int_t t_digiIdx, Int_t t_detectorId, Double_t t_energy, Double_t t_time, Double_t t_x, Double_t t_y, Double_t t_z);
55 
56  Int_t GetNumberOfDigis() { return fDigiTimeArray.size(); };
57  std::vector<Double_t> &GetMemberDigiTimes() { return fDigiTimeArray; };
58  std::vector<Double_t> &GetMemberDigiEnergies() { return fDigiEnergyArray; };
59  std::vector<Double_t> &GetMemberDigiXpos() { return fDigiXposArray; };
60  std::vector<Double_t> &GetMemberDigiYpos() { return fDigiYposArray; };
61  std::vector<Double_t> &GetMemberDigiZpos() { return fDigiZposArray; };
62 
64  BSEmcPrecluster(const BSEmcPrecluster &t_other);
65  virtual ~BSEmcPrecluster();
66 
67  protected:
68  std::vector<Double_t> fDigiTimeArray;
69  std::vector<Double_t> fDigiEnergyArray;
70  std::vector<Double_t> fDigiXposArray;
71  std::vector<Double_t> fDigiYposArray;
72  std::vector<Double_t> fDigiZposArray;
73 
74  ClassDef(BSEmcPrecluster, 1)
75 };
76 #endif /*BSEMCPRECLUSTER_HH*/
std::vector< Double_t > & GetMemberDigiTimes()
represents an emc precluster, formed in the (virtual) data concentrators
std::vector< Double_t > fDigiXposArray
virtual ~BSEmcPrecluster()
std::vector< Double_t > fDigiEnergyArray
std::vector< Double_t > & GetMemberDigiEnergies()
a cluster (group of neighboring crystals) of hit emc crystals
Definition: BSEmcCluster.h:66
std::vector< Double_t > fDigiZposArray
std::vector< Double_t > fDigiTimeArray
void AddDigiInfo(Int_t t_digiIdx, Int_t t_detectorId, Double_t t_energy, Double_t t_time, Double_t t_x, Double_t t_y, Double_t t_z)
std::vector< Double_t > fDigiYposArray
std::vector< Double_t > & GetMemberDigiZpos()
std::vector< Double_t > & GetMemberDigiYpos()
std::vector< Double_t > & GetMemberDigiXpos()
Int_t GetNumberOfDigis()