ATLAS Offline Software
RingerCommonSelector.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // $Id: RingerCommonSelector.h 668868 2015-05-20 20:26:18Z wsfreund $
6 #ifndef RINGERSELECTORTOOLS_TOOLS_RINGERCOMMONSELECTOR_H
7 #define RINGERSELECTORTOOLS_TOOLS_RINGERCOMMONSELECTOR_H
8 
9 // Local includes:
12 
13 // STL includes:
14 #include <vector>
15 
16 // xAOD includes:
19 
20 // ROOT includes:
21 #include "PATCore/AcceptData.h"
22 
23 namespace Ringer {
24 
25 class RingerConfStruct;
26 
32 class RingerCommonSelector : public RedirectMsgStream
33 {
34 
35  public:
40  const Ringer::IDiscrWrapperCollection *discrWrapperCol,
41  const Ringer::IThresWrapper *thresWrapper,
42  const Ringer::RingerConfStruct& fileConf );
43 
47  void clear();
48 
53  const DepVarStruct &depVar,
54  const xAOD::CaloRings* clRings,
55  const TrackPatternsHolder *trackPat,
56  asg::AcceptData& acceptData);
57 
61  const std::vector<float> &getOutputSpace() const;
62 
63  private:
64 
68  const Ringer::IThresWrapper *m_thresWrapper;
69  const bool m_useTrackPat;
70  const bool m_useRawTrackPat;
71  const bool m_useCaloCommittee;
73 
83  std::vector<float> m_input;
85  std::vector<float> m_output;
87  std::vector<bool> m_decVec;
95  std::vector<float> m_trackDiscr_output;
99 
100 };
101 
102 //==============================================================================
103 inline
105  m_output.clear();
106 }
107 
108 //==============================================================================
109 inline
110 const std::vector<float>& RingerCommonSelector::getOutputSpace() const {
111  return m_output;
112 }
113 
114 } // namespace Ringer
115 
116 
117 #endif // RINGERSELECTORTOOLS_TOOLS_RINGERCOMMONSELECTOR_H
CaloRingsFwd.h
RingerProcedureWrapper.icc
VariableDependency.h
Ringer::RingerCommonSelector::m_lastDiscrLayer
const IDiscrWrapper * m_lastDiscrLayer
Pointer to last discrimination layer.
Definition: RingerCommonSelector.h:79
Ringer::IRingerProcedureWrapper< Discrimination::IDiscriminator >
Definition: RingerDiscriminatorWrapper.h:38
Ringer::RingerCommonSelector::clear
void clear()
Clear output space representation.
Definition: RingerCommonSelector.h:104
Ringer::RingerCommonSelector::m_discrWrapperCol
const Ringer::IDiscrWrapperCollection * m_discrWrapperCol
Properties to be given by AsgSelector:
Definition: RingerCommonSelector.h:67
Ringer::RingerCommonSelector::m_decVec
std::vector< bool > m_decVec
Hold decision.
Definition: RingerCommonSelector.h:87
Ringer::RingerCommonSelector::getOutputSpace
const std::vector< float > & getOutputSpace() const
Get output space.
Definition: RingerCommonSelector.h:110
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Ringer::RingerCommonSelector::m_discrWrapperColSize
size_t m_discrWrapperColSize
The discrimination wrapper collection size.
Definition: RingerCommonSelector.h:81
Ringer::RingerCommonSelector::m_trackDiscr_output
std::vector< float > m_trackDiscr_output
Hold track discriminator output.
Definition: RingerCommonSelector.h:95
Ringer::RingerCommonSelector::m_nonSegmentedDiscr
bool m_nonSegmentedDiscr
Flag if discrimination approach is non segmented.
Definition: RingerCommonSelector.h:97
xAOD::CaloRings_v1
Class summarizing the particle interaction throughout the Calorimeter (its shower shape).
Definition: CaloRings_v1.h:51
Ringer::RingerCommonSelector
Definition: RingerCommonSelector.h:33
Ringer::IDiscrWrapperCollection
IDiscrWrapper::WrapperCollection IDiscrWrapperCollection
Facilitate access into Discrimination Wrappers.
Definition: RingerDiscriminatorWrapper.h:145
AcceptData.h
Ringer::RingerCommonSelector::execute
StatusCode execute(const DepVarStruct &depVar, const xAOD::CaloRings *clRings, const TrackPatternsHolder *trackPat, asg::AcceptData &acceptData)
Execute Ringer common selector.
Ringer::RingerCommonSelector::m_output
std::vector< float > m_output
Hold discriminators output.
Definition: RingerCommonSelector.h:85
TrackParticleFwd.h
Ringer::RingerCommonSelector::m_input
std::vector< float > m_input
Hold discriminators input.
Definition: RingerCommonSelector.h:83
Ringer::RingerCommonSelector::RingerCommonSelector
RingerCommonSelector(const Ringer::IDiscrWrapperCollection *discrWrapperCol, const Ringer::IThresWrapper *thresWrapper, const Ringer::RingerConfStruct &fileConf)
Main ctor.
Ringer::RingerCommonSelector::m_thresWrapper
const Ringer::IThresWrapper * m_thresWrapper
Definition: RingerCommonSelector.h:68
Ringer::DepVarStruct
Definition: VariableDependency.h:32
Ringer::RingerCommonSelector::m_fstDiscrLayer
const IDiscrWrapper * m_fstDiscrLayer
Local properties:Pointer to firlastst discrimination layer.
Definition: RingerCommonSelector.h:77
Ringer::RingerCommonSelector::m_useRawTrackPat
const bool m_useRawTrackPat
Definition: RingerCommonSelector.h:70
Ringer::RingerCommonSelector::m_useCaloCommittee
const bool m_useCaloCommittee
Definition: RingerCommonSelector.h:71
asg::AcceptData
Definition: AcceptData.h:30
Ringer
Namespace dedicated for Ringer utilities.
Definition: CaloRingsDefs.h:9
Ringer::RingerCommonSelector::m_useTrackPat
const bool m_useTrackPat
Definition: RingerCommonSelector.h:69