FairRoot/PandaRoot
PndEmcSharedDigi.cxx
Go to the documentation of this file.
1 //--------------------------------------------------------------------------
2 // File and Version Information:
3 // $Id:$
4 //
5 // Description:
6 // Class Template for EmcSharedDigi. Inherits from EmcDigi
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 //------------------------------------------------------------------------
17 
18 //-----------------------
19 // This Class's Header --
20 //-----------------------
21 #include "PndEmcSharedDigi.h"
22 
23 #include <iostream>
24 
25 //----------------
26 // Constructors --
27 //----------------
28 PndEmcSharedDigi::PndEmcSharedDigi( const PndEmcDigi &theDigi, const double w )
29  : PndEmcDigi( theDigi ),
30  fWeight( w )
31 {
32 }
33 
35  : PndEmcDigi( theDigi ),
36  fWeight( theDigi.fWeight )
37 {
38 }
39 
41 {}
42 //--------------
43 // Destructor --
44 //--------------
45 
47 {
48 }
49 
52 {
53  return new PndEmcSharedDigi(*this);
54 }
55 
56 //-------------
57 // Operators --
58 //-------------
59 void
60 PndEmcSharedDigi::weight( double newWeight )
61 {
62  fWeight = newWeight;
63 }
64 
65 //-------------
66 // Selectors --
67 //-------------
68 
71 {
72  return this;
73 }
74 
75 const PndEmcSharedDigi*
77 {
78  return this;
79 }
80 
represents the reconstructed hit of one emc crystal
Definition: PndEmcDigi.h:40
used to share PndEmcDigis between bumps
virtual ~PndEmcSharedDigi()
ClassImp(PndAnaContFact)
virtual Double_t weight() const
virtual PndEmcSharedDigi * dynamic_cast_PndEmcSharedDigi()
virtual PndEmcDigi * clone() const