CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
BeamProfileHLLHC2DBWriter Class Reference

#include <CondTools/BeamSpot/plugins/BeamProfileHLLHC2DBWriter.cc>

Inheritance diagram for BeamProfileHLLHC2DBWriter:
edm::global::EDAnalyzer<> edm::global::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

 BeamProfileHLLHC2DBWriter (const edm::ParameterSet &)
 
 ~BeamProfileHLLHC2DBWriter () override=default
 
- Public Member Functions inherited from edm::global::EDAnalyzer<>
 EDAnalyzer ()=default
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
bool wantsGlobalLuminosityBlocks () const noexcept final
 
bool wantsGlobalRuns () const noexcept final
 
bool wantsInputProcessBlocks () const noexcept final
 
bool wantsProcessBlocks () const noexcept final
 
bool wantsStreamLuminosityBlocks () const noexcept final
 
bool wantsStreamRuns () const noexcept final
 
- Public Member Functions inherited from edm::global::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
 ~EDAnalyzerBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESResolverIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESResolverIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const *> *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const *> const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProductResolverIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::global::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Private Member Functions

void analyze (edm::StreamID, const edm::Event &, const edm::EventSetup &) const override
 
void endJob () override
 

Private Attributes

SimBeamSpotHLLHCObjects beamSpot_
 
const std::string recordName_
 

Additional Inherited Members

- Public Types inherited from edm::global::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
void resetItemsToGetFrom (BranchType iType)
 

Detailed Description

Description: [one line class summary]

Implementation: [Notes on implementation]

Definition at line 37 of file BeamProfileHLLHC2DBWriter.cc.

Constructor & Destructor Documentation

◆ BeamProfileHLLHC2DBWriter()

BeamProfileHLLHC2DBWriter::BeamProfileHLLHC2DBWriter ( const edm::ParameterSet iConfig)
explicit

Definition at line 54 of file BeamProfileHLLHC2DBWriter.cc.

References beamSpot_, edm::ParameterSet::getParameter(), SimBeamSpotHLLHCObjects::setBetaCrossingPlane(), SimBeamSpotHLLHCObjects::setBetaSeparationPlane(), SimBeamSpotHLLHCObjects::setBunchLength(), SimBeamSpotHLLHCObjects::setCrabbingAngleCrossing(), SimBeamSpotHLLHCObjects::setCrabbingAngleSeparation(), SimBeamSpotHLLHCObjects::setCrabFrequency(), SimBeamSpotHLLHCObjects::setCrossingAngle(), SimBeamSpotHLLHCObjects::setEProton(), SimBeamSpotHLLHCObjects::setHorizontalEmittance(), SimBeamSpotHLLHCObjects::setMeanX(), SimBeamSpotHLLHCObjects::setMeanY(), SimBeamSpotHLLHCObjects::setMeanZ(), SimBeamSpotHLLHCObjects::setRF800(), SimBeamSpotHLLHCObjects::setTimeOffset(), and SimBeamSpotHLLHCObjects::setVerticalEmittance().

