PPM-DU analysis  2.3
conversion and analysis of the PPM-DU data
 All Classes Files Functions Variables Pages
Public Member Functions | List of all members
histo Class Reference

replace drawing.h: do online histos More...

#include <histo.h>

Public Member Functions

 histo (const int domId, const int index, const int pmtId)
 
const int GetDomId () const
 get the Id of the DOM use for specific plots (signal, signals, duration, PmtStat) More...
 
void SetDomId (const int id)
 set the Id of the DOM More...
 
const int GetIndex () const
 get the ID of the event use for specific plots (signal, signals, duration, PmtStat) More...
 
void SetIndex (const int id)
 set the ID of the event More...
 
const int GetPmtId () const
 get the ID of the Pmt use for specific plots (signal, duration) More...
 
void SetPmtId (const int id)
 set the ID of the Pmt More...
 
const int GetRunId () const
 get the ID of the run More...
 
void SetRunId (const int id)
 set the ID of the run More...
 
void InitSignal ()
 initialize the signal histo. More...
 
void FillSignal (const signal &sig)
 fill the histo with one signal (it can be for instance one signal of one Pmt of one DOM) More...
 
void FillSignal (const std::vector< signal > &sigSample, long long int time)
 fill the histo with a list of signal (it can be for instance all signals of one Pmt of one DOM) More...
 
void DrawSignal ()
 draw the histo More...
 
void InitDuration ()
 initialize the duration histo More...
 
void FillDuration (const std::vector< signal > &sig)
 fill the histo with the duration of a list of signals (it can be for instance all signals of one Pmt of one DOM) More...
 
void DrawDuration ()
 draw the histo More...
 
void InitDurations (const std::vector< int > &vDomId)
 initialize the duration histo (depends on the pmt id). More...
 
void FillDurations (const int domId, const std::vector< pmt > &pmtSample, double cutValues[domNb][pmtNb])
 fill the histo with all the signal durations of a list of signal (one histo per Pmt number) More...
 
void FillDurations (const std::vector< dom > &domSample, double cutValues[domNb][pmtNb], const std::vector< int > &vDomId)
 fill the histo with all the signal durations of a list of dom (one histo per Pmt number) More...
 
void FillDurations (const std::vector< event > &eventSample, double cutValues[domNb][pmtNb], const std::vector< int > &vDomId)
 fill the histo with all the signal durations of a list of event (one histo per Pmt number) More...
 
void DrawDurations ()
 draw the histo, one per pmt More...
 
void InitFrequency (const std::vector< int > &vDomId)
 initialize the frequency histo (depends on the pmt id). More...
 
void FillFrequency (const int domId, const std::vector< pmt > &pmtSample, double cutValues[domNb][pmtNb])
 fill the histo with the time difference between 2 signals for a list of signals (one histo per Pmt number) More...
 
void FillFrequency (const std::vector< dom > &domSample, double cutValues[domNb][pmtNb], const std::vector< int > &vDomId)
 fill the histo with the time difference between 2 signals for a list of dom (one histo per Pmt number) More...
 
void FillFrequency (const std::vector< event > &eventSample, double cutValues[domNb][pmtNb], const std::vector< int > &vDomId)
 fill the histo with the time difference between 2 signals for a list of event (one histo per Pmt number) More...
 
void DrawFrequency ()
 draw the histo, one per pmt More...
 
void DrawPmtStat (const std::vector< pmt > &pmtSample)
 draw the number of signal as a function of the pmt number (for one dom) More...
 
void DrawPmtStats (const std::vector< dom > &domSample, const std::vector< int > &vDomId)
 draw the number of signal as a function of the pmt number (for one event) More...
 
void DrawPmtStats (const std::vector< event > &eventSample, const std::vector< int > &vDomId)
 draw the number of signal as a function of the pmt number (for many events) More...
 
void InitDeltaT (const int refID)
 initialize the delta T histo (time difference between pmts). More...
 
void InitDeltaT (const std::vector< int > &vDomId)
 
void FillDeltaT (const std::vector< triggeredSignals > &vTrigger, const int domId, const int refID)
 fill the time difference between all pmts and the reference pmt (given by the integer) More...
 
void FillDeltaT (const std::vector< triggeredSignals > &vTrigger)
 fill the time difference between all neighbors dom per dom More...
 
void DrawDeltaT (const int refID)
 draw the histo, one per pmt More...
 
void DrawDeltaT ()
 
void InitDomDeltaT (const std::vector< int > &vDomId)
 initialize the delta T histo (time difference between doms). More...
 
void FillDomDeltaT (const std::vector< triggeredSignals > &vTrigger, const std::vector< int > &vDomId)
 fill the time difference between all Dom neighbors More...
 
void DrawDomDeltaT ()
 draw the histo More...
 
void InitCoincidenceRate (const std::vector< int > &vDomId)
 initialize the coincidence rate histo. More...
 
