ATLAS Offline Software
Loading...
Searching...
No Matches
PDFcreator.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// PDFcreator.h, (c) ATLAS Detector software
8
9#ifndef ISF_PUNCHTHROUGHTOOLS_SRC_PDFCREATOR_H
10#define ISF_PUNCHTHROUGHTOOLS_SRC_PDFCREATOR_H
11
12// Athena Base
14
15// ROOT includes
16#include "TH1F.h"
17#include "TH2F.h"
18
19//ISF includes
21
22
23
24
25namespace ISF
26{
35
37 {
38
39 public:
42
44
46 void setName( const std::string & PDFname ){ m_name = PDFname; }; //get the pdf's name
47 void addToEnergyEtaHist1DMap(int energy, int etaMin, TH1 *hist); //add entry to map linking energy, eta window and histogram
48
50 double getRand(CLHEP::HepRandomEngine* rndmEngine, const std::vector<int>& inputParameters) const;
51 const std::string& getName() const {return m_name;};
52
53 private:
54 std::string m_name;
55 std::map< int , std::map< int, TH1*> > m_energy_eta_hists1D;
56
57 };
58}
59
60#endif
const std::string & getName() const
Definition PDFcreator.h:51
double getRand(CLHEP::HepRandomEngine *rndmEngine, const std::vector< int > &inputParameters) const
get the random value with this method, by providing the input parameters
PDFcreator()
construct the class with a given TF1 and a random engine
Definition PDFcreator.h:41
std::map< int, std::map< int, TH1 * > > m_energy_eta_hists1D
map of energies to map of eta ranges to 1D histograms
Definition PDFcreator.h:55
void setName(const std::string &PDFname)
all following is used to set up the class
Definition PDFcreator.h:46
void addToEnergyEtaHist1DMap(int energy, int etaMin, TH1 *hist)
std::string m_name
Give pdf a name for debug purposes.
Definition PDFcreator.h:54
ISFParticleOrderedQueue.