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
edm::BeamMomentumGunProducer::b_parZ_
TBranch * b_parZ_
Definition: BeamMomentumGunProducer.h:37
edm::BeamMomentumGunProducer::MeV2GeV_
static constexpr double MeV2GeV_
Definition: BeamMomentumGunProducer.h:41
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::BeamMomentumGunProducer::mm2cm_
static constexpr double mm2cm_
Definition: BeamMomentumGunProducer.h:40
edm::BeamMomentumGunProducer::parPx_
std::vector< float > * parPx_
Definition: BeamMomentumGunProducer.h:33
edm::BeamMomentumGunProducer::produce
void produce(Event &e, const EventSetup &es) override
Definition: BeamMomentumGunProducer.cc:79
edm::BeamMomentumGunProducer::parPDGId_
std::vector< int > * parPDGId_
Definition: BeamMomentumGunProducer.h:31
edm::BeamMomentumGunProducer::nentries_
long int nentries_
Definition: BeamMomentumGunProducer.h:27
edm::BeamMomentumGunProducer::cm2mm_
static constexpr double cm2mm_
Definition: BeamMomentumGunProducer.h:40
edm::BeamMomentumGunProducer::BeamMomentumGunProducer
BeamMomentumGunProducer(const ParameterSet &)
Definition: BeamMomentumGunProducer.cc:21
edm::BeamMomentumGunProducer::fTree_
TTree * fTree_
Definition: BeamMomentumGunProducer.h:26
edm::BeamMomentumGunProducer::parPy_
std::vector< float > * parPy_
Definition: BeamMomentumGunProducer.h:33
edm::BeamMomentumGunProducer::parX_
std::vector< float > * parX_
Definition: BeamMomentumGunProducer.h:32
edm::ParameterSet
Definition: ParameterSet.h:47
edm::BeamMomentumGunProducer::xoff_
double xoff_
Definition: BeamMomentumGunProducer.h:24
edm::BeamMomentumGunProducer::b_parX_
TBranch * b_parX_
Definition: BeamMomentumGunProducer.h:37
edm::BeamMomentumGunProducer::parPz_
std::vector< float > * parPz_
Definition: BeamMomentumGunProducer.h:33
edm::EventSetup
Definition: EventSetup.h:58
edm::BeamMomentumGunProducer::b_parPz_
TBranch * b_parPz_
Definition: BeamMomentumGunProducer.h:38
edm::BeamMomentumGunProducer::b_parPx_
TBranch * b_parPx_
Definition: BeamMomentumGunProducer.h:38
edm::BeamMomentumGunProducer::b_eventId_
TBranch * b_eventId_
Definition: BeamMomentumGunProducer.h:36
edm::BeamMomentumGunProducer::zpos_
double zpos_
Definition: BeamMomentumGunProducer.h:24
edm::FlatBaseThetaGunProducer
Definition: FlatBaseThetaGunProducer.h:21
edm::BeamMomentumGunProducer::npar_
int npar_
Definition: BeamMomentumGunProducer.h:30
edm::BeamMomentumGunProducer::fFile_
TFile * fFile_
Definition: BeamMomentumGunProducer.h:25
edm::BeamMomentumGunProducer::yoff_
double yoff_
Definition: BeamMomentumGunProducer.h:24
edm::BeamMomentumGunProducer::b_parPy_
TBranch * b_parPy_
Definition: BeamMomentumGunProducer.h:38
edm::BeamMomentumGunProducer::parZ_
std::vector< float > * parZ_
Definition: BeamMomentumGunProducer.h:32
edm::BeamMomentumGunProducer::b_parPDGId_
TBranch * b_parPDGId_
Definition: BeamMomentumGunProducer.h:36
edm::BeamMomentumGunProducer::eventId_
int eventId_
Definition: BeamMomentumGunProducer.h:30
edm::BeamMomentumGunProducer
Definition: BeamMomentumGunProducer.h:15
edm::BeamMomentumGunProducer::b_parY_
TBranch * b_parY_
Definition: BeamMomentumGunProducer.h:37
FlatBaseThetaGunProducer.h
edm::Event
Definition: Event.h:73
edm::BeamMomentumGunProducer::~BeamMomentumGunProducer
~BeamMomentumGunProducer() override
Definition: BeamMomentumGunProducer.h:18
edm::BeamMomentumGunProducer::parY_
std::vector< float > * parY_
Definition: BeamMomentumGunProducer.h:32
edm::BeamMomentumGunProducer::b_npar_
TBranch * b_npar_
Definition: BeamMomentumGunProducer.h:36
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37