#include <ecalDigi.h>
Definition at line 13 of file ecalDigi.h.
◆ ecalDigi() [1/3]
Default constructor
— Default constructor ------------------------------------------------—
Definition at line 18 of file ecalDigi.cxx.
19 : FairTask(),
25{
27}
std::map< Int_t, Float_t > fChannelMap
◆ ecalDigi() [2/3]
ecalDigi::ecalDigi |
( |
const char * |
name, |
|
|
Int_t |
iVerbose |
|
) |
| |
Standard constructor. Use this
— Standard constructor. Use this -------------------------------------—
Definition at line 30 of file ecalDigi.cxx.
31 : FairTask(name, iVerbose),
37{
39}
◆ ~ecalDigi()
Destructor
— Destructor ---------------------------------------------------------—
Definition at line 127 of file ecalDigi.cxx.
◆ ecalDigi() [3/3]
Map: channel number -> ADC channel in GeV.
◆ ClassDef()
◆ Exec()
void ecalDigi::Exec |
( |
Option_t * |
option | ) |
|
|
virtual |
Executed task
— Executed task ------------------------------------------------------—
Definition at line 91 of file ecalDigi.cxx.
92{
94 list<ecalCell*> cells;
96 list<ecalCell*>::const_iterator
p=cells.begin();
97 Short_t adc;
98
99 for(;
p!=cells.end();++
p)
100 {
101 cell=(*p);
104 else
106 {
107 Error(
"Exec",
"Channel %d not found in map. Using default value!", cell->
GetCellNumber());
108
110 }
111 else
112 {
114 }
118 }
119}
Int_t GetCellNumber() const
void SetEnergy(Float_t energy)
Float_t GetEnergy() const
void GetCells(std::list< ecalCell * > &cells) const
◆ Finish()
void ecalDigi::Finish |
( |
| ) |
|
|
virtual |
Finish task
— Finish task --------------------------------------------------------—
Definition at line 122 of file ecalDigi.cxx.
◆ GetADCChannel()
Float_t ecalDigi::GetADCChannel |
( |
| ) |
const |
|
inline |
◆ GetADCMax()
Short_t ecalDigi::GetADCMax |
( |
| ) |
const |
|
inline |
◆ GetADCNoise()
Float_t ecalDigi::GetADCNoise |
( |
| ) |
const |
|
inline |
◆ GetPedestal()
Short_t ecalDigi::GetPedestal |
( |
| ) |
const |
|
inline |
◆ Init()
InitStatus ecalDigi::Init |
( |
| ) |
|
|
virtual |
Initialization of the task
— Initialization of the task -----------------------------------------—
Definition at line 66 of file ecalDigi.cxx.
67{
68 FairRootManager* manager=FairRootManager::Instance();
69 if (!manager)
70 {
71 Fatal("Init()", "Can't find IOManager.");
72 return kFATAL;
73 }
74
77 {
78 Fatal("Init()", "Can't find calorimeter structure in the system.");
79 return kFATAL;
80 }
81
82 return kSUCCESS;
83}
◆ InitPython()
◆ LoadChannelMap()
void ecalDigi::LoadChannelMap |
( |
const char * |
filename | ) |
|
— Ugly load of map channel number -> ADC channel from the file -------—
Definition at line 42 of file ecalDigi.cxx.
43{
44 map<Int_t, Float_t>
tmp;
49 Float_t adc;
50
52 for(;;)
53 {
54 f >>
ch;
if (
f.eof())
break;
55 f >> adc;
if (
f.eof())
break;
58 }
59 if (fVerbose>999)
60 Info("LoadChannelMap", "%d records read", i);
63}
void SetChannelMap(std::map< Int_t, Float_t > map)
◆ operator=()
◆ SetADCChannel()
void ecalDigi::SetADCChannel |
( |
Float_t |
adcchannel = 1.0e-3 | ) |
|
|
inline |
◆ SetADCMax()
void ecalDigi::SetADCMax |
( |
Short_t |
adcmax = 16384 | ) |
|
|
inline |
◆ SetADCNoise()
void ecalDigi::SetADCNoise |
( |
Float_t |
adcnoise = 1.0e-3 | ) |
|
|
inline |
◆ SetChannelMap()
void ecalDigi::SetChannelMap |
( |
std::map< Int_t, Float_t > |
map | ) |
|
|
inline |
◆ SetPedestal()
void ecalDigi::SetPedestal |
( |
Short_t |
ped = 80 | ) |
|
|
inline |
◆ fADCChannel
Float_t ecalDigi::fADCChannel |
|
private |
◆ fADCMax
Short_t ecalDigi::fADCMax |
|
private |
◆ fADCNoise
Float_t ecalDigi::fADCNoise |
|
private |
◆ fChannelMap
std::map<Int_t, Float_t> ecalDigi::fChannelMap |
|
private |
◆ fPedestal
Short_t ecalDigi::fPedestal |
|
private |
◆ fStr
The documentation for this class was generated from the following files: