57 StatusCode
sc = 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;
98 for (
const CaloCell* cell : *cluster) {
99 int sampling = cell->caloDDE()->getSampling();
102 case CaloCell_ID::PreSamplerB:
103 case CaloCell_ID::PreSamplerE:
106 case CaloCell_ID::EMB1:
107 case CaloCell_ID::EME1:
110 case CaloCell_ID::EMB2:
111 case CaloCell_ID::EME2:
114 case CaloCell_ID::EMB3:
115 case CaloCell_ID::EME3:
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];