Jpp  master_rocky-43-ge265d140c
the software that should make you happy
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
JPHYSICS::JPDFTransformer< 5, JArgument_t > Class Template Reference

Template specialisation of transformer of the 5D probability density function (PDF) of the time response of a PMT due to an EM shower. More...

#include <JPDFTransformer.hh>

Inheritance diagram for JPHYSICS::JPDFTransformer< 5, JArgument_t >:
JTOOLS::JMultiMapTransformer< N, JArgument_t > JLANG::JClonable< JClonable_t, JDerived_t > JIO::JSerialisable

Public Types

typedef JPDFTransformer< 4, JArgument_t > JFunction4DTransformer_t
 
typedef JMultiMapTransformer< 5, JArgument_t > JMultiMapTransformer_t
 
typedef JMultiMapTransformer_t::clone_type clone_type
 
typedef JMultiMapTransformer_t::argument_type argument_type
 
typedef JMultiMapTransformer_t::const_array_type const_array_type
 
typedef JMultiMapTransformer< N, JArgument_t > multimaptransformer_type
 
typedef JArray< N, argument_typearray_type
 

Public Member Functions

 JPDFTransformer ()
 Default constructor. More...
 
 JPDFTransformer (const JFunction4DTransformer_t &transformer)
 Constructor. More...
 
template<class T >
 JPDFTransformer (const double ln, const int alpha, const double kmin, const double kmax, const JGeant_t &geant, const double bmin, T pmt, const double amin)
 Constructor. More...
 
virtual clone_type clone () const override
 Clone object. More...
 
virtual argument_type putXn (const_array_type &buffer, const argument_type xn) const override
 Evaluate arrival time. More...
 
virtual argument_type getXn (const_array_type &buffer, const argument_type xn) const override
 Evaluate arrival time. More...
 
virtual double getWeight (const_array_type &buffer) const override
 Weight function. More...
 
virtual JReaderread (JReader &in) override
 Read PDF transformer from input. More...
 
virtual JWriterwrite (JWriter &out) const override
 Write PDF transformer to output. More...
 
std::ostream & print (std::ostream &out) const
 Print PDF transfomer to output stream. More...
 
template<class ... Args>
double getWeight (const argument_type x, const Args &...args) const
 Weight function. More...
 

Static Public Member Functions

static const JMultiMapTransformergetDefaultTransformer ()
 Get default transformer. More...
 
static JMultiMapTransformergetClone ()
 Get clone of default transformer. More...
 

Public Attributes

JFunction4DTransformer_t transformer
 

Detailed Description

template<class JArgument_t>
class JPHYSICS::JPDFTransformer< 5, JArgument_t >

Template specialisation of transformer of the 5D probability density function (PDF) of the time response of a PMT due to an EM shower.

PDFs are evaluated by interpolation for:

  1. energy of the EM shower
  2. distance between EM shower and PMT [m]
  3. cosine angle EM shower direction and EM shower - PMT position
  4. zenith angle of the PMT
  5. azimuthal angle of the PMT
  6. arrival time [ns]

The evaluation of the weights is based on:

  1. energy of the EM shower
  2. effective attenuation length
  3. emission profile of the photons
  4. angular acceptance of PMT

Definition at line 1148 of file JPDFTransformer.hh.

Member Typedef Documentation

◆ JFunction4DTransformer_t

template<class JArgument_t >
typedef JPDFTransformer<4, JArgument_t> JPHYSICS::JPDFTransformer< 5, JArgument_t >::JFunction4DTransformer_t

Definition at line 1153 of file JPDFTransformer.hh.

◆ JMultiMapTransformer_t

template<class JArgument_t >
typedef JMultiMapTransformer<5, JArgument_t> JPHYSICS::JPDFTransformer< 5, JArgument_t >::JMultiMapTransformer_t

Definition at line 1154 of file JPDFTransformer.hh.

◆ clone_type

template<class JArgument_t >
typedef JMultiMapTransformer_t::clone_type JPHYSICS::JPDFTransformer< 5, JArgument_t >::clone_type

Definition at line 1156 of file JPDFTransformer.hh.

◆ argument_type

template<class JArgument_t >
typedef JMultiMapTransformer_t::argument_type JPHYSICS::JPDFTransformer< 5, JArgument_t >::argument_type

Definition at line 1157 of file JPDFTransformer.hh.

◆ const_array_type

template<class JArgument_t >
typedef JMultiMapTransformer_t::const_array_type JPHYSICS::JPDFTransformer< 5, JArgument_t >::const_array_type

Definition at line 1158 of file JPDFTransformer.hh.

◆ multimaptransformer_type

template<unsigned int N, class JArgument_t >
typedef JMultiMapTransformer<N, JArgument_t> JTOOLS::JMultiMapTransformer< N, JArgument_t >::multimaptransformer_type
inherited

Definition at line 39 of file JMultiMapTransformer.hh.

◆ array_type

template<unsigned int N, class JArgument_t >
typedef JArray<N, argument_type> JTOOLS::JMultiMapTransformer< N, JArgument_t >::array_type
inherited

Definition at line 43 of file JMultiMapTransformer.hh.

Constructor & Destructor Documentation

◆ JPDFTransformer() [1/3]

template<class JArgument_t >
JPHYSICS::JPDFTransformer< 5, JArgument_t >::JPDFTransformer ( )
inline

Default constructor.

Definition at line 1164 of file JPDFTransformer.hh.

1164  :
1165  transformer()
1166  {}

◆ JPDFTransformer() [2/3]

template<class JArgument_t >
JPHYSICS::JPDFTransformer< 5, JArgument_t >::JPDFTransformer ( const JFunction4DTransformer_t transformer)
inline

Constructor.

Parameters
transformertransformer

Definition at line 1174 of file JPDFTransformer.hh.

1174  :
1176  {}

◆ JPDFTransformer() [3/3]

template<class JArgument_t >
template<class T >
JPHYSICS::JPDFTransformer< 5, JArgument_t >::JPDFTransformer ( const double  ln,
const int  alpha,
const double  kmin,
const double  kmax,
const JGeant_t geant,
const double  bmin,
pmt,
const double  amin 
)
inline

Constructor.

Parameters
lnEffective attenuation length [m]
alphaDistance dependence (power term)
kminMinimal kappa
kmaxMaximal kappa
geantFunction photon emission from EM-shower
bminBaseline photon emission from EM-shower
pmtFunction angular acceptance of PMT
aminBaseline angular acceptance of PMT

Definition at line 1193 of file JPDFTransformer.hh.

1200  :
1201  transformer(ln, alpha, kmin, kmax, geant, bmin, pmt, amin)
1202  {}
static const JGeant geant(geanx, 0.0001)
Function object for the number of photons from EM-shower as a function of emission angle.

Member Function Documentation

◆ clone()

template<class JArgument_t >
virtual clone_type JPHYSICS::JPDFTransformer< 5, JArgument_t >::clone ( ) const
inlineoverridevirtual

Clone object.

Returns
pointer to newly created transformer

Reimplemented from JLANG::JClonable< JClonable_t, JDerived_t >.

Definition at line 1210 of file JPDFTransformer.hh.

1211  {
1212  return new JPDFTransformer(*this);
1213  }

◆ putXn()

template<class JArgument_t >
virtual argument_type JPHYSICS::JPDFTransformer< 5, JArgument_t >::putXn ( const_array_type buffer,
const argument_type  xn 
) const
inlineoverridevirtual

Evaluate arrival time.

Parameters
buffer{E_GeV, D_m, cd, theta, phi}
xnold t_ns
Returns
new t_ns

Implements JTOOLS::JMultiMapTransformer< N, JArgument_t >.

Definition at line 1223 of file JPDFTransformer.hh.

1224  {
1225  return transformer.putXn(buffer.pop_front(), xn);
1226  }
virtual argument_type putXn(const_array_type &buffer, const argument_type xn) const override
Evaluate arrival time.

◆ getXn()

template<class JArgument_t >
virtual argument_type JPHYSICS::JPDFTransformer< 5, JArgument_t >::getXn ( const_array_type buffer,
const argument_type  xn 
) const
inlineoverridevirtual

Evaluate arrival time.

