26.8.2011 Kamil Sedlak
- implementataion of volume "TubeWithHolePlusTubeHole" - some other changes in musrSimAna
This commit is contained in:
@ -575,12 +575,20 @@ void musrAnalysis::ReadInInputParameters(char* charV1190FileName) {
|
||||
funct -> SetParameter(1,p1);
|
||||
funct -> SetParameter(2,p2);
|
||||
}
|
||||
else if (strcmp(functionName,"gaus")==0) {
|
||||
std::cout<<"Gausssssssss"<<std::endl;
|
||||
funct = new TF1("gaus","gaus");
|
||||
funct -> SetParameter(0,p0);
|
||||
funct -> SetParameter(1,p1);
|
||||
funct -> SetParameter(2,p2);
|
||||
std::cout<<"GausssssssssGausssssssss"<<std::endl;
|
||||
}
|
||||
else {
|
||||
std::cout<<"musrAnalysis::ReadInInputParameters: function \""<<functionName<<"\" not defined! ==> S T O P"<<std::endl;
|
||||
exit(1);
|
||||
}
|
||||
|
||||
musrTH* tmpHistograms;
|
||||
musrTH* tmpHistograms=NULL;
|
||||
for(std::list<musrTH*>::const_iterator it = listOfAllHistograms1D.begin(); it != listOfAllHistograms1D.end(); ++it) {
|
||||
if ((*it)->IsThisHistoNamed(histoName)) {
|
||||
tmpHistograms = *it;
|
||||
@ -1005,6 +1013,13 @@ void musrAnalysis::FillHistograms(Int_t iiiEntry) {
|
||||
// }
|
||||
|
||||
// CALCULATE VARIABLES
|
||||
// Initial muon
|
||||
muIniPosR = sqrt(muIniPosX*muIniPosX+muIniPosY*muIniPosY);
|
||||
muIniMomTrans = sqrt(muIniMomX*muIniMomX+muIniMomY*muIniMomY);
|
||||
muTargetPol_Theta = myAtan2(sqrt(muTargetPolX*muTargetPolX+muTargetPolY*muTargetPolY),muTargetPolZ) * 180./pi;
|
||||
muTargetPol_Theta360 = (muTargetPol_Theta<0) ? muTargetPol_Theta+360. : muTargetPol_Theta;
|
||||
muTargetPol_Phi = myAtan2(muTargetPolY,muTargetPolX) * 180./pi;
|
||||
muTargetPol_Phi360= (muTargetPol_Phi<0) ? muTargetPol_Phi+360. : muTargetPol_Phi;
|
||||
// Initial positron
|
||||
pos_Trans_Momentum = sqrt(posIniMomX*posIniMomX+posIniMomY*posIniMomY);
|
||||
pos_Momentum = sqrt(pos_Trans_Momentum*pos_Trans_Momentum+posIniMomZ*posIniMomZ);
|
||||
|
Reference in New Issue
Block a user