ATLAS Offline Software
CosmicGun.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef COSMICGENERATOR_COSMICGUN_H
6 #define COSMICGENERATOR_COSMICGUN_H
7 
8 #include "CLHEP/Vector/LorentzVector.h"
9 
10 class CosmicGun{
11 public:
12  static CosmicGun* GetCosmicGun(void);
13  CLHEP::HepLorentzVector GenerateEvent(void);
14  CLHEP::HepLorentzVector GenerateVertex(void);
15  void SetEnergyRange(float emin, float emax);
16  void SetCosCut(float ctcut);
17  void PrintLevel(int printevt,int printmod);
18  int GetMuonCharge(void);
19  float InitializeGenerator(); // returns flux after all cuts in cm2/s
20 private:
21  CosmicGun(void);
23 
24  int m_event;
26  float m_emin, m_emax;
27  float m_coscut;
28 };
29 
30 
31 #endif
CosmicGun
Definition: CosmicGun.h:10
CosmicGun::SetCosCut
void SetCosCut(float ctcut)
Definition: CosmicGun.cxx:157
CosmicGun::s_mpointer
static CosmicGun * s_mpointer
Definition: CosmicGun.h:22
CosmicGun::m_emin
float m_emin
Definition: CosmicGun.h:26
CosmicGun::CosmicGun
CosmicGun(void)
Definition: CosmicGun.cxx:64
CosmicGun::GenerateEvent
CLHEP::HepLorentzVector GenerateEvent(void)
Definition: CosmicGun.cxx:113
CosmicGun::m_printmod
int m_printmod
Definition: CosmicGun.h:25
CosmicGun::GenerateVertex
CLHEP::HepLorentzVector GenerateVertex(void)
CosmicGun::m_event
int m_event
Definition: CosmicGun.h:24
CosmicGun::GetCosmicGun
static CosmicGun * GetCosmicGun(void)
Definition: CosmicGun.cxx:53
CosmicGun::m_printevt
int m_printevt
Definition: CosmicGun.h:25
CosmicGun::GetMuonCharge
int GetMuonCharge(void)
Definition: CosmicGun.cxx:137
CosmicGun::InitializeGenerator
float InitializeGenerator()
Definition: CosmicGun.cxx:85
CosmicGun::PrintLevel
void PrintLevel(int printevt, int printmod)
Definition: CosmicGun.cxx:94
CosmicGun::m_coscut
float m_coscut
Definition: CosmicGun.h:27
CosmicGun::SetEnergyRange
void SetEnergyRange(float emin, float emax)
Definition: CosmicGun.cxx:141
CosmicGun::m_emax
float m_emax
Definition: CosmicGun.h:26