Skip to content
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

A correct description of the HL-LHC beamspot #16942

Merged
merged 7 commits into from
Dec 12, 2016

Conversation

lgray
Copy link
Contributor

@lgray lgray commented Dec 9, 2016

This PR changes the HL-LHC beamspot simulation we are using to be exactly the HL-LHC beamspot simulation from the HL-LHC machine group.

This PR is waiting for one more item: a correct description of the x and y distribution of vertices in the beamspot.

The online beamspot doesn't need to be updated as the major change here is for the width of the beamspot in time, and the online beamspot only has spatial coordinates. There is a slight change in the beamspot z width but it does not invalidate the beamspot in the database.

Vertex profile in time (axis is ns, arb units):
vertex_t_profile

Vertex profile in z (axis in cm, normalized to ev/mm in 140 PU):
vertex_z_profile

Vertex shape in z and time (arb units):
vertex_zt_profile

@davidlange6 It would be good to get this in for the tracker TDR production, I also found a weird bug in the old HL-LHC beamspot such that x and z were correlated (which should not be the case!).

@cmsbuild
Copy link
Contributor

cmsbuild commented Dec 9, 2016

A new Pull Request was created by @lgray (Lindsey Gray) for CMSSW_9_0_X.

It involves the following packages:

IOMC/EventVertexGenerators

@cmsbuild, @civanch, @mdhildreth, @davidlange6 can you please review it and eventually sign? Thanks.
@slava77, @smuzaffar you are the release manager for this.

cms-bot commands are listed here #13028

@lgray
Copy link
Contributor Author

lgray commented Dec 9, 2016

@cmsbuild please test

Reminder - this PR only has the z and time coordinates cross-validated with the HL-LHC machine group. X and Y should come soon.

@kpedro88

@cmsbuild
Copy link
Contributor

cmsbuild commented Dec 9, 2016

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/16891/console Started: 2016/12/09 11:17

@cmsbuild
Copy link
Contributor

cmsbuild commented Dec 9, 2016

-1

Tested at: 5f33356

You can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-16942/16891/summary.html

I found follow errors while testing this PR

Failed tests: ClangBuild

  • Clang:

I found a compilation error while trying to compile with clang:
I used this command:
scram b vclean && scram build -k -j 48 USER_CXXFLAGS='-fsyntax-only' COMPILER='llvm compile'

>> Compiling edm plugin /build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_0_X_2016-12-08-2300/src/IOMC/EventVertexGenerators/src/GaussEvtVtxGenerator.cc 
>> Compiling edm plugin /build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_0_X_2016-12-08-2300/src/IOMC/EventVertexGenerators/src/GaussianZBeamSpotFilter.cc 
>> Compiling edm plugin /build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_0_X_2016-12-08-2300/src/IOMC/EventVertexGenerators/src/BetafuncEvtVtxGenerator.cc 
>> Compiling edm plugin /build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_0_X_2016-12-08-2300/src/IOMC/EventVertexGenerators/test/VtxTester.cc 
>> Compiling edm plugin /build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_0_X_2016-12-08-2300/src/IOMC/EventVertexGenerators/test/BoostTester.cc 
/build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_0_X_2016-12-08-2300/src/IOMC/EventVertexGenerators/src/HLLHCEvtVtxGenerator.cc:25:20: error: constexpr variable 'two_pi' must be initialized by a constant expression
  constexpr double two_pi=8.0*std::atan(1.0);
                   ^      ~~~~~~~~~~~~~~~~~~
/build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_0_X_2016-12-08-2300/src/IOMC/EventVertexGenerators/src/HLLHCEvtVtxGenerator.cc:25:31: note: non-constexpr function 'atan' cannot be used in a constant expression
  constexpr double two_pi=8.0*std::atan(1.0);
                              ^


@cmsbuild
Copy link
Contributor

cmsbuild commented Dec 9, 2016

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Dec 9, 2016

Pull request #16942 was updated. @cmsbuild, @civanch, @mdhildreth, @davidlange6 can you please check and sign again.

@lgray
Copy link
Contributor Author

lgray commented Dec 9, 2016

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Dec 9, 2016

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/16893/console Started: 2016/12/09 12:16

@cmsbuild
Copy link
Contributor

cmsbuild commented Dec 9, 2016

-1

Tested at: 2bb5d9d

You can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-16942/16893/summary.html

I found follow errors while testing this PR

Failed tests: ClangBuild

  • Clang:

I found a compilation error while trying to compile with clang:
I used this command:
scram b vclean && scram build -k -j 64 USER_CXXFLAGS='-fsyntax-only' COMPILER='llvm compile'

  const double dx_plus  = (z-t*ct)*(cax*st_plus-sax_plus*ct)   - (x-t*st_plus)*(sax_plus*st_plus+cax*ct);
               ^
