CMS 3D CMS Logo

BeamMomentumGunProducer.h
Go to the documentation of this file.
1 #ifndef IOMC_ParticleGuns_BeamMomentumGunProducer_H
2 #define IOMC_ParticleGuns_BeamMomentumGunProducer_H
3 
5 
6 #include <iostream>
7 #include <string>
8 #include <vector>
9 
10 #include "TFile.h"
11 #include "TTree.h"
12 
13 namespace edm {
14 
16  public:
19 
20  void produce(Event &e, const EventSetup &es) override;
21 
22  private:
23  // data members
24  double xoff_, yoff_, zpos_;
25  TFile *fFile_;
26  TTree *fTree_;
27  long int nentries_;
28 
29  // Declaration of leaf types
31  std::vector<int> *parPDGId_;
32  std::vector<float> *parX_, *parY_, *parZ_;
33  std::vector<float> *parPx_, *parPy_, *parPz_;
34 
35  // List of branches
37  TBranch *b_parX_, *b_parY_, *b_parZ_;
38  TBranch *b_parPx_, *b_parPy_, *b_parPz_;
39 
40  static constexpr double mm2cm_ = 0.1, cm2mm_ = 10.0;
41  static constexpr double MeV2GeV_ = 0.001;
42  };
43 } // namespace edm
44 
45 #endif
static constexpr double MeV2GeV_
void produce(Event &e, const EventSetup &es) override
BeamMomentumGunProducer(const ParameterSet &)
HLT enums.