|
ATLAS Offline Software
|
#include <FastCaloSimV2ParamSvc.h>
Definition at line 22 of file FastCaloSimV2ParamSvc.h.
◆ FastCaloSimV2ParamSvc()
ISF::FastCaloSimV2ParamSvc::FastCaloSimV2ParamSvc |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
Constructor with parameters.
Constructor.
Definition at line 44 of file FastCaloSimV2ParamSvc.cxx.
49 declareProperty(
"DetStore",
51 "Handle to a StoreGateSvc/DetectorStore instance: it will be used to "
52 "retrieve data during the course of the job" );
◆ ~FastCaloSimV2ParamSvc()
virtual ISF::FastCaloSimV2ParamSvc::~FastCaloSimV2ParamSvc |
( |
| ) |
|
|
virtualdefault |
◆ detStore()
◆ initialize()
StatusCode ISF::FastCaloSimV2ParamSvc::initialize |
( |
| ) |
|
|
finaloverridevirtual |
Athena algorithm's interface methods.
framework methods
does not take ownership
Definition at line 61 of file FastCaloSimV2ParamSvc.cxx.
66 m_caloGeo = std::make_unique<CaloGeometryFromCaloDDM>();
70 m_caloGeo->LoadGeometryFromCaloDDM(caloMgr);
75 m_caloGeo->LoadGeometryFromCaloDDM(caloMgrPtr.get());
79 if (!
m_caloGeo->LoadFCalChannelMapFromFCalDDM(fcalManager)) {
80 ATH_MSG_FATAL(
"Found inconsistency between FCal_Channel map and GEO file. Please, check if they are configured properly.");
81 return StatusCode::FAILURE;
89 return StatusCode::FAILURE;
96 return StatusCode::FAILURE;
113 return StatusCode::SUCCESS;
115 ATH_MSG_WARNING(
"no GPU device is found, will run everything on the CPU." );
117 return StatusCode::SUCCESS;
122 ATH_MSG_INFO(
"start copying all parametrization files to GPU");
125 unsigned long long seed=23424352;
131 m_gl->set_ncells( calogeo->get_cells()->size() );
133 if(calogeo->get_cells()->size() ==0 )
return StatusCode::SUCCESS;
136 int nrgns= calogeo->get_tot_regions();
137 m_gl->set_nregions( nrgns);
140 if(!convert_cellmap(calogeo->get_cells(),&m_cellmap_gpu)){
141 ATH_MSG_ERROR(
"can not convert the CaloDetDescrElement to CaloDetDescrElement_GPU ");
143 m_gl->set_cellmap( &m_cellmap_gpu);
145 m_gl->set_regions( GR_ptr );
149 m_gl->set_sample_index_h( si );
154 int nr = calogeo->get_n_regions( is );
156 for (
int ir = 0;
ir < nr; ++
ir ) region_data_cpy( calogeo->get_region( is,
ir), &GR_ptr[
i++] );
160 ATH_MSG_INFO(
"calo geometry loaded successfully in GPU");
165 return StatusCode::SUCCESS;
◆ simulate()
Simulation Call.
Definition at line 169 of file FastCaloSimV2ParamSvc.cxx.
173 simulstate.set_gpu_rand (m_rd4h );
174 simulstate.set_geold( m_gl );
177 simulstate.set_geold(
nullptr );
182 return StatusCode::FAILURE;
185 return StatusCode::SUCCESS;
◆ m_caloGeo
◆ m_CompressMemory
bool ISF::FastCaloSimV2ParamSvc::m_CompressMemory {true} |
|
private |
◆ m_detStore
◆ m_param
◆ m_paramsFilename
std::string ISF::FastCaloSimV2ParamSvc::m_paramsFilename {"TFCSparam.root"} |
|
private |
◆ m_paramsObject
std::string ISF::FastCaloSimV2ParamSvc::m_paramsObject {"SelPDGID"} |
|
private |
◆ m_printParametrization
bool ISF::FastCaloSimV2ParamSvc::m_printParametrization {false} |
|
private |
◆ m_runOnGPU
bool ISF::FastCaloSimV2ParamSvc::m_runOnGPU {false} |
|
private |
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
FCSReturnCode
Base class for all FastCaloSim parametrizations Functionality in derivde classes is provided through ...
static const Info & instance()
Singleton accessor function.
A manager class providing access to readout geometry information for the forward calorimeter.
static const int MAX_SAMPLING
TFCSParametrizationBase * m_param
std::string m_paramsObject
bool m_printParametrization
virtual FCSReturnCode simulate(TFCSSimulationState &simulstate, const TFCSTruthState *truth, const TFCSExtrapolationState *extrapol) const
Method in all derived classes to do some simulation.
void * Rand4Hits_init(long long, unsigned short, unsigned long long, bool)
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
IMessageSvc * getMessageSvc(bool quiet=false)
ServiceHandle< StoreGateSvc > m_detStore
Pointer to StoreGate (detector store by default)
std::unique_ptr< CaloGeometryFromCaloDDM > m_caloGeo
virtual void set_geometry(ICaloGeometry *geo)
Method to set the geometry access pointer.
void Print(Option_t *option="") const
Print object information.
AthROOTErrorHandlerSvc * svc
std::string m_paramsFilename
virtual void setLevel(MSG::Level lvl)
Update outputlevel.
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
int ir
counter of the current depth
This class provides the client interface for accessing the detector description information common to...
#define ATH_MSG_WARNING(x)
std::unique_ptr< CaloDetDescrManager > buildCaloDetDescrNoAlign(ISvcLocator *svcLocator, IMessageSvc *msgSvc)