|
ATLAS Offline Software
|
#include <AFP_PixelHistoFiller.h>
|
| AFP_PixelHistoFiller (const std::string &name, ISvcLocator *pSvcLocator) |
|
virtual | ~AFP_PixelHistoFiller ()=default |
|
virtual StatusCode | initialize () override |
|
virtual StatusCode | execute () override |
|
virtual StatusCode | finalize () override |
|
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 |
|
|
int | m_nPixelsX =0 |
|
int | m_nPixelsY =0 |
|
std::vector< TH2F > | m_pixelHits [m_nStations][m_nLayers] |
|
std::vector< TH2F > | m_pixelCluster [m_nStations][m_nLayers] |
|
TProfile | m_lb_xDistSiTrackCluster [m_nStations][m_nLayers] |
|
TProfile | m_lb_yDistSiTrackCluster [m_nStations][m_nLayers] |
|
TProfile2D | m_lb_xCluster_yDistSiTrackCluster [m_nStations][m_nLayers] |
|
TProfile2D | m_lb_yCluster_xDistSiTrackCluster [m_nStations][m_nLayers] |
|
TProfile2D | m_lb_zCluster_xDistSiTrackCluster [m_nStations][m_nLayers] |
|
TProfile2D | m_lb_zCluster_yDistSiTrackCluster [m_nStations][m_nLayers] |
|
TProfile2D | m_lb_yCluster_yDistSiTrackCluster [m_nStations][m_nLayers] |
|
TProfile2D | m_lb_xCluster_xDistSiTrackCluster [m_nStations][m_nLayers] |
|
TProfile2D | m_lb_sxTrack_xDistSiTrackCluster [m_nStations][m_nLayers] |
|
TProfile2D | m_lb_syTrack_yDistSiTrackCluster [m_nStations][m_nLayers] |
|
TProfile2D | m_lb_syTrack_xDistSiTrackCluster [m_nStations][m_nLayers] |
|
TProfile2D | m_lb_sxTrack_yDistSiTrackCluster [m_nStations][m_nLayers] |
|
Gaudi::Property< int > | m_LBRangeLength {this, "LBRangeLength",5, "How many lumiblocks should be merged together to have reasonable statistics"} |
|
SG::ReadHandleKey< xAOD::EventInfo > | m_eventInfoKey { this, "EventInfoKey", "EventInfo", "name of EventInfo container" } |
|
SG::ReadHandleKey< xAOD::AFPSiHitContainer > | m_afpHitContainerKey { this ,"AFPHitContainerKey", "AFPSiHitContainer", "name of AFPSiHitContainer" } |
|
SG::ReadHandleKey< xAOD::AFPTrackContainer > | m_afpTrackContainerKey { this, "AFPTrackContainerKey", "AFPTrackContainer", "name of AFPTrackContainer" } |
|
DataObjIDColl | m_extendedExtraObjects |
|
StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) More...
|
|
StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) More...
|
|
std::vector< SG::VarHandleKeyArray * > | m_vhka |
|
bool | m_varHandleArraysDeclared |
|
Definition at line 28 of file AFP_PixelHistoFiller.h.
◆ StoreGateSvc_t
◆ AFP_PixelHistoFiller()
AFP_PixelHistoFiller::AFP_PixelHistoFiller |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
pSvcLocator |
|
) |
| |
◆ ~AFP_PixelHistoFiller()
virtual AFP_PixelHistoFiller::~AFP_PixelHistoFiller |
( |
| ) |
|
|
virtualdefault |
◆ 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 AFP_PixelHistoFiller::execute |
( |
| ) |
|
|
overridevirtual |
Definition at line 87 of file AFP_PixelHistoFiller.cxx.
89 const EventContext& ctx = Gaudi::Hive::currentContext();
93 if (!eventInfo.isValid())
96 return StatusCode::SUCCESS;
119 400,-20, 20, 400, -20, 20);
135 if (!afpHitContainer.isValid())
138 return StatusCode::SUCCESS;
143 if(!afpTrackContainer.isValid()){
145 return StatusCode::SUCCESS;
156 int st=hit->stationID();
157 int la=hit->pixelLayerID();
170 m_pixelHits[st][la].at(lb_index).Fill(hit->pixelRowIDChip(),hit->pixelColIDChip());
182 nTrks[
track->stationID()]++;
183 for(
const auto& cluster :
track->clusters()){
184 nClusterHits[(*cluster)->stationID()]++;
185 nClusterHistPerPlane[(*cluster)->stationID()][(*cluster)->pixelLayerID()]++;
193 if(nTrks[
track->stationID()] != 1)
continue;
195 for (
const auto& cluster :
track->clusters())
197 int st=(*cluster)->stationID();
198 int la=(*cluster)->pixelLayerID();
214 if(nClusterHits[st]<3 || nClusterHits[st]>4)
continue;
215 if(nClusterHistPerPlane[st][la]>1)
continue;
217 m_pixelCluster[st][la].at(lb_index).Fill((*cluster)->xLocal(),(*cluster)->yLocal());
219 double dx = 1
e3*(
track->xLocal() + (*cluster)->zLocal()*
track->xSlope() - (*cluster)->xLocal());
220 double dy = 1
e3*(
track->yLocal() + (*cluster)->zLocal()*
track->ySlope() - (*cluster)->yLocal());
241 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();
◆ finalize()
StatusCode AFP_PixelHistoFiller::finalize |
( |
| ) |
|
|
overridevirtual |
Definition at line 245 of file AFP_PixelHistoFiller.cxx.
247 std::unique_ptr<TFile>
output_file(
new TFile(
"AFP_PixelHistoFiller.root",
"recreate"));
249 TH1I lb(
"LBRangeLength",
"LBRangeLength",2,0,2);
284 return StatusCode::SUCCESS;
◆ initialize()
StatusCode AFP_PixelHistoFiller::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 27 of file AFP_PixelHistoFiller.cxx.
44 TProfile lb_dx(Form(
"lb_dx_station_%d_layer_%d", st,la), Form(
"lb_dx, station %d, layer %d", st,la), 100, 0, 1000);
47 TProfile lb_dy(Form(
"lb_dy_station_%d_layer_%d", st,la), Form(
"lb_dy, station %d, layer %d", st,la), 100, 0, 1000);
50 TProfile2D lb_yc_dy(Form(
"lb_yCluster_dy_station_%d_layer_%d", st,la), Form(
"lb_yCluster_dy, station %d, layer %d", st,la), 100, 0, 1000, 40, -20., 20.);
53 TProfile2D lb_xc_dx(Form(
"lb_xCluster_dx_station_%d_layer_%d", st,la), Form(
"lb_xCluster_dx, station %d, layer %d", st,la), 100, 0, 1000, 40, -20., 20.);
56 TProfile2D lb_xC_dy(Form(
"lb_xCluster_dy_station_%d_layer_%d", st, la), Form(
"lb_xCluster_dy, station %d, layer %d", st, la), 100, 0, 1000, 40, -20, 20);
59 TProfile2D lb_yC_dx(Form(
"lb_yCluster_dx_station_%d_layer_%d", st, la), Form(
"lb_yCluster_dx, station %d, layer %d", st, la), 100, 0, 1000, 40, -20, 20);
62 TProfile2D lb_zC_dx(Form(
"lb_zCluster_dx_station_%d_layer_%d", st, la), Form(
"lb_zCluster_dx, station %d, layer %d", st, la), 100, 0, 1000, 100, 9*la - 3, 9*(la+1));
65 TProfile2D lb_zC_dy(Form(
"lb_zCluster_dy_station_%d_layer_%d", st, la), Form(
"lb_zCluster_dy, station %d, layer %d", st, la), 100, 0, 1000, 100, 9*la - 3, 9*(la+1));
68 TProfile2D lb_sx_dx(Form(
"lb_xSlopeTrack_dx_station_%d_layer_%d",st,la), Form(
"xSlopeTrack_dx, station %d, layer %d", st,la), 100, 0, 1000, 100, -1., 1.);
71 TProfile2D lb_sy_dy(Form(
"lb_ySlopeTrack_dy_station_%d_layer_%d", st,la), Form(
"lb_ySlopeTrack_dy, station %d, layer %d", st,la), 100, 0, 1000, 100, -1., 1.);
74 TProfile2D lb_sy_dx(Form(
"lb_ySlopeTrack_dx_station_%d_layer_%d", st,la), Form(
"lb_ySlopeTrack_dx, station %d, layer %d", st,la), 100, 0, 1000, 100, -1., 1.);
77 TProfile2D lb_sx_dy(Form(
"lb_xSlopeTrack_dy_station_%d_layer_%d", st,la), Form(
"lb_xSlopeTrack_dy, station %d, layer %d", st,la), 100, 0, 1000, 100, -1., 1.);
83 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_afpHitContainerKey
◆ m_afpTrackContainerKey
◆ m_detStore
◆ m_eventInfoKey
◆ m_evtStore
◆ m_extendedExtraObjects
DataObjIDColl AthAlgorithm::m_extendedExtraObjects |
|
privateinherited |
◆ m_lb_sxTrack_xDistSiTrackCluster
◆ m_lb_sxTrack_yDistSiTrackCluster
◆ m_lb_syTrack_xDistSiTrackCluster
◆ m_lb_syTrack_yDistSiTrackCluster
◆ m_lb_xCluster_xDistSiTrackCluster
◆ m_lb_xCluster_yDistSiTrackCluster
◆ m_lb_xDistSiTrackCluster
◆ m_lb_yCluster_xDistSiTrackCluster
◆ m_lb_yCluster_yDistSiTrackCluster
◆ m_lb_yDistSiTrackCluster
◆ m_lb_zCluster_xDistSiTrackCluster
◆ m_lb_zCluster_yDistSiTrackCluster
◆ m_LBRangeLength
Gaudi::Property<int> AFP_PixelHistoFiller::m_LBRangeLength {this, "LBRangeLength",5, "How many lumiblocks should be merged together to have reasonable statistics"} |
|
private |
◆ m_nLayers
const int AFP_PixelHistoFiller::m_nLayers =4 |
|
staticprivate |
◆ m_nPixelsX
int AFP_PixelHistoFiller::m_nPixelsX =0 |
|
private |
◆ m_nPixelsY
int AFP_PixelHistoFiller::m_nPixelsY =0 |
|
private |
◆ m_nStations
const int AFP_PixelHistoFiller::m_nStations =4 |
|
staticprivate |
◆ m_pixelCluster
◆ m_pixelHits
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
TProfile2D m_lb_sxTrack_xDistSiTrackCluster[m_nStations][m_nLayers]
Class representing a track reconstructed in AFP.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Class representing a hit in silicon detector.
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
std::vector< TH2F > m_pixelHits[m_nStations][m_nLayers]
TProfile2D m_lb_syTrack_yDistSiTrackCluster[m_nStations][m_nLayers]
virtual void setOwner(IDataHandleHolder *o)=0
TProfile2D m_lb_zCluster_xDistSiTrackCluster[m_nStations][m_nLayers]
SG::ReadHandleKey< xAOD::AFPSiHitContainer > m_afpHitContainerKey
TProfile2D m_lb_syTrack_xDistSiTrackCluster[m_nStations][m_nLayers]
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.
int Fill(double, double, double)
bool add(const std::string &hname, TKey *tobj)
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
TProfile2D m_lb_sxTrack_yDistSiTrackCluster[m_nStations][m_nLayers]
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
TProfile m_lb_xDistSiTrackCluster[m_nStations][m_nLayers]
TProfile2D m_lb_xCluster_yDistSiTrackCluster[m_nStations][m_nLayers]
static constexpr double SiT_Pixel_amount_x
TProfile2D m_lb_zCluster_yDistSiTrackCluster[m_nStations][m_nLayers]
TProfile2D m_lb_yCluster_xDistSiTrackCluster[m_nStations][m_nLayers]
SG::ReadHandleKey< xAOD::AFPTrackContainer > m_afpTrackContainerKey
std::vector< TH2F > m_pixelCluster[m_nStations][m_nLayers]
Gaudi::Property< int > m_LBRangeLength
TProfile m_lb_yDistSiTrackCluster[m_nStations][m_nLayers]
TProfile2D m_lb_yCluster_yDistSiTrackCluster[m_nStations][m_nLayers]
static const int m_nLayers
DataObjIDColl m_extendedExtraObjects
#define ATH_MSG_WARNING(x)
TProfile2D m_lb_xCluster_xDistSiTrackCluster[m_nStations][m_nLayers]
static constexpr double SiT_Pixel_amount_y
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
AthAlgorithm()
Default constructor:
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
static const int m_nStations