228 // only selected pair types in case of data
229 if(!IsPairTypeSelected(pairIndex) || fEventArray) return;
231 // get event and pair variables
232 Double_t valuesPair[PairAnalysisVarManager::kNMaxValuesMC];
233 PairAnalysisVarManager::SetFillMap(fUsedVars);
234 PairAnalysisVarManager::Fill(particle,valuesPair);
236 // get leg variables (TODO: do not fill for the moment since leg cuts are not opened)
237 Double_t valuesLeg1[PairAnalysisVarManager::kNMaxValuesMC]={0};
238 if(fVarCutType->CountBits()) PairAnalysisVarManager::Fill(particle->GetFirstDaughter(),valuesLeg1);
239 Double_t valuesLeg2[PairAnalysisVarManager::kNMaxValuesMC]={0};
240 if(fVarCutType->CountBits()) PairAnalysisVarManager::Fill(particle->GetSecondDaughter(),valuesLeg2);
244 // if pair types are filled, fill mc sources at the end
246 if(fPairType!=kMConly) istep=PairAnalysis::kSEPMRot+1;
248 // mc source steps (only OS SE pairs)
249 if(fHasMC && fSignalsMC && pairIndex==PairAnalysis::kSEPM) {
250 for(Int_t i=0; i<fSignalsMC->GetEntriesFast(); i++) {
252 Fill(istep+i, valuesPair, valuesLeg1, valuesLeg2);
256 // all pair types w/o use of mc information
257 if(fPairType==kMConly) return;
262 Fill(pairIndex, valuesPair, valuesLeg1, valuesLeg2);
333 for(Int_t i=0; i<tmp->GetEntriesFast(); i++) {
334 PairAnalysisHistos::FillValues(tmp->At(i), valuesPair);
336 // Debug(10,Form("Fill var %d %s value %f in %s \n",fVar,PairAnalysisVarManager::GetValueName(fVar),valuesPair[fVar],tmp->GetName()));
356 for (Int_t icell = 0; icell <
size; icell++) {
362 Int_t nvars =
fAxes.GetEntriesFast();
363 for (Int_t ivar = 0; ivar < nvars; ivar++) {
366 TVectorD* bins =
static_cast<TVectorD*
>(
fAxes.At(ivar));
367 Int_t nbins = bins->GetNrows() - 1;
373 for (Int_t icell = 0; icell <
size; icell++) {
376 Int_t ibin = (icell / sizeAdd) % nbins;
377 Double_t lowEdge = (*bins)[ibin];
378 Double_t upEdge = (*bins)[ibin + 1];
382 if (!ivar) title =
"";
385 if (
fVarCutType->TestBitNumber(ivar)) title +=
"Leg";
387 title += Form(
"#%.2f#%.2f", lowEdge, upEdge);
388 static_cast<THashList*
>(
fArrDielHistos.UncheckedAt(icell))->SetName(title.Data());