|
ATLAS Offline Software
|
Go to the documentation of this file.
30 "Prefix to add to aux data items.");
32 "If true, don't complain if input objects are missing.");
34 "Getter instance for the input egamma objects.");
48 return StatusCode::SUCCESS;
61 #define DECOR(TYPE,N) xAOD::Egamma::Decorator<TYPE> N (m_auxPrefix + #N)
62 DECOR(
int, nbCells_s0LowGain);
63 DECOR(
int, nbCells_s0MedGain);
64 DECOR(
int, nbCells_s0HighGain);
66 DECOR(
int, nbCells_s1LowGain);
67 DECOR(
int, nbCells_s1MedGain);
68 DECOR(
int, nbCells_s1HighGain);
70 DECOR(
int, nbCells_s2LowGain);
71 DECOR(
int, nbCells_s2MedGain);
72 DECOR(
int, nbCells_s2HighGain);
74 DECOR(
int, nbCells_s3LowGain);
75 DECOR(
int, nbCells_s3MedGain);
76 DECOR(
int, nbCells_s3HighGain);
83 int cell_nbcells_gainlow[4];
84 int cell_nbcells_gainmed[4];
85 int cell_nbcells_gainhgh[4];
87 for(
int i=0;
i<4;
i++){
88 cell_nbcells_gainlow[
i]=0;
89 cell_nbcells_gainmed[
i]=0;
90 cell_nbcells_gainhgh[
i]=0;
99 int sampling =
cell->caloDDE()->getSampling();
122 if(
layer < 0)
continue;
124 switch(
cell->gain()){
125 case 0: cell_nbcells_gainhgh[
layer]++;
break;
126 case 1: cell_nbcells_gainmed[
layer]++;
break;
127 case 2: cell_nbcells_gainlow[
layer]++;
break;
134 nbCells_s0LowGain(*
eg) = cell_nbcells_gainlow[0];
135 nbCells_s0MedGain(*
eg) = cell_nbcells_gainmed[0];
136 nbCells_s0HighGain(*
eg) = cell_nbcells_gainhgh[0];
138 nbCells_s1LowGain(*
eg) = cell_nbcells_gainlow[1];
139 nbCells_s1MedGain(*
eg) = cell_nbcells_gainmed[1];
140 nbCells_s1HighGain(*
eg) = cell_nbcells_gainhgh[1];
142 nbCells_s2LowGain(*
eg) = cell_nbcells_gainlow[2];
143 nbCells_s2MedGain(*
eg) = cell_nbcells_gainmed[2];
144 nbCells_s2HighGain(*
eg) = cell_nbcells_gainhgh[2];
146 nbCells_s3LowGain(*
eg) = cell_nbcells_gainlow[3];
147 nbCells_s3MedGain(*
eg) = cell_nbcells_gainmed[3];
148 nbCells_s3HighGain(*
eg) = cell_nbcells_gainhgh[3];
virtual StatusCode initialize()
Standard Gaudi initialize method.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Number of cells with given gain by layer.
ToolHandle< ICollectionGetterTool > m_getter
Property: Getter for input egamma objects.
std::string m_auxPrefix
Property: Prefix to add to aux data items.
bool m_allowMissing
Property: If true, don't complain if input objects are missing.
Description of a calorimeter cluster.
Block filler tool for noisy FEB information.
::StatusCode StatusCode
StatusCode definition for legacy code.
#define CHECK(...)
Evaluate an expression and check for errors.
const CaloClusterCellLink * getCellLinks() const
Get a pointer to the CaloClusterCellLink object (const version)
Helpers for checking error return status codes and reporting errors.
Data object for each calorimeter readout cell.
egammaNbCellsGainAlg(const std::string &name, ISvcLocator *svcloc)
Standard Gaudi algorithm constructor.
virtual StatusCode execute()
Standard Gaudi execute method.