PandaRoot
PndEmcPrecluster.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 PndEmcPreclusters. 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 PNDEMCPRECLUSTER_H
30 #define PNDEMCPRECLUSTER_H
31 
32 //----------------------
33 // Base Class Headers --
34 //----------------------
35 #include "PndEmcCluster.h"
36 #include "TObject.h"
37 
43 {
44 
45 public:
46 
47  // Constructors
49 
50  // Destructor
51  virtual ~PndEmcPrecluster();
52  //use compiler generated copy constructor
54  //PndEmcPrecluster(const PndEmcPrecluster& copy);
55 
56  // Modifiers
57  virtual void addDigi(const TClonesArray *digiArray, Int_t iDigi);
58 
59  // Getters
60 // const std::vector<Int_t> &DigiList() const {return fDigiList;};
61  Int_t GetNumberOfDigis() {return fDigiTimeArray.size();};
62  std::vector<Double_t> &GetMemberDigiTimes() {return fDigiTimeArray;};
63  std::vector<Double_t> &GetMemberDigiEnergies() {return fDigiEnergyArray;};
64  std::vector<Double_t> &GetMemberDigiXpos() {return fDigiXposArray;};
65  std::vector<Double_t> &GetMemberDigiYpos() {return fDigiYposArray;};
66  std::vector<Double_t> &GetMemberDigiZpos() {return fDigiZposArray;};
67 
68  virtual void SetDigiPositionType(Int_t type=-1) { fDigiPosType = type; } // select whether to use mapped or real digi position
69 
70 
71 protected:
72  // Data members
73  std::vector<Double_t> fDigiTimeArray;
74  std::vector<Double_t> fDigiEnergyArray;
75  std::vector<Double_t> fDigiXposArray;
76  std::vector<Double_t> fDigiYposArray;
77  std::vector<Double_t> fDigiZposArray;
78 
79  Int_t fDigiPosType;
80 
81  ClassDef(PndEmcPrecluster,1)
82 private:
83  PndEmcPrecluster& operator=(const PndEmcPrecluster& rv);
84 };
85 #endif // PNDEMCPRECLUSTER_HH
std::vector< Double_t > & GetMemberDigiTimes()
std::vector< Double_t > & GetMemberDigiYpos()
std::vector< Double_t > & GetMemberDigiEnergies()
std::vector< Double_t > fDigiTimeArray
std::vector< Double_t > & GetMemberDigiXpos()
std::vector< Double_t > fDigiXposArray
std::vector< Double_t > fDigiZposArray
virtual void SetDigiPositionType(Int_t type=-1)
std::vector< Double_t > fDigiYposArray
represents an emc precluster, formed in the (virtual) data concentrators
virtual void addDigi(const TClonesArray *digiArray, Int_t iDigi)
std::vector< Double_t > & GetMemberDigiZpos()
std::vector< Double_t > fDigiEnergyArray
virtual ~PndEmcPrecluster()