PandaRoot
BSEmcPrecluster.h
Go to the documentation of this file.
1 //--------------------------------------------------------------------------
2 // File and Version Information:
3 // $Id:$
4 //
5 // Description:
6 // Class BSEmcPreclusters. An extension of PndEmcCluster - for testing
7 // purposes only.
8 //
9 // Environment:
10 // Software developed for the BaBar Detector at the SLAC B-Factory.
11 // Adapted for the PANDA experiment at GSI
12 //
13 // Author List:
14 //
15 //------------------------------------------------------------------------
16 //#pragma once
17 #ifndef BSEMCPRECLUSTER_HH
18 #define BSEMCPRECLUSTER_HH
19 
20 #include <vector>
21 
22 #include "Rtypes.h" // for BSEmcPrecluster::Class, BSEmcPrecluster::S...
23 #include "RtypesCore.h" // for Double_t, Int_t
24 
25 #include "BSEmcCluster.h" // for BSEmcCluster
26 #include "BSEmcDataBranchNames.h"
27 
28 class TBuffer;
29 class TClass;
30 class TMemberInspector;
31 
32 //#include <vector> // for vector
33 
39 class BSEmcPrecluster : public BSEmcCluster {
40 
41  public:
42  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);
43 
44  Int_t GetNumberOfDigis() { return fDigiTimeArray.size(); };
45  std::vector<Double_t> &GetMemberDigiTimes() { return fDigiTimeArray; };
46  std::vector<Double_t> &GetMemberDigiEnergies() { return fDigiEnergyArray; };
47  std::vector<Double_t> &GetMemberDigiXpos() { return fDigiXposArray; };
48  std::vector<Double_t> &GetMemberDigiYpos() { return fDigiYposArray; };
49  std::vector<Double_t> &GetMemberDigiZpos() { return fDigiZposArray; };
50 
52  BSEmcPrecluster(const BSEmcPrecluster &t_other);
53  virtual ~BSEmcPrecluster();
54 
55  protected:
56  std::vector<Double_t> fDigiTimeArray;
57  std::vector<Double_t> fDigiEnergyArray;
58  std::vector<Double_t> fDigiXposArray;
59  std::vector<Double_t> fDigiYposArray;
60  std::vector<Double_t> fDigiZposArray;
61 
62  ClassDef(BSEmcPrecluster, 1)
63 };
64 #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:54
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()