|
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;
219 if (
track.getQOverPt() == 0)
return false;
226 if (truthTrack.
getBarcode() == 0 || truthTrack.
getQ() == 0)
return false;
228 if (!
passCuts(truthTrack))
return false;
249 ATH_MSG_DEBUG(
"selectEvent(): Error with sampleType property");
272 ATH_MSG_DEBUG(
"selectEvent(): Error with sampleType property");
291 MsgStream cmsg(
msgSvc(),
"FPGATrackSimRegionSlices");
304 if (std::abs(
track.getPDGCode()) !=
static_cast<int>(
m_st)) {
309 ATH_MSG_DEBUG(
"selectEvent(): found one truth track, in region "
315 ATH_MSG_DEBUG(
"selectEvent(): found one truth track over "<<truthTracks.size()<<
", out of region "
325 ATH_MSG_DEBUG(
"selectEvent(): Checking truth tracks with LRT requirements");
332 for (
const auto& truthtrack : truthTracks ) {
335 if (
passCuts(truthtrack))
ANA_MSG_DEBUG(
"Skipping an otherwise passing track due to wrong PDGID: " << truthtrack.getPDGCode());
338 if (
passCuts(truthtrack))
return true;
virtual bool passZ0(const FPGATrackSimTrack &) const override
bool checkTruthTracksLRT(const std::vector< FPGATrackSimTruthTrack > &) const
Stores slice definitions for FPGATrackSim regions.
bool checkTruthTracks(const std::vector< FPGATrackSimTruthTrack > &) const
Scalar phi() const
phi method
virtual bool selectEvent(FPGATrackSimEventInputHeader *) 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
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
HepMcParticleLink::barcode_type getBarcode() const
FPGATrackSimTrackPars getPars() const
Gaudi::Property< bool > m_withPU
virtual const FPGATrackSimRegionSlices * getRegions() override
float getGCotTheta() const
FPGATrackSimTrackPars m_min
virtual unsigned getRegionID() const override