|  | ATLAS Offline Software
    | 
 
 
 
#include <TFCSVoxelHistoLateralCovarianceFluctuations.h>
|  | 
|  | TFCSVoxelHistoLateralCovarianceFluctuations (const char *name=nullptr, const char *title=nullptr) | 
|  | 
| virtual | ~TFCSVoxelHistoLateralCovarianceFluctuations () | 
|  | 
| virtual void | set_geometry (ICaloGeometry *geo) override | 
|  | Method to set the geometry access pointer.  More... 
 | 
|  | 
| ICaloGeometry * | get_geometry () | 
|  | 
| bool | initialize (TFile *inputfile, const std::string &folder) | 
|  | 
| virtual FCSReturnCode | simulate (TFCSSimulationState &simulstate, const TFCSTruthState *truth, const TFCSExtrapolationState *extrapol) const override | 
|  | create one fluctuated shape for a shower to be applied as scale factor to the average shape Store the fluctuation in simulstate  More... 
 | 
|  | 
| virtual FCSReturnCode | simulate_hit (Hit &hit, TFCSSimulationState &simulstate, const TFCSTruthState *truth, const TFCSExtrapolationState *extrapol) override | 
|  | weight the energy of one hit by the fluctuation calculated in simulate(...)  More... 
 | 
|  | 
| virtual double | get_sigma2_fluctuation (TFCSSimulationState &simulstate, const TFCSTruthState *truth, const TFCSExtrapolationState *extrapol) const | 
|  | Give the effective size sigma^2 of the fluctuations that should be generated by the amount of generated hits.  More... 
 | 
|  | 
| virtual int | get_number_of_hits (TFCSSimulationState &simulstate, const TFCSTruthState *truth, const TFCSExtrapolationState *extrapol) const | 
|  | Call get_number_of_hits() only once per shower simulation, as it could be calculated with random numbers and give different results each time.  More... 
 | 
|  | 
| virtual float | get_E_hit (TFCSSimulationState &simulstate, const TFCSTruthState *truth, const TFCSExtrapolationState *extrapol) const | 
|  | Get hit energy from layer energy and number of hits.  More... 
 | 
|  | 
| virtual float | getMinWeight () const | 
|  | Get minimum and maximum value of weight for hit energy reweighting.  More... 
 | 
|  | 
| virtual float | getMaxWeight () const | 
|  | 
| bool | is_match_Ekin_bin (int bin) const override | 
|  | 
| bool | is_match_calosample (int calosample) const override | 
|  | 
| virtual bool | is_match_all_Ekin_bin () const override | 
|  | 
| virtual bool | is_match_all_calosample () const override | 
|  | 
| int | Ekin_bin () const | 
|  | 
| void | set_Ekin_bin (int bin) | 
|  | 
| int | calosample () const | 
|  | 
| void | set_calosample (int cs) | 
|  | 
| virtual void | set_pdgid_Ekin_eta_Ekin_bin_calosample (const TFCSLateralShapeParametrization &ref) | 
|  | 
| void | Print (Option_t *option="") const override | 
|  | 
| void | clear () | 
|  | 
| virtual bool | is_match_pdgid (int id) const override | 
|  | 
| virtual bool | is_match_Ekin (float Ekin) const override | 
|  | 
| virtual bool | is_match_eta (float eta) const override | 
|  | 
| virtual bool | is_match_all_Ekin () const override | 
|  | 
| virtual bool | is_match_all_eta () const override | 
|  | 
| const std::set< int > & | pdgid () const override | 
|  | 
| double | Ekin_nominal () const override | 
|  | 
| double | Ekin_min () const override | 
|  | 
| double | Ekin_max () const override | 
|  | 
| double | eta_nominal () const override | 
|  | 
| double | eta_min () const override | 
|  | 
| double | eta_max () const override | 
|  | 
| virtual void | set_pdgid (int id) | 
|  | 
| virtual void | set_pdgid (const std::set< int > &ids) | 
|  | 
| virtual void | add_pdgid (int id) | 
|  | 
| virtual void | clear_pdgid () | 
|  | 
| virtual void | set_Ekin_nominal (double min) | 
|  | 
| virtual void | set_Ekin_min (double min) | 
|  | 
| virtual void | set_Ekin_max (double max) | 
|  | 
| virtual void | set_eta_nominal (double min) | 
|  | 
| virtual void | set_eta_min (double min) | 
|  | 
| virtual void | set_eta_max (double max) | 
|  | 
| virtual void | set_Ekin (const TFCSParametrizationBase &ref) | 
|  | 
| virtual void | set_eta (const TFCSParametrizationBase &ref) | 
|  | 
| virtual void | set_Ekin_eta (const TFCSParametrizationBase &ref) | 
|  | 
| virtual void | set_pdgid_Ekin_eta (const TFCSParametrizationBase &ref) | 
|  | 
| virtual bool | is_match_all_pdgid () const | 
|  | 
| virtual void | set_match_all_pdgid () | 
|  | 
| virtual void | reset_match_all_pdgid () | 
|  | 
| virtual unsigned int | size () const | 
|  | Some derived classes have daughter instances of TFCSParametrizationBase objects The size() and operator[] methods give general access to these daughters.  More... 
 | 
