#include <ecalPrepare.h>
Definition at line 13 of file ecalPrepare.h.
◆ ecalPrepare() [1/3]
ecalPrepare::ecalPrepare |
( |
| ) |
|
Default constructor
— Default constructor ------------------------------------------------—
Definition at line 17 of file ecalPrepare.cxx.
18 : FairTask(),
23{
25}
std::map< Int_t, Float_t > fChannelMap
◆ ecalPrepare() [2/3]
ecalPrepare::ecalPrepare |
( |
const char * |
name, |
|
|
Int_t |
iVerbose |
|
) |
| |
Standard constructor. Use this
— Standard constructor. Use this -------------------------------------—
Definition at line 28 of file ecalPrepare.cxx.
29 : FairTask(name, iVerbose),
34{
36}
◆ ~ecalPrepare()
ecalPrepare::~ecalPrepare |
( |
| ) |
|
|
virtual |
Destructor
— Destructor ---------------------------------------------------------—
Definition at line 123 of file ecalPrepare.cxx.
◆ ecalPrepare() [3/3]
Map: channel number -> ADC channel in GeV.
◆ ClassDef()
◆ Exec()
void ecalPrepare::Exec |
( |
Option_t * |
option | ) |
|
|
virtual |
Executed task
— Executed task ------------------------------------------------------—
Definition at line 88 of file ecalPrepare.cxx.
89{
91 list<ecalCell*> cells;
93 list<ecalCell*>::const_iterator
p=cells.begin();
94 Short_t adc;
95
96 for(;
p!=cells.end();++
p)
97 {
98 cell=(*p);
103 else
105 {
106 Error(
"Exec",
"Channel %d not found in map. Using default value!", cell->
GetCellNumber());
107
109 }
110 else
111 {
113 }
114 }
115}
Int_t GetCellNumber() const
void SetEnergy(Float_t energy)
void GetCells(std::list< ecalCell * > &cells) const
◆ Finish()
void ecalPrepare::Finish |
( |
| ) |
|
|
virtual |
Finish task
— Finish task --------------------------------------------------------—
Definition at line 118 of file ecalPrepare.cxx.
◆ GetADCChannel()
Float_t ecalPrepare::GetADCChannel |
( |
| ) |
const |
|
inline |
◆ GetADCMax()
Short_t ecalPrepare::GetADCMax |
( |
| ) |
const |
|
inline |
◆ GetPedestal()
Short_t ecalPrepare::GetPedestal |
( |
| ) |
const |
|
inline |
◆ Init()
InitStatus ecalPrepare::Init |
( |
| ) |
|
|
virtual |
Initialization of the task
— Initialization of the task -----------------------------------------—
Definition at line 63 of file ecalPrepare.cxx.
64{
65 FairRootManager* manager=FairRootManager::Instance();
66 if (!manager)
67 {
68 Fatal("Init()", "Can't find IOManager.");
69 return kFATAL;
70 }
71
74 {
75 Fatal("Init()", "Can't find calorimeter structure in the system.");
76 return kFATAL;
77 }
78
79 return kSUCCESS;
80}
◆ InitPython()
◆ LoadChannelMap()
void ecalPrepare::LoadChannelMap |
( |
const char * |
filename | ) |
|
— Ugly load of map channel number -> ADC channel from the file -------—
Definition at line 39 of file ecalPrepare.cxx.
40{
41 map<Int_t, Float_t>
tmp;
46 Float_t adc;
47
49 for(;;)
50 {
51 f >>
ch;
if (
f.eof())
break;
52 f >> adc;
if (
f.eof())
break;
55 }
56 if (fVerbose>999)
57 Info("LoadChannelMap", "%d records read", i);
60}
void SetChannelMap(std::map< Int_t, Float_t > map)
◆ operator=()
◆ SetADCChannel()
void ecalPrepare::SetADCChannel |
( |
Float_t |
adcchannel = 1.0e-3 | ) |
|
|
inline |
◆ SetADCMax()
void ecalPrepare::SetADCMax |
( |
Short_t |
adcmax = 16384 | ) |
|
|
inline |
◆ SetChannelMap()
void ecalPrepare::SetChannelMap |
( |
std::map< Int_t, Float_t > |
map | ) |
|
|
inline |
◆ SetPedestal()
void ecalPrepare::SetPedestal |
( |
Short_t |
ped = 80 | ) |
|
|
inline |
◆ fADCChannel
Float_t ecalPrepare::fADCChannel |
|
private |
◆ fADCMax
Short_t ecalPrepare::fADCMax |
|
private |
◆ fChannelMap
std::map<Int_t, Float_t> ecalPrepare::fChannelMap |
|
private |
◆ fPedestal
Short_t ecalPrepare::fPedestal |
|
private |
◆ fStr
The documentation for this class was generated from the following files: