MAveragePulses Class Reference
[Modules]

Inheritance diagram for MAveragePulses:

QModule QBaseModule

List of all members.


Detailed Description

Module to form idealized pulses by averaging.

Author:
A. Bryant, M. Vignati Used to tune pulse amplitude algorithms that need ideal pulse shape.
  • Config example:
       module AveragePulses
       verbosity = info
       enable = true
       OutputFile = avgpulse.root
       WriteListOfEvents = false
       AlignmentOn = true
       SubtractBaseline = true
       NumBaselinePoints = 80
       UseOFDelay = false
       MaxShift = 10
       FractionalShift = false
       endmod
       
  • Parameters:
    • OutputFile [string = avgpulses.root]
    • WriteListOfEvents[bool = false] dump file AvgEvtList_00XXXX.txt (where XXXX is run number) containing the list of pulses used to calculate the AP
    • AlignmentOn[bool = false] turn on alignement of pulses before averaging
    • SubtractBaseline[bool = false] subtracts baseline from AP
    • NumBaselinePoints[int = 80] number of points used to calculate baseline
    • UseOFDelay [bool = false] use OF delay to align pulses (pulses must be already OF-filtered)
    • MaxShift[int = 10] if AlignmentOn this is the maximum allowed shift (otherwise pulse is discarded)
    • FractionalShift[bool = false] when aligning pulses, fractional shifts are allowed

Public Member Functions

 MAveragePulses (QSequence *s)
virtual void Init ()
 Init method is called before event loop.
virtual QEventDo (QEvent *ev)
 Doit method is called for each event, getting the event as argument.
virtual void Done ()
 Done method is called after event loop.
void DumpEventList (int nrun)

Private Attributes

bool fProcessedFirstEvent
 flag indicating whether the first event has been processed
bool fSubtractBaseline
 subract baseline from average pulse
bool fNumBaselinePoints
 number of points used to calculate baseline
bool fAlignmentOn
 pulse alignment switch
bool fFractionalShift
 fractional shift
std::string fOutputFile
 output file name
bool fWriteListOfEvents
 dump list of events in a txt file
int fMaxShift
 max shift allowed
bool fUseOFDelay
 use maximum position from OF to align pulses
std::map< int, ChannelData > fChannelData
 data stored for each channel
time_t fBeginValidity
 select flag for debugging
time_t fEndValidity
QVector selectedEvents
QVector eventChannel
int currentRun

Classes

class  ChannelData

The documentation for this class was generated from the following files:

Generated on Tue Nov 16 10:50:01 2010 for CUORE Software by  doxygen 1.5.6