|  | 
| virtual const TFCSParametrizationBase * | operator[] (unsigned int) const | 
|  | Some derived classes have daughter instances of TFCSParametrizationBase objects The size() and operator[] methods give general access to these daughters.  More... 
 | 
|  | 
| virtual TFCSParametrizationBase * | operator[] (unsigned int) | 
|  | Some derived classes have daughter instances of TFCSParametrizationBase objects The size() and operator[] methods give general access to these daughters.  More... 
 | 
|  | 
| virtual void | set_daughter (unsigned int, TFCSParametrizationBase *) | 
|  | Some derived classes have daughter instances of TFCSParametrizationBase objects The set_daughter method allows to change these daughters - expert use only! The original element at this position is not deleted.  More... 
 | 
|  | 
| virtual bool | operator== (const TFCSParametrizationBase &ref) const | 
|  | The == operator compares the content of instances.  More... 
 | 
|  | 
| virtual void | CleanAuxInfo (TFCSSimulationState &) const | 
|  | Method in all derived classes to delete objects stored in the simulstate AuxInfo.  More... 
 | 
|  | 
| void | FindDuplicates (FindDuplicateClasses_t &dup) | 
|  | 
| void | RemoveDuplicates () | 
|  | 
| void | RemoveNameTitle () | 
|  | 
| bool | msgLvl (const MSG::Level lvl) const | 
|  | Check whether the logging system is active at the provided verbosity level.  More... 
 | 
|  | 
| MsgStream & | msg () const | 
|  | Return a stream for sending messages directly (no decoration)  More... 
 | 
|  | 
| MsgStream & | msg (const MSG::Level lvl) const | 
|  | Return a decorated starting stream for sending messages.  More... 
 | 
|  | 
| MSG::Level | level () const | 
|  | Retrieve output level.  More... 
 | 
|  | 
| virtual void | setLevel (MSG::Level lvl) | 
|  | Update outputlevel.  More... 
 | 
|  | 
|  | 
| static std::string | startMsg (MSG::Level lvl, const std::string &file, int line) | 
|  | Make a message to decorate the start of logging.  More... 
 | 
|  | 
|  | 
| typedef std::vector< std::vector< float > > | weight_t | 
|  | do not persistify  More... 
 | 
|  | 
◆ FindDuplicateClasses_t
◆ FindDuplicates_t
◆ weight_t
◆ FCSStatusBits
Status bit for FCS needs. 
| Enumerator | 
|---|
| kMatchAllPDGID | Set this bit in the TObject bit field if valid for all PDGID.  | 
Definition at line 52 of file TFCSParametrizationBase.h.
 
 
◆ TFCSVoxelHistoLateralCovarianceFluctuations()
      
        
          | TFCSVoxelHistoLateralCovarianceFluctuations::TFCSVoxelHistoLateralCovarianceFluctuations | ( | const char * | name = nullptr, | 
        
          |  |  | const char * | title = nullptr | 
        
          |  | ) |  |  | 
      
 
 
◆ ~TFCSVoxelHistoLateralCovarianceFluctuations()
  
  | 
        
          | TFCSVoxelHistoLateralCovarianceFluctuations::~TFCSVoxelHistoLateralCovarianceFluctuations | ( |  | ) |  |  | virtual | 
 
 
◆ add_pdgid()
  
  | 
        
          | void TFCSParametrization::add_pdgid | ( | int | id | ) |  |  | virtualinherited | 
 
 
◆ calosample()
  
  | 
        
          | int TFCSLateralShapeParametrization::calosample | ( |  | ) | const |  | inlineinherited | 
 
 
◆ CleanAuxInfo()
◆ clear()
  
  | 
        
          | void TFCSParametrization::clear | ( |  | ) |  |  | inherited | 
 
 
◆ clear_pdgid()
  
  | 
        
          | void TFCSParametrization::clear_pdgid | ( |  | ) |  |  | virtualinherited | 
 
 
◆ compare()
◆ Ekin_bin()
  
  | 
        
          | int TFCSLateralShapeParametrization::Ekin_bin | ( |  | ) | const |  | inlineinherited | 
 
 
◆ Ekin_max()
  
  | 
        
          | double TFCSParametrization::Ekin_max | ( |  | ) | const |  | inlineoverridevirtualinherited | 
 
 
◆ Ekin_min()
  
  | 
        
          | double TFCSParametrization::Ekin_min | ( |  | ) | const |  | inlineoverridevirtualinherited | 
 
 