Parameters
buffer{E_GeV, D_m, cd, theta, phi}
xnold t_ns
Returns
new t_ns

Implements JTOOLS::JMultiMapTransformer< N, JArgument_t >.

Definition at line 1236 of file JPDFTransformer.hh.

1237  {
1238  return transformer.getXn(buffer.pop_front(), xn);
1239  }
virtual argument_type getXn(const_array_type &buffer, const argument_type xn) const override
Evaluate arrival time.

◆ getWeight() [1/2]

template<class JArgument_t >
virtual double JPHYSICS::JPDFTransformer< 5, JArgument_t >::getWeight ( const_array_type buffer) const
inlineoverridevirtual

Weight function.

Parameters
buffer{E_GeV, D_m, cd, theta, phi}
Returns
weight

Implements JTOOLS::JMultiMapTransformer< N, JArgument_t >.

Definition at line 1248 of file JPDFTransformer.hh.

1249  {
1250  const double E = buffer[0];
1251 
1252  return transformer.getWeight(buffer.pop_front()) / E;
1253  }
virtual double getWeight(const_array_type &buffer) const override
Weight function.

◆ read()

template<class JArgument_t >
virtual JReader& JPHYSICS::JPDFTransformer< 5, JArgument_t >::read ( JReader in)
inlineoverridevirtual

Read PDF transformer from input.

Parameters
inreader
Returns
reader

Implements JIO::JSerialisable.

Definition at line 1262 of file JPDFTransformer.hh.

1263  {
1264  in >> transformer;
1265 
1266  return in;
1267  }

◆ write()

template<class JArgument_t >
virtual JWriter& JPHYSICS::JPDFTransformer< 5, JArgument_t >::write ( JWriter out) const
inlineoverridevirtual

Write PDF transformer to output.

Parameters
outwriter
Returns
writer

Implements JIO::JSerialisable.

Definition at line 1276 of file JPDFTransformer.hh.

1277  {
1278  out << transformer;
1279 
1280  return out;
1281  }

◆ print()

template<class JArgument_t >
std::ostream& JPHYSICS::JPDFTransformer< 5, JArgument_t >::print ( std::ostream &  out) const
inline

Print PDF transfomer to output stream.

Parameters
outoutput stream
Returns
output stream

Definition at line 1290 of file JPDFTransformer.hh.

1291  {
1292  return transformer.print(out);
1293  }
std::ostream & print(std::ostream &out) const
Print PDF transfomer to output stream.

◆ getWeight() [2/2]

template<unsigned int N, class JArgument_t >
template<class ... Args>
double JTOOLS::JMultiMapTransformer< N, JArgument_t >::getWeight ( const argument_type  x,
const Args &...  args 
) const
inlineinherited

Weight function.

Parameters
xfirst abscissa values
argscomma seperated list of remaining abscissa values
Returns
weight

Definition at line 84 of file JMultiMapTransformer.hh.

85  {
86  return getWeight(array_type(x, args...));
87  }
virtual double getWeight(const_array_type &buffer) const =0
Weight function.
JArray< N, argument_type > array_type

◆ getDefaultTransformer()

template<unsigned int N, class JArgument_t >
static const JMultiMapTransformer& JTOOLS::JMultiMapTransformer< N, JArgument_t >::getDefaultTransformer ( )
inlinestaticinherited

Get default transformer.

Returns
default transformer

Definition at line 101 of file JMultiMapTransformer.hh.

102  {
103  static const JMultiMapDefaultTransformer transformer;
104 
105  return transformer;
106  }

◆ getClone()

template<unsigned int N, class JArgument_t >
static JMultiMapTransformer* JTOOLS::JMultiMapTransformer< N, JArgument_t >::getClone ( )
inlinestaticinherited

Get clone of default transformer.

Returns
pointer to newly created transformer

Definition at line 114 of file JMultiMapTransformer.hh.

115  {
116  return new JMultiMapDefaultTransformer();
117  }

Member Data Documentation

◆ transformer

template<class JArgument_t >
JFunction4DTransformer_t JPHYSICS::JPDFTransformer< 5, JArgument_t >::transformer

Definition at line 1295 of file JPDFTransformer.hh.


The documentation for this class was generated from the following file: