|
ATLAS Offline Software
|
Go to the documentation of this file.
20 using namespace asg::msgUserCode;
40 return StatusCode::FAILURE;
61 ATH_MSG_INFO(
"FPGATrackSimEventSelectionSvc::initialize(): " <<
63 "min = {" <<
m_min <<
"}, " <<
64 "max = {" <<
m_max <<
"}, " <<
66 "withPU = " <<
static_cast<bool>(
m_withPU));
68 return StatusCode::SUCCESS;
74 ATH_MSG_INFO(
"FPGATrackSimEventSelectionSvc::finalize()");
76 return StatusCode::SUCCESS;
82 if ( !ppvIf )
return StatusCode::FAILURE;
87 }
else if (base_class::queryInterface(riid, ppvIf).isSuccess()) {
88 return StatusCode::SUCCESS;
91 return ::AthService::queryInterface(riid, ppvIf);
94 return StatusCode::SUCCESS;
238 if (
track.getQOverPt() == 0)
return false;
245 if (truthTrack.
getBarcode() == 0 || truthTrack.
getQ() == 0)
return false;
247 if (!
passCuts(truthTrack))
return false;
267 ATH_MSG_DEBUG(
"selectEvent(): Error with sampleType property");
287 ATH_MSG_DEBUG(
"selectEvent(): Error with sampleType property");
304 MsgStream cmsg(
msgSvc(),
"FPGATrackSimRegionSlices");
317 if (std::abs(
track.getPDGCode()) !=
static_cast<int>(
m_st)) {
322 ATH_MSG_DEBUG(
"selectEvent(): found one truth track, in region "
323 <<
getRegionID() <<
"; track pars: "<< truthTracks.front().getPars());
328 ATH_MSG_DEBUG(
"selectEvent(): found one truth track over "<<truthTracks.size()<<
", out of region "
329 <<
getRegionID() <<
"; track pars: "<< truthTracks.front().getPars());
338 ATH_MSG_DEBUG(
"selectEvent(): Checking truth tracks with LRT requirements");
345 for (
const auto& truthtrack : truthTracks ) {
348 if (
passCuts(truthtrack))
ANA_MSG_DEBUG(
"Skipping an otherwise passing track due to wrong PDGID: " << truthtrack.getPDGCode());
351 if (
passCuts(truthtrack))
return true;
virtual bool passZ0(const FPGATrackSimTrack &) const override
bool checkTruthTracksLRT(const std::vector< FPGATrackSimTruthTrack > &) const
unsigned long getBarcode() const
Stores slice definitions for FPGATrackSim regions.
bool checkTruthTracks(const std::vector< FPGATrackSimTruthTrack > &) const
Scalar phi() const
phi method
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvIf) override
Scalar eta() const
pseudorapidity method
bool inRegion(unsigned region, FPGATrackSimTruthTrack const &t) const
virtual bool passMatching(FPGATrackSimTrack const &) const override
FPGATrackSimTrackPars m_trackmin
FPGATrackSimRegionSlices * m_regions
virtual bool passQOverPt(const FPGATrackSimTrack &) const override
virtual bool passCuts(const FPGATrackSimHit &) const override
const std::vector< FPGATrackSimTruthTrack > & getTruthTracks() const
virtual bool passD0(const FPGATrackSimTrack &) const override
FPGATrackSimEventSelectionSvc(const std::string &name, ISvcLocator *svc)
virtual bool passPhi(const FPGATrackSimTrack &) const override
msgSvc
Provide convenience handles for various services.
bool is_simulation_particle(const T &p)
Method to establish if a particle (or barcode) was created during the simulation (TODO update to be s...
double getQOverPt() const
virtual StatusCode finalize() override
::StatusCode StatusCode
StatusCode definition for legacy code.
Gaudi::Property< std::string > m_sampleType
AthROOTErrorHandlerSvc * svc
virtual bool selectEvent(FPGATrackSimEventInputHeader *) const override
FPGATrackSimTrackPars m_max
virtual StatusCode initialize() override
FPGATrackSimTrackPars m_trackmax
: FPGATrackSim-specific class to represent an hit in the detector.
Gaudi::Property< float > m_minLRTpT
Gaudi::Property< std::string > m_regions_path
FPGATrackSimTrackPars const & getMax(unsigned region) const
std::string PathResolverFindCalibFile(const std::string &logical_file_name)
Gaudi::Property< bool > m_LRT
Gaudi::Property< int > m_LRT_pdgID
virtual bool passEta(const FPGATrackSimTrack &) const override
Gaudi::Property< unsigned int > m_regionID
#define ATH_MSG_WARNING(x)
FPGATrackSimTrackPars const & getMin(unsigned region) const
Gaudi::Property< bool > m_allowHighBarcode
static const InterfaceID & interfaceID()
FPGATrackSimTrackPars getPars() const
Gaudi::Property< bool > m_withPU
virtual const FPGATrackSimRegionSlices * getRegions() override
float getGCotTheta() const
FPGATrackSimTrackPars m_min
virtual unsigned getRegionID() const override