|
ATLAS Offline Software
|
Go to the documentation of this file.
14 #include "GaudiKernel/SystemOfUnits.h"
33 const std::string&
type,
34 const std::string&
name,
35 const IInterface*
parent ) :
62 ATH_CHECK(
m_trigDecTool.retrieve( EnableTool{ m_trkAnaDefSvc->useTrigger() and not m_trkAnaDefSvc->useEFTrigger() } ) );
86 const std::vector< std::string >& configuredChains =
m_trkAnaDefSvc->configuredChains();
90 for(
const std::string& thisChain : configuredChains ) {
91 ATH_MSG_DEBUG(
"Booking TrkAnalysis/histograms for chain : " << thisChain );
96 std::make_unique< IDTPM::TrackAnalysisPlotsMgr >(
102 return StatusCode::SUCCESS;
121 for (
size_t ih=0 ; ih<
hists.size() ; ih++ ) {
126 std::vector< EfficiencyData > effs =
m_trkAnaPlotsMgrVec[iAna]->retrieveBookedEfficiencies();
127 for (
size_t ie=0 ;
ie<effs.size() ;
ie++ ) {
133 return StatusCode::SUCCESS;
148 std::make_unique< xAOD::BaseContainer >(),
149 std::make_unique< xAOD::AuxContainerBase >() ) );
162 "\n==========================================" );
166 if( thisTrkAnaCollections.
empty() ) {
178 ATH_MSG_DEBUG(
"Some collections are empty after quality selection." );
194 unsigned decisionType = TrigDefs::Physics;
198 if( not
m_trigDecTool->isPassed( thisChain, decisionType ) ) {
199 ATH_MSG_DEBUG(
"Trigger chain " << thisChain <<
" is not fired. Skipping" );
207 std::vector< TrigCompositeUtils::LinkInfo< TrigRoiDescriptorCollection > > selectedRois;
208 size_t selectedRoisSize(1);
212 selectedRoisSize = selectedRois.size();
219 for(
size_t ir=0 ;
ir<selectedRoisSize ;
ir++ ) {
227 thisRoiLink.
cptr() :
nullptr;
229 std::string( **thisRoi ) :
"Full Scan";
239 thisTrkAnaCollections, thisRoiLink ) );
242 thisTrkAnaCollections.
copyFS();
247 ATH_MSG_DEBUG(
"Some collections are empty after RoI selection." );
253 std::string chainRoIName = thisChain;
259 chainRoIName, thisRoiStr ) );
272 thisTrkAnaCollections,
273 thisChain,
ir, thisRoiStr ) );
284 return StatusCode::SUCCESS;
303 return StatusCode::SUCCESS;
319 return StatusCode::SUCCESS;
uint64_t eventNumber() const
The current event's event number.
const xAOD::EventInfo * eventInfo()
get event info
nope - should be used for standalone also, perhaps need to protect the class def bits #ifndef XAOD_AN...
const std::string & key() const
Return the StoreGate ID for the referenced object.
void clear(Stage stage=FULL)
Clear vectors.
StatusCode fillEventInfo(const SG::ReadHandleKey< xAOD::EventInfo > &handleKey)
— Setter methods —
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
std::string to_string(const DetectorType &type)
StatusCode fillTruthPartContainer(const SG::ReadHandleKey< xAOD::TruthParticleContainer > &truthPartHandleKey, const SG::ReadHandleKey< xAOD::TruthEventContainer > &truthEventHandleKey, const SG::ReadHandleKey< xAOD::TruthPileupEventContainer > &truthPUEventHandleKey)
fill FULL collections and vectors
StatusCode initialize()
initialize
ElementConstPointer cptr() const
Return a pointer to the referenced element.
int ir
counter of the current depth
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
std::string printInfo(Stage stage=FULL) const
print Information about tracks in the collection(s)
bool empty(Stage stage=FULL)
— Utility methods —
StatusCode fillTrigTrackContainer(const SG::ReadHandleKey< xAOD::TrackParticleContainer > &handleKey)
Trigger track particles.
void copyFS()
copy content of FS vectors to InRoI vectors
StatusCode fillOfflTrackContainer(const SG::ReadHandleKey< xAOD::TrackParticleContainer > &handleKey)
Offline track particles.