ATLAS Offline Software
TestMCASTTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MCAST_TOOLTESTER_H
6 #define MCAST_TOOLTESTER_H
7 
8 // Gaudi/Athena include(s):
10 #include "GaudiKernel/ToolHandle.h"
11 
12 // Local include(s):
16 #include "TrackInfo.h"
17 
18 // Root include(s)
19 #include "TFile.h"
20 #include "TTree.h"
21 
22 namespace CP {
23 
24  class TestMCASTTool : public AthAlgorithm {
25  public:
26  //::: Regular Algorithm constructor
27  TestMCASTTool(const std::string& name, ISvcLocator* svcLoc);
28  //::: Function initialising the algorithm
29  virtual StatusCode initialize();
30  //::: Function executing the algorithm
31  virtual StatusCode execute();
32  //::: Function finalizing the algoritm
33  virtual StatusCode finalize();
34 
35  private:
36  //::: Name of the output file
37  std::string m_Output;
38  //::: StoreGate key for the muon container to investigate
39  std::string m_sgKey;
40  //::: Connection to the smearing tool
41  ToolHandle<CP::IMuonCalibrationAndSmearingTool> m_MCaSTool;
42 
43  std::vector<std::string> m_sysNames;
44  std::vector<CP::SystematicSet> m_sysList;
45 
46  TFile* m_DebugFile;
47  TTree* m_DebugTree;
49  std::unique_ptr<MMCTest::TrackInfo> m_Combined;
50  std::unique_ptr<MMCTest::TrackInfo> m_InnerDet;
51  std::unique_ptr<MMCTest::TrackInfo> m_MSExtr;
52  std::unique_ptr<MMCTest::TrackInfo> m_MSOnlyExtr;
53 
54  }; // class TestMCASTTool
55 
56 } // namespace CP
57 
58 #endif // MCAST_TOOLTESTER_H
CP::TestMCASTTool::initialize
virtual StatusCode initialize()
Definition: TestMCASTTool.cxx:29
CP::TestMCASTTool::m_MSOnlyExtr
std::unique_ptr< MMCTest::TrackInfo > m_MSOnlyExtr
Definition: TestMCASTTool.h:52
CP::TestMCASTTool::m_MSExtr
std::unique_ptr< MMCTest::TrackInfo > m_MSExtr
Definition: TestMCASTTool.h:51
CP::TestMCASTTool::m_InnerDet
std::unique_ptr< MMCTest::TrackInfo > m_InnerDet
Definition: TestMCASTTool.h:50
CP::TestMCASTTool::m_sysNames
std::vector< std::string > m_sysNames
Definition: TestMCASTTool.h:43
CP::TestMCASTTool::m_sgKey
std::string m_sgKey
Definition: TestMCASTTool.h:39
CP::TestMCASTTool::m_sysList
std::vector< CP::SystematicSet > m_sysList
Definition: TestMCASTTool.h:44
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
AthAlgorithm.h
IMuonSelectionTool.h
CP::TestMCASTTool::m_DebugFile
TFile * m_DebugFile
Definition: TestMCASTTool.h:46
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CP::TestMCASTTool::TestMCASTTool
TestMCASTTool(const std::string &name, ISvcLocator *svcLoc)
Definition: TestMCASTTool.cxx:15
CP::TestMCASTTool
Definition: TestMCASTTool.h:24
AthAlgorithm
Definition: AthAlgorithm.h:47
CP::TestMCASTTool::m_Combined
std::unique_ptr< MMCTest::TrackInfo > m_Combined
Definition: TestMCASTTool.h:49
CP::TestMCASTTool::m_SelCategoryRaw
int m_SelCategoryRaw
Definition: TestMCASTTool.h:48
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
TrackInfo.h
CP::TestMCASTTool::m_DebugTree
TTree * m_DebugTree
Definition: TestMCASTTool.h:47
IMuonCalibrationAndSmearingTool.h
CP::TestMCASTTool::execute
virtual StatusCode execute()
Definition: TestMCASTTool.cxx:66
CP::TestMCASTTool::m_MCaSTool
ToolHandle< CP::IMuonCalibrationAndSmearingTool > m_MCaSTool
Definition: TestMCASTTool.h:41
CP::TestMCASTTool::m_Output
std::string m_Output
Definition: TestMCASTTool.h:37
CP::TestMCASTTool::m_SelCategory
int m_SelCategory
Definition: TestMCASTTool.h:48
CP::TestMCASTTool::finalize
virtual StatusCode finalize()
Definition: TestMCASTTool.cxx:139
SystematicsUtil.h