{"action":"closed","number":7791,"pull_request":{"url":"https://api.github.com/repos/cms-sw/cmssw/pulls/7791","id":29438851,"html_url":"https://github.com/cms-sw/cmssw/pull/7791","diff_url":"https://github.com/cms-sw/cmssw/pull/7791.diff","patch_url":"https://github.com/cms-sw/cmssw/pull/7791.patch","issue_url":"https://api.github.com/repos/cms-sw/cmssw/issues/7791","number":7791,"state":"closed","locked":false,"title":"Add status flags to GenParticles as analysis aid","user":{"login":"cmsbuild","id":4170616,"avatar_url":"https://avatars.githubusercontent.com/u/4170616?v=3","gravatar_id":"","url":"https://api.github.com/users/cmsbuild","html_url":"https://github.com/cmsbuild","followers_url":"https://api.github.com/users/cmsbuild/followers","following_url":"https://api.github.com/users/cmsbuild/following{/other_user}","gists_url":"https://api.github.com/users/cmsbuild/gists{/gist_id}","starred_url":"https://api.github.com/users/cmsbuild/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmsbuild/subscriptions","organizations_url":"https://api.github.com/users/cmsbuild/orgs","repos_url":"https://api.github.com/users/cmsbuild/repos","events_url":"https://api.github.com/users/cmsbuild/events{/privacy}","received_events_url":"https://api.github.com/users/cmsbuild/received_events","type":"User","site_admin":false},"body":"Adds status flags which fold useful information about particle status+history into a simplified set of persistent flags which can be used at analysis level and which are less generator dependent.\r\n\r\nUse of flags related to the hard process is still discouraged unless absolutely needed.  More robust prompt/non-prompt/from tau decay type flags are provided and preferred.\r\n\r\nPreferred flag for matching to prompt leptons/photons at generator level:\r\nisPromptFinalState()\r\nThis encompasses any final state particle which is NOT from a hadron, muon, or tau decay.  Practically this means that for charged leptons they either came from the hard process or from (rare) internal conversions of radiated photons.  For photons this flag is a bit more encompassing since it includes all ISR/FSR photons as well as those strictly from the hard process (ie hard matrix element).\r\n\r\nHard process related flags are currently only implemented for pythia6 and pythia8.\r\n\r\nisHardProcess() is the closest to pythia6 status 3, but does NOT in general represent final state kinematics and should NOT be used directly for matching to reco objects.  If matching to reco objects is needed and the hard process matching is strictly required, then fromHardProcessFinalState() can be used.\r\n\r\nNote that tau decay products must be treated with dedicated flags.\r\nMore details in accessor comments\r\nhttps://github.com/bendavid/cmssw/blob/73d2957327d2b844c439b9e89889d52c6f4bd420/DataFormats/HepMCCandidate/interface/GenParticle.h\r\nhttps://github.com/bendavid/cmssw/blob/73d2957327d2b844c439b9e89889d52c6f4bd420/DataFormats/HepMCCandidate/interface/GenStatusFlags.h\r\n\r\nThese flags are currently computed and stored in the GenParticle at GEN-SIM or DIGI-RECO time and are propagated to the prunedGenParticles in the miniaod (but they could be easily recomputed when producing the prunedGenParticles in a future miniaod reprocessing if needed).\r\n\r\nSince the flags are persistent and do not rely on any mother-daughter links once stored, potentially the number of intermediate particles in the prunedGenParticles might be possible to reduce.\r\n\r\nTo be discussed whether these flags should also be added to the packedGenParticles.\r\n(13 bits but only ~10 allowed values, so should compress extremely well)\r\n\r\n\nAutomatically ported from CMSSW_7_4_X #7662","created_at":"2015-02-17T12:39:54Z","updated_at":"2015-02-25T15:58:23Z","closed_at":"2015-02-25T15:58:23Z","merged_at":"2015-02-25T15:58:23Z","merge_commit_sha":"edd9679b95c55c2cfe260330dad406a525823f89","assignee":null,"milestone":{"url":"https://api.github.com/repos/cms-sw/cmssw/milestones/51","html_url":"https://github.com/cms-sw/cmssw/milestones/Next%20CMSSW_7_5_X","labels_url":"https://api.github.com/repos/cms-sw/cmssw/milestones/51/labels","id":982516,"number":51,"title":"Next CMSSW_7_5_X","description":"","creator":{"login":"nclopezo","id":1944922,"avatar_url":"https://avatars.githubusercontent.com/u/1944922?v=3","gravatar_id":"","url":"https://api.github.com/users/nclopezo","html_url":"https://github.com/nclopezo","followers_url":"https://api.github.com/users/nclopezo/followers","following_url":"https://api.github.com/users/nclopezo/following{/other_user}","gists_url":"https://api.github.com/users/nclopezo/gists{/gist_id}","starred_url":"https://api.github.com/users/nclopezo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nclopezo/subscriptions","organizations_url":"https://api.github.com/users/nclopezo/orgs","repos_url":"https://api.github.com/users/nclopezo/repos","events_url":"https://api.github.com/users/nclopezo/events{/privacy}","received_events_url":"https://api.github.com/users/nclopezo/received_events","type":"User","site_admin":false},"open_issues":40,"closed_issues":59,"state":"open","created_at":"2015-02-17T08:21:25Z","updated_at":"2015-02-25T15:58:23Z","due_on":"2015-03-02T23:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/cms-sw/cmssw/pulls/7791/commits","review_comments_url":"https://api.github.com/repos/cms-sw/cmssw/pulls/7791/comments","review_comment_url":"https://api.github.com/repos/cms-sw/cmssw/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cms-sw/cmssw/issues/7791/comments","statuses_url":"https://api.github.com/repos/cms-sw/cmssw/statuses/00937d12bfabfc5964ed87232825a84b188a6f95","head":{"label":"bendavid:genStatusFlags","ref":"genStatusFlags","sha":"00937d12bfabfc5964ed87232825a84b188a6f95","user":{"login":"bendavid","id":4920798,"avatar_url":"https://avatars.githubusercontent.com/u/4920798?v=3","gravatar_id":"","url":"https://api.github.com/users/bendavid","html_url":"https://github.com/bendavid","followers_url":"https://api.github.com/users/bendavid/followers","following_url":"https://api.github.com/users/bendavid/following{/other_user}","gists_url":"https://api.github.com/users/bendavid/gists{/gist_id}","starred_url":"https://api.github.com/users/bendavid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendavid/subscriptions","organizations_url":"https://api.github.com/users/bendavid/orgs","repos_url":"https://api.github.com/users/bendavid/repos","events_url":"https://api.github.com/users/bendavid/events{/privacy}","received_events_url":"https://api.github.com/users/bendavid/received_events","type":"User","site_admin":false},"repo":{"id":11927470,"name":"cmssw","full_name":"bendavid/cmssw","owner":{"login":"bendavid","id":4920798,"avatar_url":"https://avatars.githubusercontent.com/u/4920798?v=3","gravatar_id":"","url":"https://api.github.com/users/bendavid","html_url":"https://github.com/bendavid","followers_url":"https://api.github.com/users/bendavid/followers","following_url":"https://api.github.com/users/bendavid/following{/other_user}","gists_url":"https://api.github.com/users/bendavid/gists{/gist_id}","starred_url":"https://api.github.com/users/bendavid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendavid/subscriptions","organizations_url":"https://api.github.com/users/bendavid/orgs","repos_url":"https://api.github.com/users/bendavid/repos","events_url":"https://api.github.com/users/bendavid/events{/privacy}","received_events_url":"https://api.github.com/users/bendavid/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bendavid/cmssw","description":"CMS Offline Software","fork":true,"url":"https://api.github.com/repos/bendavid/cmssw","forks_url":"https://api.github.com/repos/bendavid/cmssw/forks","keys_url":"https://api.github.com/repos/bendavid/cmssw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bendavid/cmssw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bendavid/cmssw/teams","hooks_url":"https://api.github.com/repos/bendavid/cmssw/hooks","issue_events_url":"https://api.github.com/repos/bendavid/cmssw/issues/events{/number}","events_url":"https://api.github.com/repos/bendavid/cmssw/events","assignees_url":"https://api.github.com/repos/bendavid/cmssw/assignees{/user}","branches_url":"https://api.github.com/repos/bendavid/cmssw/branches{/branch}","tags_url":"https://api.github.com/repos/bendavid/cmssw/tags","blobs_url":"https://api.github.com/repos/bendavid/cmssw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bendavid/cmssw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bendavid/cmssw/git/refs{/sha}","trees_url":"https://api.github.com/repos/bendavid/cmssw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bendavid/cmssw/statuses/{sha}","languages_url":"https://api.github.com/repos/bendavid/cmssw/languages","stargazers_url":"https://api.github.com/repos/bendavid/cmssw/stargazers","contributors_url":"https://api.github.com/repos/bendavid/cmssw/contributors","subscribers_url":"https://api.github.com/repos/bendavid/cmssw/subscribers","subscription_url":"https://api.github.com/repos/bendavid/cmssw/subscription","commits_url":"https://api.github.com/repos/bendavid/cmssw/commits{/sha}","git_commits_url":"https://api.github.com/repos/bendavid/cmssw/git/commits{/sha}","comments_url":"https://api.github.com/repos/bendavid/cmssw/comments{/number}","issue_comment_url":"https://api.github.com/repos/bendavid/cmssw/issues/comments{/number}","contents_url":"https://api.github.com/repos/bendavid/cmssw/contents/{+path}","compare_url":"https://api.github.com/repos/bendavid/cmssw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bendavid/cmssw/merges","archive_url":"https://api.github.com/repos/bendavid/cmssw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bendavid/cmssw/downloads","issues_url":"https://api.github.com/repos/bendavid/cmssw/issues{/number}","pulls_url":"https://api.github.com/repos/bendavid/cmssw/pulls{/number}","milestones_url":"https://api.github.com/repos/bendavid/cmssw/milestones{/number}","notifications_url":"https://api.github.com/repos/bendavid/cmssw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bendavid/cmssw/labels{/name}","releases_url":"https://api.github.com/repos/bendavid/cmssw/releases{/id}","created_at":"2013-08-06T15:27:02Z","updated_at":"2014-06-18T22:53:47Z","pushed_at":"2015-02-17T12:02:21Z","git_url":"git://github.com/bendavid/cmssw.git","ssh_url":"git@github.com:bendavid/cmssw.git","clone_url":"https://github.com/bendavid/cmssw.git","svn_url":"https://github.com/bendavid/cmssw","homepage":"cms-sw.github.io/cmssw","size":674891,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"CMSSW_7_0_X"}},"base":{"label":"cms-sw:CMSSW_7_5_X","ref":"CMSSW_7_5_X","sha":"d4894f27ab77fc82b522e6a304ecc5bae013ebea","user":{"login":"cms-sw","id":3863500,"avatar_url":"https://avatars.githubusercontent.com/u/3863500?v=3","gravatar_id":"","url":"https://api.github.com/users/cms-sw","html_url":"https://github.com/cms-sw","followers_url":"https://api.github.com/users/cms-sw/followers","following_url":"https://api.github.com/users/cms-sw/following{/other_user}","gists_url":"https://api.github.com/users/cms-sw/gists{/gist_id}","starred_url":"https://api.github.com/users/cms-sw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cms-sw/subscriptions","organizations_url":"https://api.github.com/users/cms-sw/orgs","repos_url":"https://api.github.com/users/cms-sw/repos","events_url":"https://api.github.com/users/cms-sw/events{/privacy}","received_events_url":"https://api.github.com/users/cms-sw/received_events","type":"Organization","site_admin":false},"repo":{"id":10969551,"name":"cmssw","full_name":"cms-sw/cmssw","owner":{"login":"cms-sw","id":3863500,"avatar_url":"https://avatars.githubusercontent.com/u/3863500?v=3","gravatar_id":"","url":"https://api.github.com/users/cms-sw","html_url":"https://github.com/cms-sw","followers_url":"https://api.github.com/users/cms-sw/followers","following_url":"https://api.github.com/users/cms-sw/following{/other_user}","gists_url":"https://api.github.com/users/cms-sw/gists{/gist_id}","starred_url":"https://api.github.com/users/cms-sw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cms-sw/subscriptions","organizations_url":"https://api.github.com/users/cms-sw/orgs","repos_url":"https://api.github.com/users/cms-sw/repos","events_url":"https://api.github.com/users/cms-sw/events{/privacy}","received_events_url":"https://api.github.com/users/cms-sw/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cms-sw/cmssw","description":"CMS Offline Software","fork":false,"url":"https://api.github.com/repos/cms-sw/cmssw","forks_url":"https://api.github.com/repos/cms-sw/cmssw/forks","keys_url":"https://api.github.com/repos/cms-sw/cmssw/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cms-sw/cmssw/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cms-sw/cmssw/teams","hooks_url":"https://api.github.com/repos/cms-sw/cmssw/hooks","issue_events_url":"https://api.github.com/repos/cms-sw/cmssw/issues/events{/number}","events_url":"https://api.github.com/repos/cms-sw/cmssw/events","assignees_url":"https://api.github.com/repos/cms-sw/cmssw/assignees{/user}","branches_url":"https://api.github.com/repos/cms-sw/cmssw/branches{/branch}","tags_url":"https://api.github.com/repos/cms-sw/cmssw/tags","blobs_url":"https://api.github.com/repos/cms-sw/cmssw/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cms-sw/cmssw/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cms-sw/cmssw/git/refs{/sha}","trees_url":"https://api.github.com/repos/cms-sw/cmssw/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cms-sw/cmssw/statuses/{sha}","languages_url":"https://api.github.com/repos/cms-sw/cmssw/languages","stargazers_url":"https://api.github.com/repos/cms-sw/cmssw/stargazers","contributors_url":"https://api.github.com/repos/cms-sw/cmssw/contributors","subscribers_url":"https://api.github.com/repos/cms-sw/cmssw/subscribers","subscription_url":"https://api.github.com/repos/cms-sw/cmssw/subscription","commits_url":"https://api.github.com/repos/cms-sw/cmssw/commits{/sha}","git_commits_url":"https://api.github.com/repos/cms-sw/cmssw/git/commits{/sha}","comments_url":"https://api.github.com/repos/cms-sw/cmssw/comments{/number}","issue_comment_url":"https://api.github.com/repos/cms-sw/cmssw/issues/comments{/number}","contents_url":"https://api.github.com/repos/cms-sw/cmssw/contents/{+path}","compare_url":"https://api.github.com/repos/cms-sw/cmssw/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cms-sw/cmssw/merges","archive_url":"https://api.github.com/repos/cms-sw/cmssw/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cms-sw/cmssw/downloads","issues_url":"https://api.github.com/repos/cms-sw/cmssw/issues{/number}","pulls_url":"https://api.github.com/repos/cms-sw/cmssw/pulls{/number}","milestones_url":"https://api.github.com/repos/cms-sw/cmssw/milestones{/number}","notifications_url":"https://api.github.com/repos/cms-sw/cmssw/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cms-sw/cmssw/labels{/name}","releases_url":"https://api.github.com/repos/cms-sw/cmssw/releases{/id}","created_at":"2013-06-26T14:09:07Z","updated_at":"2015-02-25T14:15:28Z","pushed_at":"2015-02-25T15:58:22Z","git_url":"git://github.com/cms-sw/cmssw.git","ssh_url":"git@github.com:cms-sw/cmssw.git","clone_url":"https://github.com/cms-sw/cmssw.git","svn_url":"https://github.com/cms-sw/cmssw","homepage":"http://cms-sw.github.io/","size":863290,"stargazers_count":207,"watchers_count":207,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1267,"mirror_url":null,"open_issues_count":139,"forks":1267,"open_issues":139,"watchers":207,"default_branch":"CMSSW_7_5_X"}},"_links":{"self":{"href":"https://api.github.com/repos/cms-sw/cmssw/pulls/7791"},"html":{"href":"https://github.com/cms-sw/cmssw/pull/7791"},"issue":{"href":"https://api.github.com/repos/cms-sw/cmssw/issues/7791"},"comments":{"href":"https://api.github.com/repos/cms-sw/cmssw/issues/7791/comments"},"review_comments":{"href":"https://api.github.com/repos/cms-sw/cmssw/pulls/7791/comments"},"review_comment":{"href":"https://api.github.com/repos/cms-sw/cmssw/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cms-sw/cmssw/pulls/7791/commits"},"statuses":{"href":"https://api.github.com/repos/cms-sw/cmssw/statuses/00937d12bfabfc5964ed87232825a84b188a6f95"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"davidlange6","id":5042883,"avatar_url":"https://avatars.githubusercontent.com/u/5042883?v=3","gravatar_id":"","url":"https://api.github.com/users/davidlange6","html_url":"https://github.com/davidlange6","followers_url":"https://api.github.com/users/davidlange6/followers","following_url":"https://api.github.com/users/davidlange6/following{/other_user}","gists_url":"https://api.github.com/users/davidlange6/gists{/gist_id}","starred_url":"https://api.github.com/users/davidlange6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidlange6/subscriptions","organizations_url":"https://api.github.com/users/davidlange6/orgs","repos_url":"https://api.github.com/users/davidlange6/repos","events_url":"https://api.github.com/users/davidlange6/events{/privacy}","received_events_url":"https://api.github.com/users/davidlange6/received_events","type":"User","site_admin":false},"comments":4,"review_comments":0,"commits":12,"additions":896,"deletions":15,"changed_files":18}}