ctag()

Asked by xbyuan

Hi,

I generated a .lhco.gz file by MadGraph+Phythia+Delphes.

Then, in MadAnalysis(v1.3), I use the following command
./ma5 -R -E
, create the analysis file and source the setup.sh file.

When I use the "make" command, I get a error
SampleAnalyzer/User/Analyzer/gmZ_j.cpp:138:22: error: 'const class MA5::RecJetFormat' has no member named 'ctag'
       if(CurrentJet->ctag())

In table.6 of MadAnalysis manual arXiv:1405.3982, I find crag() is actually a method of RecJetFormat Class. So, why there is an error?

In addition, I have checked ./MA/tools/SampleAnalyzer/Commons/DataFormat/RecJetFormat.h. I find the following codes

  /// Accessor to the b-tag
  const Bool_t& btag() const
  {return btag_;}

  /// Accessor to the true c-tag
  const Bool_t& true_ctag() const
  {return true_ctag_;}

  /// Accessor to the true b-tag
  const Bool_t& true_btag() const
  {return true_btag_;}

There are only brag(), true_btag() and true_ctag() method. So, the crag() method has not been included in MadAnalysis?

Thank you for your time.

Best Regards,
Xing-Bo Yuan

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 use true_ctag() instead of ctag(). I am however not sure that c-tagging is supported by the LHCO format.

Cheers,

Benjamin

On 05 Apr 2016, at 18:42 , xbyuan <email address hidden> wrote:

> Question #289986 on MadAnalysis 5 changed:
> https://answers.launchpad.net/madanalysis5/+question/289986
>
> Description changed to:
> Hi,
>
> I generated a .lhco.gz file by MadGraph+Phythia+Delphes.
>
> Then, in MadAnalysis(v1.3), I use the following command
> ./ma5 -R -E
> , create the analysis file and source the setup.sh file.
>
> When I use the "make" command, I get a error
> SampleAnalyzer/User/Analyzer/gmZ_j.cpp:138:22: error: 'const class MA5::RecJetFormat' has no member named 'ctag'
> if(CurrentJet->ctag())
>
> In table.6 of MadAnalysis manual arXiv:1405.3982, I find crag() is
> actually a method of RecJetFormat Class. So, why there is an error?
>
> In addition, I have checked
> ./MA/tools/SampleAnalyzer/Commons/DataFormat/RecJetFormat.h. I find the
> following codes
>
> /// Accessor to the b-tag
> const Bool_t& btag() const
> {return btag_;}
>
> /// Accessor to the true c-tag
> const Bool_t& true_ctag() const
> {return true_ctag_;}
>
> /// Accessor to the true b-tag
> const Bool_t& true_btag() const
> {return true_btag_;}
>
> There are only brag(), true_btag() and true_ctag() method. So, the
> crag() method has not been included in MadAnalysis?
>
> Thank you for your time.
>
> Best Regards,
> Xing-Bo Yuan
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Revision history for this message
xbyuan (yuanxingbo) said :
#2

Hi Benjamin,

Thank you for the quick reply. I will try true_ctag().

Another two questions:
1. What's the difference between true_btag() and btag()?
2. Which format is supported for c-tagging? .root file?

Best Regards,
Xing-Bo Yuan

Revision history for this message
Benjamin Fuks (fuks) said :
#3

Hi,

> 1. What's the difference between true_btag() and btag()?
When a b-tagged jet can be verified to be a real b-tagged jet from the Monte Carlo truth. This is not possible with the LHCO format.

> 2. Which format is supported for c-tagging? .root file?
Charm tagging can be used if both reconstructed objects and Monte Carlo truth objects are present in the output file.

Cheers,

Benjamin

Revision history for this message
xbyuan (yuanxingbo) said :
#4

Thank you for your help.

Best
Xing-Bo Yuan

Revision history for this message
xbyuan (yuanxingbo) said :
#5

Thanks Benjamin Fuks, that solved my question.