/build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_0_X_2016-12-08-2300/src/IOMC/EventVertexGenerators/src/HLLHCEvtVtxGenerator.cc:151:20: warning: unused variable 'c' [-Wunused-variable]
  constexpr double c= 2.99792458e+8; // m/s
                   ^
/build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_0_X_2016-12-08-2300/src/IOMC/EventVertexGenerators/src/HLLHCEvtVtxGenerator.cc:203:20: error: constexpr variable 'factorRMSgauss4' must be initialized by a constant expression
  constexpr double factorRMSgauss4  = 1./std::sqrt(2.)/gamma34 * gamma14; // # Factor to take rms sigma as input of the supergaussian
                   ^                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_0_X_2016-12-08-2300/src/IOMC/EventVertexGenerators/src/HLLHCEvtVtxGenerator.cc:203:42: note: non-constexpr function 'sqrt' cannot be used in a constant expression
  constexpr double factorRMSgauss4  = 1./std::sqrt(2.)/gamma34 * gamma14; // # Factor to take rms sigma as input of the supergaussian
                                         ^


@cmsbuild
Copy link
Contributor

cmsbuild commented Dec 9, 2016

Comparison job queued.

@lgray
Copy link
Contributor Author

lgray commented Dec 11, 2016

@kpedro88 could you unhold, I have confirmation from Rogelio Garcia (HL-LHC guy) that this looks good. I am doing a few final checks.

@lgray
Copy link
Contributor Author

lgray commented Dec 11, 2016

Here are the beam profiles for the default parameters of this validated HL-LHC beamspot simulation. This is for 200PU.

profile in x (arb units):
vertex_x_profile

profile in y (arb units):
vertex_y_profile

profile in z (ev/mm):
vertex_z_profile

profile in t (arb units):
vertex_t_profile

2D space vs. time profiles (arb units):
vertex_tx_profile
vertex_ty_profile
vertex_zt_profile

2D spatial profiles (arb units):
vertex_xy_profile
vertex_zx_profile
vertex_zy_profile

@lgray
Copy link
Contributor Author

lgray commented Dec 11, 2016

Hold on, this has some effects in the reconstruction to understand. Not expected.

@slava77

@lgray
Copy link
Contributor Author

lgray commented Dec 11, 2016

OK - talking to @slava77 a bit more since the beamspot is different the comparison with the baseline is different from the SIM level so it's hard to make a good comparison with 10 events.

@lgray
Copy link
Contributor Author

lgray commented Dec 11, 2016

@VinInn @rovere @mmusich

Just FYI the current reco::BeamSpot parameters for HL-LHC are:

-----------------------------------------------------
              Beam Spot Data

 Beam type    = 2
       X0     = 1.56059e-05 +/- 1.11113e-05 [cm]
       Y0     = -5.14073e-06 +/- 1.08985e-05 [cm]
       Z0     = 0.0282329 +/- 0.0694134 [cm]
 Sigma Z0     = 4.31313 +/- 0.0490817 [cm]
 dxdz         = 0.000103158 +/- 2.53614e-06 [radians]
 dydz         = -2.13911e-07 +/- 2.48033e-06 [radians]
 Beam Width X = 0.00137129 +/- 2.07524e-05 [cm]
 Beam Width Y = 0.000806147 +/- 2.07524e-05 [cm]
 Emittance X  = 0 [cm]
 Emittance Y  = 0 [cm]
 Beta star    = 0 [cm]
-----------------------------------------------------

And for this new HL-LHC beam spot the BeamWidthX is 11um (instead of 13um), BeamWidthY is 5um (instead of 8um), SigmaZ is more or less the same.

Should we update the beamspot, or just go as is?

@lgray
Copy link
Contributor Author

lgray commented Dec 11, 2016

However, the bias in the x0 (which should be zero for HL-LHC) is over one sigma. Not sure if that matters for tracking.

@mmusich
Copy link
Contributor

mmusich commented Dec 11, 2016

@lgray about:

Should we update the beamspot, or just go as is?

we can easily update it if you point me to the list of preferred parameters.

@lgray
Copy link
Contributor Author

lgray commented Dec 11, 2016

@mmusich Noted! I will await input concerning the need to update from @VinInn and @rovere in that case.

@kpedro88
Copy link
Contributor

unhold

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_9_0_X IBs (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @slava77, @davidlange6, @smuzaffar

@davidlange6
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 0535d0c into cms-sw:CMSSW_9_0_X Dec 12, 2016
@davidlange6
Copy link
Contributor

I realize I merged this one prematurely - however the beam spot bias issue is not due to this PR, so I'm not reverting it (unless discussion to come indicates that is the right thing).

@lgray
Copy link
Contributor Author

lgray commented Dec 12, 2016 via email

@lgray
Copy link
Contributor Author

lgray commented Dec 12, 2016 via email

@lgray
Copy link
Contributor Author

lgray commented Dec 12, 2016

Even with the "NoSmear" beamspot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants