-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added 3D and beamspot/vertex options #11660
Conversation
A new Pull Request was created by @fojensen (Frank Jensen) for CMSSW_7_5_X. added 3D and beamspot/vertex options It involves the following packages: RecoVertex/V0Producer @cmsbuild, @cvuosalo, @slava77 can you please review it and eventually sign? Thanks. |
|
||
#include <string> | ||
#include <fstream> | ||
#include "CommonTools/CandUtils/interface/AddFourMomenta.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better have all the includes in the .cc file: based on the changes in this file, these extra includes are not needed at the class declaration step.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry this is new to me - is the general idea to have an include statement
in the header file (i.e. class declaration file) only if it is necessary in
the declaration of the class?
In my particular example, the class declaration involves a function with a
parameter of reco::VertexCompositeCandidateCollection - in this case I
would want to have the particular include file in the same file as the
class declaration?
On Tue, Oct 6, 2015 at 2:45 PM, Slava Krutelyov notifications@github.com
wrote:
In RecoVertex/V0Producer/src/V0Fitter.h
#11660 (comment):#include "DataFormats/TrackingRecHit/interface/TrackingRecHit.h"
#include "DataFormats/BeamSpot/interface/BeamSpot.h"
-#include
-#include
+#include "CommonTools/CandUtils/interface/AddFourMomenta.h"better have all the includes in the .cc file: based on the changes in this
file, these extra includes are not needed at the class declaration step.—
Reply to this email directly or view it on GitHub
https://github.com/cms-sw/cmssw/pull/11660/files#r41305162.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't mean to suggest removal of all includes: only most of the new ones.
The diffs in this file have only one new non-trivial member change: reco::Vertex, which is already included.
All new includes, like MessageLogger, TrajectoryStateTransform, TSCBLBuilderNoMaterial don't appear to be necessary in the class interface declaration and should be moved to the implementation file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a somewhat related question:
if I notice that the code compiles WITHOUT a certain include statement,
such as
#include "FWCore/MessageLogger/interface/MessageLogger.h"
is it generally safe to leave out entirely?
On Tue, Oct 6, 2015 at 3:23 PM, Slava Krutelyov notifications@github.com
wrote:
In RecoVertex/V0Producer/src/V0Fitter.h
#11660 (comment):#include "DataFormats/TrackingRecHit/interface/TrackingRecHit.h"
#include "DataFormats/BeamSpot/interface/BeamSpot.h"
-#include
-#include
+#include "CommonTools/CandUtils/interface/AddFourMomenta.h"I didn't mean to suggest removal of all includes: only most of the new
ones.The diffs in this file have only one new non-trivial member change:
reco::Vertex, which is already included.All new includes, like MessageLogger, TrajectoryStateTransform,
TSCBLBuilderNoMaterial don't appear to be necessary in the class interface
declaration and should be moved to the implementation file.—
Reply to this email directly or view it on GitHub
https://github.com/cms-sw/cmssw/pull/11660/files#r41309868.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's better not to rely on nested non-obvious includes and add an include (for a MessageLogger) in the .cc in this case where the corresponding methods (LogError etc) are used.
@cmsbuild please test |
The tests are being triggered in jenkins. |
-1 runTheMatrix-results/25202.0_TTbar_13+TTbar_13+DIGIUP15_PU25+RECOUP15_PU25+HARVESTUP15_PU25/step2_TTbar_13+TTbar_13+DIGIUP15_PU25+RECOUP15_PU25+HARVESTUP15_PU25.log ----- Begin Fatal Exception 06-Oct-2015 21:38:59 CEST----------------------- An exception of category 'FallbackFileOpenError' occurred while [0] Constructing the EventProcessor [1] Constructing module: class=MixingModule label='mix' [2] Calling RootFileSequenceBase::initTheFile() [3] Calling StorageFactory::open() [4] Calling XrdFile::open() Exception Message: Failed to open the file 'root://xrootd-cms.infn.it//store/relval/CMSSW_7_5_0/RelValMinBias_13/GEN-SIM/75X_mcRun2_asymptotic_v1-v1/00000/76F6801B-362A-E511-930F-0025905A60B4.root' Additional Info: [a] XrdCl::File::Open(name='root://eoscms//eos/cms/store/relval/CMSSW_7_5_0/RelValMinBias_13/GEN-SIM/75X_mcRun2_asymptotic_v1-v1/00000/76F6801B-362A-E511-930F-0025905A60B4.root?svcClass=default', flags=0x10, permissions=0660) => error '[ERROR] Server responded with an error: [3011] Unable to open file /eos/cms/store/relval/CMSSW_7_5_0/RelValMinBias_13/GEN-SIM/75X_mcRun2_asymptotic_v1-v1/00000/76F6801B-362A-E511-930F-0025905A60B4.root; No such file or directory ' (errno=3011, code=400). No additional data servers were found. [b] Last URL tried: root://eoscms:1094//eos/cms/store/relval/CMSSW_7_5_0/RelValMinBias_13/GEN-SIM/75X_mcRun2_asymptotic_v1-v1/00000/76F6801B-362A-E511-930F-0025905A60B4.root?svcClass=default&tried= [c] Problematic data server: eoscms:1094 [d] Disabled source: eoscms:1094 [e] Input file root://eoscms//eos/cms/store/relval/CMSSW_7_5_0/RelValMinBias_13/GEN-SIM/75X_mcRun2_asymptotic_v1-v1/00000/76F6801B-362A-E511-930F-0025905A60B4.root?svcClass=default could not be opened. Fallback Input file root://xrootd-cms.infn.it//store/relval/CMSSW_7_5_0/RelValMinBias_13/GEN-SIM/75X_mcRun2_asymptotic_v1-v1/00000/76F6801B-362A-E511-930F-0025905A60B4.root also could not be opened. Original exception info is above; fallback exception info is below. [f] XrdCl::File::Open(name='root://xrootd-cms.infn.it//store/relval/CMSSW_7_5_0/RelValMinBias_13/GEN-SIM/75X_mcRun2_asymptotic_v1-v1/00000/76F6801B-362A-E511-930F-0025905A60B4.root', flags=0x10, permissions=0660) => error '[FATAL] Redirect limit has been reached' (errno=0, code=306). No additional data servers were found. [g] Last URL tried: root://cmsxrootd-site2.fnal.gov:1093//store/relval/CMSSW_7_5_0/RelValMinBias_13/GEN-SIM/75X_mcRun2_asymptotic_v1-v1/00000/76F6801B-362A-E511-930F-0025905A60B4.root?tried=+1213xrootd.ba.infn.it, [h] Problematic data server: cmsxrootd-site2.fnal.gov:1093 [i] Disabled source: cmsxrootd-site2.fnal.gov:1093 ----- End Fatal Exception ------------------------------------------------- 50202.0 step2 runTheMatrix-results/50202.0_TTbar_13+TTbar_13+DIGIUP15_PU50+RECOUP15_PU50+HARVESTUP15_PU50/step2_TTbar_13+TTbar_13+DIGIUP15_PU50+RECOUP15_PU50+HARVESTUP15_PU50.log ----- Begin Fatal Exception 06-Oct-2015 21:39:35 CEST----------------------- An exception of category 'FallbackFileOpenError' occurred while [0] Constructing the EventProcessor [1] Constructing module: class=MixingModule label='mix' [2] Calling RootFileSequenceBase::initTheFile() [3] Calling StorageFactory::open() [4] Calling XrdFile::open() Exception Message: Failed to open the file 'root://xrootd-cms.infn.it//store/relval/CMSSW_7_5_0/RelValMinBias_13/GEN-SIM/75X_mcRun2_asymptotic_v1-v1/00000/148E8070-332A-E511-B3B5-0025905B8598.root' Additional Info: [a] XrdCl::File::Open(name='root://eoscms//eos/cms/store/relval/CMSSW_7_5_0/RelValMinBias_13/GEN-SIM/75X_mcRun2_asymptotic_v1-v1/00000/148E8070-332A-E511-B3B5-0025905B8598.root?svcClass=default', flags=0x10, permissions=0660) => error '[ERROR] Server responded with an error: [3011] Unable to open file /eos/cms/store/relval/CMSSW_7_5_0/RelValMinBias_13/GEN-SIM/75X_mcRun2_asymptotic_v1-v1/00000/148E8070-332A-E511-B3B5-0025905B8598.root; No such file or directory ' (errno=3011, code=400). No additional data servers were found. [b] Last URL tried: root://eoscms:1094//eos/cms/store/relval/CMSSW_7_5_0/RelValMinBias_13/GEN-SIM/75X_mcRun2_asymptotic_v1-v1/00000/148E8070-332A-E511-B3B5-0025905B8598.root?svcClass=default&tried= [c] Problematic data server: eoscms:1094 [d] Disabled source: eoscms:1094 [e] Input file root://eoscms//eos/cms/store/relval/CMSSW_7_5_0/RelValMinBias_13/GEN-SIM/75X_mcRun2_asymptotic_v1-v1/00000/148E8070-332A-E511-B3B5-0025905B8598.root?svcClass=default could not be opened. Fallback Input file root://xrootd-cms.infn.it//store/relval/CMSSW_7_5_0/RelValMinBias_13/GEN-SIM/75X_mcRun2_asymptotic_v1-v1/00000/148E8070-332A-E511-B3B5-0025905B8598.root also could not be opened. Original exception info is above; fallback exception info is below. [f] XrdCl::File::Open(name='root://xrootd-cms.infn.it//store/relval/CMSSW_7_5_0/RelValMinBias_13/GEN-SIM/75X_mcRun2_asymptotic_v1-v1/00000/148E8070-332A-E511-B3B5-0025905B8598.root', flags=0x10, permissions=0660) => error '[FATAL] Redirect limit has been reached' (errno=0, code=306). No additional data servers were found. [g] Last URL tried: root://cmsxrootd-site1.fnal.gov:1093//store/relval/CMSSW_7_5_0/RelValMinBias_13/GEN-SIM/75X_mcRun2_asymptotic_v1-v1/00000/148E8070-332A-E511-B3B5-0025905B8598.root?tried=+1213xrootd.ba.infn.it, [h] Problematic data server: cmsxrootd-site1.fnal.gov:1093 [i] Disabled source: cmsxrootd-site1.fnal.gov:1093 ----- End Fatal Exception ------------------------------------------------- you can see the results of the tests here: |
Frank, At this point we allow updates in 75X only for HeavyIon processing needs (this constraint has formalized in the last few days). I tried to make a diff CMSSW_7_6_X...fojensen:V0forHLT with 76X and it looks like you can reuse the same branch and make the new PR directly from the web (no need to make a new branch) |
Hey Slava, This actually is for heavy ion needs - I was contacted by a group at Rice ~Frank On Tue, Oct 6, 2015 at 8:08 PM, Slava Krutelyov notifications@github.com
|
@cmsbuild please test |
The tests are being triggered in jenkins. |
@cmsbuild please test |
The tests are being triggered in jenkins. |
+1
Frank, please make a 76X pull request. |
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_5_X IBs (tests are also fine) and once validation in the development release cycle CMSSW_7_6_X is complete. This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @Degano, @smuzaffar |
+1 |
added 3D and beamspot/vertex options
would like this implemented in CMSSW_7_5_X
added a few options:
here are plots of a few standard quantities for the V0s before and after the changes to the producer:
http://www-hep.colorado.edu/~fjensen/06102015_V0pullrequest/
created with
/RelValMinBias_13/CMSSW_7_5_0-75X_mcRun2_asymptotic_v1-v1/GEN-SIM-DIGI-RAW-HLTDEBUG