void FillCoincidenceRate (const std::vector< triggeredSignals > &vTrigger)
 Fill the coincidence rate histo. More...
 
void DrawCoincidenceRate ()
 draw the coincidence rate histo. More...
 
void InitEventPerSlice (const bool individualPmt, const std::vector< int > &vDomId)
 initialize the event per slice histo. More...
 
void FillEventPerSlice (const std::vector< dom > &domSample, const bool individualPmt, const std::vector< int > &vDomId)
 fill the event per slice histo. More...
 
void DrawEventPerSlice (const bool individualPmt, double cutValues[domNb][pmtNb], const std::vector< int > &vDomId)
 draw the event per slice histo. More...
 
int FindDomIndex (const int id, const std::vector< int > &vDomId)
 find the index associates to a Dom Id More...
 
void InitSliceTimeSeries (const std::vector< int > &vDomId)
 initialize the slice time series histo. More...
 
void FillSliceTimeSeries (const std::vector< dom > &domSample, const std::vector< int > &vDomId)
 fill the slice time series histo. More...
 
void DrawSliceTimeSeries ()
 draw the slice time series histo. More...
 

Detailed Description

replace drawing.h: do online histos

Save time and memory by filling histos online. Allows to overcharged the vector of triggered events. Some plots are made according to the pmt id, whatever the dom id. It does not make sense if doms are different. It makes sense only if the dom is the same but the event is different.

Note
We suggest you to clear the vector after each filling
Author
Alexandre Creusot
Version
2.1
Date
Tue Oct 01 2014

Contact: creus.nosp@m.ot@a.nosp@m.pc.un.nosp@m.iv-p.nosp@m.aris7.nosp@m..fr

Created on: Wed Apr 04 2013

Definition at line 46 of file histo.h.

Constructor & Destructor Documentation

histo::histo ( const int  domId,
const int  index,
const int  pmtId 
)
inline

Definition at line 49 of file histo.h.

Member Function Documentation

void histo::DrawCoincidenceRate ( )

draw the coincidence rate histo.

Definition at line 805 of file histo.cc.

void histo::DrawDeltaT ( const int  refID)

draw the histo, one per pmt

Definition at line 570 of file histo.cc.

void histo::DrawDeltaT ( )

Definition at line 632 of file histo.cc.

void histo::DrawDomDeltaT ( )

draw the histo

Definition at line 745 of file histo.cc.

void histo::DrawDuration ( )

draw the histo

Definition at line 79 of file histo.cc.

void histo::DrawDurations ( )

draw the histo, one per pmt

Definition at line 188 of file histo.cc.

void histo::DrawEventPerSlice ( const bool  individualPmt,
double  cutValues[domNb][pmtNb],
const std::vector< int > &  vDomId 
)

draw the event per slice histo.

Definition at line 859 of file histo.cc.

void histo::DrawFrequency ( )

draw the histo, one per pmt

Definition at line 339 of file histo.cc.

void histo::DrawPmtStat ( const std::vector< pmt > &  pmtSample)

draw the number of signal as a function of the pmt number (for one dom)

Definition at line 383 of file histo.cc.

void histo::DrawPmtStats ( const std::vector< dom > &  domSample,
const std::vector< int > &  vDomId 
)

draw the number of signal as a function of the pmt number (for one event)

Definition at line 405 of file histo.cc.

void histo::DrawPmtStats ( const std::vector< event > &  eventSample,
const std::vector< int > &  vDomId 
)

draw the number of signal as a function of the pmt number (for many events)

Definition at line 451 of file histo.cc.

void histo::DrawSignal ( )

draw the histo

Definition at line 47 of file histo.cc.

void histo::DrawSliceTimeSeries ( )

draw the slice time series histo.

Definition at line 969 of file histo.cc.

void histo::FillCoincidenceRate ( const std::vector< triggeredSignals > &  vTrigger)

Fill the coincidence rate histo.

Definition at line 775 of file histo.cc.

void histo::FillDeltaT ( const std::vector< triggeredSignals > &  vTrigger,
const int  domId,
const int  refID 
)

fill the time difference between all pmts and the reference pmt (given by the integer)

Definition at line 522 of file histo.cc.

void histo::FillDeltaT ( const std::vector< triggeredSignals > &  vTrigger)

fill the time difference between all neighbors dom per dom

Definition at line 548 of file histo.cc.

void histo::FillDomDeltaT ( const std::vector< triggeredSignals > &  vTrigger,
const std::vector< int > &  vDomId 
)

fill the time difference between all Dom neighbors

Definition at line 716 of file histo.cc.

void histo::FillDuration ( const std::vector< signal > &  sig)

fill the histo with the duration of a list of signals (it can be for instance all signals of one Pmt of one DOM)

Definition at line 70 of file histo.cc.

void histo::FillDurations ( const int  domId,
const std::vector< pmt > &  pmtSample,
double  cutValues[domNb][pmtNb] 
)

fill the histo with all the signal durations of a list of signal (one histo per Pmt number)

