Skip to content

Commit

Permalink
Don't use std namespace in header
Browse files Browse the repository at this point in the history
  • Loading branch information
olantwin committed Sep 30, 2024
1 parent 341421a commit 915a937
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions shipgen/CosmicsGenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include "TMath.h"
#include "TH1.h"

using namespace std;
class FairPrimaryGenerator;

class Co3Rng{
Expand All @@ -40,12 +39,14 @@ class CosmicsGenerator : public FairGenerator{
CosmicsGenerator(){};
virtual ~CosmicsGenerator(){
delete fRandomEngine;
cout<<nInside<<" events have been generated."<<endl;
cout<<"There is a total of "<<nInside<<"/"<<nTest<<" muons that passed close enough to the detector."<<endl;
cout<<"Including the given weight this corresponds to ";
cout<<weighttest/FluxIntegral/xdist/zdist*10000<<" spills (1 spill = "<<xdist*zdist*FluxIntegral/10000;
cout<<" real cosmic muons = "<<n_EVENTS<<" simulated events)."<<endl;
};
std::cout << nInside << " events have been generated." << std::endl;
std::cout << "There is a total of " << nInside << "/" << nTest
<< " muons that passed close enough to the detector." << std::endl;
std::cout << "Including the given weight this corresponds to ";
std::cout << weighttest / FluxIntegral / xdist / zdist * 10000
<< " spills (1 spill = " << xdist * zdist * FluxIntegral / 10000;
std::cout << " real cosmic muons = " << n_EVENTS << " simulated events)." << std::endl;
};

/** public method ReadEvent **/
Bool_t ReadEvent(FairPrimaryGenerator*); //!
Expand Down

0 comments on commit 915a937

Please sign in to comment.