Skip to content
Snippets Groups Projects
Commit 32b212aa authored by Antonio Sbrizzi's avatar Antonio Sbrizzi Committed by Graeme Stewart
Browse files

update message handling, see ATLASSIM-419 (AFP_G4_SD-00-00-13)

parent 518ccefb
No related branches found
No related tags found
No related merge requests found
/*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef AFP_SensitiveDetector_h
#define AFP_SensitiveDetector_h
#include "AFP_SimEv/AFP_TDSimHitCollection.h"
#include "AFP_SimEv/AFP_SIDSimHitCollection.h"
//#include "AFP_GeoModel/AFP_GeoModelTool.h"
#include "SimHelpers/AthenaHitsCollectionHelper.h"
#include "FadsSensitiveDetector/FadsSensitiveDetector.h"
#include "globals.hh"
//#include "StoreGate/StoreGateSvc.h"
// class StoreGateSvc;
#define TDMAXQEFF 0.15
#define TDMAXCNT 4000
#define SIDMAXCNT 1000
class G4HCofThisEvent;
class G4Step;
class G4TouchableHistory;
#include <string>
class AFP_SensitiveDetector : public FADS::FadsSensitiveDetector {
public:
AFP_SensitiveDetector(std::string);
~AFP_SensitiveDetector();
void Initialize (G4HCofThisEvent*);
G4bool ProcessHits(G4Step*, G4TouchableHistory*);
void EndOfEvent (G4HCofThisEvent*);
private:
int m_nHitID;
int m_nEventNumber;
int m_nNumberOfTDSimHits;
int m_nNumberOfSIDSimHits;
int m_nNOfTDSimHits[4][32];
int m_nNOfSIDSimHits[4];
float delta_pixel_x, delta_pixel_y;
float death_edge[4][10];
float lower_edge[4][10];
AFP_TDSimHitCollection* m_pTDSimHitCollection;
AFP_SIDSimHitCollection* m_pSIDSimHitCollection;
AthenaHitsCollectionHelper m_HitCollHelp;
//int m_nPos1, m_nPos2;
//int m_nNum[3];
// AFP_GeoModelTool* m_pDetectorTool;
// StoreGateSvc* m_pStoreGate;
// StoreGateSvc* m_pDetStore;
};
#endif //AFP_SensitiveDetector_h
package AFP_G4_SD
author Libor Nozka <libor.nozka@cern.ch>
branches src cmt
use AtlasPolicy AtlasPolicy-*
#use CLIDSvc CLIDSvc-* Control
use FadsSensitiveDetector FadsSensitiveDetector-* Simulation/G4Sim/FADS
use SimHelpers SimHelpers-* Simulation/G4Sim
#use HitManagement HitManagement-* Simulation
use GaudiInterface GaudiInterface-* External
#use StoreGate StoreGate-* Control
#use AFP_GeoModel AFP_GeoModel-* ForwardDetectors/AFP
use AFP_SimEv AFP_SimEv-* ForwardDetectors/AFP
private
use Geant4 Geant4-* External
use AFP_Geometry AFP_Geometry-* ForwardDetectors/AFP
use AthenaBaseComps AthenaBaseComps-* Control
end_private
#library AFP_G4_SD *.cxx -s=components *.cxx
library AFP_G4_SD *.cxx
apply_pattern installed_library
#apply_pattern linked_library
#apply_pattern component_library
# apply_pattern declare_joboptions files="MyJobOptions.py"
AFP_G4_SD-r589828
This diff is collapsed.
#include "AFP_G4_SD/AFP_SensitiveDetector.h"
#include "GaudiKernel/DeclareFactoryEntries.h"
DECLARE_ALGORITHM_FACTORY(AFP_SensitiveDetector)
DECLARE_FACTORY_ENTRIES(AFP_G4_SD) {
DECLARE_ALGORITHM(AFP_SensitiveDetector);
}
#include "GaudiKernel/LoadFactoryEntries.h"
LOAD_FACTORY_ENTRIES(AFP_G4_SD)
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