Definition at line 121 of file histo.cc.

void histo::FillDurations ( const std::vector< dom > &  domSample,
double  cutValues[domNb][pmtNb],
const std::vector< int > &  vDomId 
)

fill the histo with all the signal durations of a list of dom (one histo per Pmt number)

Definition at line 137 of file histo.cc.

void histo::FillDurations ( const std::vector< event > &  eventSample,
double  cutValues[domNb][pmtNb],
const std::vector< int > &  vDomId 
)

fill the histo with all the signal durations of a list of event (one histo per Pmt number)

Definition at line 163 of file histo.cc.

void histo::FillEventPerSlice ( const std::vector< dom > &  domSample,
const bool  individualPmt,
const std::vector< int > &  vDomId 
)

fill the event per slice histo.

Definition at line 833 of file histo.cc.

void histo::FillFrequency ( const int  domId,
const std::vector< pmt > &  pmtSample,
double  cutValues[domNb][pmtNb] 
)

fill the histo with the time difference between 2 signals for a list of signals (one histo per Pmt number)

Definition at line 268 of file histo.cc.

void histo::FillFrequency ( const std::vector< dom > &  domSample,
double  cutValues[domNb][pmtNb],
const std::vector< int > &  vDomId 
)

fill the histo with the time difference between 2 signals for a list of dom (one histo per Pmt number)

Definition at line 284 of file histo.cc.

void histo::FillFrequency ( const std::vector< event > &  eventSample,
double  cutValues[domNb][pmtNb],
const std::vector< int > &  vDomId 
)

fill the histo with the time difference between 2 signals for a list of event (one histo per Pmt number)

Definition at line 313 of file histo.cc.

void histo::FillSignal ( const signal sig)

fill the histo with one signal (it can be for instance one signal of one Pmt of one DOM)

Definition at line 29 of file histo.cc.

void histo::FillSignal ( const std::vector< signal > &  sigSample,
long long int  time 
)

fill the histo with a list of signal (it can be for instance all signals of one Pmt of one DOM)

Definition at line 38 of file histo.cc.

void histo::FillSliceTimeSeries ( const std::vector< dom > &  domSample,
const std::vector< int > &  vDomId 
)

fill the slice time series histo.

Definition at line 956 of file histo.cc.

int histo::FindDomIndex ( const int  id,
const std::vector< int > &  vDomId 
)

find the index associates to a Dom Id

Definition at line 10 of file histo.cc.

const int histo::GetDomId ( ) const
inline

get the Id of the DOM use for specific plots (signal, signals, duration, PmtStat)

Definition at line 53 of file histo.h.

const int histo::GetIndex ( ) const
inline

get the ID of the event use for specific plots (signal, signals, duration, PmtStat)

Definition at line 57 of file histo.h.

const int histo::GetPmtId ( ) const
inline

get the ID of the Pmt use for specific plots (signal, duration)

Definition at line 61 of file histo.h.

const int histo::GetRunId ( ) const
inline

get the ID of the run

Definition at line 65 of file histo.h.

void histo::InitCoincidenceRate ( const std::vector< int > &  vDomId)

initialize the coincidence rate histo.

Definition at line 763 of file histo.cc.

void histo::InitDeltaT ( const int  refID)

initialize the delta T histo (time difference between pmts).

Definition at line 482 of file histo.cc.

void histo::InitDeltaT ( const std::vector< int > &  vDomId)

Definition at line 502 of file histo.cc.

void histo::InitDomDeltaT ( const std::vector< int > &  vDomId)

initialize the delta T histo (time difference between doms).

Definition at line 697 of file histo.cc.

void histo::InitDuration ( )

initialize the duration histo

Definition at line 62 of file histo.cc.

void histo::InitDurations ( const std::vector< int > &  vDomId)

initialize the duration histo (depends on the pmt id).

Definition at line 95 of file histo.cc.

void histo::InitEventPerSlice ( const bool  individualPmt,
const std::vector< int > &  vDomId 
)

initialize the event per slice histo.

Definition at line 818 of file histo.cc.

void histo::InitFrequency ( const std::vector< int > &  vDomId)

initialize the frequency histo (depends on the pmt id).

Definition at line 246 of file histo.cc.

void histo::InitSignal ( )

initialize the signal histo.

Definition at line 20 of file histo.cc.

void histo::InitSliceTimeSeries ( const std::vector< int > &  vDomId)

initialize the slice time series histo.

Definition at line 941 of file histo.cc.

void histo::SetDomId ( const int  id)
inline

set the Id of the DOM

Definition at line 55 of file histo.h.

void histo::SetIndex ( const int  id)
inline

set the ID of the event

Definition at line 59 of file histo.h.

void histo::SetPmtId ( const int  id)
inline

set the ID of the Pmt

Definition at line 63 of file histo.h.

void histo::SetRunId ( const int  id)
inline

set the ID of the run

Definition at line 67 of file histo.h.


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