00001 00010 #ifndef XAODFORWARD_VERSIONS_AFPSIHIT_V1_H 00011 #define XAODFORWARD_VERSIONS_AFPSIHIT_V1_H 00012 00013 // EDM include(s): 00014 #include "AthContainers/AuxElement.h" 00015 #include "AthLinks/ElementLink.h" 00016 00017 // needed for forward declaration 00018 #include "AthContainers/DataVector.h" 00019 00020 00021 namespace xAOD { 00022 00023 // forward declaration 00024 class AFPTrack_v1; 00025 typedef AFPTrack_v1 AFPTrack; 00026 typedef DataVector< AFPTrack > AFPTrackContainer; 00027 00034 class AFPSiHit_v1 : public SG::AuxElement 00035 // class AFPSiHit_v1 : public SG::AuxElement 00036 { 00037 public: 00039 typedef ElementLink< AFPTrackContainer > AFPTrackLink_t; 00040 00041 00042 // needed by athenaRoot 00043 AFPSiHit_v1(); 00044 00057 float depositedCharge() const; 00058 00066 void setDepositedCharge(float charge); // amplitude of the signal for given pixel 00067 00081 float timeOverThreshold() const; 00082 00090 void setTimeOverThreshold(float timeOverThreshold); // amplitude of the signal for given pixel 00091 00092 00093 // float discriminator() const; // Constant fraction discriminator time for given pixel 00094 // void setDiscriminator(float discriminator); // Constant fraction discriminator time for given pixel 00095 00096 00113 int stationID() const; 00114 00124 void setStationID(int stationID); 00125 00154 int pixelLayerID() const; 00155 00165 void setPixelLayerID(int layerID); 00166 00181 int pixelRowIDChip() const; 00182 00197 void setPixelRowIDChip(int rowID); 00198 00199 00214 int pixelColIDChip() const; 00215 00230 void setPixelColIDChip(int colID); 00231 00232 00248 int pixelHorizID() const; 00249 00265 void setPixelHorizID(const int horizontalID); 00266 00267 00282 int pixelVertID() const; 00283 00298 void setPixelVertID(const int verticalID); 00299 00315 const std::vector<AFPTrackLink_t>& tracksLinks() const; 00316 00322 void setTracksLinks( const std::vector<AFPTrackLink_t>& tracksVector ); 00323 00332 void addTrackLink( const AFPTrackLink_t& newTrack); 00333 00335 void toPersistent(); 00336 }; 00337 00338 00339 } // namespace xAOD 00340 00341 // Declare the inheritance of the type to StoreGate: 00342 #include "xAODCore/BaseInfo.h" 00343 SG_BASE( xAOD::AFPSiHit_v1, SG::AuxElement ); 00344 00345 #endif // XAODFORWARD_VERSIONS_AFPSIHIT_V1_H 00346