|
ATLAS Offline Software
|
#include <TrigJetCRHypoTool.h>
|
| TrigJetCRHypoTool (const std::string &type, const std::string &name, const IInterface *parent) |
|
virtual StatusCode | initialize () override final |
|
StatusCode | decide (std::vector< JetInfo > &decisions) const |
| decides upon a collection of jets More...
|
|
bool | decide_on_single_jet (JetInfo &input) const |
| Auxiluary method, single jet selection. More...
|
|
const HLT::Identifier & | getId () const |
|
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 |
|
ToolHandle< ITrigJetHypoToolHelper > | m_helper |
|
Gaudi::Property< bool > | m_visitDebug {this, "visit_debug", false, "debug flag"} |
|
Gaudi::Property< std::string > | m_chainName |
|
Gaudi::Property< float > | m_jetlogRCut { this, "MinjetlogR", { float(1.2 ) }, "Jet logR requirement" } |
|
Gaudi::Property< float > | m_trackPtCut { this, "MintrackPt", { float( 2.0*Gaudi::Units::GeV ) }, "Track pT requirement" } |
|
Gaudi::Property< float > | m_deltaR { this, "MindeltaR", { float( 0.2 ) }, "deltaR(jet, track) requirement" } |
|
Gaudi::Property< bool > | m_doBIBrm { this, "doBIBremoval", { int(0) }, "option to include BIB removal" } |
|
Gaudi::Property< bool > | m_doEMFrm { this, "doEMFremoval", { int(0) }, "option to include pileip removal" } |
|
Gaudi::Property< float > | m_dEta { this, "BibMinDeltaEta", { float( 0.4 ) }, "BIB deltaEta requirement" } |
|
Gaudi::Property< float > | m_dPhi { this, "BibMinDeltaPhi", { float( 0.2 ) }, "BIB deltaPhi requirement" } |
|
Gaudi::Property< float > | m_minCellEt { this, "BibMinCellEt", { float( 240.0 ) }, "BIB cell Et requirement" } |
|
Gaudi::Property< float > | m_celltime { this, "BibCelltiming", { float( -2.0 ) }, "BIB cell timing requirement" } |
|
Gaudi::Property< float > | m_dBIBtime { this, "BibDeltatiming", { float( 5.0 ) }, "BIB delta timing requirement" } |
|
Gaudi::Property< int > | m_countCaloCell { this, "countBIBcells", { int( 4 ) }, "requirement on number of BIB cells" } |
|
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 |
|
Definition at line 34 of file TrigJetCRHypoTool.h.
◆ JetDecision
◆ StoreGateSvc_t
◆ TrigJetCRHypoTool()
TrigJetCRHypoTool::TrigJetCRHypoTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ decide()
StatusCode TrigJetCRHypoTool::decide |
( |
std::vector< JetInfo > & |
decisions | ) |
const |
decides upon a collection of jets
Definition at line 141 of file TrigJetCRHypoTool.cxx.
142 for ( JetInfo& j:
input ) {
146 return StatusCode::SUCCESS;
152 return StatusCode::SUCCESS;
◆ decide_on_single_jet()
bool TrigJetCRHypoTool::decide_on_single_jet |
( |
JetInfo & |
input | ) |
const |
Auxiluary method, single jet selection.
Definition at line 60 of file TrigJetCRHypoTool.cxx.
63 auto trackContainer =
input.allTracks;
64 auto cellContainer =
input.cells;
67 double jetEMF =
jet->getAttribute<
float>(
"EMFrac");
75 else jetRatio = log10(
double(1./jetEMF - 1.));
81 auto jetPhi=
jet->phi();
82 auto jetEta=
jet->eta();
98 double countCell_layer[4] = {0,0,0,0};
102 if((*celliter)->caloDDE()->is_tile() && (*celliter)->energy() >
m_minCellEt){
106 if(std::abs(d_phi) < 0.2 && d_R > 0.4){
108 float t = (*celliter)->time();
111 float x = (*celliter)->x();
112 float y = (*celliter)->y();
113 float z = (*celliter)->z();
114 float r = sqrt(
x*
x +
y*
y);
118 if(
r<2200){ countCell_layer[0]++;}
119 else if(
r>=2200 &&
r<2600){ countCell_layer[1]++;}
120 else if(
r>=2600 &&
r<3100){ countCell_layer[2]++;}
121 else if(
r>=3100){ countCell_layer[3]++;}
129 for(
int i=0;
i<4;
i++)
130 if(countCaloCell<countCell_layer[
i]) countCaloCell=countCell_layer[
i];
◆ 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
◆ getId()
◆ initialize()
StatusCode TrigJetCRHypoTool::initialize |
( |
| ) |
|
|
finaloverridevirtual |
◆ 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.
◆ msg() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ 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_celltime
Gaudi::Property< float > TrigJetCRHypoTool::m_celltime { this, "BibCelltiming", { float( -2.0 ) }, "BIB cell timing requirement" } |
|
private |
◆ m_chainName
Gaudi::Property<std::string> TrigJetCRHypoTool::m_chainName |
|
private |
◆ m_countCaloCell
Gaudi::Property< int > TrigJetCRHypoTool::m_countCaloCell { this, "countBIBcells", { int( 4 ) }, "requirement on number of BIB cells" } |
|
private |
◆ m_dBIBtime
Gaudi::Property< float > TrigJetCRHypoTool::m_dBIBtime { this, "BibDeltatiming", { float( 5.0 ) }, "BIB delta timing requirement" } |
|
private |
◆ m_decisionId
◆ m_deltaR
Gaudi::Property< float > TrigJetCRHypoTool::m_deltaR { this, "MindeltaR", { float( 0.2 ) }, "deltaR(jet, track) requirement" } |
|
private |
◆ m_dEta
Gaudi::Property< float > TrigJetCRHypoTool::m_dEta { this, "BibMinDeltaEta", { float( 0.4 ) }, "BIB deltaEta requirement" } |
|
private |
◆ m_detStore
◆ m_doBIBrm
Gaudi::Property< bool > TrigJetCRHypoTool::m_doBIBrm { this, "doBIBremoval", { int(0) }, "option to include BIB removal" } |
|
private |
◆ m_doEMFrm
Gaudi::Property< bool > TrigJetCRHypoTool::m_doEMFrm { this, "doEMFremoval", { int(0) }, "option to include pileip removal" } |
|
private |
◆ m_dPhi
Gaudi::Property< float > TrigJetCRHypoTool::m_dPhi { this, "BibMinDeltaPhi", { float( 0.2 ) }, "BIB deltaPhi requirement" } |
|
private |
◆ m_evtStore
◆ m_helper
Initial value:{
this, "helper_tool", {}, "Jet hypo helper AlgTool"}
Definition at line 86 of file TrigJetCRHypoTool.h.
◆ m_jetlogRCut
Gaudi::Property< float > TrigJetCRHypoTool::m_jetlogRCut { this, "MinjetlogR", { float(1.2 ) }, "Jet logR requirement" } |
|
private |
◆ m_minCellEt
Gaudi::Property< float > TrigJetCRHypoTool::m_minCellEt { this, "BibMinCellEt", { float( 240.0 ) }, "BIB cell Et requirement" } |
|
private |
◆ m_trackPtCut
Gaudi::Property< float > TrigJetCRHypoTool::m_trackPtCut { this, "MintrackPt", { float( 2.0*Gaudi::Units::GeV ) }, "Track pT requirement" } |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_visitDebug
Gaudi::Property<bool> TrigJetCRHypoTool::m_visitDebug {this, "visit_debug", false, "debug flag"} |
|
private |
The documentation for this class was generated from the following files:
Const iterator class for DataVector/DataList.
Scalar phi() const
phi method
bool passed(DecisionID id, const DecisionIDContainer &idSet)
checks if required decision ID is in the set of IDs in the container
TrigCompositeUtils::DecisionID numeric() const
numeric ID
Scalar eta() const
pseudorapidity method
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
std::vector< std::string > lineSplitter(const std::string &s, char delimiter)
double deltaPhi(double phiA, double phiB)
delta Phi in range [-pi,pi[
#define ATH_MSG_VERBOSE(x)
bool greater(double a, double b)
Compare two FP numbers, working around x87 precision issues.
virtual void setOwner(IDataHandleHolder *o)=0
static HLT::Identifier fromToolName(const std::string &tname)
double deltaR(double rapidity1, double phi1, double rapidity2, double phi2)
from bare bare rapidity,phi
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
bool greater_equal(double a, double b)
Compare two FP numbers, working around x87 precision issues.
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Class describing a TrackParticle.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>