Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
Go to the documentation of this file.
7 #include "CLHEP/Random/RandomEngine.h"
8 #include "CLHEP/Random/RanluxEngine.h"
9 #include "CLHEP/Random/RandPoisson.h"
10 #include "CLHEP/Random/RandFlat.h"
47 TH1* adcHist =
new TH1F(
"adc",
"adc",400,0,200);
48 TH1* driftHist =
new TH1F(
"driftTime",
"driftTime",1000,0,1000);
49 TH1* radiusHit =
new TH1F(
"radiusHit",
"radiusHit",100,0,
tubeMax);
50 TH1* radiusNoHit =
new TH1F(
"radiusNoHit",
"radiusNoHit",100,0,
tubeMax);
51 TH1* posLengthHit =
new TH1F(
"posLengthHit",
"posLengthHit",100,0,
tubeLength);
52 TH1* posLengthNoHit =
new TH1F(
"posLengthNoHit",
"posLengthNoHit",100,0,
tubeLength);
53 for(
int i=0;
i<eventMax; ++
i ){
69 posLengthHit->Fill(positionAlongTube);
72 posLengthNoHit->Fill(positionAlongTube);
85 long convArg = strtol(
argv[1], &endptr, 0);
86 if(errno == ERANGE || *endptr !=
'\0' ||
argv[1] == endptr) {
87 std::cout<<
"Invalid parameter! Quit now!"<<std::endl;
91 if(convArg < INT_MIN || convArg > INT_MAX) {
92 std::cout<<
"Invalid parameter! Quit now!"<<std::endl;
95 int tempMax = (
int) convArg;
96 if (tempMax > 0) eventMax = tempMax;
99 std::cout <<
" Starting simulation of MDT_response, events " << eventMax << std::endl;
101 TFile*
outputFile =
new TFile(
"MDT_ResponseTest.root",
"RECREATE");
116 double increasedPathLength = 0.25;
void generateEvents(int eventMax)
double generatePositionAlongTube()
ATLAS_NO_CHECK_FILE_THREAD_SAFETY
int main(int argc, char *argv[])
double AdcResponse() const
void SetClusterDensity(double dens)
CLHEP::RandFlat ranFlat(ranEngine)
CLHEP::RanluxEngine ranEngine
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
Define macros for attributes used to control the static checker.
void SetSegment(double r, double x)
bool GetSignal(CLHEP::HepRandomEngine *rndmEngine)