|
ATLAS Offline Software
|
#include <SimpleIDNtupleTool.h>
|
| SimpleIDNtupleTool (const std::string &type, const std::string &name, const IInterface *parent) |
|
virtual | ~SimpleIDNtupleTool () |
|
StatusCode | initialize () |
|
StatusCode | finalize () |
|
void | dumpTrack (int itrk, const Trk::AlignTrack *alignTrack) |
| fills track information to ntuple More...
|
|
void | fillHits (const Trk::AlignTrack *alignTrack) |
| fills hit information to ntuple More...
|
|
void | storeHitmap () |
| stores hitmap for writing to ntuple More...
|
|
void | fillHitmap () |
| fills ntuple with hit information More...
|
|
void | fillSummary () |
| fills ntuple with event and track summary information More...
|
|
void | showStatistics () |
| write statistics out to log file More...
|
|
void | setNtuple (TFile *ntuple) |
| sets the output stream for the logfile More...
|
|
StatusCode | fillNtuple () |
| writes trees and histograms to ntuple More...
|
|
virtual void | fillChi2VChamberShift (const int, const int, int *, double **, double **, double **, double **, double **, double **) |
| used for numerical derivatives to write chi2 vs. More...
|
|
virtual void | setLogStream (std::ostream *os) |
| returns pointer to TFile containing ntuple 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 | 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 |
|
Definition at line 42 of file SimpleIDNtupleTool.h.
◆ StoreGateSvc_t
◆ SimpleIDNtupleTool()
InDet::SimpleIDNtupleTool::SimpleIDNtupleTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ ~SimpleIDNtupleTool()
InDet::SimpleIDNtupleTool::~SimpleIDNtupleTool |
( |
| ) |
|
|
virtual |
◆ 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()
◆ dumpTrack()
fills track information to ntuple
Implements Trk::IFillNtupleTool.
Definition at line 198 of file SimpleIDNtupleTool.cxx.
213 constexpr
double invalidParameterValue{-999.};
214 m_d0 = invalidParameterValue;
215 m_z0 = invalidParameterValue;
216 m_phi0 = invalidParameterValue;
217 m_theta = invalidParameterValue;
219 m_pt = invalidParameterValue;
220 m_eta = invalidParameterValue;
221 m_xvtx = invalidParameterValue;
222 m_yvtx = invalidParameterValue;
223 m_zvtx = invalidParameterValue;;
225 constexpr
int initialiseNHits{0};
236 constexpr
double invalidChiSq(-1e12);
237 constexpr
int invalidDegreesOfFreedom{-999};
240 m_ndof = invalidDegreesOfFreedom;
243 if (not aMeasPer)
ATH_MSG_ERROR(
"Could not get Trk::MeasuredPerigee");
250 ATH_MSG_DEBUG(itrk <<
". " <<
" Track Parameters (d0, z0, phi0, theta, q/p)");
252 m_pt = std::sqrt((aMeasPer->momentum().x()) * (aMeasPer->momentum().x())
253 + (aMeasPer->momentum().y()) * (aMeasPer->momentum().y()));
254 m_eta = aMeasPer->eta();
255 m_xvtx = aMeasPer->position().x();
256 m_yvtx = aMeasPer->position().y();
257 m_zvtx = aMeasPer->position().z();
262 if (not trackPart)
ATH_MSG_ERROR(
"Could not get xAOD::TrackParticle");
302 if (not fitQual)
ATH_MSG_ERROR(
"No fit quality assigned to the track");
304 if (fitQual->chiSquared() > 0. && fitQual->numberDoF() > 0) {
305 m_chi2 = fitQual->chiSquared();
306 m_ndof = fitQual->numberDoF();
320 int nhitsTotal = alignTSOSCollection->
size();
◆ 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
◆ fillChi2VChamberShift()
virtual void Trk::IFillNtupleTool::fillChi2VChamberShift |
( |
const int |
, |
|
|
const int |
, |
|
|
int * |
, |
|
|
double ** |
, |
|
|
double ** |
, |
|
|
double ** |
, |
|
|
double ** |
, |
|
|
double ** |
, |
|
|
double ** |
|
|
) |
| |
|
inlinevirtualinherited |
used for numerical derivatives to write chi2 vs.
chamber positions
Definition at line 59 of file IFillNtupleTool.h.
◆ fillHitmap()
void InDet::SimpleIDNtupleTool::fillHitmap |
( |
| ) |
|
|
virtual |
◆ fillHits()
fills hit information to ntuple
Definition at line 336 of file SimpleIDNtupleTool.cxx.
395 for (; atsit != atsit_end; ++atsit) {
434 std::vector<Trk::Residual>::const_iterator ires = atsos->
firstResidual();
469 const std::vector<Amg::VectorX>* derivs = atsos->
derivatives();
471 int npar = derivs->at(0).rows();
474 int naPar = alignPars->
size();
476 if (npar != naPar)
ATH_MSG_WARNING(
"number of derivatives on AlignTSOS doesn't match the one on AlignModule");
479 for (
int i = 0;
i < npar;
i++) {
524 for (
int i = 0;
i < npar;
i++) {
577 <<
"Some hits will not be stored.");
◆ fillNtuple()
StatusCode InDet::SimpleIDNtupleTool::fillNtuple |
( |
| ) |
|
|
virtual |
◆ fillSummary()
void InDet::SimpleIDNtupleTool::fillSummary |
( |
| ) |
|
|
virtual |
◆ finalize()
StatusCode InDet::SimpleIDNtupleTool::finalize |
( |
| ) |
|
|
virtual |
◆ initialize()
StatusCode InDet::SimpleIDNtupleTool::initialize |
( |
| ) |
|
|
virtual |
◆ initializeNtuple()
void InDet::SimpleIDNtupleTool::initializeNtuple |
( |
| ) |
|
|
private |
◆ 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.
◆ interfaceID()
const InterfaceID & IFillNtupleTool::interfaceID |
( |
| ) |
|
|
inlinestaticinherited |
Definition at line 80 of file IFillNtupleTool.h.
81 {
return IID_TRKALIGNINTERFACES_IFillNtupleTool; }
◆ 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()
◆ setLogStream()
virtual void Trk::IFillNtupleTool::setLogStream |
( |
std::ostream * |
os | ) |
|
|
inlinevirtualinherited |
returns pointer to TFile containing ntuple
sets the output stream for the logfile
Definition at line 67 of file IFillNtupleTool.h.
◆ setNtuple()
void InDet::SimpleIDNtupleTool::setNtuple |
( |
TFile * |
ntuple | ) |
|
|
inlinevirtual |
◆ showStatistics()
void InDet::SimpleIDNtupleTool::showStatistics |
( |
| ) |
|
|
virtual |
◆ storeHitmap()
void InDet::SimpleIDNtupleTool::storeHitmap |
( |
| ) |
|
|
virtual |
◆ 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_alignModuleTool
◆ m_chi2
double InDet::SimpleIDNtupleTool::m_chi2 |
|
private |
◆ m_chi2prob
double InDet::SimpleIDNtupleTool::m_chi2prob |
|
private |
◆ m_d0
double InDet::SimpleIDNtupleTool::m_d0 |
|
private |
d0 perigee parameter of reconstructed track (d0 in ntuple)
Definition at line 97 of file SimpleIDNtupleTool.h.
◆ m_detStore
◆ m_eta
double InDet::SimpleIDNtupleTool::m_eta |
|
private |
◆ m_evtNumber
int InDet::SimpleIDNtupleTool::m_evtNumber |
|
private |
◆ m_evtStore
◆ m_file
TFile* InDet::SimpleIDNtupleTool::m_file |
|
private |
◆ m_hit_cotth
double* InDet::SimpleIDNtupleTool::m_hit_cotth |
|
private |
◆ m_hit_derivx_bowx
double* InDet::SimpleIDNtupleTool::m_hit_derivx_bowx |
|
private |
◆ m_hit_derivx_bowy
double* InDet::SimpleIDNtupleTool::m_hit_derivx_bowy |
|
private |
◆ m_hit_derivx_bowz
double* InDet::SimpleIDNtupleTool::m_hit_derivx_bowz |
|
private |
◆ m_hit_derivx_rotx
double* InDet::SimpleIDNtupleTool::m_hit_derivx_rotx |
|
private |
◆ m_hit_derivx_roty
double* InDet::SimpleIDNtupleTool::m_hit_derivx_roty |
|
private |
◆ m_hit_derivx_rotz
double* InDet::SimpleIDNtupleTool::m_hit_derivx_rotz |
|
private |
◆ m_hit_derivx_transx
double* InDet::SimpleIDNtupleTool::m_hit_derivx_transx |
|
private |
◆ m_hit_derivx_transy
double* InDet::SimpleIDNtupleTool::m_hit_derivx_transy |
|
private |
◆ m_hit_derivx_transz
double* InDet::SimpleIDNtupleTool::m_hit_derivx_transz |
|
private |
◆ m_hit_derivy_bowx
double* InDet::SimpleIDNtupleTool::m_hit_derivy_bowx |
|
private |
◆ m_hit_derivy_bowy
double* InDet::SimpleIDNtupleTool::m_hit_derivy_bowy |
|
private |
◆ m_hit_derivy_bowz
double* InDet::SimpleIDNtupleTool::m_hit_derivy_bowz |
|
private |
◆ m_hit_derivy_rotx
double* InDet::SimpleIDNtupleTool::m_hit_derivy_rotx |
|
private |
◆ m_hit_derivy_roty
double* InDet::SimpleIDNtupleTool::m_hit_derivy_roty |
|
private |
◆ m_hit_derivy_rotz
double* InDet::SimpleIDNtupleTool::m_hit_derivy_rotz |
|
private |
◆ m_hit_derivy_transx
double* InDet::SimpleIDNtupleTool::m_hit_derivy_transx |
|
private |
◆ m_hit_derivy_transy
double* InDet::SimpleIDNtupleTool::m_hit_derivy_transy |
|
private |
◆ m_hit_derivy_transz
double* InDet::SimpleIDNtupleTool::m_hit_derivy_transz |
|
private |
◆ m_hit_det
int* InDet::SimpleIDNtupleTool::m_hit_det |
|
private |
◆ m_hit_drd
double* InDet::SimpleIDNtupleTool::m_hit_drd |
|
private |
◆ m_hit_eta
double* InDet::SimpleIDNtupleTool::m_hit_eta |
|
private |
◆ m_hit_phi
double* InDet::SimpleIDNtupleTool::m_hit_phi |
|
private |
◆ m_hit_resx
double* InDet::SimpleIDNtupleTool::m_hit_resx |
|
private |
◆ m_hit_resx_err
double* InDet::SimpleIDNtupleTool::m_hit_resx_err |
|
private |
◆ m_hit_resy
double* InDet::SimpleIDNtupleTool::m_hit_resy |
|
private |
◆ m_hit_resy_err
double* InDet::SimpleIDNtupleTool::m_hit_resy_err |
|
private |
◆ m_hit_rho
double* InDet::SimpleIDNtupleTool::m_hit_rho |
|
private |
◆ m_hit_sig
double* InDet::SimpleIDNtupleTool::m_hit_sig |
|
private |
◆ m_hit_tpar_x
double* InDet::SimpleIDNtupleTool::m_hit_tpar_x |
|
private |
◆ m_hit_tpar_y
double* InDet::SimpleIDNtupleTool::m_hit_tpar_y |
|
private |
◆ m_hit_type
int* InDet::SimpleIDNtupleTool::m_hit_type |
|
private |
◆ m_hit_xloc
double* InDet::SimpleIDNtupleTool::m_hit_xloc |
|
private |
◆ m_hit_yloc
double* InDet::SimpleIDNtupleTool::m_hit_yloc |
|
private |
◆ m_hit_z
double* InDet::SimpleIDNtupleTool::m_hit_z |
|
private |
◆ m_hit_zloc
double* InDet::SimpleIDNtupleTool::m_hit_zloc |
|
private |
◆ m_idHelper
◆ m_logStream
std::ostream* Trk::IFillNtupleTool::m_logStream = nullptr |
|
protectedinherited |
◆ m_max_hits
int InDet::SimpleIDNtupleTool::m_max_hits |
|
private |
◆ m_ndof
int InDet::SimpleIDNtupleTool::m_ndof |
|
private |
number of degrees of freedom of the track fit (ndof in ntuple)
Definition at line 121 of file SimpleIDNtupleTool.h.
◆ m_nhits
int InDet::SimpleIDNtupleTool::m_nhits |
|
private |
number of hits on track [including scattering centers] (nhits in ntuple)
Definition at line 129 of file SimpleIDNtupleTool.h.
◆ m_nhitspix
int InDet::SimpleIDNtupleTool::m_nhitspix |
|
private |
◆ m_nhitssct
int InDet::SimpleIDNtupleTool::m_nhitssct |
|
private |
◆ m_nhitstrt
int InDet::SimpleIDNtupleTool::m_nhitstrt |
|
private |
◆ m_nholes
int InDet::SimpleIDNtupleTool::m_nholes |
|
private |
◆ m_nhpix
int InDet::SimpleIDNtupleTool::m_nhpix |
|
private |
◆ m_nhsct
int InDet::SimpleIDNtupleTool::m_nhsct |
|
private |
◆ m_nshared
int InDet::SimpleIDNtupleTool::m_nshared |
|
private |
◆ m_nshpix
int InDet::SimpleIDNtupleTool::m_nshpix |
|
private |
◆ m_nshsct
int InDet::SimpleIDNtupleTool::m_nshsct |
|
private |
◆ m_particleCreator
◆ m_phi0
double InDet::SimpleIDNtupleTool::m_phi0 |
|
private |
◆ m_pt
double InDet::SimpleIDNtupleTool::m_pt |
|
private |
◆ m_qoverp
double InDet::SimpleIDNtupleTool::m_qoverp |
|
private |
Q over p perigee parameter of reconstructed track (qoverp in ntuple)
Definition at line 109 of file SimpleIDNtupleTool.h.
◆ m_runNumber
int InDet::SimpleIDNtupleTool::m_runNumber |
|
private |
◆ m_storeDerivatives
bool InDet::SimpleIDNtupleTool::m_storeDerivatives |
|
private |
◆ m_theta
double InDet::SimpleIDNtupleTool::m_theta |
|
private |
theta perigee parameter of reconstructed track (theta in ntuple)
Definition at line 106 of file SimpleIDNtupleTool.h.
◆ m_tree
TTree* InDet::SimpleIDNtupleTool::m_tree |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
◆ m_xvtx
double InDet::SimpleIDNtupleTool::m_xvtx |
|
private |
◆ m_yvtx
double InDet::SimpleIDNtupleTool::m_yvtx |
|
private |
◆ m_z0
double InDet::SimpleIDNtupleTool::m_z0 |
|
private |
◆ m_zvtx
double InDet::SimpleIDNtupleTool::m_zvtx |
|
private |
The documentation for this class was generated from the following files:
def retrieve(aClass, aKey=None)
@ numberOfPixelHoles
number of pixel layers on track with absence of hits [unit8_t].
const TrackParameters * trackParameters() const
return ptr to trackparameters const overload
TrackState::MeasurementType measType() const
returns measurement type enum
Const iterator class for DataVector/DataList.
const FitQuality * fitQuality() const
return a pointer to the fit quality const-overload
@ numberOfSCTSharedHits
number of SCT hits shared by several tracks [unit8_t].
const RIO_OnTrack * rio() const
returns RIO_OnTrack or leading RIO of CompetingRIOsOnTrack (assigned by c'tor)
uint64_t eventNumber() const
The current event's event number.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Dummy class used to allow special convertors to be called for surfaces owned by a detector element.
virtual const Amg::Vector3D & globalPosition() const override=0
Interface method to get the global Position.
bool contains(ParamDefs par) const
The simple check for the clients whether the parameter is contained.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
@ numberOfPixelHits
these are the pixel hits, including the b-layer [unit8_t].
@ numberOfTRTHits
number of TRT hits [unit8_t].
TransformParameters
enum to keep track of transformation coordinates
const std::vector< Amg::VectorX > * derivatives() const
returns pointer to vector of derivatives
AlignModule::TransformParameters paramType() const
returns the type of parameter (i.e.
constexpr double derivative(const double x)
const AlignModule * module() const
accessor method for AlignModule to which tsos belongs
uint32_t runNumber() const
The current event's run number.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual void setOwner(IDataHandleHolder *o)=0
bool type(const TrackStateOnSurfaceType type) const
Use this method to find out if the TSoS is of a certain type: i.e.
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
@ numberOfPixelSharedHits
number of Pixel all-layer hits shared by several tracks [unit8_t].
std::string dumpMeasType() const
returns string corresponding to the measurement type
Class to represent and store fit qualities from track reconstruction in terms of and number of degre...
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
@ numberOfSCTHoles
number of SCT holes [unit8_t].
const Amg::MatrixX & localCovariance() const
Interface method to get the localError.
const TrackParameters * unbiasedTrackPars() const
returns pointer to unbiased track parameters if present
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
const Perigee * perigeeParameters() const
return Perigee.
double error(const Amg::MatrixX &mat, int index)
return diagonal error of the matrix caller should ensure the matrix is symmetric and the index is in ...
Eigen::Matrix< double, 3, 1 > Vector3D
Class describing the basic event information.
const LocalParameters & localParameters() const
Interface method to get the LocalParameters.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const AlignTSOSCollection * alignTSOSCollection() const
returns collection of alignTSOS
bool is_barrel(const Identifier &id) const
Test for barrel.
#define ATH_MSG_WARNING(x)
Identifier identify() const
return the identifier -extends MeasurementBase
int nResDim() const
returns number of measurement residual + scatterer residual dimensions
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
@ numberOfSCTHits
number of hits in SCT [unit8_t].
Class describing a TrackParticle.
std::vector< Residual >::const_iterator firstResidual() const
returns first Residual iterator
const T * at(size_type n) const
Access an element, as an rvalue.
size_type size() const noexcept
Returns the number of elements in the collection.
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
@ Measurement
This is a measurement, and will at least contain a Trk::MeasurementBase.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.