![]() |
ATLAS Offline Software
|
#include <TileRawChannelBuilderFlatFilter.h>
Public Member Functions | |
| TileRawChannelBuilderFlatFilter (const std::string &type, const std::string &name, const IInterface *parent) | |
| Constructor. | |
| ~TileRawChannelBuilderFlatFilter () | |
| Destructor. | |
| virtual StatusCode | initialize () |
| Initializer. | |
| virtual StatusCode | finalize () |
| virtual TileRawChannel * | rawChannel (const TileDigits *digits, const EventContext &ctx) |
| Builder virtual method to be implemented by subclasses. | |
| void | flatFilter (const std::vector< uint32_t > &digits, const int gain, double &litude, double &time) const |
| Filter given digits using FlatFilter method. | |
| void | flatFilter (const std::vector< float > &digits, const int gain, double &litude, double &time) const |
| Filter given digits using FlatFilter method. | |
| virtual StatusCode | createContainer (const EventContext &ctx) |
| Create container in SG with name given by parameter (m_rawChannelContainerKey) | |
| virtual StatusCode | commitContainer (const EventContext &ctx) |
| Commit RawChannelContiner in SG and make const. | |
| void | initLog (const EventContext &ctx) |
| void | endLog () |
| StatusCode | build (const TileDigitsCollection *collection, const EventContext &ctx) |
| void | resetDrawer () |
| void | resetOverflows (void) |
| Overflows_t & | getOverflowedChannels (void) |
| std::string | getTileRawChannelContainerID (void) |
| ServiceHandle< StoreGateSvc > & | evtStore () |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. | |
| const ServiceHandle< StoreGateSvc > & | detStore () const |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. | |
| virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. | |
| virtual StatusCode | sysStart () override |
| Handle START transition. | |
| virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. | |
| virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. | |
| Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T, V, H > &t) |
| void | updateVHKA (Gaudi::Details::PropertyBase &) |
| MsgStream & | msg () const |
| bool | msgLvl (const MSG::Level lvl) const |
Static Public Member Functions | |
| static const InterfaceID & | interfaceID () |
| AlgTool InterfaceID. | |
| static double | correctAmp (double phase, bool of2=true) |
| Amplitude correction factor according to the time when using weights for tau=0 without iterations. | |
| static double | correctTime (double phase, bool of2=true) |
| Time correction factor. | |
| static int | CorruptedData (int ros, int drawer, int channel, int gain, const std::vector< float > &digits, float &dmin, float &dmax, float ADCmaxMinusEps, float ADCmaskValueMinusEps) |
| static const char * | BadPatternName (float ped) |
Protected Member Functions | |
| void | renounceArray (SG::VarHandleKeyArray &handlesArray) |
| remove all handles from I/O resolution | |
| std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > | renounce (T &h) |
| void | extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps) |
| Add StoreName to extra input/output deps as needed. | |
Static Protected Attributes | |
| static const int | MAX_CHANNELS = 48 |
| static const int | MAX_DMUS = 16 |
Private Types | |
| typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
| bool | isSignalInFrame (const std::vector< float > &digits, double deltaCut, double rmsCut, int &frameMax, int &frameMin, double &frameMean, double &frameRMS) const |
| Find min and max sample Calculate mean and RMS of all samples. | |
| double | getPedestal (const std::vector< float > &digits, int pedStart, int pedLgt) const |
| Calculate pedestal as mean of <pedLgt> samples starting from <pedStart> | |
| int | getMaxAdder (const std::vector< float > &digits, int filterLength, int signalStart, int signalLength, int &tMax, int &tMaxFrame, int &adderFrame) const |
| Get position of maximal adder (sum of <filterLength> samples) in whole frame and in signal window (<signalStart>-><signalStart>+<signalLength> Return position and value of maximal adder in frame. | |
| int | getMaxSample (const std::vector< float > &digits, int signalStart, int signalLength, int &tMax, int &tMaxFrame, int &sampleFrame) const |
| double | calculatePeak (const std::vector< float > &digits, int peakPos, double ped, double &position) const |
| double | calculateFlatFilter (const std::vector< float > &digits, int filterStart, int filterLength, double ped, double &position) const |
| Calculate energy using flat filter Sum of <filterLength> samples starting at <filterStart> Requires pedestal value and returns position of peak. | |
| double | getTime (const std::vector< float > &digits, int signalStart, int signalLength, double ped) const |
| Calculate the time of signal in window of <signalLength> starting at <signalStart> Result is sum of time for every sample weighted with amplitude and divided by sum of times. | |
| void | fill_drawer_errors (const EventContext &ctx, const TileDigitsCollection *collection) |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> | |
Private Attributes | |
| int | m_pedStart |
| int | m_pedLength |
| int | m_pedOffset |
| int | m_signalStart |
| int | m_signalLength |
| int | m_filterLength |
| int | m_frameLength |
| double | m_deltaCut [2] |
| double | m_rmsCut [2] |
| StoreGateSvc_t | m_evtStore |
| Pointer to StoreGate (event store by default) | |
| StoreGateSvc_t | m_detStore |
| Pointer to StoreGate (detector store by default) | |
| std::vector< SG::VarHandleKeyArray * > | m_vhka |
| bool | m_varHandleArraysDeclared |
Definition at line 39 of file TileRawChannelBuilderFlatFilter.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
| TileRawChannelBuilderFlatFilter::TileRawChannelBuilderFlatFilter | ( | const std::string & | type, |
| const std::string & | name, | ||
| const IInterface * | parent ) |
Constructor.
Definition at line 41 of file TileRawChannelBuilderFlatFilter.cxx.
| TileRawChannelBuilderFlatFilter::~TileRawChannelBuilderFlatFilter | ( | ) |
|
staticinherited |
Definition at line 458 of file TileRawChannelBuilder.cxx.
|
inherited |
Definition at line 492 of file TileRawChannelBuilder.cxx.
|
private |
Calculate energy using flat filter Sum of <filterLength> samples starting at <filterStart> Requires pedestal value and returns position of peak.
| digits | Vector of didits(double> |
| filterStart | Start position for filter |
| filterLength | Number of samples |
| ped | Pedestal value |
| position | Storage place for position of peak |
Definition at line 415 of file TileRawChannelBuilderFlatFilter.cxx.
|
private |
Definition at line 359 of file TileRawChannelBuilderFlatFilter.cxx.
|
virtualinherited |
Commit RawChannelContiner in SG and make const.
Definition at line 544 of file TileRawChannelBuilder.cxx.
|
staticinherited |
Amplitude correction factor according to the time when using weights for tau=0 without iterations.
Definition at line 646 of file TileRawChannelBuilder.cxx.
|
staticinherited |
Time correction factor.
Definition at line 705 of file TileRawChannelBuilder.cxx.
|
staticinherited |
Definition at line 723 of file TileRawChannelBuilder.cxx.
|
virtualinherited |
Create container in SG with name given by parameter (m_rawChannelContainerKey)
Definition at line 233 of file TileRawChannelBuilder.cxx.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 145 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 95 of file AthCommonDataStore.h.
|
inherited |
Definition at line 639 of file TileRawChannelBuilder.cxx.
|
inlineinherited |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 85 of file AthCommonDataStore.h.
|
protectedinherited |
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
|
privateinherited |
Definition at line 300 of file TileRawChannelBuilder.cxx.
|
virtual |
Reimplemented from TileRawChannelBuilder.
Definition at line 86 of file TileRawChannelBuilderFlatFilter.cxx.
| void TileRawChannelBuilderFlatFilter::flatFilter | ( | const std::vector< float > & | digits, |
| const int | gain, | ||
| double & | amplitude, | ||
| double & | time ) const |
Filter given digits using FlatFilter method.
| digits | as vector of double |
| amplitude | |
| time |
Definition at line 480 of file TileRawChannelBuilderFlatFilter.cxx.
| void TileRawChannelBuilderFlatFilter::flatFilter | ( | const std::vector< uint32_t > & | digits, |
| const int | gain, | ||
| double & | amplitude, | ||
| double & | time ) const |
Filter given digits using FlatFilter method.
| digits | as vector of unsigned 32 bit integers |
| amplitude | |
| time |
Definition at line 558 of file TileRawChannelBuilderFlatFilter.cxx.
|
private |
Get position of maximal adder (sum of <filterLength> samples) in whole frame and in signal window (<signalStart>-><signalStart>+<signalLength> Return position and value of maximal adder in frame.
| digits | Vector if digits(double) |
| filterLength | |
| signalStart | Start of signal window |
| signalLength | Length of signal window |
| return | Position of max adder |
Definition at line 217 of file TileRawChannelBuilderFlatFilter.cxx.
|
private |
Definition at line 290 of file TileRawChannelBuilderFlatFilter.cxx.
|
inherited |
Definition at line 38 of file TileRawChannelBuilder.cxx.
|
private |
Calculate pedestal as mean of <pedLgt> samples starting from <pedStart>
| digits | Vector of digits(double) |
| pedStart | Start of pedestal |
| pedLgt | Length of pedestal |
Definition at line 174 of file TileRawChannelBuilderFlatFilter.cxx.
|
inherited |
Definition at line 42 of file TileRawChannelBuilder.cxx.
|
private |
Calculate the time of signal in window of <signalLength> starting at <signalStart> Result is sum of time for every sample weighted with amplitude and divided by sum of times.
| digits | Vector of digits(double) |
| signalStart | Start of signal |
| signalLength | Length of signal in samples |
| ped | Pedestal value |
Definition at line 445 of file TileRawChannelBuilderFlatFilter.cxx.
|
virtual |
Initializer.
Reimplemented from TileRawChannelBuilder.
Definition at line 74 of file TileRawChannelBuilderFlatFilter.cxx.
|
inherited |
Definition at line 246 of file TileRawChannelBuilder.cxx.
|
overridevirtualinherited |
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.
|
static |
AlgTool InterfaceID.
Definition at line 31 of file TileRawChannelBuilderFlatFilter.cxx.
|
private |
Find min and max sample Calculate mean and RMS of all samples.
Returns true i signal is found
| digits | Vector of digits(double) |
| delatCut | Delta cut value |
| rmsCut | RMS cut value |
| frameMax | Storage for max sample |
| frameMin | Storage for frame min |
| frameMean | Storage for frame mean |
| frameRMS | Storage for frame RMS |
Definition at line 143 of file TileRawChannelBuilderFlatFilter.cxx.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
overridevirtualinherited |
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.
|
virtual |
Builder virtual method to be implemented by subclasses.
| digits | Pointer to TileDigitsContainer |
Reimplemented from TileRawChannelBuilder.
Definition at line 92 of file TileRawChannelBuilderFlatFilter.cxx.
|
inlineprotectedinherited |
Definition at line 380 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 364 of file AthCommonDataStore.h.
|
inherited |
Definition at line 29 of file TileRawChannelBuilder.cxx.
|
inherited |
Definition at line 34 of file TileRawChannelBuilder.cxx.
|
overridevirtualinherited |
Perform system initialization for an algorithm.
We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.
Reimplemented in asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and DerivationFramework::CfAthAlgTool.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
|
protectedinherited |
indicates channels which were masked in background dataset
Definition at line 222 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 221 of file TileRawChannelBuilder.h.
|
protectedinherited |
correct amplitude if it's above amplitude threshold (in ADC counts)
Definition at line 152 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 210 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 138 of file TileRawChannelBuilder.h.
|
protectedinherited |
TileCabling instance.
Definition at line 182 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 179 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 142 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 193 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 196 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 192 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 145 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 204 of file TileRawChannelBuilder.h.
|
private |
Definition at line 161 of file TileRawChannelBuilderFlatFilter.h.
|
protectedinherited |
Definition at line 184 of file TileRawChannelBuilder.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
protectedinherited |
Definition at line 120 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 125 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 208 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 195 of file TileRawChannelBuilder.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
protectedinherited |
Definition at line 218 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 220 of file TileRawChannelBuilder.h.
|
private |
Definition at line 158 of file TileRawChannelBuilderFlatFilter.h.
|
protectedinherited |
Definition at line 140 of file TileRawChannelBuilder.h.
|
private |
Definition at line 159 of file TileRawChannelBuilderFlatFilter.h.
|
protectedinherited |
Definition at line 217 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 219 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 191 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 189 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 190 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 188 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 215 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 209 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 199 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 198 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 163 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 212 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 203 of file TileRawChannelBuilder.h.
|
private |
Definition at line 154 of file TileRawChannelBuilderFlatFilter.h.
|
private |
Definition at line 155 of file TileRawChannelBuilderFlatFilter.h.
|
private |
Definition at line 153 of file TileRawChannelBuilderFlatFilter.h.
|
protectedinherited |
Definition at line 133 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 129 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 201 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 200 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 136 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 137 of file TileRawChannelBuilder.h.
|
private |
Definition at line 162 of file TileRawChannelBuilderFlatFilter.h.
|
protectedinherited |
Definition at line 157 of file TileRawChannelBuilder.h.
|
private |
Definition at line 157 of file TileRawChannelBuilderFlatFilter.h.
|
private |
Definition at line 156 of file TileRawChannelBuilderFlatFilter.h.
|
protectedinherited |
Definition at line 161 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 160 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 172 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 216 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 166 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 169 of file TileRawChannelBuilder.h.
|
protectedinherited |
correct amplitude is time is below time max threshold
Definition at line 154 of file TileRawChannelBuilder.h.
|
protectedinherited |
correct amplitude is time is above time min threshold
Definition at line 153 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 187 of file TileRawChannelBuilder.h.
|
protectedinherited |
Definition at line 149 of file TileRawChannelBuilder.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.
|
staticprotectedinherited |
Definition at line 206 of file TileRawChannelBuilder.h.
|
staticprotectedinherited |
Definition at line 207 of file TileRawChannelBuilder.h.