99 void SetName(
const char *name = 0);
105 void SetProperty(
const std::string& key,
const std::string& value);
Base class for scatter plots and pulses.
Class for GUI pulse plots.
bool NeedsReordering() const
Check whether the pulses need reordering.
std::vector< Long64_t > fOrderedEvents
Ordered collection of events that pass the cuts.
Int_t GetNumberOfEvents()
Get number of events that pass the cuts.
const std::string & GetOrderVariable() const
Get order variable.
std::vector< TMarker * > fSampleMarkers
Sample markers for significant samples.
QGPulse()
Default constructor.
void Erase()
Erase the pulse.
void AutoSetStyle()
Automatically set the pulse style.
std::string HumanizeEventData(std::string)
Humanize the event data to display along with pulse.
void SetEventIndex(Long_t index)
Set event index of displayed pulse.
bool IsShowLegendsSet() const
Return true if pulse info legends added to pulse.
void SetOrderVariable(const std::string &orderVariable)
Set the variable by which pulses are ordered.
static std::list< QGPulse * > fPulses
Collection of pointers to all QGPulses.
bool fNeedsReordering
Indicates whether pulses need to be reordered.
std::string fSamplesLabel
samples to draw
virtual ~QGPulse()
Destructor.
void SetSamplesLabel(const std::string &samplesLabel)
Set the label of samples to draw.
void SetEventData(const std::vector< std::string > &eventData)
Set event data.
const std::vector< std::string > & GetEventData() const
Get event data for displayed pulse.
void SetProperty(const std::string &key, const std::string &value)
Set property (used for opening a session)
void SetShowLegends(bool flag=true)
Set whether to display legends on the pulse.
void SetName(const char *name=0)
Set name of the pulse.
void FillEventData()
Fill event data for the displayed pulse.
std::string fOrderVariable
Variable by which pulses are ordered.
bool IsUseADCUnitsSet() const
Return true if pulse is set to be displayed with ADC units.
bool fShowLegends
Whether or not to show legends on pulse.
void UpdatePulseEditWindow()
Update pulse edit window.
void Display()
Display pulse.
bool fUseADCUnits
Whether or not to use ADC units, otherwise use mV and seconds.
void SetReorder(bool flag=true)
Set whether the pulses need to be reordered.
TGraph * fStylePulse
Mini-pulse to show style of this pulse.
void MakeStylePlot()
Make style plot.
bool fZeroOffset
Subtract first sample to all samples.
std::vector< std::string > fEventData
Event data for displayed pulse.
const std::string & GetSamplesLabel() const
Get samples label.
bool GetPulseFromChain(Long64_t eventIndex)
Get pulse from chain.
void GetParametersFromEditWindow()
Get parameters from edit window.
void DrawStylePulse()
Draw a mini-pulse showing the style of the pulse.
TEventList * fEventList
List of events passing the cuts.
void SetUseADCUnits(bool flag=true)
Set whether to display the pulse using ADC units.
void Duplicate()
Duplicate the pulse.
void SetZeroOffset(bool flag=true)
Set whether subtract first sample to tue pulse.
void Order()
Order the pulses accoring to the order variable.
std::vector< Long64_t >::size_type fEventIndex
Index of current event.
void SetUnitary(bool flag=true)
Set whether normalize pulse.
void DisplayEditWindow()
Display edit window.
void DisplaySampleMarkers()
Display markers for significant samples.
bool fUnitary
Zero offset and unitary amplitude.
void Generate(QChain *chain=0)
Generate the pulse.
TGraph * GetStylePulse()
Get style pulse.
Int_t GetEventIndex()
Get event index of displayed pulse.