|
ATLAS Offline Software
|
#include <CSCHitAnalysis.h>
|
| CSCHitAnalysis (const std::string &name, ISvcLocator *pSvcLocator) |
|
| ~CSCHitAnalysis () |
|
virtual StatusCode | initialize () |
|
virtual StatusCode | execute () |
|
virtual StatusCode | sysInitialize () override |
| Override sysInitialize. More...
|
|
virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. 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 | 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 |
|
Definition at line 24 of file CSCHitAnalysis.h.
◆ StoreGateSvc_t
◆ CSCHitAnalysis()
CSCHitAnalysis::CSCHitAnalysis |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~CSCHitAnalysis()
CSCHitAnalysis::~CSCHitAnalysis |
( |
| ) |
|
|
inline |
◆ 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]
◆ execute()
StatusCode CSCHitAnalysis::execute |
( |
| ) |
|
|
virtual |
Definition at line 175 of file CSCHitAnalysis.cxx.
195 if (
evtStore()->
retrieve(csc_container,
"CSC_Hits") == StatusCode::SUCCESS) {
197 i_hit != csc_container->
end(); ++i_hit) {
242 return StatusCode::SUCCESS;
◆ 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
◆ extraOutputDeps()
const DataObjIDColl & AthAlgorithm::extraOutputDeps |
( |
| ) |
const |
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
57 return Algorithm::extraOutputDeps();
◆ initialize()
StatusCode CSCHitAnalysis::initialize |
( |
| ) |
|
|
virtual |
Histograms
now add branches and leaves to the tree
Definition at line 70 of file CSCHitAnalysis.cxx.
77 m_h_hits_x =
new TH1D(
"h_csc_hits_x",
"hits_x", 100,-2000, 2000);
81 m_h_hits_y =
new TH1D(
"h_csc_hits_y",
"hits_y", 100,-2000,2000);
85 m_h_hits_z =
new TH1D(
"h_csc_hits_z",
"hits_z", 100,-10000,10000);
89 m_h_hits_r =
new TH1D(
"h_csc_hits_r",
"hits_r", 100,500,2500);
93 m_h_xy =
new TH2D(
"h_csc_xy",
"xy", 100,-2000.,2000.,100, -2000., 2000.);
97 m_h_zr =
new TH2D(
"h_csc_zr",
"zr", 100,-10000.,10000.,100, 500., 2500.);
101 m_h_hits_eta =
new TH1D(
"h_csc_hits_eta",
"hits_eta", 100,-3.0,3.0);
105 m_h_hits_phi =
new TH1D(
"h_csc_hits_phi",
"hits_phi", 100,-3.2,3.2);
109 m_h_hits_sx =
new TH1D(
"h_csc_hits_sx",
"hits_sx", 100,-10, 10);
113 m_h_hits_sy =
new TH1D(
"h_csc_hits_sy",
"hits_sy", 100,-500,500);
117 m_h_hits_sz =
new TH1D(
"h_csc_hits_sz",
"hits_sz", 100,-1000,1000);
121 m_h_hits_ex =
new TH1D(
"h_csc_hits_ex",
"hits_ex", 100,-10, 10);
125 m_h_hits_ey =
new TH1D(
"h_csc_hits_ey",
"hits_ey", 100,-500,500);
129 m_h_hits_ez =
new TH1D(
"h_csc_hits_ez",
"hits_ez", 100,-1000,1000);
133 m_h_hits_time =
new TH1D(
"h_csc_hits_time",
"hits_time", 100,20, 40);
137 m_h_hits_edep =
new TH1D(
"h_csc_hits_edep",
"hits_edep", 100,0,0.1);
141 m_h_hits_kine =
new TH1D(
"h_csc_hits_kine",
"hits_kine", 100,0,3000);
146 m_tree =
new TTree(
"CSC",
"CSC");
171 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.
◆ 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()
StatusCode AthAlgorithm::sysInitialize |
( |
| ) |
|
|
overridevirtualinherited |
◆ 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_detStore
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_h_hits_edep
TH1* CSCHitAnalysis::m_h_hits_edep |
|
private |
◆ m_h_hits_eta
TH1* CSCHitAnalysis::m_h_hits_eta |
|
private |
◆ m_h_hits_ex
TH1* CSCHitAnalysis::m_h_hits_ex |
|
private |
◆ m_h_hits_ey
TH1* CSCHitAnalysis::m_h_hits_ey |
|
private |
◆ m_h_hits_ez
TH1* CSCHitAnalysis::m_h_hits_ez |
|
private |
◆ m_h_hits_kine
TH1* CSCHitAnalysis::m_h_hits_kine |
|
private |
◆ m_h_hits_phi
TH1* CSCHitAnalysis::m_h_hits_phi |
|
private |
◆ m_h_hits_r
TH1* CSCHitAnalysis::m_h_hits_r |
|
private |
◆ m_h_hits_sx
TH1* CSCHitAnalysis::m_h_hits_sx |
|
private |
◆ m_h_hits_sy
TH1* CSCHitAnalysis::m_h_hits_sy |
|
private |
◆ m_h_hits_sz
TH1* CSCHitAnalysis::m_h_hits_sz |
|
private |
◆ m_h_hits_time
TH1* CSCHitAnalysis::m_h_hits_time |
|
private |
◆ m_h_hits_x
TH1* CSCHitAnalysis::m_h_hits_x |
|
private |
◆ m_h_hits_y
TH1* CSCHitAnalysis::m_h_hits_y |
|
private |
◆ m_h_hits_z
TH1* CSCHitAnalysis::m_h_hits_z |
|
private |
◆ m_h_xy
TH2* CSCHitAnalysis::m_h_xy |
|
private |
◆ m_h_zr
TH2* CSCHitAnalysis::m_h_zr |
|
private |
◆ m_hits_edep
std::vector<float>* CSCHitAnalysis::m_hits_edep |
|
private |
◆ m_hits_end_x
std::vector<float>* CSCHitAnalysis::m_hits_end_x |
|
private |
◆ m_hits_end_y
std::vector<float>* CSCHitAnalysis::m_hits_end_y |
|
private |
◆ m_hits_end_z
std::vector<float>* CSCHitAnalysis::m_hits_end_z |
|
private |
◆ m_hits_eta
std::vector<float>* CSCHitAnalysis::m_hits_eta |
|
private |
◆ m_hits_kine
std::vector<float>* CSCHitAnalysis::m_hits_kine |
|
private |
◆ m_hits_phi
std::vector<float>* CSCHitAnalysis::m_hits_phi |
|
private |
◆ m_hits_r
std::vector<float>* CSCHitAnalysis::m_hits_r |
|
private |
◆ m_hits_start_x
std::vector<float>* CSCHitAnalysis::m_hits_start_x |
|
private |
◆ m_hits_start_y
std::vector<float>* CSCHitAnalysis::m_hits_start_y |
|
private |
◆ m_hits_start_z
std::vector<float>* CSCHitAnalysis::m_hits_start_z |
|
private |
◆ m_hits_time
std::vector<float>* CSCHitAnalysis::m_hits_time |
|
private |
◆ m_hits_x
std::vector<float>* CSCHitAnalysis::m_hits_x |
|
private |
◆ m_hits_y
std::vector<float>* CSCHitAnalysis::m_hits_y |
|
private |
◆ m_hits_z
std::vector<float>* CSCHitAnalysis::m_hits_z |
|
private |
◆ m_ntupleFileName
std::string CSCHitAnalysis::m_ntupleFileName |
|
private |
◆ m_path
std::string CSCHitAnalysis::m_path |
|
private |
◆ m_thistSvc
◆ m_tree
TTree* CSCHitAnalysis::m_tree |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
std::vector< float > * m_hits_end_z
std::vector< float > * m_hits_r
std::vector< float > * m_hits_phi
std::vector< float > * m_hits_kine
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
TH1 * m_h_hits_x
Some variables.
std::vector< float > * m_hits_end_x
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
std::string m_ntupleFileName
const_iterator begin() const
std::vector< float > * m_hits_y
CONT::const_iterator const_iterator
virtual void setOwner(IDataHandleHolder *o)=0
std::vector< float > * m_hits_start_y
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysInitialize() override
Override sysInitialize.
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override
Return this algorithm's output handles.
::StatusCode StatusCode
StatusCode definition for legacy code.
std::vector< float > * m_hits_end_y
std::vector< float > * m_hits_edep
#define CHECK(...)
Evaluate an expression and check for errors.
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
std::vector< float > * m_hits_start_z
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
std::vector< float > * m_hits_z
Eigen::Matrix< double, 3, 1 > Vector3D
DataObjIDColl m_extendedExtraObjects
std::vector< float > * m_hits_start_x
#define ATH_MSG_WARNING(x)
const_iterator end() const
std::vector< float > * m_hits_time
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
std::vector< float > * m_hits_x
AthAlgorithm()
Default constructor:
ServiceHandle< ITHistSvc > m_thistSvc
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
std::vector< float > * m_hits_eta