◆ Ekin_nominal()
  
  | 
        
          | double TFCSParametrization::Ekin_nominal | ( |  | ) | const |  | inlineoverridevirtualinherited | 
 
 
◆ eta_max()
  
  | 
        
          | double TFCSParametrization::eta_max | ( |  | ) | const |  | inlineoverridevirtualinherited | 
 
 
◆ eta_min()
  
  | 
        
          | double TFCSParametrization::eta_min | ( |  | ) | const |  | inlineoverridevirtualinherited | 
 
 
◆ eta_nominal()
  
  | 
        
          | double TFCSParametrization::eta_nominal | ( |  | ) | const |  | inlineoverridevirtualinherited | 
 
 
◆ FindDuplicates()
Definition at line 90 of file TFCSParametrizationBase.cxx.
   92   for (
unsigned int i = 0; 
i < 
size(); ++
i)
 
   97       auto checkexist = dup.find(param);
 
   98       if (checkexist != dup.end()) {
 
  100                                                       << param->GetName());
 
  101         if (checkexist->second.replace) {
 
  104                         << refparam << 
"=" << refparam->GetName()
 
  105                         << 
", duplicate is " << param << 
"=" << param->GetName()
 
  106                         << 
" index " << 
i << 
" of " << 
this);
 
  107           dup[refparam].mother.push_back(
this);
 
  108           dup[refparam].index.push_back(
i);
 
  113       dup[param] = Duplicate_t();
 
  114       for (
auto &
ref : dup) {
 
  117         if (param == refparam)
 
  120         if (refparam == 
nullptr)
 
  123         if (
ref.second.replace)
 
  126         if (*param == *refparam) {
 
  128                         << refparam << 
"=" << refparam->GetName()
 
  129                         << 
", duplicate is " << param << 
"=" << param->GetName()
 
  130                         << 
" index " << 
i << 
" of " << 
this);
 
  131           dup[param].replace = refparam;
 
  132           dup[refparam].mother.push_back(
this);
 
  133           dup[refparam].index.push_back(
i);
 
 
 
 
◆ get_E_hit()
◆ get_geometry()
  
  | 
        
          | ICaloGeometry* TFCSVoxelHistoLateralCovarianceFluctuations::get_geometry | ( |  | ) |  |  | inline | 
 
 
◆ get_number_of_hits()
◆ get_sigma2_fluctuation()
◆ getMaxWeight()
  
  | 
        
          | float TFCSLateralShapeParametrizationHitBase::getMaxWeight | ( |  | ) | const |  | virtualinherited | 
 
 
◆ getMinWeight()
  
  | 
        
          | float TFCSLateralShapeParametrizationHitBase::getMinWeight | ( |  | ) | const |  | virtualinherited | 
 
 
◆ initialize()
      
        
          | bool TFCSVoxelHistoLateralCovarianceFluctuations::initialize | ( | TFile * | inputfile, | 
        
          |  |  | const std::string & | folder | 
        
          |  | ) |  |  | 
      
 
Definition at line 62 of file TFCSVoxelHistoLateralCovarianceFluctuations.cxx.
   75   TH2 *temp = 
dynamic_cast<TH2 *
>(
 
   76       inputfile->Get(Form(
"voxel_template_cs%d_pca%d", cs, 
bin)));
 
   85   while (
inputfile->Get(Form(
"parMeans_cs%d_pca%d", cs, 
bin))) {
 
   87     TMatrixD EigenVectors;
 
   89     std::vector<std::vector<TFCS1DFunction *>> 
transform;
 
   91     std::string 
label = Form(
"_cs%d_pca%d", cs, 
bin);
 
  103     parMeans = *
dynamic_cast<TVectorT<double> *
>(
obj);
 
  111     TMatrixTSym<double> 
covMatrix = *
dynamic_cast<TMatrixTSym<double> *
>(
obj);
 
  112     TMatrixDSymEigen eigenvariances = TMatrixDSymEigen(
covMatrix);
 
  113     EigenVectors.ResizeTo(eigenvariances.GetEigenVectors());
 
  114     EigenVectors = eigenvariances.GetEigenVectors();
 
  117     EigenValues.ResizeTo(eigenvariances.GetEigenValues());
 
  118     EigenValues = eigenvariances.GetEigenValues();
 
  123       eigenvariances.GetEigenValues().Print();
 
  124       eigenvariances.GetEigenVectors().Print();
 
  130       EigenVectors.Print();
 
 
 
 
◆ is_match_all_calosample()
  
  | 
        
          | virtual bool TFCSLateralShapeParametrization::is_match_all_calosample | ( |  | ) | const |  | inlineoverridevirtualinherited | 
 
 
◆ is_match_all_Ekin()
  
  | 
        
          | virtual bool TFCSParametrization::is_match_all_Ekin | ( |  | ) | const |  | inlineoverridevirtualinherited | 
 
 
◆ is_match_all_Ekin_bin()
  
  | 
        
          | virtual bool TFCSLateralShapeParametrization::is_match_all_Ekin_bin | ( |  | ) | const |  | inlineoverridevirtualinherited | 
 
 
◆ is_match_all_eta()
  
  | 
        
          | virtual bool TFCSParametrization::is_match_all_eta | ( |  | ) | const |  | inlineoverridevirtualinherited | 
 
 
◆ is_match_all_pdgid()
  
  | 
        
          | virtual bool TFCSParametrizationBase::is_match_all_pdgid | ( |  | ) | const |  | inlinevirtualinherited | 
 
 
◆ is_match_calosample()
  
  | 
        
          | bool TFCSLateralShapeParametrization::is_match_calosample | ( | int | calosample | ) | const |  | inlineoverridevirtualinherited | 
 
 
◆ is_match_Ekin()
  
  | 
        
          | virtual bool TFCSParametrization::is_match_Ekin | ( | float | Ekin | ) | const |  | inlineoverridevirtualinherited | 
 
 
◆ is_match_Ekin_bin()
  
  | 
        
          | bool TFCSLateralShapeParametrization::is_match_Ekin_bin | ( | int | bin | ) | const |  | inlineoverridevirtualinherited | 
 
 
◆ is_match_eta()
  
  | 
        
          | virtual bool TFCSParametrization::is_match_eta | ( | float | eta | ) | const |  | inlineoverridevirtualinherited | 
 
 
◆ is_match_pdgid()
  
  | 
        
          | virtual bool TFCSParametrization::is_match_pdgid | ( | int | id | ) | const |  | inlineoverridevirtualinherited | 
 
 
◆ level()
  
  | 
        
          | MSG::Level ISF_FCS::MLogging::level | ( |  | ) | const |  | inlineinherited | 
 
Retrieve output level. 
Definition at line 201 of file MLogging.h.
  201 { 
return msg().level(); }
 
 
 
◆ msg() [1/2]
  
  | 
        
          | MsgStream & ISF_FCS::MLogging::msg | ( |  | ) | const |  | inlineinherited | 
 
Return a stream for sending messages directly (no decoration) 
Definition at line 231 of file MLogging.h.
  232   MsgStream *
ms = m_msg_tls.get();
 
 
 
 
◆ msg() [2/2]
  
  | 
        
          | MsgStream & ISF_FCS::MLogging::msg | ( | const MSG::Level | lvl | ) | const |  | inlineinherited | 
 
Return a decorated starting stream for sending messages. 
Definition at line 240 of file MLogging.h.
 
 
◆ msgLvl()
  
  | 
        
          | bool ISF_FCS::MLogging::msgLvl | ( | const MSG::Level | lvl | ) | const |  | inlineinherited | 
 
Check whether the logging system is active at the provided verbosity level. 
Definition at line 222 of file MLogging.h.
 
 
◆ MultiGaus()
  
  | 
        
          | void TFCSVoxelHistoLateralCovarianceFluctuations::MultiGaus | ( | TFCSSimulationState & | simulstate, |  
          |  |  | TVectorD & | genPars |  
          |  | ) |  | const |  | protected | 
 
Definition at line 159 of file TFCSVoxelHistoLateralCovarianceFluctuations.cxx.
  161   int Ebin = simulstate.
Ebin();
 
  164   genPars.ResizeTo(nPars);
 
  167   for (
int iPar = 0; iPar < nPars; iPar++) {
 
  172                                                      << 
") on iPar = " << iPar);
 
  175     genPars[iPar] = CLHEP::RandGauss::shoot(simulstate.
randomEngine(),
 
  176                                             rotParMeans[iPar], sqrt(variance));
 
  178                              << 
" rotParMeans[iPar]=" << rotParMeans[iPar]
 
  179                              << 
" sqrt(variance)=" << sqrt(variance));
 
 
 
 
◆ operator==()
◆ operator[]() [1/2]
◆ operator[]() [2/2]
◆ pdgid()
  
  | 
        
          | const std::set<int>& TFCSParametrization::pdgid | ( |  | ) | const |  | inlineoverridevirtualinherited | 
 
 
◆ Print()
  
  | 
        
          | void TFCSLateralShapeParametrization::Print | ( | Option_t * | option = "" | ) | const |  | overrideinherited | 
 
 
◆ RemoveDuplicates()
  
  | 
        
          | void TFCSParametrizationBase::RemoveDuplicates | ( |  | ) |  |  | inherited | 
 
Definition at line 142 of file TFCSParametrizationBase.cxx.
  146   std::set<TFCSParametrizationBase *> dellist;
 
  147   for (
auto &dupiter : dupclasses) {
 
  149     for (
auto onedup : dup) {
 
  150       if (onedup.second.mother.empty())
 
  154       for (
unsigned int i = 0; 
i < onedup.second.mother.size(); ++
i) {
 
  155         int index = onedup.second.index[
i];
 
  158         unsigned int delcount = dup[delparam].mother.
size();
 
  161                         << delparam << 
"=" << delparam->GetName() << 
" index " 
  162                         << 
index << 
" of " << mother << 
", has " << delcount
 
  163                         << 
" other replacements attached. Deleting");
 
  165           dellist.insert(delparam);
 
  168                           << delparam << 
"=" << delparam->GetName() << 
" index " 
  169                           << 
index << 
" of " << mother << 
", has " << delcount
 
  170                           << 
" other replacements attached. Skipping");
 
  180   std::map<std::string, int> ndel;
 
  181   for (
auto *delparam : dellist) {
 
  183     bool present = dup2.find(delparam) != dup2.end();
 
  186                                          << delparam->GetName()
 
  187                                          << 
" still referenced somewhere!");
 
  190                                        << delparam->GetName());
 
  191       ++ndel[delparam->ClassName()];
 
  195   for (
auto &del : ndel)
 
  196     ATH_MSG_INFO(
"Deleted " << del.second << 
" duplicate objects of class " 
 
 
 
◆ RemoveNameTitle()
  
  | 
        
          | void TFCSParametrizationBase::RemoveNameTitle | ( |  | ) |  |  | inherited | 
 
 
◆ reset_match_all_pdgid()
  
  | 
        
          | virtual void TFCSParametrizationBase::reset_match_all_pdgid | ( |  | ) |  |  | inlinevirtualinherited | 
 
 
◆ set_calosample()
  
  | 
        
          | void TFCSLateralShapeParametrization::set_calosample | ( | int | cs | ) |  |  | inherited | 
 
 
◆ set_daughter()
◆ set_Ekin()
◆ set_Ekin_bin()
  
  | 
        
          | void TFCSLateralShapeParametrization::set_Ekin_bin | ( | int | bin | ) |  |  | inherited | 
 
 
◆ set_Ekin_eta()
◆ set_Ekin_max()
  
  | 
        
          | void TFCSParametrization::set_Ekin_max | ( | double | max | ) |  |  | virtualinherited | 
 
 
◆ set_Ekin_min()
  
  | 
        
          | void TFCSParametrization::set_Ekin_min | ( | double | min | ) |  |  | virtualinherited | 
 
 
◆ set_Ekin_nominal()
  
  | 
        
          | void TFCSParametrization::set_Ekin_nominal | ( | double | min | ) |  |  | virtualinherited | 
 
 
◆ set_eta()
◆ set_eta_max()
  
  | 
        
          | void TFCSParametrization::set_eta_max | ( | double | max | ) |  |  | virtualinherited | 
 
 
◆ set_eta_min()
  
  | 
        
          | void TFCSParametrization::set_eta_min | ( | double | min | ) |  |  | virtualinherited | 
 
 
◆ set_eta_nominal()
  
  | 
        
          | void TFCSParametrization::set_eta_nominal | ( | double | min | ) |  |  | virtualinherited | 
 
 
◆ set_geometry()
  
  | 
        
          | virtual void TFCSVoxelHistoLateralCovarianceFluctuations::set_geometry | ( | ICaloGeometry * | geo | ) |  |  | inlineoverridevirtual | 
 
 
◆ set_match_all_pdgid()
  
  | 
        
          | virtual void TFCSParametrizationBase::set_match_all_pdgid | ( |  | ) |  |  | inlinevirtualinherited | 
 
 
◆ set_pdgid() [1/2]
  
  | 
        
          | void TFCSParametrization::set_pdgid | ( | const std::set< int > & | ids | ) |  |  | virtualinherited | 
 
 
◆ set_pdgid() [2/2]
  
  | 
        
          | void TFCSParametrization::set_pdgid | ( | int | id | ) |  |  | virtualinherited | 
 
 
◆ set_pdgid_Ekin_eta()
◆ set_pdgid_Ekin_eta_Ekin_bin_calosample()
◆ setLevel()
  
  | 
        
          | void ISF_FCS::MLogging::setLevel | ( | MSG::Level | lvl | ) |  |  | virtualinherited | 
 
 
◆ simulate()
create one fluctuated shape for a shower to be applied as scale factor to the average shape Store the fluctuation in simulstate 
Reimplemented from TFCSParametrizationBase.
Definition at line 184 of file TFCSVoxelHistoLateralCovarianceFluctuations.cxx.
  199   int Ebin = simulstate.
Ebin();
 
  203       weightvec = 
static_cast<weight_t *
>(
 
  211       voxel_temp = 
static_cast<TH2 *
>(
 
  238   TVectorD genPars(
m_parMeans[Ebin - 1].GetNrows());
 
  249           (TMath::Erf(genPars[
count] * 2.0 / TMath::Pi()) + 1) / 2.0;
 
  252       double orig_val = 
m_transform[Ebin - 1][
x][
y]->rnd_to_fct(cdf_val);
 
  255       (*weightvec)[
x][
y] = orig_val;
 
  259                               << 
" orig_val=" << orig_val);
 
  270     ATH_MSG_DEBUG(
"simulstate after storing weight " << weightvec
 
 
 
 
◆ simulate_hit()
weight the energy of one hit by the fluctuation calculated in simulate(...) 
Reimplemented from TFCSLateralShapeParametrizationHitBase.
Definition at line 278 of file TFCSVoxelHistoLateralCovarianceFluctuations.cxx.
  283   const double center_r = hit.
center_r();
 
  284   const double center_z = hit.
center_z();
 
  289     weightvec = 
static_cast<weight_t *
>(
 
  293     ATH_MSG_ERROR(
"Weights not stored in simulstate for calosample=" << cs);
 
  297   TH2 *voxel_template = 
nullptr;
 
  301   if (!voxel_template) {
 
  303         "Voxel geometry not stored in simulstate for calosample=" << cs);
 
  337   float deta_hit_minus_extrapol = hit.
eta() - center_eta;
 
  342     deta_hit_minus_extrapol = -deta_hit_minus_extrapol;
 
  344   float phi_dist2r = 1.0;
 
  345   float dist000 = TMath::Sqrt(center_r * center_r + center_z * center_z);
 
  346   float eta_jakobi = TMath::Abs(2.0 * TMath::Exp(-hit.
eta()) /
 
  347                                 (1.0 + TMath::Exp(-2 * hit.
eta())));
 
  349   float deta_hit_minus_extrapol_mm =
 
  350       deta_hit_minus_extrapol * eta_jakobi * dist000;
 
  351   float dphi_hit_minus_extrapol_mm =
 
  352       dphi_hit_minus_extrapol * center_r * phi_dist2r;
 
  355       TMath::ATan2(dphi_hit_minus_extrapol_mm, deta_hit_minus_extrapol_mm);
 
  357       TMath::Sqrt(dphi_hit_minus_extrapol_mm * dphi_hit_minus_extrapol_mm +
 
  358                   deta_hit_minus_extrapol_mm * deta_hit_minus_extrapol_mm);
 
  361   int iy = voxel_template->GetYaxis()->FindBin(radius_mm) - 1;
 
  368       ix = voxel_template->GetXaxis()->FindBin(2 * TMath::Pi() -
 
  372       ix = voxel_template->GetXaxis()->FindBin(alpha_mm) - 1;
 
  375   const int sizex = (*weightvec).size();
 
  378   if (ix >= 0 && ix < sizex) {
 
  379     const int sizey = (*weightvec)[ix].size();
 
  380     if (iy >= 0 && iy < sizey) {
 
  381       weight = (*weightvec)[ix][iy];
 
  388                           << 
", r = " << center_r << 
", ix = " << ix
 
  389                           << 
", iy = " << iy << 
", weight = " << 
weight);
 
 
 
 
◆ size()
  
  | 
        
          | virtual unsigned int TFCSParametrizationBase::size | ( |  | ) | const |  | inlinevirtualinherited | 
 
 
◆ startMsg()
  
  | 
        
          | std::string ISF_FCS::MLogging::startMsg | ( | MSG::Level | lvl, |  
          |  |  | const std::string & | file, |  
          |  |  | int | line |  
          |  | ) |  |  |  | staticinherited | 
 
Make a message to decorate the start of logging. 
Print a message for the start of logging. 
Definition at line 116 of file MLogging.cxx.
  120   auto last_slash = 
file.find_last_of(
'/');
 
  121   int path_len = last_slash == std::string::npos ? 0 : last_slash;
 
  122   int trim_point = path_len;
 
  123   int total_len = 
file.length();
 
  124   if (total_len - path_len > col1_len)
 
  125     trim_point = total_len - col1_len;
 
  126   std::string trimmed_name = 
file.substr(trim_point);
 
  128       "NIL", 
"VERBOSE", 
"DEBUG", 
"INFO", 
"WARNING", 
"ERROR", 
"FATAL", 
"ALWAYS"};
 
  129   std::string 
level = LevelNames[lvl];
 
  130   std::string level_string = std::string(
"(") + 
level + 
") ";
 
  132   output << std::setw(col1_len) << std::right << trimmed_name << 
":" 
  133          << std::setw(col2_len) << std::left << 
line << std::setw(col3_len)
 
  134          << std::right << level_string;
 
 
 
 
◆ ATLAS_THREAD_SAFE
  
  | 
        
          | boost::thread_specific_ptr<MsgStream> m_msg_tls ISF_FCS::MLogging::ATLAS_THREAD_SAFE |  | inlinestaticprivateinherited | 
 
Do not persistify! 
MsgStream instance (a std::cout like with print-out levels) 
Definition at line 215 of file MLogging.h.
 
 
◆ init_Ekin_max
  
  | 
        
          | constexpr double TFCSParametrizationBase::init_Ekin_max = 14000000 |  | staticconstexprprotectedinherited | 
 
 
◆ init_Ekin_min
  
  | 
        
          | constexpr double TFCSParametrizationBase::init_Ekin_min = 0 |  | staticconstexprprotectedinherited | 
 
 
◆ init_Ekin_nominal
  
  | 
        
          | constexpr double TFCSParametrizationBase::init_Ekin_nominal = 0 |  | staticconstexprprotectedinherited | 
 
 
◆ init_eta_max
  
  | 
        
          | constexpr double TFCSParametrizationBase::init_eta_max = 100 |  | staticconstexprprotectedinherited | 
 
 
◆ init_eta_min
  
  | 
        
          | constexpr double TFCSParametrizationBase::init_eta_min = -100 |  | staticconstexprprotectedinherited | 
 
 
◆ init_eta_nominal
  
  | 
        
          | constexpr double TFCSParametrizationBase::init_eta_nominal = 0 |  | staticconstexprprotectedinherited | 
 
 
◆ m_calosample
  
  | 
        
          | int TFCSLateralShapeParametrization::m_calosample |  | privateinherited | 
 
 
◆ m_EigenValues
  
  | 
        
          | std::vector<TVectorD> TFCSVoxelHistoLateralCovarianceFluctuations::m_EigenValues |  | protected | 
 
 
◆ m_EigenVectors
  
  | 
        
          | std::vector<TMatrixD> TFCSVoxelHistoLateralCovarianceFluctuations::m_EigenVectors |  | protected | 
 
 
◆ m_Ekin_bin
  
  | 
        
          | int TFCSLateralShapeParametrization::m_Ekin_bin |  | privateinherited | 
 
 
◆ m_Ekin_max
  
  | 
        
          | double TFCSParametrization::m_Ekin_max |  | privateinherited | 
 
 
◆ m_Ekin_min
  
  | 
        
          | double TFCSParametrization::m_Ekin_min |  | privateinherited | 
 
 
◆ m_Ekin_nominal
  
  | 
        
          | double TFCSParametrization::m_Ekin_nominal |  | privateinherited | 
 
 
◆ m_eta_max
  
  | 
        
          | double TFCSParametrization::m_eta_max |  | privateinherited | 
 
 
◆ m_eta_min
  
  | 
        
          | double TFCSParametrization::m_eta_min |  | privateinherited | 
 
 
◆ m_eta_nominal
  
  | 
        
          | double TFCSParametrization::m_eta_nominal |  | privateinherited | 
 
 
◆ m_geo
  
  | 
        
          | ICaloGeometry* TFCSVoxelHistoLateralCovarianceFluctuations::m_geo {} |  | protected | 
 
 
◆ m_nDim_x
  
  | 
        
          | int TFCSVoxelHistoLateralCovarianceFluctuations::m_nDim_x {} |  | protected | 
 
 
◆ m_nDim_y
  
  | 
        
          | int TFCSVoxelHistoLateralCovarianceFluctuations::m_nDim_y {} |  | protected | 
 
 
◆ m_nm
  
  | 
        
          | std::string ISF_FCS::MLogging::m_nm |  | privateinherited | 
 
 
◆ m_parMeans
  
  | 
        
          | std::vector<TVectorD> TFCSVoxelHistoLateralCovarianceFluctuations::m_parMeans |  | protected | 
 
 
◆ m_pdgid
  
  | 
        
          | std::set<int> TFCSParametrization::m_pdgid |  | privateinherited | 
 
 
◆ m_transform
  
  | 
        
          | std::vector<std::vector<std::vector<TFCS1DFunction *> > > TFCSVoxelHistoLateralCovarianceFluctuations::m_transform |  | protected | 
 
 
◆ m_voxel_template
  
  | 
        
          | std::vector<TH2 *> TFCSVoxelHistoLateralCovarianceFluctuations::m_voxel_template |  | protected | 
 
 
◆ s_layer_hash
  
  | 
        
          | const std::uint32_t TFCSVoxelHistoLateralCovarianceFluctuations::s_layer_hash |  | staticprotected | 
 
Initial value:= {
        "PreSamplerB"_FCShash, "EMB1"_FCShash,        "EMB2"_FCShash,
        "EMB3"_FCShash,        "PreSamplerE"_FCShash, "EME1"_FCShash,
        "EME2"_FCShash,        "EME3"_FCShash,        "HEC0"_FCShash,
        "HEC1"_FCShash,        "HEC2"_FCShash,        "HEC3"_FCShash,
        "TileBar0"_FCShash,    "TileBar1"_FCShash,    "TileBar2"_FCShash,
        "TileGap1"_FCShash,    "TileGap2"_FCShash,    "TileGap3"_FCShash,
        "TileExt0"_FCShash,    "TileExt1"_FCShash,    "TileExt2"_FCShash,
        "FCAL0"_FCShash,       "FCAL1"_FCShash,       "FCAL2"_FCShash}
do not persistify 
Definition at line 47 of file TFCSVoxelHistoLateralCovarianceFluctuations.h.
 
 
◆ s_layer_hash_geo
The documentation for this class was generated from the following files:
 
virtual void set_daughter(unsigned int, TFCSParametrizationBase *)
Some derived classes have daughter instances of TFCSParametrizationBase objects The set_daughter meth...
virtual void set_Ekin_nominal(double min)
static const std::uint32_t s_layer_hash_geo[CaloCell_ID_FCS::MaxSample]
do not persistify
const T getAuxInfo(std::uint32_t index) const
static constexpr double init_Ekin_max
Do not persistify!
bool compare(const TFCSParametrizationBase &ref) const
Do not persistify!
static constexpr double init_eta_nominal
Do not persistify!
static constexpr double init_Ekin_min
Do not persistify!
#define IsA
Declare the TObject style functions.
double Ekin_max() const override
static constexpr double init_eta_min
Do not persistify!
Scalar eta() const
pseudorapidity method
MSG::Level level() const
Retrieve output level.
virtual void set_pdgid_Ekin_eta(const TFCSParametrizationBase &ref)
std::vector< TVectorD > m_EigenValues
void FindDuplicates(FindDuplicateClasses_t &dup)
virtual void set_Ekin_max(double max)
static constexpr double init_eta_max
Do not persistify!
CUDA_HOSTDEV float & center_eta()
CLHEP::HepRandomEngine * randomEngine()
std::string to_string(const SectorProjector proj)
virtual void set_Ekin(const TFCSParametrizationBase &ref)
__HOSTDEV__ double Phi_mpi_pi(double)
virtual void set_eta(const TFCSParametrizationBase &ref)
IMessageSvc * getMessageSvc(bool quiet=false)
virtual void set_eta_max(double max)
virtual void set_pdgid(int id)
virtual void set_Ekin_eta(const TFCSParametrizationBase &ref)
static const std::uint32_t s_layer_hash[CaloCell_ID_FCS::MaxSample]
do not persistify
void Initialize(const TH1 *hist, bool doprint=true)
Initialize from root histogram.
void set_calosample(int cs)
MsgStream & msg() const
Return a stream for sending messages directly (no decoration)
virtual void set_Ekin_min(double min)
CUDA_HOSTDEV float & center_z()
std::vector< std::vector< std::vector< TFCS1DFunction * > > > m_transform
void set_Ekin_bin(int bin)
std::vector< TH2 * > m_voxel_template
CUDA_HOSTDEV float & center_phi()
std::map< std::string, FindDuplicates_t > FindDuplicateClasses_t
std::string m_nm
Message source name.
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
bool hasAuxInfo(std::uint32_t index) const
double Ekin_min() const override
void Print(Option_t *option="") const
Print object information.
std::map< TFCSParametrizationBase *, Duplicate_t > FindDuplicates_t
void Print(Option_t *option="") const
double eta_max() const override
TFCSLateralShapeParametrizationHitBase(const char *name=nullptr, const char *title=nullptr)
virtual int get_number_of_hits(TFCSSimulationState &simulstate, const TFCSTruthState *truth, const TFCSExtrapolationState *extrapol) const
Call get_number_of_hits() only once per shower simulation, as it could be calculated with random numb...
void MultiGaus(TFCSSimulationState &simulstate, TVectorD &genPars) const
CUDA_HOSTDEV float & phi()
double eta_min() const override
virtual void set_eta_nominal(double min)
void setAuxInfo(std::uint32_t index, const T &val)
std::vector< TVectorD > m_parMeans
static constexpr double init_Ekin_nominal
#define ATH_MSG_WARNING(x)
const boost::regex ref(r_ef)
std::vector< std::vector< float > > weight_t
do not persistify
virtual void set_eta_min(double min)
CUDA_HOSTDEV float & eta()
@ kMatchAllPDGID
Set this bit in the TObject bit field if valid for all PDGID.
std::vector< TMatrixD > m_EigenVectors
virtual unsigned int size() const
Some derived classes have daughter instances of TFCSParametrizationBase objects The size() and operat...
CUDA_HOSTDEV float & center_r()
bool msgLvl(const MSG::Level lvl) const
Check whether the logging system is active at the provided verbosity level.
GeoGenfun::FunctionNoop ATan2(GeoGenfun::GENFUNCTION y, GeoGenfun::GENFUNCTION x)