Skip to content
Snippets Groups Projects
Commit f2f17b31 authored by Michael Duehrssen-Debling's avatar Michael Duehrssen-Debling
Browse files

Update to the standalone shape validation

Former-commit-id: 0dbfefebca2e49cf5f91c4df7236e52ee0dbd785
parent 6e2444da
No related branches found
No related tags found
No related merge requests found
......@@ -83,11 +83,14 @@ void TFCSHitCellMappingWiggleEMB::simulate_hit(t_hit& hit,TFCSSimulationState& s
if(cs < 4 && cs > 0) wiggle = doWiggle();
double hit_phi_shifted=hit.phi()-wiggle;
hit_phi_shifted=TVector2::Phi_mpi_pi(hit_phi_shifted);
hit.phi()=TVector2::Phi_mpi_pi(hit_phi_shifted);
const CaloDetDescrElement* cellele=m_geo->getDDE(cs,hit.eta(),hit_phi_shifted);
simulstate.deposit(cellele,hit.E());
//std::cout<<"TFCSLateralShapeParametrizationHitCellMapping::simulate_hit: cellele="<<cellele<<" E="<<hit.E()<<" cs="<<cs<<" eta="<<hit.eta()<<" phi="<<hit.phi()<<std::endl;
const CaloDetDescrElement* cellele=m_geo->getDDE(cs,hit.eta(),hit.phi());
if(cellele) {
simulstate.deposit(cellele,hit.E());
} else {
std::cout<<"WARNING: TFCSLateralShapeParametrizationHitCellMapping::simulate_hit: cellele="<<cellele<<" E="<<hit.E()<<" cs="<<cs<<" eta="<<hit.eta()<<" phi="<<hit.phi()<<std::endl;
}
}
void TFCSHitCellMappingWiggleEMB::Print(Option_t *option) const
......
......@@ -61,6 +61,7 @@ void TFCSLateralShapeParametrizationHitChain::simulate(TFCSSimulationState& simu
TFCSLateralShapeParametrizationHitBase::t_hit hit;
hit.E()=Ehit;
for(TFCSLateralShapeParametrizationHitBase* hitsim : m_chain) {
//std::cout<<" do "<<hitsim->ClassName()<<":"<<hitsim->GetName()<<" hit="<<i<<std::endl;
hitsim->simulate_hit(hit,simulstate,truth,extrapol);
}
}
......
......@@ -14,6 +14,7 @@
// FastCaloSim includes
#include "ISF_FastCaloSimEvent/TFCSPCAEnergyParametrization.h"
#include "ISF_FastCaloSimEvent/TFCSSimulationState.h"
#include "ISF_FastCaloSimParametrization/CaloGeometryFromCaloDDM.h"
#include "ISF_FastCaloSimParametrization/IFastCaloSimCaloExtrapolation.h"
#include "TrkExInterfaces/ITimedExtrapolator.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment