text
stringlengths 0
828
|
---|
conditions = [ |
event.nMuons == 1, # Require 1 muon. |
event.nJets >= 4, # Require >= 4 jets. |
#event.nLjets >= 1 # Require a single large-R jet. |
] |
if selection == ""ejets_5JE4BI"": |
conditions = [ |
event.nElectrons == 1, # Require 1 electron. |
event.nJets == 5, # Require 5 jets. |
event.nBTags >= 4 # Require >= 4 b tags. |
#event.nLjets >= 1 # Require a single large-R jet. |
] |
if selection == ""ejets_6JI4BI"": |
conditions = [ |
event.nElectrons == 1, # Require 1 electron. |
event.nJets >= 6, # Require >=6 jets. |
event.nBTags >= 4 # Require >= 4 b tags. |
#event.nLjets >= 1 # Require a single large-R jet. |
] |
elif selection == ""all"": |
conditions = [ |
event.nElectrons == 1 or event.nMuons == 1, # Require 1 electron or 1 muon. |
event.nJets >= 4, # Require >= 4 jets. |
#event.nLjets >= 1 # Require a single large-R jet. |
] |
if all(conditions): |
if verbose: |
log.info(""event number {event_number} passed selection {selection}"".format( |
event_number = event.eventNumber, |
selection = selection |
)) |
return True |
else: |
return False" |
4987,"def create_free_shipping(cls, free_shipping, **kwargs): |
""""""Create FreeShipping |
Create a new FreeShipping |
This method makes a synchronous HTTP request by default. To make an |
asynchronous HTTP request, please pass async=True |
>>> thread = api.create_free_shipping(free_shipping, async=True) |
>>> result = thread.get() |
:param async bool |
:param FreeShipping free_shipping: Attributes of freeShipping to create (required) |
:return: FreeShipping |
If the method is called asynchronously, |
returns the request thread. |
"""""" |
kwargs['_return_http_data_only'] = True |
if kwargs.get('async'): |
return cls._create_free_shipping_with_http_info(free_shipping, **kwargs) |
else: |
(data) = cls._create_free_shipping_with_http_info(free_shipping, **kwargs) |
return data" |
4988,"def delete_free_shipping_by_id(cls, free_shipping_id, **kwargs): |
""""""Delete FreeShipping |
Delete an instance of FreeShipping by its ID. |
This method makes a synchronous HTTP request by default. To make an |
asynchronous HTTP request, please pass async=True |
>>> thread = api.delete_free_shipping_by_id(free_shipping_id, async=True) |
>>> result = thread.get() |
:param async bool |
:param str free_shipping_id: ID of freeShipping to delete. (required) |
:return: None |
If the method is called asynchronously, |
returns the request thread. |
"""""" |
kwargs['_return_http_data_only'] = True |
if kwargs.get('async'): |
return cls._delete_free_shipping_by_id_with_http_info(free_shipping_id, **kwargs) |
else: |
(data) = cls._delete_free_shipping_by_id_with_http_info(free_shipping_id, **kwargs) |
return data" |
4989,"def get_free_shipping_by_id(cls, free_shipping_id, **kwargs): |
""""""Find FreeShipping |
Return single instance of FreeShipping by its ID. |
This method makes a synchronous HTTP request by default. To make an |
asynchronous HTTP request, please pass async=True |
>>> thread = api.get_free_shipping_by_id(free_shipping_id, async=True) |
>>> result = thread.get() |
:param async bool |
:param str free_shipping_id: ID of freeShipping to return (required) |
:return: FreeShipping |
If the method is called asynchronously, |
Subsets and Splits