Public Member Functions | |
void | Alpha (double m=0) |
angle between crossing plane and horizontal plane More... | |
void | Beta (double m=0) |
double | BetaFunction (double z, double z0) |
beta function More... | |
void | betastar (double m=0) |
set beta_star More... | |
void | emittance (double m=0) |
emittance (no the normalized) More... | |
virtual TMatrixD * | GetInvLorentzBoost () |
virtual HepMC::FourVector * | getRecVertex (edm::Event &) |
virtual HepMC::FourVector * | getVertex (edm::Event &) |
MixBoostEvtVtxGenerator (const edm::ParameterSet &p) | |
MixBoostEvtVtxGenerator (const MixBoostEvtVtxGenerator &p)=delete | |
MixBoostEvtVtxGenerator & | operator= (const MixBoostEvtVtxGenerator &rhs)=delete |
void | Phi (double m=0) |
set half crossing angle More... | |
void | produce (edm::Event &, const edm::EventSetup &) override |
return a new event vertex More... | |
void | sigmaZ (double s=1.0) |
set resolution in Z in cm More... | |
void | X0 (double m=0) |
set mean in X in cm More... | |
void | Y0 (double m=0) |
set mean in Y in cm More... | |
void | Z0 (double m=0) |
set mean in Z in cm More... | |
~MixBoostEvtVtxGenerator () override | |
Public Member Functions inherited from edm::one::EDProducer<> | |
EDProducer ()=default | |
EDProducer (const EDProducer &)=delete | |
SerialTaskQueue * | globalLuminosityBlocksQueue () final |
SerialTaskQueue * | globalRunsQueue () final |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndProcessBlocks () const final |
bool | hasAbilityToProduceInEndRuns () const final |
const EDProducer & | operator= (const EDProducer &)=delete |
bool | wantsGlobalLuminosityBlocks () const final |
bool | wantsGlobalRuns () const final |
bool | wantsInputProcessBlocks () const final |
bool | wantsProcessBlocks () const final |
Public Member Functions inherited from edm::one::EDProducerBase | |
EDProducerBase () | |
ModuleDescription const & | moduleDescription () const |
bool | wantsStreamLuminosityBlocks () const |
bool | wantsStreamRuns () const |
~EDProducerBase () override | |
Public Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
ProducerBase () | |
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
std::vector< bool > const & | recordProvenanceList () const |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
void | resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
TypeLabelList const & | typeLabelList () const |
used by the fwk to register the list of products of this module More... | |
~ProducerBase () noexcept(false) override | |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () 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 | |
ESProxyIndex const * | esGetTokenIndices (edm::Transition iTrans) const |
std::vector< ESProxyIndex > 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 |
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, 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::ESRecordsToProxyIndices const &) |
virtual | ~EDConsumerBase () noexcept(false) |
Private Attributes | |
double | alpha_ |
double | beta_ |
TMatrixD * | boost_ |
double | falpha |
double | fbetastar |
double | femittance |
double | fSigmaZ |
double | fTimeOffset |
HepMC::FourVector * | fVertex |
double | fX0 |
double | fY0 |
double | fZ0 |
const edm::EDGetTokenT< CrossingFrame< HepMCProduct > > | mixLabel |
double | phi_ |
const edm::EDGetTokenT< HepMCProduct > | signalLabel |
const bool | useRecVertex |
const edm::EDGetTokenT< reco::VertexCollection > | vtxLabel |
std::vector< double > | vtxOffset |
Additional Inherited Members | |
Public Types inherited from edm::one::EDProducerBase | |
typedef EDProducerBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
template<typename T > | |
using | BranchAliasSetterT = ProductRegistryHelper::BranchAliasSetterT< T > |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > > |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::one::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::ProducerBase | |
template<Transition Tr = Transition::Event> | |
auto | produces (std::string instanceName) noexcept |
declare what type of product will make and with which optional label More... | |
template<Transition B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<BranchType B> | |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
BranchAliasSetter | produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces () |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , BranchType B> | |
BranchAliasSetterT< ProductType > | produces () |
template<class ProductType > | |
BranchAliasSetterT< ProductType > | produces (std::string instanceName) |
template<typename ProductType , Transition B> | |
BranchAliasSetterT< ProductType > | produces () |
template<Transition Tr = Transition::Event> | |
auto | produces () noexcept |
ProducesCollector | producesCollector () |
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< B > | consumes (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 ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
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) |
Definition at line 50 of file MixBoostEvtVtxGenerator.cc.
MixBoostEvtVtxGenerator::MixBoostEvtVtxGenerator | ( | const edm::ParameterSet & | p | ) |
Definition at line 110 of file MixBoostEvtVtxGenerator.cc.
References alpha_, beta_, phi_, muonDTDigis_cfi::pset, and vtxOffset.
|
delete |
Copy constructor
|
override |
Definition at line 133 of file MixBoostEvtVtxGenerator.cc.
References boost_, and fVertex.
|
inline |
angle between crossing plane and horizontal plane
Definition at line 78 of file MixBoostEvtVtxGenerator.cc.
References visualization-live-secondInstance_cfg::m.
|
inline |
Definition at line 79 of file MixBoostEvtVtxGenerator.cc.
References visualization-live-secondInstance_cfg::m.
double MixBoostEvtVtxGenerator::BetaFunction | ( | double | z, |
double | z0 | ||
) |
beta function
Definition at line 140 of file MixBoostEvtVtxGenerator.cc.
References fbetastar, femittance, mathSSE::sqrt(), z, and HLTMuonOfflineAnalyzer_cfi::z0.
|
inline |
set beta_star
Definition at line 82 of file MixBoostEvtVtxGenerator.cc.
References visualization-live-secondInstance_cfg::m.
|
inline |
emittance (no the normalized)
Definition at line 84 of file MixBoostEvtVtxGenerator.cc.
References visualization-live-secondInstance_cfg::m.
|
virtual |
Definition at line 153 of file MixBoostEvtVtxGenerator.cc.
References alpha_, beta_, boost_, funct::cos(), phi_, funct::sin(), mathSSE::sqrt(), and funct::tan().
Referenced by produce().
|
virtual |
Definition at line 257 of file MixBoostEvtVtxGenerator.cc.
References fVertex, edm::Event::getHandle(), input, vtxLabel, and vtxOffset.
Referenced by produce().
|
virtual |
Definition at line 216 of file MixBoostEvtVtxGenerator.cc.
References gather_cfg::cout, Exception, fVertex, edm::Event::getHandle(), GeneratorMix_cff::mix, mixLabel, edm::Handle< T >::product(), and DiDispStaMuonMonitor_cfi::pt.
Referenced by produce().
|
delete |
Copy assignment operator
|
inline |
set half crossing angle
Definition at line 76 of file MixBoostEvtVtxGenerator.cc.
References visualization-live-secondInstance_cfg::m.
|
overridevirtual |
return a new event vertex
Implements edm::one::EDProducerBase.
Definition at line 273 of file MixBoostEvtVtxGenerator.cc.
References edm::HepMCProduct::GetEvent(), edm::Event::getHandle(), GetInvLorentzBoost(), getRecVertex(), getVertex(), eostools::move(), edm::Event::put(), signalLabel, and useRecVertex.
void MixBoostEvtVtxGenerator::sigmaZ | ( | double | s = 1.0 | ) |
set resolution in Z in cm
Definition at line 144 of file MixBoostEvtVtxGenerator.cc.
References Exception, fSigmaZ, and alignCSCRings::s.
|
inline |
set mean in X in cm
Definition at line 69 of file MixBoostEvtVtxGenerator.cc.
References visualization-live-secondInstance_cfg::m.
|
inline |
set mean in Y in cm
Definition at line 71 of file MixBoostEvtVtxGenerator.cc.
References visualization-live-secondInstance_cfg::m.
|
inline |
set mean in Z in cm
Definition at line 73 of file MixBoostEvtVtxGenerator.cc.
References visualization-live-secondInstance_cfg::m.
|
private |
Definition at line 90 of file MixBoostEvtVtxGenerator.cc.
Referenced by GetInvLorentzBoost(), and MixBoostEvtVtxGenerator().
|
private |
Definition at line 92 of file MixBoostEvtVtxGenerator.cc.
Referenced by GetInvLorentzBoost(), and MixBoostEvtVtxGenerator().
|
private |
Definition at line 100 of file MixBoostEvtVtxGenerator.cc.
Referenced by GetInvLorentzBoost(), and ~MixBoostEvtVtxGenerator().
|
private |
Definition at line 97 of file MixBoostEvtVtxGenerator.cc.
|
private |
Definition at line 96 of file MixBoostEvtVtxGenerator.cc.
Referenced by BetaFunction().
|
private |
Definition at line 96 of file MixBoostEvtVtxGenerator.cc.
Referenced by BetaFunction().
|
private |
Definition at line 94 of file MixBoostEvtVtxGenerator.cc.
Referenced by sigmaZ().
|
private |
Definition at line 101 of file MixBoostEvtVtxGenerator.cc.
|
private |
Definition at line 99 of file MixBoostEvtVtxGenerator.cc.
Referenced by getRecVertex(), getVertex(), and ~MixBoostEvtVtxGenerator().
|
private |
Definition at line 93 of file MixBoostEvtVtxGenerator.cc.
|
private |
Definition at line 93 of file MixBoostEvtVtxGenerator.cc.
|
private |
Definition at line 93 of file MixBoostEvtVtxGenerator.cc.
|
private |
Definition at line 105 of file MixBoostEvtVtxGenerator.cc.
Referenced by getVertex().
|
private |
Definition at line 90 of file MixBoostEvtVtxGenerator.cc.
Referenced by GetInvLorentzBoost(), and MixBoostEvtVtxGenerator().
|
private |
Definition at line 104 of file MixBoostEvtVtxGenerator.cc.
Referenced by produce().
|
private |
Definition at line 106 of file MixBoostEvtVtxGenerator.cc.
Referenced by produce().
|
private |
Definition at line 103 of file MixBoostEvtVtxGenerator.cc.
Referenced by getRecVertex().
|
private |
Definition at line 107 of file MixBoostEvtVtxGenerator.cc.
Referenced by getRecVertex(), and MixBoostEvtVtxGenerator().