Example #1
0
File: zha.C Project: SimTools/jsf
//*************************************************
//* Main part to generate qqbar event
//*************************************************
int zha()
{
  
  file = new TFile(outputfile,"RECREATE");  // Output file
  fin  = new TFile(inputfile);            // Input simulator data
  jsf  = new JSFSteer();
  gSystem->Load("libMyAnalysis.so");

  jsf->SetInput(*fin);
  jsf->SetOutput(*file);

  InitHist();                    // Initialize histogram

  jsf->Initialize();             // JSF Module initialization.

  jsf->BeginRun(1);      // Set run number to 1.
  for(Int_t ev=1;ev<=maxevt;ev++){
    Int_t ib;
    if( ! (ib=jsf->GetEvent(ev)) ) break ;
    if( ! jsf->Process(ev) ) break ;
    Analize(ev);        // Event selection and do histogram
  }

  jsf->Terminate();
  Terminate();           // Terminate process specific to this analysis

  file->Write();
}
Example #2
0
Command::Command(std::string command, unsigned int line = 0)
{
    Analize(command, line);
}
Example #3
0
void Dialog::on_Check_button_clicked()
{
    Analize();
}