BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
CosmicGun.h
Go to the documentation of this file.
1#ifndef COSMICGENERATOR_COSMICGUN_H
2#define COSMICGENERATOR_COSMICGUN_H
3
4#include "CLHEP/Vector/LorentzVector.h"
5using namespace CLHEP;
6class CosmicGun {
7public:
8 static CosmicGun* GetCosmicGun( void );
9 HepLorentzVector GenerateEvent( void );
10 HepLorentzVector GenerateVertex( void );
11 void SetEnergyRange( float emin, float emax );
12 void SetCosCut( float ctcut );
13 void PrintLevel( int printevt, int printmod );
14 int GetMuonCharge( void );
15 float InitializeGenerator(); // returns flux after all cuts in cm2/s
16private:
17 CosmicGun( void );
18 static CosmicGun* mpointer;
19
20 long int m_event;
21 long int m_printevt, m_printmod;
22 float m_emin, m_emax;
23 float m_coscut;
24};
25
26#endif
void PrintLevel(int printevt, int printmod)
Definition CosmicGun.cxx:88
void SetEnergyRange(float emin, float emax)
int GetMuonCharge(void)
HepLorentzVector GenerateEvent(void)
HepLorentzVector GenerateVertex(void)
float InitializeGenerator()
Definition CosmicGun.cxx:79
void SetCosCut(float ctcut)
static CosmicGun * GetCosmicGun(void)
Definition CosmicGun.cxx:49