CMS 3D CMS Logo

BeamHaloProducer.h
Go to the documentation of this file.
1 #ifndef BeamHalo_Producer_h
2 #define BeamHalo_Producer_h
3 
4 #include <map>
5 #include <string>
6 
7 #include "HepMC/GenEvent.h"
8 
9 #include "CLHEP/Random/RandFlat.h"
10 
16 
17 namespace CLHEP {
18  class HepRandomEngine;
19 }
20 
21 namespace edm {
22  class BeamHaloProducer : public one::EDProducer<EndRunProducer, one::WatchLuminosityBlocks, one::SharedResources> {
23  public:
27  ~BeamHaloProducer() override;
28 
29  void setRandomEngine(CLHEP::HepRandomEngine* v);
30 
31  private:
32  bool call_ki_bhg_init(long& seed);
33  bool call_bh_set_parameters(int* ival, float* fval, const std::string cval_string);
34  bool call_ki_bhg_fill(int& iret, float& weight);
35  bool call_ki_bhg_stat(int& iret);
36 
37  private:
38  void produce(Event& e, const EventSetup& es) override;
39  void endRunProduce(Run& r, const EventSetup& es) override;
40  void beginLuminosityBlock(LuminosityBlock const&, EventSetup const&) override;
41  void endLuminosityBlock(LuminosityBlock const&, EventSetup const&) override {}
42 
43  void clear();
44 
46 
47  int GENMOD_;
48  int LHC_B1_;
49  int LHC_B2_;
50  int IW_MUO_;
51  int IW_HAD_;
52  float EG_MIN_;
53  float EG_MAX_;
55 
57  };
58 
59 } // namespace edm
60 
61 #endif
edm::BeamHaloProducer::IW_HAD_
int IW_HAD_
Definition: BeamHaloProducer.h:51
edm::BeamHaloProducer::endLuminosityBlock
void endLuminosityBlock(LuminosityBlock const &, EventSetup const &) override
Definition: BeamHaloProducer.h:41
edm::BeamHaloProducer::clear
void clear()
Definition: BeamHaloProducer.cc:87
EDProducer.h
edm::BeamHaloProducer::setRandomEngine
void setRandomEngine(CLHEP::HepRandomEngine *v)
Definition: BeamHaloProducer.cc:89
edm::BeamHaloProducer::~BeamHaloProducer
~BeamHaloProducer() override
Destructor.
Definition: BeamHaloProducer.cc:50
edm::LuminosityBlock
Definition: LuminosityBlock.h:50
edm::BeamHaloProducer::EG_MIN_
float EG_MIN_
Definition: BeamHaloProducer.h:52
edm::Run
Definition: Run.h:45
LuminosityBlock.h
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::BeamHaloProducer::beginLuminosityBlock
void beginLuminosityBlock(LuminosityBlock const &, EventSetup const &) override
Definition: BeamHaloProducer.cc:91
edm::one::EDProducer
Definition: EDProducer.h:30
findQualityFiles.v
v
Definition: findQualityFiles.py:179
HepMC::GenEvent
Definition: hepmc_rootio.cc:9
edm::BeamHaloProducer::produce
void produce(Event &e, const EventSetup &es) override
Definition: BeamHaloProducer.cc:102
fileCollector.seed
seed
Definition: fileCollector.py:127
edm::BeamHaloProducer::GENMOD_
int GENMOD_
Definition: BeamHaloProducer.h:47
edm::BeamHaloProducer::EG_MAX_
float EG_MAX_
Definition: BeamHaloProducer.h:53
Run.h
edm::BeamHaloProducer::evt
HepMC::GenEvent * evt
Definition: BeamHaloProducer.h:45
CLHEP
Definition: CocoaGlobals.h:27
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:47
edm::BeamHaloProducer::LHC_B1_
int LHC_B1_
Definition: BeamHaloProducer.h:48
Event.h
edm::BeamHaloProducer::call_bh_set_parameters
bool call_bh_set_parameters(int *ival, float *fval, const std::string cval_string)
Definition: BeamHaloProducer.cc:159
edm::BeamHaloProducer
Definition: BeamHaloProducer.h:22
edm::BeamHaloProducer::G3FNAME_
std::string G3FNAME_
Definition: BeamHaloProducer.h:54
edm::BeamHaloProducer::endRunProduce
void endRunProduce(Run &r, const EventSetup &es) override
Definition: BeamHaloProducer.cc:151
edm::EventSetup
Definition: EventSetup.h:58
edm::BeamHaloProducer::BeamHaloProducer
BeamHaloProducer(const ParameterSet &)
Constructor.
Definition: BeamHaloProducer.cc:55
alignCSCRings.r
r
Definition: alignCSCRings.py:93
edm::BeamHaloProducer::call_ki_bhg_fill
bool call_ki_bhg_fill(int &iret, float &weight)
Definition: BeamHaloProducer.cc:169
edm::BeamHaloProducer::call_ki_bhg_init
bool call_ki_bhg_init(long &seed)
Definition: BeamHaloProducer.cc:164
edm::BeamHaloProducer::call_ki_bhg_stat
bool call_ki_bhg_stat(int &iret)
Definition: BeamHaloProducer.cc:174
edm::BeamHaloProducer::LHC_B2_
int LHC_B2_
Definition: BeamHaloProducer.h:49
ParameterSet.h
edm::BeamHaloProducer::IW_MUO_
int IW_MUO_
Definition: BeamHaloProducer.h:50
edm::Event
Definition: Event.h:73
edm::BeamHaloProducer::isInitialized_
bool isInitialized_
Definition: BeamHaloProducer.h:56
weight
Definition: weight.py:1
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37