Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15936 from lgray/hllhc_beamspots_810
HL-LHC Beamspot in CMSSW 81X
- Loading branch information
Showing
14 changed files
with
470 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
115 changes: 115 additions & 0 deletions
115
IOMC/EventVertexGenerators/interface/HLLHCEvtVtxGenerator.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
#ifndef IOMC_HLLHCEvtVtxGenerator_H | ||
#define IOMC_HLLHCEvtVtxGenerator_H | ||
|
||
/** | ||
* Generate event vertices given beams sizes, crossing angle | ||
* offset, and crab rotation. | ||
* Attention: All values are assumed to be mm for spatial coordinates | ||
* and ns for time. | ||
* Attention: This class fix the the vertex time generation of HLLHCEvtVtxGenerator | ||
* | ||
* $Id: HLLHCEvtVtxGenerator_Fix.h,v 1.0 2015/03/15 10:34:38 Exp $ | ||
*/ | ||
|
||
#include "IOMC/EventVertexGenerators/interface/BaseEvtVtxGenerator.h" | ||
|
||
#include <string> | ||
|
||
namespace CLHEP { | ||
class RandFlat; | ||
} | ||
|
||
namespace edm { | ||
class ConfigurationDescriptions; | ||
} | ||
|
||
class HLLHCEvtVtxGenerator : public BaseEvtVtxGenerator | ||
{ | ||
public: | ||
|
||
HLLHCEvtVtxGenerator(const edm::ParameterSet & p); | ||
|
||
virtual ~HLLHCEvtVtxGenerator(); | ||
|
||
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions); | ||
|
||
/// return a new event vertex | ||
virtual HepMC::FourVector* newVertex(CLHEP::HepRandomEngine*) ; | ||
|
||
virtual TMatrixD* GetInvLorentzBoost() {return 0;}; | ||
|
||
private: | ||
/** Copy constructor */ | ||
HLLHCEvtVtxGenerator(const HLLHCEvtVtxGenerator &p); | ||
|
||
/** Copy assignment operator */ | ||
HLLHCEvtVtxGenerator& operator = (const HLLHCEvtVtxGenerator & rhs ); | ||
|
||
//spatial and time offset for mean collision | ||
double fMeanX, fMeanY, fMeanZ, fTimeOffset; | ||
|
||
//proton beam energy | ||
double fEproton; | ||
|
||
//half crossing angle | ||
double fTheta; | ||
|
||
//crab rotation in crossing plane | ||
double fAlphax; | ||
|
||
//crab frequence in crossing plane | ||
double fOmegax; | ||
|
||
//normalized emmittance in crossing plane | ||
double fEpsilonx; | ||
|
||
//beta function in crossing plane | ||
double fBetax; | ||
|
||
//crab rotation in parallel plane | ||
double fAlphay; | ||
|
||
//crab frequence in parallel plane | ||
double fOmegay; | ||
|
||
//normalized emmittance parallel plane | ||
double fEpsilony; | ||
|
||
//beta function in parallel plane | ||
double fBetay; | ||
|
||
//longitudinal bunch size | ||
double fZsize; | ||
|
||
//longitudinal beam profile | ||
std::string fProfile; | ||
// fProfile is one of: | ||
// "Gaussian" and then fZsize is the width of the gaussian | ||
// "Flat" and then fZsize is the half length of the bunch. | ||
|
||
struct lhcbeamparams { | ||
|
||
double betagamma; | ||
double theta; | ||
double alphax; | ||
double omegax; | ||
double epsilonx; | ||
double betax; | ||
double alphay; | ||
double omegay; | ||
double epsilony; | ||
double betay; | ||
double zsize; | ||
std::string beamprofile; | ||
}; | ||
|
||
double p1(double x, double y, double z, double t, const lhcbeamparams& par); | ||
|
||
double p2(double x, double y, double z, double t, const lhcbeamparams& par); | ||
|
||
double sigma(double z, double epsilon, double beta, double betagamma); | ||
|
||
double rhoz(double z, const lhcbeamparams& par); | ||
}; | ||
|
||
#endif |
11 changes: 11 additions & 0 deletions
11
IOMC/EventVertexGenerators/python/VtxSmearedHLLHC14TeV_cfi.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
from IOMC.EventVertexGenerators.VtxSmearedParameters_cfi import * | ||
HLLHCVtxSmearingParameters14TeV = HLLHCVtxSmearingParameters.clone( EprotonInGeV = cms.double(7000) ) | ||
VtxSmeared = cms.EDProducer("HLLHCEvtVtxGenerator", | ||
HLLHCVtxSmearingParameters14TeV, | ||
VtxSmearedCommon | ||
) | ||
|
||
|
||
|
9 changes: 9 additions & 0 deletions
9
IOMC/EventVertexGenerators/python/VtxSmearedHLLHCCrabKissing14TeV_cfi.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
from IOMC.EventVertexGenerators.VtxSmearedParameters_cfi import * | ||
HLLHCCrabKissingVtxSmearingParameters14TeV=HLLHCCrabKissingVtxSmearingParameters.clone(EprotonInGeV = cms.double(7000.0)) | ||
VtxSmeared = cms.EDProducer("HLLHCEvtVtxGenerator", | ||
HLLHCCrabKissingVtxSmearingParameters14TeV, | ||
VtxSmearedCommon | ||
) | ||
|
8 changes: 8 additions & 0 deletions
8
IOMC/EventVertexGenerators/python/VtxSmearedHLLHCCrabKissing_cfi.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
from IOMC.EventVertexGenerators.VtxSmearedParameters_cfi import * | ||
VtxSmeared = cms.EDProducer("HLLHCEvtVtxGenerator", | ||
HLLHCCrabKissingVtxSmearingParameters, | ||
VtxSmearedCommon | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
from IOMC.EventVertexGenerators.VtxSmearedParameters_cfi import * | ||
VtxSmeared = cms.EDProducer("HLLHCEvtVtxGenerator", | ||
HLLHCVtxSmearingParameters, | ||
VtxSmearedCommon | ||
) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.