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... | |
CLHEP::HepRandomEngine & | getEngine () |
virtual TMatrixD * | GetInvLorentzBoost () |
virtual HepMC::FourVector * | getRecVertex (edm::Event &) |
virtual HepMC::FourVector * | getVertex (edm::Event &) |
MixBoostEvtVtxGenerator (const edm::ParameterSet &p) | |
virtual HepMC::FourVector * | newVertex () |
return a new event vertex More... | |
void | Phi (double m=0) |
set half crossing angle More... | |
virtual void | produce (edm::Event &, const edm::EventSetup &) override |
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... | |
virtual | ~MixBoostEvtVtxGenerator () |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Public Member Functions inherited from edm::EDConsumerBase | |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Private Member Functions | |
MixBoostEvtVtxGenerator (const MixBoostEvtVtxGenerator &p) | |
MixBoostEvtVtxGenerator & | operator= (const MixBoostEvtVtxGenerator &rhs) |
Private Attributes | |
double | alpha_ |
double | beta_ |
TMatrixD * | boost_ |
double | falpha |
double | fbetastar |
double | femittance |
CLHEP::HepRandomEngine * | fEngine |
CLHEP::RandGaussQ * | fRandom |
double | fSigmaZ |
double | fTimeOffset |
HepMC::FourVector * | fVertex |
double | fX0 |
double | fY0 |
double | fZ0 |
edm::InputTag | hiLabel |
double | phi_ |
edm::InputTag | signalLabel |
edm::InputTag | sourceLabel |
bool | useRecVertex |
std::vector< double > | vtxOffset |
Additional Inherited Members | |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Static Public Member Functions inherited from edm::EDProducer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
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 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) |
Definition at line 51 of file MixBoostEvtVtxGenerator.cc.
MixBoostEvtVtxGenerator::MixBoostEvtVtxGenerator | ( | const edm::ParameterSet & | p | ) |
Definition at line 121 of file MixBoostEvtVtxGenerator.cc.
References edm::hlt::Exception, edm::ParameterSet::exists(), fEngine, edm::RandomNumberGenerator::getEngine(), edm::ParameterSet::getParameter(), edm::Service< T >::isAvailable(), and vtxOffset.
|
virtual |
Definition at line 147 of file MixBoostEvtVtxGenerator.cc.
References boost_, fRandom, and fVertex.
|
private |
Copy constructor
|
inline |
angle between crossing plane and horizontal plane
Definition at line 77 of file MixBoostEvtVtxGenerator.cc.
References m.
|
inline |
double MixBoostEvtVtxGenerator::BetaFunction | ( | double | z, |
double | z0 | ||
) |
beta function
Definition at line 187 of file MixBoostEvtVtxGenerator.cc.
References fbetastar, femittance, and mathSSE::sqrt().
Referenced by newVertex().
|
inline |
|
inline |
emittance (no the normalized)
Definition at line 83 of file MixBoostEvtVtxGenerator.cc.
References m.
CLHEP::HepRandomEngine & MixBoostEvtVtxGenerator::getEngine | ( | ) |
Definition at line 154 of file MixBoostEvtVtxGenerator.cc.
References fEngine.
|
virtual |
Definition at line 206 of file MixBoostEvtVtxGenerator.cc.
References alpha_, beta_, boost_, funct::cos(), phi_, funct::sin(), mathSSE::sqrt(), and funct::tan().
|
virtual |
Definition at line 303 of file MixBoostEvtVtxGenerator.cc.
References fVertex, edm::Event::getByLabel(), hiLabel, input, and vtxOffset.
Referenced by produce().
|
virtual |
Definition at line 270 of file MixBoostEvtVtxGenerator.cc.
References gather_cfg::cout, fVertex, edm::Event::getByLabel(), hiLabel, input, and RecoTauCleanerPlugins::pt.
Referenced by produce().
|
virtual |
return a new event vertex
Definition at line 160 of file MixBoostEvtVtxGenerator.cc.
References BetaFunction(), fRandom, fSigmaZ, fTimeOffset, fVertex, fX0, fY0, fZ0, mathSSE::sqrt(), X, and Gflash::Z.
|
private |
Copy assignment operator
|
inline |
|
overridevirtual |
Implements edm::EDProducer.
Definition at line 322 of file MixBoostEvtVtxGenerator.cc.
References edm::Event::getByLabel(), getRecVertex(), getVertex(), edm::Event::put(), reco::return(), signalLabel, and useRecVertex.
void MixBoostEvtVtxGenerator::sigmaZ | ( | double | s = 1.0 | ) |
set resolution in Z in cm
Definition at line 194 of file MixBoostEvtVtxGenerator.cc.
References edm::hlt::Exception, fSigmaZ, and alignCSCRings::s.
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 95 of file MixBoostEvtVtxGenerator.cc.
Referenced by GetInvLorentzBoost().
|
private |
Definition at line 97 of file MixBoostEvtVtxGenerator.cc.
Referenced by GetInvLorentzBoost().
|
private |
Definition at line 105 of file MixBoostEvtVtxGenerator.cc.
Referenced by GetInvLorentzBoost(), and ~MixBoostEvtVtxGenerator().
|
private |
Definition at line 102 of file MixBoostEvtVtxGenerator.cc.
|
private |
Definition at line 101 of file MixBoostEvtVtxGenerator.cc.
Referenced by BetaFunction().
|
private |
Definition at line 101 of file MixBoostEvtVtxGenerator.cc.
Referenced by BetaFunction().
|
private |
Definition at line 108 of file MixBoostEvtVtxGenerator.cc.
Referenced by getEngine(), and MixBoostEvtVtxGenerator().
|
private |
Definition at line 111 of file MixBoostEvtVtxGenerator.cc.
Referenced by newVertex(), and ~MixBoostEvtVtxGenerator().
|
private |
Definition at line 99 of file MixBoostEvtVtxGenerator.cc.
Referenced by newVertex(), and sigmaZ().
|
private |
Definition at line 106 of file MixBoostEvtVtxGenerator.cc.
Referenced by newVertex().
|
private |
Definition at line 104 of file MixBoostEvtVtxGenerator.cc.
Referenced by getRecVertex(), getVertex(), newVertex(), and ~MixBoostEvtVtxGenerator().
|
private |
Definition at line 98 of file MixBoostEvtVtxGenerator.cc.
Referenced by newVertex().
|
private |
Definition at line 98 of file MixBoostEvtVtxGenerator.cc.
Referenced by newVertex().
|
private |
Definition at line 98 of file MixBoostEvtVtxGenerator.cc.
Referenced by newVertex().
|
private |
Definition at line 114 of file MixBoostEvtVtxGenerator.cc.
Referenced by getRecVertex(), and getVertex().
|
private |
Definition at line 95 of file MixBoostEvtVtxGenerator.cc.
Referenced by GetInvLorentzBoost().
|
private |
Definition at line 113 of file MixBoostEvtVtxGenerator.cc.
Referenced by produce().
|
private |
Definition at line 109 of file MixBoostEvtVtxGenerator.cc.
|
private |
Definition at line 115 of file MixBoostEvtVtxGenerator.cc.
Referenced by produce().
|
private |
Definition at line 116 of file MixBoostEvtVtxGenerator.cc.
Referenced by getRecVertex(), and MixBoostEvtVtxGenerator().