toRestFrame not available?

Asked by Gang Li

Dear MA5 Team,

I am analyzing the example t->b w -> b l v appeared in the tutorial.
And I notice some syntax has changed.
But I still do not how to use the member function toRestFrame.
Could you give me some hints?

Question information

Language:
English Edit question
Status:
Solved
For:
MadAnalysis 5 Edit question
Assignee:
No assignee Edit question
Solved by:
Benjamin Fuks
Solved:
Last query:
Last reply:
Revision history for this message
Best Benjamin Fuks (fuks) said :
#1

Hi,

Please have a look to the new manual for the expert mode:
  http://arxiv.org/abs/arXiv:1405.3982

Cheers,

Benjamin

Revision history for this message
Gang Li (ligangpku) said :
#2

Dear Benjamin,

I have modified my code:

 //Boosting the lepton four-momentum to the W rest frame
  MCParticleFormat lepton_new = *lepton;
  lepton_new.ToRestFrame(w);

  //Boosting the W four-momentum to the W rest frame
  MCParticleFormat w_new = *w;
  w_new.ToRestFrame(top);

  //Computing the observable; filling the histogram
  myHisto->Fill( cos(lepton_new.angle(w_new)) );

Now it seems to work, except for that I used ToRestFrame other than toRestFrame.

Cheers

Revision history for this message
Gang Li (ligangpku) said :
#3

Thanks Benjamin Fuks, that solved my question.