ATLAS Offline Software
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 
25 namespace ISF
26 {
36  class PDFcreator
37  {
38 
39  public:
41  PDFcreator() {};
42 
43  ~PDFcreator();
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
plotmaker.hist
hist
Definition: plotmaker.py:148
ISF::PDFcreator
Definition: PDFcreator.h:37
ISF::PDFcreator::getRand
double getRand(CLHEP::HepRandomEngine *rndmEngine, const std::vector< int > &inputParameters) const
get the random value with this method, by providing the input parameters
Definition: PDFcreator.cxx:56
ISF::PDFcreator::~PDFcreator
~PDFcreator()
Definition: PDFcreator.cxx:32
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
ISF::PDFcreator::PDFcreator
PDFcreator()
construct the class with a given TF1 and a random engine
Definition: PDFcreator.h:41
mc.PDFname
PDFname
Definition: mc.SFGenPy8_MuMu_DD.py:10
IAtRndmGenSvc.h
ISF::PDFcreator::setName
void setName(const std::string &PDFname)
all following is used to set up the class
Definition: PDFcreator.h:46
LArCellBinning.etaMin
etaMin
Definition: LArCellBinning.py:84
ISF
ISFParticleOrderedQueue.
Definition: PrimaryParticleInformation.h:13
TH1
Definition: rootspy.cxx:268
TFCS1DFunction.h
ISF::PDFcreator::m_name
std::string m_name
Give pdf a name for debug purposes.
Definition: PDFcreator.h:51
ISF::PDFcreator::m_energy_eta_hists1D
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
ISF::PDFcreator::addToEnergyEtaHist1DMap
void addToEnergyEtaHist1DMap(int energy, int etaMin, TH1 *hist)
Definition: PDFcreator.cxx:41
ISF::PDFcreator::getName
const std::string & getName() const
Definition: PDFcreator.h:51