.. _program_listing_file_xAODAnaHelpers_HLTJetRoIBuilder.h: Program Listing for File HLTJetRoIBuilder.h =========================================== |exhale_lsh| :ref:`Return to documentation for file ` (``xAODAnaHelpers/HLTJetRoIBuilder.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp //#ifndef xAODAnaHelpers_HLTJetRoIBuilder_H //#define xAODAnaHelpers_HLTJetRoIBuilder_H // // //#include "xAODAnaHelpers/Algorithm.h" // //#include "AsgTools/AnaToolHandle.h" //#include "xAODAnaHelpers/OnlineBeamSpotTool.h" //#include "TrigDecisionTool/TrigDecisionTool.h" // //class HLTJetRoIBuilder : public xAH::Algorithm //{ // // public: // // // configuration variables // // /** // @brief name of trigger chain to load // */ // std::string m_trigItem = ""; // std::string m_trigItemVeto = ""; // // /** // @brief Do we load a full BJet trigger chain? // */ // bool m_doHLTBJet = true; // // /** // @brief Do we load a jet trigger chain? // */ // bool m_doHLTJet = false; // // /** // @brief Do we read in the HLT tracks? // */ // bool m_readHLTTracks = true; // // // /** // @brief Do we read in the HLT vertices? // */ // bool m_readHLTVtx = true; // // // /** // @brief Name of the output container // */ // std::string m_outContainerName = ""; // // private: // // asg::AnaToolHandle m_trigDecTool_handle{"Trig::TrigDecisionTool/TrigDecisionTool"}; //! // // std::string m_jetName = "EFJet"; //! // std::string m_trkName = "InDetTrigTrackingxAODCnv_Bjet_IDTrig"; //! // std::string m_vtxName = "EFHistoPrmVtx"; //! // xAH::OnlineBeamSpotTool m_onlineBSTool; //! // // EL::StatusCode buildHLTBJets (); // EL::StatusCode buildHLTJets (); // // public: // // // this is a standard constructor // HLTJetRoIBuilder (); // // // these are the functions inherited from Algorithm // virtual EL::StatusCode setupJob (EL::Job& job); // virtual EL::StatusCode fileExecute (); // virtual EL::StatusCode histInitialize (); // virtual EL::StatusCode changeInput (bool firstFile); // virtual EL::StatusCode initialize (); // virtual EL::StatusCode execute (); // virtual EL::StatusCode postExecute (); // virtual EL::StatusCode finalize (); // virtual EL::StatusCode histFinalize (); // // // /// @cond // // this is needed to distribute the algorithm to the workers // ClassDef(HLTJetRoIBuilder, 1); // /// @endcond // // template // const Object* getTrigObject(Trig::Feature& feature){ // // const Collection* trigCol = feature.cptr(); // if ( !trigCol ) { // ANA_MSG_ERROR("ERROR: No Trig Collection pointer"); // return 0; // } // // if(trigCol->size() != 1){ // ANA_MSG_ERROR("ERROR Trig Collection size " << trigCol->size()); // return 0;; // } // // return trigCol->at(0); // } // //}; // // //#endif