NCFS-Pack
A generic (astro)particle physics analysis framework
 
Loading...
Searching...
No Matches
NcCalmodule.cxx
Go to the documentation of this file.
1
31
33
46
47#include "NcCalmodule.h"
48#include "Riostream.h"
49
50ClassImp(NcCalmodule); // Class implementation to enable ROOT I/O
51
54{
60
61 fRow=0;
62 fCol=0;
63 fSigc=0;
64}
65
74
76{
82
83 fRow=m.fRow;
84 fCol=m.fCol;
85 fSigc=m.fSigc;
86}
87
88NcCalmodule::NcCalmodule(Int_t row,Int_t col,Double_t sig) : NcSignal()
89{
95
96 fRow=row;
97 fCol=col;
99 fSigc=sig;
100}
101
103{
109
110 fRow=i;
111}
112
114{
120
121 fCol=i;
122}
123
124void NcCalmodule::SetSignal(Double_t sig,Int_t j)
125{
132
133 NcSignal::SetSignal(sig,j);
134 if (j==1) fSigc=sig;
135}
136
137void NcCalmodule::AddSignal(Double_t sig,Int_t j)
138{
145
146 NcSignal::AddSignal(sig,j);
147 if (j==1) fSigc+=sig;
148}
149
151{
157
158 fSigc=sig;
159}
160
162{
168
169 return fRow;
170}
171
173{
179
180 return fCol;
181}
182
184{
190
191 Int_t dead=GetDeadValue();
192 if (!dead)
193 {
194 return fSigc;
195 }
196 else
197 {
198 return 0;
199 }
200}
201
202TObject* NcCalmodule::Clone(const char* name) const
203{
216
217 NcCalmodule* m=new NcCalmodule(*this);
218 if (name)
219 {
220 if (strlen(name)) m->SetName(name);
221 }
222 return m;
223}
224
ClassImp(NcCalmodule)
Int_t GetDeadValue(Int_t j=1) const
Description of a module in a calorimeter system.
Definition NcCalmodule.h:11
Float_t GetClusteredSignal() const
Int_t GetRow() const
void SetColumn(Int_t i)
Float_t fSigc
Definition NcCalmodule.h:32
Int_t GetColumn() const
virtual ~NcCalmodule()
virtual void AddSignal(Double_t sig, Int_t j=1)
void SetRow(Int_t i)
virtual void SetSignal(Double_t sig, Int_t j=1)
virtual TObject * Clone(const char *name="") const
void SetClusteredSignal(Double_t val)
virtual void SetSignal(Double_t sig, Int_t j=1)
Definition NcSignal.cxx:516
NcSignal(const char *name="", const char *title="")
Definition NcSignal.cxx:155
virtual void AddSignal(Double_t sig, Int_t j=1)
Definition NcSignal.cxx:583