/[PAMELA software]/PamVMC/include/PamVMCPrimaryGenerator.h
ViewVC logotype

Diff of /PamVMC/include/PamVMCPrimaryGenerator.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by pam-rm2, Fri Jun 12 18:39:19 2009 UTC revision 1.6 by pizzolot, Wed Sep 15 07:05:42 2010 UTC
# Line 88  class PamVMCPrimaryGenerator : public TO Line 88  class PamVMCPrimaryGenerator : public TO
88      void GenSpe(Double_t PEmin, Double_t PEmax, Bool_t isEnergy=kFALSE);      void GenSpe(Double_t PEmin, Double_t PEmax, Bool_t isEnergy=kFALSE);
89      //power law spectra, gamma - differential spectral index      //power law spectra, gamma - differential spectral index
90      void GenSpe(Double_t PEmin, Double_t PEmax, Double_t gamma, Bool_t isEnergy=kFALSE);      void GenSpe(Double_t PEmin, Double_t PEmax, Double_t gamma, Bool_t isEnergy=kFALSE);
91        void GenSpe_Flat(Double_t PEmin, Double_t PEmax, Double_t gamma, Bool_t isEnergy=kFALSE);
92        void GenSpe_3par(Double_t PEmin, Double_t PEmax, Double_t a, Double_t b, Double_t c);
93        void GenSphericalPhiThe(); // cecilia // flusso istropo // sets phi the
94        void GenSphPhiThe(Double_t xmin, Double_t xmax, Double_t ymin, Double_t ymax,
95                          Double_t zmin, Double_t zmax); // flusso isotropo entro S2 S3
96        //                                                  sets position and phi the
97        
98    
99      // get methods      // get methods
100      Int_t GetParticle(){ return fprim.fPDG; };      Int_t GetParticle(){ return fprim.fPDG; };
# Line 127  class PamVMCPrimaryGenerator : public TO Line 134  class PamVMCPrimaryGenerator : public TO
134      Double_t KinEToMomentum(Double_t E0);      Double_t KinEToMomentum(Double_t E0);
135      Double_t MomentumToRig(Double_t P0) { return P0/fcharge; };      Double_t MomentumToRig(Double_t P0) { return P0/fcharge; };
136      Double_t RigToMomentum(Double_t R0){ return R0*fcharge; };      Double_t RigToMomentum(Double_t R0){ return R0*fcharge; };
137        Double_t function3par(Double_t xx, Double_t a, Double_t b, Double_t c){return  5.*pow((xx + b * exp(-c * sqrt(xx))),-a);};
138    
139      // data members      // data members
140      TVirtualMCStack*  fStack;      TVirtualMCStack*  fStack;

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.23