PandaRoot
PndEmcAbsClusterProperty.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 //
16 // Description:
17 // Class EmcAbsClusterProperty.
18 //
19 // Environment:
20 // Software developed for the BaBar Detector at the SLAC B-Factory.
21 //
22 // Author List:
23 // Stephen J. Gowdy Originator
24 // Phil Strother Originator
25 //
26 // Copyright Information:
27 // Copyright (C) 1998 University of Edinburgh
28 //
29 //------------------------------------------------------------------------
30 //#pragma once
31 #ifndef PNDEMCABSCLUSTERPROPERTY_H
32 #define PNDEMCABSCLUSTERPROPERTY_H
33 
34 #include "TObject.h"
35 #include "PndEmcCluster.h"
36 
37 class PndEmcCluster;
38 class PndEmcDigi;
40 class TClonesArray;
41 
42 // ---------------------
43 // -- Class Interface --
44 // ---------------------
45 
46 class PndEmcAbsClusterProperty : public TObject {
47 
48  public:
49  // Constructors
50  PndEmcAbsClusterProperty(const PndEmcCluster &cluster, const TClonesArray *digiArray);
51 
52  // Destructor
53  virtual ~PndEmcAbsClusterProperty();
54 
55  protected:
56  // Helper functions
57  // Possible memory problems (FIXME)
58  const PndEmcCluster &MyCluster() const;
59  const std::map<Int_t, Int_t> &Members() const; // Map <detId,digiIndex>
60  const TClonesArray *DigiArray() const;
61 
62  PndEmcAbsClusterProperty(const PndEmcAbsClusterProperty &L) : TObject(L), fMyCluster(L.fMyCluster), fMembers(L.fMembers){};
64 
65  private:
66  // PndEmcAbsClusterProperty(const PndEmcAbsClusterProperty& L);
67  // PndEmcAbsClusterProperty &operator=(const PndEmcAbsClusterProperty&) {return *this;};
68  // PndEmc& operator= (const PndEmc&) {return *this;};
69  // Friends
70 
71  // Data members
72  const PndEmcCluster &fMyCluster;
73  const std::map<Int_t, Int_t> &fMembers; // Map <detId,digiIndex>
74  const TClonesArray *fDigiArray;
75 };
76 
77 #endif // PNDEMCABSCLUSTERPROPERTY_HH
PndEmcAbsClusterProperty & operator=(const PndEmcAbsClusterProperty &)
const std::map< Int_t, Int_t > & Members() const
stores crystal index coordinates (x,y) or (theta,phi)
const TClonesArray * DigiArray() const
PndEmcAbsClusterProperty(const PndEmcAbsClusterProperty &L)
const PndEmcCluster & MyCluster() const
PndEmcAbsClusterProperty(const PndEmcCluster &cluster, const TClonesArray *digiArray)
virtual ~PndEmcAbsClusterProperty()