/[PAMELA software]/ParDirCalc/QtoInclination.C
ViewVC logotype

Diff of /ParDirCalc/QtoInclination.C

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by cafagna, Thu Jan 17 16:15:13 2008 UTC revision 1.2 by pam-mep, Mon Jan 21 13:06:43 2008 UTC
# Line 331  void Calculate(char* dirname, string out Line 331  void Calculate(char* dirname, string out
331              ntr = 0;              ntr = 0;
332              if ((track->GetTrkTrack()->chi2<=0) || (track->GetTrkTrack()->chi2>=500)) ntr=-1;              if ((track->GetTrkTrack()->chi2<=0) || (track->GetTrkTrack()->chi2>=500)) ntr=-1;
333              for(Int_t ii=1;ii<=12;ii++){              for(Int_t ii=1;ii<=12;ii++){
334                  if ((track->GetToFTrack()->beta[i]<0) || (track->GetToFTrack()->beta[i]>99)) ntr=-1;                  if ((track->GetToFTrack()->beta[ii]<0) || (track->GetToFTrack()->beta[ii]>99)) ntr=-1;
335              }              }
336              if((track->GetTrkTrack()->GetNX()<=4)&&(track->GetTrkTrack()->GetNY()<4)) ntr=-1;              if((track->GetTrkTrack()->GetNX()<=4)&&(track->GetTrkTrack()->GetNY()<4)) ntr=-1;
337              if((M0DE!=0)&&(M0DE!=1)&&(M0DE!=6)&&(M0DE!=2)&&(M0DE!=3)&&(M0DE!=8)&&(M0DE!=4)) ntr=-1;              if((M0DE!=0)&&(M0DE!=1)&&(M0DE!=6)&&(M0DE!=2)&&(M0DE!=3)&&(M0DE!=8)&&(M0DE!=4)) ntr=-1;
338              if(sqrt(pow(Bx,2)+pow(By,2)+pow(Bz,2))<0.001) ntr=-1;              if(sqrt(pow(Bx,2)+pow(By,2)+pow(Bz,2))<0.001) ntr=-1;
339              if(rigev<0.600) ntr=-1;              //if(rigev<0.600) ntr=-1;
340                            
341              if(ntr!=-1 || PamExp){              if(ntr!=-1 || PamExp){
342                            
# Line 708  void Calculate(char* dirname, string out Line 708  void Calculate(char* dirname, string out
708      if(DiffHist){      if(DiffHist){
709    
710      c6->cd(1);      c6->cd(1);
711      DifNicoANdMeAzim->Draw();      DifDoTr2ANdaxvAzim->Draw();
712      c6->cd(2);      c6->cd(2);
713      DifNicoANdMeZenit->Draw();      DifDoTr2ANdaxvZenit->Draw();
714      c6->SaveAs((TString)outdir+"PIC001Diference.jpg");      c6->SaveAs((TString)outdir+"PIC001Diference.jpg");
715            
716      }      }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23