55  : recordName_(iConfig.getParameter<std::string>("recordName")) {
56  beamSpot_.setMeanX(iConfig.getParameter<double>("MeanX"));
57  beamSpot_.setMeanY(iConfig.getParameter<double>("MeanY"));
58  beamSpot_.setMeanZ(iConfig.getParameter<double>("MeanZ"));
59  beamSpot_.setEProton(iConfig.getParameter<double>("EProton"));
60  beamSpot_.setCrabFrequency(iConfig.getParameter<double>("CrabFrequency"));
61  beamSpot_.setRF800(iConfig.getParameter<double>("RF800"));
62  beamSpot_.setCrossingAngle(iConfig.getParameter<double>("CrossingAngle"));
63  beamSpot_.setCrabbingAngleCrossing(iConfig.getParameter<double>("CrabbingAngleCrossing"));
64  beamSpot_.setCrabbingAngleSeparation(iConfig.getParameter<double>("CrabbingAngleSeparation"));
65  beamSpot_.setBetaCrossingPlane(iConfig.getParameter<double>("BetaCrossingPlane"));
66  beamSpot_.setBetaSeparationPlane(iConfig.getParameter<double>("BetaSeparationPlane"));
67  beamSpot_.setHorizontalEmittance(iConfig.getParameter<double>("HorizontalEmittance"));
68  beamSpot_.setVerticalEmittance(iConfig.getParameter<double>("VerticalEmittance"));
69  beamSpot_.setBunchLength(iConfig.getParameter<double>("BunchLength"));
70  beamSpot_.setTimeOffset(iConfig.getParameter<double>("TimeOffset"));
71 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
void setMeanX(double val)
set meanX, meanY, meanZ
void setEProton(double val)
set EProton, fCrabFrequency, RF800
void setHorizontalEmittance(double val)
void setBetaSeparationPlane(double val)
void setCrabbingAngleCrossing(double val)
void setVerticalEmittance(double val)
void setBunchLength(double val)
set BunchLength and TimeOffset
void setCrossingAngle(double val)
set Crossing and Crabbing angles
SimBeamSpotHLLHCObjects beamSpot_
void setCrabbingAngleSeparation(double val)
void setBetaCrossingPlane(double val)
set BetaStar and Emittance

◆ ~BeamProfileHLLHC2DBWriter()

BeamProfileHLLHC2DBWriter::~BeamProfileHLLHC2DBWriter ( )
overridedefault

Member Function Documentation

◆ analyze()

void BeamProfileHLLHC2DBWriter::analyze ( edm::StreamID  ,
const edm::Event iEvent,
const edm::EventSetup iSetup 
) const
overrideprivatevirtual

Implements edm::global::EDAnalyzerBase.

Definition at line 74 of file BeamProfileHLLHC2DBWriter.cc.

74 {}

◆ endJob()

void BeamProfileHLLHC2DBWriter::endJob ( void  )
overrideprivatevirtual

◆ fillDescriptions()

void BeamProfileHLLHC2DBWriter::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 83 of file BeamProfileHLLHC2DBWriter.cc.

References edm::ConfigurationDescriptions::addWithDefaultLabel(), submitPVResolutionJobs::desc, and AlCaHLTBitMon_QueryRunRegistry::string.

83  {
85  desc.add<std::string>("recordName", "SimBeamSpotHLLHCObjectsRcd")
86  ->setComment("name of the record to use for the PoolDBOutputService");
87  desc.add<double>("MeanX", 0.0)->setComment("in cm");
88  desc.add<double>("MeanY", 0.0)->setComment("in cm");
89  desc.add<double>("MeanZ", 0.0)->setComment("in cm");
90  desc.add<double>("EProton", 0.0)->setComment("in GeV");
91  desc.add<double>("CrabFrequency", 0.0)->setComment("in MHz");
92  desc.add<double>("RF800", 0.0)->setComment("800 MHz RF?");
93  desc.add<double>("CrossingAngle", 0.0)->setComment("in urad");
94  desc.add<double>("CrabbingAngleCrossing", 0.0)->setComment("in urad");
95  desc.add<double>("CrabbingAngleSeparation", 0.0)->setComment("in urad");
96  desc.add<double>("BetaCrossingPlane", 0.0)->setComment("in m");
97  desc.add<double>("BetaSeparationPlane", 0.0)->setComment("in m");
98  desc.add<double>("HorizontalEmittance", 0.0)->setComment("in mm");
99  desc.add<double>("VerticalEmittance", 0.0)->setComment("in mm");
100  desc.add<double>("BunchLength", 0.0)->setComment("in m");
101  desc.add<double>("TimeOffset", 0.0)->setComment("in ns");
102  descriptions.addWithDefaultLabel(desc);
103 }
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)

Member Data Documentation

◆ beamSpot_

SimBeamSpotHLLHCObjects BeamProfileHLLHC2DBWriter::beamSpot_
private

Definition at line 50 of file BeamProfileHLLHC2DBWriter.cc.

Referenced by BeamProfileHLLHC2DBWriter(), and endJob().

◆ recordName_

const std::string BeamProfileHLLHC2DBWriter::recordName_
private

Definition at line 49 of file BeamProfileHLLHC2DBWriter.cc.

Referenced by endJob().