Fork me on GitHub

Opened 8 years ago

Closed 8 years ago

#1089 closed How to (fixed)

B-tagging efficiency

Reported by: DIBYASHREE SENGUPTA Owned by:
Priority: major Milestone:
Component: Delphes code Version: Delphes 3
Keywords: Cc:

Description

Hi,

I am trying to modify the b-tagging efficiency as follows :

if the jet is a c-jet or a light quark and gluon jet then it should be mistagged as a bjet with the following probability :

if pt <= 15.0 then probability = 0

if eta <=3.0 and pt > 15 and pt <=100 then probability = 1/150

if eta <=3.0 and pt > 100 and pt <=250 then probability = 1/(-0.667*pt+216.67)

if eta <=3.0 and pt > 250 then probability = 1/50

if eta > 3.0 then probability = 0

Following is the code I have used in the delphes_card.dat for implementing the above conditions :
###########
# b-tagging
###########

module BTagging BTagging {

set JetInputArray JetEnergyScale/jets

set BitNumber 0

# add EfficiencyFormula {abs(PDG code)} {efficiency formula as a function of eta and pt}
# PDG code = the highest PDG code of a quark or gluon inside DeltaR cone around jet axis
# gluon's PDG code has the lowest priority

# default efficiency formula (misidentification rate)
add EfficiencyFormula {0}{ (pt <= 15.0) * (0.00) +

(abs(eta) <= 3.0) * (pt > 15.0 && pt <= 100.0) * (1.0/150.0) +

(abs(eta) <= 3.0) * (pt > 100.0 && pt <= 250.0) *(1.0/(-0.667*pt+216.67)) +
(abs(eta) <= 3.0) * (pt > 250.0) * (1.0/50.0)+
(abs(eta) > 3.0) * (0.00)}

# efficiency formula for c-jets (misidentification rate)

add EfficiencyFormula {4}{ (pt <= 15.0) * (0.00)+

(abs(eta) <= 3.0) * (pt > 15.0 && pt <= 100.0) * (1.0/150.0) +

(abs(eta) <= 3.0) * (pt > 100.0 && pt <= 250.0) *(1.0/(-0.667*pt+216.67)) +
(abs(eta) <= 3.0) * (pt > 250.0) * (1.0/50.0)+
(abs(eta) > 3.0) * (0.00)}

# efficiency formula for b-jets
add EfficiencyFormula {5} { (pt <= 15.0) * (0.00)+

(abs(eta) <= 3.0) * (pt > 15.0) * (0.60) +

(abs(eta) > 3.0) * (0.00)}

}

However, when I am running delphes using this card it is exiting without running.

What should I do?

Attachments (2)

delphes_card.dat (17.5 KB ) - added by DIBYASHREE SENGUPTA 8 years ago.
delphes_card_v2.dat (17.5 KB ) - added by Michele Selvaggi 8 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 by Michele Selvaggi, 8 years ago

Can you please attach your card?
Michele

by DIBYASHREE SENGUPTA, 8 years ago

Attachment: delphes_card.dat added

in reply to:  1 comment:2 by DIBYASHREE SENGUPTA, 8 years ago

Replying to mselvaggi:

Can you please attach your card?
Michele

Hi,

I have attached the delphes_card.dat.

Looking forward for your reply.

Thanks,
Dibyashree

by Michele Selvaggi, 8 years ago

Attachment: delphes_card_v2.dat added

comment:3 by Michele Selvaggi, 8 years ago

You were missing empty spaces. Find the corrected card attached.

in reply to:  3 comment:4 by DIBYASHREE SENGUPTA, 8 years ago

Replying to mselvaggi:

You were missing empty spaces. Find the corrected card attached.


Thanks Michele . The code now works perfectly.

Regards,
Dibyashree

comment:5 by Pavel Demin, 8 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.