|
ATLAS Offline Software
|
Generated the decision for hypo thats triggers on high pt isolated tracks.
More...
#include <TrigIsoHPtTrackTriggerHypoTool.h>
|
| TrigIsoHPtTrackTriggerHypoTool (const std::string &type, const std::string &name, const IInterface *parent) |
|
virtual | ~TrigIsoHPtTrackTriggerHypoTool () |
|
virtual StatusCode | initialize () override |
|
StatusCode | decide (std::vector< TrackInfo > &decisions) const |
| decides upon a collection of tracks More...
|
|
bool | decideOnSingleObject (const xAOD::TrackParticle_v1 *track, const xAOD::TrackParticleContainer *AllTracks, size_t cutIndex) const |
| Auxiluary method, single track selection. More...
|
|
StatusCode | inclusiveSelection (std::vector< TrackInfo > &input) const |
| actual implementation of decide, in case of inclusive selection ( one object cut ) More...
|
|
StatusCode | multiplicitySelection (std::vector< TrackInfo > &input) const |
| actual implementation of decide, in case of multiple objects selection ( independentone ) More...
|
|
StatusCode | markPassing (std::vector< TrackInfo > &input, const std::set< size_t > &passing) const |
| stores decisions for all object passing multiple cuts The passsingSelection inner vectors have to have size == input size More...
|
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
|
HLT::Identifier | m_decisionId |
|
Gaudi::Property< std::vector< float > > | m_TrackPt { this, "MinTrackPt", { float( 50.0*Gaudi::Units::GeV ) }, "Track pT requirement" } |
|
Gaudi::Property< std::vector< float > > | m_TrackEta { this, "MinTrackEta", { float(2.5 ) }, "Track Eta requirement" } |
|
Gaudi::Property< std::vector< float > > | m_Trackd0 { this, "MaxTrackd0", {5.}, "Maximum Track d0 allowed" } |
|
Gaudi::Property< std::vector< float > > | m_Trackd0Sig { this, "MaxTrackd0Sig", {5.}, "Maximum Track d0 Sig allowed" } |
|
Gaudi::Property< std::vector< unsigned > > | m_TrackNPixHits { this, "MinTrackNPixHits", {2}, "Minimum number of pixel hits required from the trigger" } |
|
Gaudi::Property< std::vector< unsigned > > | m_TrackNSCTHits { this, "MinTrackNSCTHits", {5}, "Minimum number of SCT hits required from the trigger" } |
|
Gaudi::Property< std::vector< bool > > | m_doIso { this, "EnableTrackIsolation", {false}, "If track based isolation should be applied or not? "} |
|
Gaudi::Property< std::vector< bool > > | m_IsoCum { this, "EnableCumalitiveIsolation", {false}, "Instead of checking if one track is above a certain pT threshold, add up all tracks for isolation"} |
|
Gaudi::Property< std::vector< float > > | m_IsoDR { this, "TrackIsoCone", {0.3}, "Isolation requirment over the main track" } |
|
Gaudi::Property< std::vector< float > > | m_IsoPt { this, "MinIsoTrackPt", {float( 5.0*Gaudi::Units::GeV )}, "Min pT requirment of other tracks to be considered for isolation" } |
|
size_t | m_multiplicity = 1 |
|
ToolHandle< GenericMonitoringTool > | m_monTool { this, "MonTool", "", "Monitoring tool" } |
|
StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) More...
|
|
StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) More...
|
|
std::vector< SG::VarHandleKeyArray * > | m_vhka |
|
bool | m_varHandleArraysDeclared |
|
Generated the decision for hypo thats triggers on high pt isolated tracks.
- Author
- Ismet Siral ismet.nosp@m..sir.nosp@m.al@ce.nosp@m.rn.c.nosp@m.h - University of Oregon
Definition at line 23 of file TrigIsoHPtTrackTriggerHypoTool.h.
◆ StoreGateSvc_t
◆ TrigIsoHPtTrackTriggerHypoTool()
TrigIsoHPtTrackTriggerHypoTool::TrigIsoHPtTrackTriggerHypoTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~TrigIsoHPtTrackTriggerHypoTool()
TrigIsoHPtTrackTriggerHypoTool::~TrigIsoHPtTrackTriggerHypoTool |
( |
| ) |
|
|
virtual |
◆ decide()
StatusCode TrigIsoHPtTrackTriggerHypoTool::decide |
( |
std::vector< TrackInfo > & |
decisions | ) |
const |
◆ decideOnSingleObject()
Auxiluary method, single track selection.
Definition at line 58 of file TrigIsoHPtTrackTriggerHypoTool.cxx.
71 MONtrackPt, MONtrackEta,
72 MONtrackd0, MONtrackd0Sig,
73 MONtrackNPixHits, MONtrackNSCTHits,
74 MONtrackIsoPt, MONtrackAggrIsoPt
102 auto trackd0= std::abs((
track)->
d0());
162 float CumulativePT = 0.0;
164 for (
auto trackIter = AllTracks->
begin(); trackIter != AllTracks->
end(); ++trackIter){
167 if( (*trackIter)==
track)
continue;
168 if (
track->p4().DeltaR((*trackIter)->p4()) >
m_IsoDR[cutIndex] )
continue;
179 if (iterSCT<=2 )
continue;
185 CumulativePT+=(*trackIter)->pt();
186 if(CumulativePT>=
m_IsoPt[cutIndex]) {
187 MONtrackAggrIsoPt=CumulativePT;
194 if ((*trackIter)->pt() > MONtrackIsoPt ) {
195 MONtrackIsoPt=(*trackIter)->pt();
198 if( (*trackIter)->pt()>=
m_IsoPt[cutIndex] ) {
208 MONtrackAggrIsoPt=CumulativePT;
213 MONtrackNPixHits=trackNPixHits;
214 MONtrackNSCTHits=trackNSCTHits;
218 MONtrackd0Sig= trackd0Sig;
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ extraDeps_update_handler()
Add StoreName to extra input/output deps as needed.
use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given
◆ inclusiveSelection()
StatusCode TrigIsoHPtTrackTriggerHypoTool::inclusiveSelection |
( |
std::vector< TrackInfo > & |
input | ) |
const |
actual implementation of decide, in case of inclusive selection ( one object cut )
Definition at line 227 of file TrigIsoHPtTrackTriggerHypoTool.cxx.
235 if ( objDecision ==
true ) {
240 return StatusCode::SUCCESS;
◆ initialize()
StatusCode TrigIsoHPtTrackTriggerHypoTool::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 23 of file TrigIsoHPtTrackTriggerHypoTool.cxx.
45 if ( *std::min_element( sizes.begin(), sizes.end() ) != *std::max_element( sizes.begin(), sizes.end() ) ) {
46 ATH_MSG_ERROR(
"Missconfiguration, cut properties listed above ( when INFO ) have different dimensions shortest: " << *std::min_element( sizes.begin(), sizes.end() ) <<
" longest " << *std::max_element( sizes.begin(), sizes.end() ) );
47 return StatusCode::FAILURE;
52 return StatusCode::SUCCESS;
◆ inputHandles()
Return this algorithm's input handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ markPassing()
StatusCode TrigIsoHPtTrackTriggerHypoTool::markPassing |
( |
std::vector< TrackInfo > & |
input, |
|
|
const std::set< size_t > & |
passing |
|
) |
| const |
stores decisions for all object passing multiple cuts The passsingSelection inner vectors have to have size == input size
Definition at line 244 of file TrigIsoHPtTrackTriggerHypoTool.cxx.
246 for (
auto idx: passing )
248 return StatusCode::SUCCESS;
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ multiplicitySelection()
StatusCode TrigIsoHPtTrackTriggerHypoTool::multiplicitySelection |
( |
std::vector< TrackInfo > & |
input | ) |
const |
actual implementation of decide, in case of multiple objects selection ( independentone )
Definition at line 253 of file TrigIsoHPtTrackTriggerHypoTool.cxx.
256 for (
size_t cutIndex = 0; cutIndex <
m_multiplicity; ++ cutIndex ) {
257 size_t trkIndex{ 0 };
258 for (
auto trkIter =
input.begin(); trkIter !=
input.end(); ++trkIter, ++trkIndex ) {
265 passingSelection[cutIndex].push_back( trkIndex );
270 if ( passingSelection[cutIndex].
empty() ) {
271 ATH_MSG_DEBUG(
"No object passed selection " << cutIndex <<
" rejecting" );
272 return StatusCode::SUCCESS;
276 std::set<size_t> passingIndices;
◆ outputHandles()
Return this algorithm's output handles.
We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.
◆ renounce()
◆ renounceArray()
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_decisionId
◆ m_detStore
◆ m_doIso
Gaudi::Property< std::vector<bool> > TrigIsoHPtTrackTriggerHypoTool::m_doIso { this, "EnableTrackIsolation", {false}, "If track based isolation should be applied or not? "} |
|
private |
◆ m_evtStore
◆ m_IsoCum
Gaudi::Property< std::vector<bool> > TrigIsoHPtTrackTriggerHypoTool::m_IsoCum { this, "EnableCumalitiveIsolation", {false}, "Instead of checking if one track is above a certain pT threshold, add up all tracks for isolation"} |
|
private |
◆ m_IsoDR
Gaudi::Property< std::vector<float> > TrigIsoHPtTrackTriggerHypoTool::m_IsoDR { this, "TrackIsoCone", {0.3}, "Isolation requirment over the main track" } |
|
private |
◆ m_IsoPt
Gaudi::Property< std::vector<float> > TrigIsoHPtTrackTriggerHypoTool::m_IsoPt { this, "MinIsoTrackPt", {float( 5.0*Gaudi::Units::GeV )}, "Min pT requirment of other tracks to be considered for isolation" } |
|
private |
◆ m_monTool
◆ m_multiplicity
size_t TrigIsoHPtTrackTriggerHypoTool::m_multiplicity = 1 |
|
private |
◆ m_Trackd0
Gaudi::Property< std::vector<float> > TrigIsoHPtTrackTriggerHypoTool::m_Trackd0 { this, "MaxTrackd0", {5.}, "Maximum Track d0 allowed" } |
|
private |
◆ m_Trackd0Sig
Gaudi::Property< std::vector<float> > TrigIsoHPtTrackTriggerHypoTool::m_Trackd0Sig { this, "MaxTrackd0Sig", {5.}, "Maximum Track d0 Sig allowed" } |
|
private |
◆ m_TrackEta
Gaudi::Property< std::vector<float> > TrigIsoHPtTrackTriggerHypoTool::m_TrackEta { this, "MinTrackEta", { float(2.5 ) }, "Track Eta requirement" } |
|
private |
◆ m_TrackNPixHits
Gaudi::Property< std::vector<unsigned> > TrigIsoHPtTrackTriggerHypoTool::m_TrackNPixHits { this, "MinTrackNPixHits", {2}, "Minimum number of pixel hits required from the trigger" } |
|
private |
◆ m_TrackNSCTHits
Gaudi::Property< std::vector<unsigned> > TrigIsoHPtTrackTriggerHypoTool::m_TrackNSCTHits { this, "MinTrackNSCTHits", {5}, "Minimum number of SCT hits required from the trigger" } |
|
private |
◆ m_TrackPt
Gaudi::Property< std::vector<float> > TrigIsoHPtTrackTriggerHypoTool::m_TrackPt { this, "MinTrackPt", { float( 50.0*Gaudi::Units::GeV ) }, "Track pT requirement" } |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
Group
Properties of a chain group.
TrigCompositeUtils::DecisionID numeric() const
numeric ID
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.
double d0significance(const xAOD::TrackParticle *tp, double d0_uncert_beam_spot_2)
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
@ numberOfPixelHits
these are the pixel hits, including the b-layer [unit8_t].
#define ATH_MSG_VERBOSE(x)
virtual void setOwner(IDataHandleHolder *o)=0
static HLT::Identifier fromToolName(const std::string &tname)
#define CHECK(...)
Evaluate an expression and check for errors.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
void elementsInUniqueCombinations(const Index2DVec &indices, std::set< size_t > &participants, std::function< bool(const Index1DVec &)> &&filter)
bool trackPt(const xAOD::TauJet &, const xAOD::TauTrack &track, double &out)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
@ numberOfSCTHits
number of hits in SCT [unit8_t].
std::vector< Index1DVec > Index2DVec
Declare a monitored scalar variable.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
bool trackEta(const xAOD::TauJet &, const xAOD::TauTrack &track, double &out)
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.