what is the value that Particle_Mother1 return?

Bug #1103765 reported by Huanian Zhang

This bug report was converted into a question: question #219978: what is the value that Particle_Mother1 return?.

6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MadGraph5_aMC@NLO
Invalid
Undecided
Unassigned

Bug Description

Hello,

Right now I am trying to identity B_jet from Higgs. So first I need to choose B_jets, then to check whether the B_jet comes from Higgs or not. Here is my code:

   std::vector<double> B_Jet_PT;
   std::vector<double> B_Jet_Eta;
   std::vector<double> B_Jet_Phi;
   std::vector<double> B_Jet_Mass;

   for(int i = 0; i < Particle_size; i++){

      if (abs(Particle_PID[i]) == 5) {

         //std::cout << Particle_PT[i] << std::endl;
         B_Jet_PT.push_back(Particle_PT[i]);
         B_Jet_Eta.push_back(Particle_Eta[i]);
         B_Jet_Phi.push_back(Particle_Phi[i]);
         B_Jet_Mass.push_back(Particle_M[i]);
      }
   }

         std::vector<double> B_Higgs_PT;
         std::vector<double> B_Higgs_Eta;
         std::vector<double> B_Higgs_Phi;
         std::vector<double> B_Higgs_Mass;

         for(int i = 0; i < B_Jet_PT.size(); i++){

            int a = Particle_Mother1[i];
            std::cout << a << std::endl;
            std::cout << Particle_PID[a] << std::endl;

         if (Particle_PID[a] == 25) {

               B_Higgs_PT.push_back(B_Jet_PT.at(i));
               B_Higgs_Eta.push_back(B_Jet_Eta.at(i));
               B_Higgs_Phi.push_back(B_Jet_Phi.at(i));
               B_Higgs_Mass.push_back(B_Jet_Mass.at(i));
               PT_Bjet->Fill(B_Jet_PT.at(i));

            }
         }

But there are some wired things. First the value of a is 0 0 2 3, I do not know what exactly that means. Then the value of Particle_PID[a] is 21 21 21 1000023, it is not Higgs. Could you tell me HOW I can modify the code. Thank you very much. Have a nice night.

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote :

Convert this to a question since this is clearly not a bug of MG5.

Changed in madgraph5:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.