38 std::string chainName;
41 ATH_MSG_DEBUG(
" Size of the AllChains trigger container: " << size_AllChains );
42 for (
int i =0; i<size_AllChains; i++){
44 ATH_MSG_DEBUG(
" Chain number: " << i <<
" AllChains Chain Name: " << chainName );
65 if (pfjets->size()>0){
75 const std::vector<std::string> jetCalibStates = {
"JetConstitScaleMomentum_pt",
"JetPileupScaleMomentum_pt",
"JetEtaJESScaleMomentum_pt"};
76 const std::vector<std::string> pfjetCalibStates = {
"JetConstitScaleMomentum_pt",
"JetPileupScaleMomentum_pt",
"JetEtaJESScaleMomentum_pt",
"JetGSCScaleMomentum_pt"};
89 for (
const auto& calibState: jetCalibStates){
101 if (pfjets->size()>0){
102 for (
const auto& calibState: pfjetCalibStates){
131 if (tracks->size()>0 && trigName.find(
"pf_ftf") != std::string::npos) {
144 if(jets->size()>=2) {
148 if(pfjets->size()>=2) {
152 if(jets->size()>=1 && phs->size()>=1) {
156 if(pfjets->size()>=1 && phs->size()>=1) {
162 return StatusCode::SUCCESS;
176 dr = p0->p4().DeltaR(p1->p4());
177 fill(
"TrigTLAMonitor", dr);
179 return StatusCode::SUCCESS;
187 for(
auto jet : *jets) {
188 auto status =
jet->getAttribute<
float>(calibState, ptCalibScale);
192 ptCalibScale = ptCalibScale*1e-3;
193 fill(
"TrigTLAMonitor",ptCalibScale);
194 if (cnt < 3)
ATH_MSG_DEBUG(prefix<<
" "<<calibState<<
" = "<<ptCalibScale<<
" GeV");
198 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
virtual StatusCode initialize() override
initialize
AthMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Declare a monitored scalar variable.
SG::ReadHandleKey< xAOD::TrigCompositeContainer > m_tcEventInfoContainerKey
StatusCode fillObjectVariableHistogram(SG::ReadHandle< DataVector< C > > &container, const std::string &varname, const std::string &prefix, const std::string &trigName, T default_val=-1) const
Fill Analysis Object feature histogram`.
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
StatusCode fillJetTrackVariableHistogram(SG::ReadHandle< xAOD::JetContainer > &jets, const std::string &varname, const std::string &prefix, const std::string &trigName, T default_val=-1) const
Fill jet track variable to 1D histograms. Jet track variables are vectors where each element correspo...
virtual StatusCode initialize() override
initialize
SG::ReadHandleKey< xAOD::JetContainer > m_jetContainerKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_trackParticleContainerKey
PublicToolHandle< Trig::TrigDecisionTool > m_trigDecisionTool
SG::ReadHandleKey< xAOD::MuonContainer > m_muonContainerKey
StatusCode readContainer(SG::ReadHandle< T > &container, const SG::ReadHandleKey< T > &key, const EventContext &ctx) const
Retrieve a container of type T.
Gaudi::Property< std::vector< std::string > > m_allChains
StatusCode fillParticleHistograms(SG::ReadHandle< DataVector< T > > particles, const std::string &prefix, const std::string &trigName) const
Fill kinematic histograms for a given particle of type T
TrigTLAMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode fillJetPtCalibStatesHistograms(SG::ReadHandle< xAOD::JetContainer > &jets, const std::string &calibState, const std::string &prefix, const std::string &trigName) const
Fill jet pT to 1D histograms at different calibration scales.
SG::ReadHandleKey< xAOD::JetContainer > m_pfjetContainerKey
StatusCode fillEventInfoHistogram(SG::ReadHandle< DataVector< xAOD::TrigComposite_v1 > > &tcEventInfo, const std::string &varname, const std::string &prefix) const
Fill an event info variable to a 1D histogram.
SG::ReadHandleKey< xAOD::PhotonContainer > m_photonContainerKey
virtual ~TrigTLAMonitorAlgorithm()
StatusCode fillDeltaRHistograms(const xAOD::IParticle *p0, const xAOD::IParticle *p1, const std::string &prefix, const std::string &trigName) const
Fill kinematic histograms for a given particle of type T
Class providing the definition of the 4-vector interface.
void fill(const ToolHandle< GenericMonitoringTool > &groupHandle, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable > > &&variables) const
Fills a vector of variables to a group by reference.
Generic monitoring tool for athena components.
static const unsigned int requireDecision
Jet_v1 Jet
Definition of the current "jet version".
TrackParticle_v1 TrackParticle
Reference the current persistent version: