Re-read the ASCII-file from batch_write_ntuple.C and make a bulk decay


{
    //Define an "empty" reaction
    PReaction my_reaction("eta_decays");
    
    PProjector *input = new PProjector();
    input->AddCommand("myeta = P3M(0.,0.,0.,eta.mass)");
    input->AddCommand("myeta->SetID(eta.pid)");
    input->AddInputASCII("eta_sample.txt", 
			 "readline{@px @py @pz @mass}; myeta->SetXYZM(px,py,pz,mass)");
    input->AddCommand("push(myeta)");
    my_reaction.AddPrologueBulk(input); //The "prolog" is done before the decay

    my_reaction.SetDecayAll(1.);
    
    my_reaction.Print();

    cout << my_reaction.Loop() << " events recovered" << endl;
}
 batch_read_ASCII.C:1
 batch_read_ASCII.C:2
 batch_read_ASCII.C:3
 batch_read_ASCII.C:4
 batch_read_ASCII.C:5
 batch_read_ASCII.C:6
 batch_read_ASCII.C:7
 batch_read_ASCII.C:8
 batch_read_ASCII.C:9
 batch_read_ASCII.C:10
 batch_read_ASCII.C:11
 batch_read_ASCII.C:12
 batch_read_ASCII.C:13
 batch_read_ASCII.C:14
 batch_read_ASCII.C:15
 batch_read_ASCII.C:16
 batch_read_ASCII.C:17
 batch_read_ASCII.C:18
 batch_read_ASCII.C:19
 batch_read_ASCII.C:20