FairRoot/PandaRoot
PndEmcSharedDigi.h
Go to the documentation of this file.
1 //--------------------------------------------------------------------------
2 // File and Version Information:
3 // $Id: EmcSharedDigi.hh,v 1.3 2005/11/15 01:20:20 steinke Exp $
4 //
5 // Description:
6 // Class Template for EmcClBump
7 //
8 // Environment:
9 // Software developed for the BaBar Detector at the SLAC B-Factory.
10 //
11 // Adapted for the PANDA experiment at GSI
12 //
13 // Author List:
14 // Stephen J. Gowdy University of Edinburgh
15 //
16 // History (add to end):
17 // S.J. Gowdy 19June96 - Created to inherit from EmcCluster
18 //
19 //------------------------------------------------------------------------
20 //#pragma once
21 #ifndef PNDEMCSHAREDDIGI_H
22 #define PNDEMCSHAREDDIGI_H
23 
24 //-------------------------------
25 // Collaborating Class Headers --
26 //-------------------------------
27 #include "PndEmcDigi.h"
28 
29 
35 {
36 
37 public:
38 
39  // Constructors
40  PndEmcSharedDigi( const PndEmcDigi &theDigi, const Double_t weight );
41  PndEmcSharedDigi( const PndEmcSharedDigi &theDigi );
43 
44  // Destructor
45 
46  virtual ~PndEmcSharedDigi();
47 
48  // Unowned clone
49  virtual PndEmcDigi* clone() const;
50 
51  // Operators
52  virtual void weight( Double_t newWeight );
53 
54  // Selectors (const)
55  virtual Double_t GetEnergy() const {return fEnergy*fWeight;}
56  virtual Double_t weight() const {return fWeight;}
57 
58  // Dynamic Cast methods
60  virtual const PndEmcSharedDigi* dynamic_cast_PndEmcSharedDigi() const;
61 
62 
63 private:
64 
66 
68 
70 };
71 
72 #endif // PNDEMCSHAREDDIGI_HH
represents the reconstructed hit of one emc crystal
Definition: PndEmcDigi.h:40
Double_t fEnergy
Definition: PndEmcDigi.h:124
Double_t
PndEmcSharedDigi & operator=(const PndEmcSharedDigi &)
used to share PndEmcDigis between bumps
ClassDef(PndEmcSharedDigi, 2)
virtual Double_t GetEnergy() const
virtual ~PndEmcSharedDigi()
virtual Double_t weight() const
virtual PndEmcSharedDigi * dynamic_cast_PndEmcSharedDigi()
virtual PndEmcDigi * clone() const