19.5.2011 Kamil Sedlak
1) bug fix in musrAnalysis.cxx for rotation reference frame causing some memory leak 2) Implementing prompt peak variables and conditions (usefull only for investigations of the origin of the prompt peak). 3) Updating the documentation describing changes in point 2)
This commit is contained in:
@ -143,6 +143,14 @@ Double_t musrTH::GetBinContent1D(Int_t i, Int_t jBin) {
|
||||
return value;
|
||||
}
|
||||
//==============================================================================================
|
||||
Int_t musrTH::GetXmin1D() {
|
||||
return int(histArray1D[0]->GetXaxis()->GetXmin());
|
||||
}
|
||||
//==============================================================================================
|
||||
Int_t musrTH::GetXmax1D() {
|
||||
return int(histArray1D[0]->GetXaxis()->GetXmax());
|
||||
}
|
||||
//==============================================================================================
|
||||
Int_t musrTH::GetNbinsX1D() {
|
||||
return histArray1D[0]->GetNbinsX();
|
||||
}
|
||||
@ -171,7 +179,8 @@ void musrTH::FillHumanDecayArray(musrTH* decayMapHistos, humanDecayMapType myMap
|
||||
}
|
||||
|
||||
// // if (iHumanBinForAllTheRest != -1) {
|
||||
for (Int_t j=1; j<= (decayMapHistos->GetNbinsX1D()); j++) {
|
||||
// for (Int_t j=1; j<= (decayMapHistos->GetNbinsX1D()); j++) {
|
||||
for (Int_t j=(decayMapHistos->GetXmin1D()); j<= (decayMapHistos->GetXmax1D()); j++) {
|
||||
Double_t value = decayMapHistos->GetBinContent1D(i,j);
|
||||
Bool_t thisBinWasAssigned=false;
|
||||
if (value!=0) {
|
||||
@ -180,8 +189,10 @@ void musrTH::FillHumanDecayArray(musrTH* decayMapHistos, humanDecayMapType myMap
|
||||
if (iDecayHistoBin==j) thisBinWasAssigned=true;
|
||||
}
|
||||
}
|
||||
if ((!thisBinWasAssigned)&&(value!=0)) {
|
||||
std::cout<<"musrHT.cxx: Some muons stoped and decayed in detector no. "<<j<<", but this bin is not assighned to humanDecayHistogram"<<std::endl;
|
||||
if ((!thisBinWasAssigned)&&(value!=0)&&(j!=-1001)) { // in case of pileup histo, -1001 is assigned
|
||||
// if there was no pileup muon. Avoid printing error in this case.
|
||||
std::cout<<"musrHT.cxx: "<<value<<" muons stoped and decayed in detector no. "<<j
|
||||
<<", but this bin is not assigned to humanDecayHistogram "<<i<<std::endl;
|
||||
// Double_t value2 = histArray1D[i]-> GetBinContent(XXXX);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user