ATLAS Offline Software
Loading...
Searching...
No Matches
PunchThroughPDFCreator.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
6// PunchThroughPDFCreator.h, (c) ATLAS Detector software
8
9#ifndef G4ATLASTOOLS_PUNCHTHROUGHPDFCREATOR_H
10#define G4ATLASTOOLS_PUNCHTHROUGHPDFCREATOR_H
11
12// Athena Base
14
15// C++
16#include <map>
17#include <vector>
18#include <string>
19
20class TH1;
21namespace CLHEP{
22 class HepRandomEngine;
23}
24
33
35{
36
37public:
40
42
44 void setName( const std::string & PDFname ){ m_name = PDFname; }; //get the pdf's name
45 void addToEnergyEtaHist1DMap(int energy, int etaMin, TH1 *hist); //add entry to map linking energy, eta window and histogram
46
48 double getRand(CLHEP::HepRandomEngine* rndmEngine, const std::vector<int>& inputParameters) const;
49 const std::string &getName() const {return m_name;};
50
51private:
52 std::string m_name;
53 std::map< int , std::map< int, TH1*> > m_energy_eta_hists1D;
54
55};
56
57#endif
const std::string & getName() const
std::string m_name
Give pdf a name for debug purposes.
void addToEnergyEtaHist1DMap(int energy, int etaMin, TH1 *hist)
PunchThroughPDFCreator()
construct the class with a given TF1 and a random engine
double getRand(CLHEP::HepRandomEngine *rndmEngine, const std::vector< int > &inputParameters) const
get the random value with this method, by providing the input parameters
std::map< int, std::map< int, TH1 * > > m_energy_eta_hists1D
map of energies to map of eta ranges to 1D histograms
void setName(const std::string &PDFname)
all following is used to set up the class