 |
Belle II Software
release-05-02-19
|
194 void setTimeRange(
int time_min,
int time_max,
bool do_update =
true);
209 void setEventRange(
int ev_min,
int ev_max,
bool do_update =
true);
262 void update(
bool reset_event_ranges =
false);
void loadRootFile(const char *path)
Load root file containing ECLCalDigit data from the specified path.
int getChannel(int phi_id, int theta_id)
Converts (phi_id, theta_id) pair to ECL CellId.
int getEventRangeMin()
Return min event number to display.
void initVariables()
Initialization of arrays.
void includeChannel(int ch, bool do_update=false)
Includes specific channel in the count of events and energy.
Class to store calibrated ECLDigits: ECLCalDigits.
void fillEnergySumHistogram(TH1F *hist, int energy_min, int energy_max, EclSubsystem subsys)
Fill energy per event histogram for the specified EclSubsystem (Barrel, forward endcap,...
float * getEnergySumPerCrystal()
Alias for GetEnergySums()
std::vector< int > m_event_entry
This vector holds the position of each entry which starts an event.
void update(bool reset_event_ranges=false)
Update time_min, time_max, event_counts and energy_sums.
void initEventRanges()
Set initial values for time and event range.
int * getEventCounts()
Returns array of event counts per crystal[getCrystalsCount()].
int m_event_count_max
Max value in event_counts array.
int m_time_range_max
Time range (max) for display.
int addEvent(ECLCalDigit *event, int evtn)
Add ECLDigit event to inner TTree (m_tree).
int m_ev_range_min
Events from ev_range_min will be counted in energy_sums and event_counts.
void excludeChannel(int ch, bool do_update=false)
Excludes specific channel from the count of events and energy.
TTree * m_tree
Tree with loaded events.
EclData & operator=(const EclData &other)
Assignment operator: utilizes copy constructor.
int getPhiId(int ch)
ECL CellId -> phi_id.
int m_ev_range_max
Events up to ev_range_max will be counted in energy_sums and event_counts.
void setEnergyThreshold(int en_min, int en_max, bool do_update=true)
Sets energy range to (en_min, en_max).
int getTimeRangeMin()
Return min time in time range.
float * m_energy_sums
Sum of energies of every event captured by crystal (MeV).
EclSubsystem
Subsystems of ECL: ALL all subsystems BARR barrel only FORW forward endcap only BACKW backward endcap...
float m_energy_total
Total energy for last displayed range of events.
int * m_event_counts
Number of events for each crystal.
int m_branch_evtn
Tree event number branch.
void cloneFrom(const EclData &other)
Clone attributes from other EclData.
void fillEnergyHistogram(TH1F *hist, int energy_min, int energy_max, EclSubsystem subsys)
Fill energy per channel histogram for the specified EclSubsystem (Barrel, forward endcap,...
int getTimeRangeMax()
Return max time in time range.
EclData()
Default constructor.
Abstract base class for different kinds of events.
int m_en_range_max
Upper boundary of energy threshold.
float m_energy_sums_max
Max value in m_energy_sums array.
void setTimeRange(int time_min, int time_max, bool do_update=true)
Display only events in the specified time range.
bool isCrystalInSubsystem(int crystal, EclSubsystem subsys)
static int getCrystalCount()
Get number of crystals in ECL.
int m_branch_ch
Tree channel field.
double m_branch_time
Tree time branch.
void setEventRange(int ev_min, int ev_max, bool do_update=true)
Sets event range to (ev_min, ev_max)
int getThetaId(int ch)
ECL CellId -> theta_id.
void fillTimeHistogram(TH1F *hist, int time_min, int time_max, EclSubsystem subsys)
Fill time histogram for the specified EclSubsystem (Barrel, forward endcap, backward endcap,...
int m_en_range_min
Lower boundary of energy threshold.
This class contains data for ECLSimHit's and provides several relevant conversion functions for bette...
int * getEventCountsPerCrystal()
Alias for GetEventCounts()
int m_last_event_id
Id of the event with max recorded event number (evtn).
int m_time_max
Maximum possible time.
static const int ring_start_id[70]
First crystal id in the beginning of i-th ECL ring.
std::set< int > m_excluded_ch
Channels which are filtered out from the count of events and energy.
TTree * getTree()
Returns data contained in EclDisplay.
int getEventRangeMax()
Return max event number to display.
float * getEnergySums()
Get array of total energy for each channel in the specified time and event range.
int m_time_range_min
Time range (min) for display.
double m_branch_energy
Tree energy branch.