/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Private Types | Private Member Functions | Private Attributes
DaqDataHistogram Class Reference

#include <DaqDataHistogram.h>

Collaboration diagram for DaqDataHistogram:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DaqDataHistogram (const std::string &name, ISvcLocator *pSvcLocator)
virtual ~DaqDataHistogram ()
virtual StatusCode initialize ()
virtual StatusCode finalize ()
virtual StatusCode execute ()

Private Types

enum  Fig_t {
  kTdc, kAdcFine, kAdcCoarse, kPeakCycle,
  kRange, kHitCount, kPreAdcFine, kPreAdcCoarse,
  kDarkNoise, kTriggerType, kAdcSum, kNchannel,
  kHitRate, kHitNumber, kAdcMean, kAdcRMS,
  kTdcMean, kTdcRMS, kPreAdcMean, kPreAdcRMS,
  kAdcVsChannel, kTdcVsChannel, kPreAdcVsChannel, kDarkRate,
  kDarkNoiseVsChannel, kAdcSumVsTriggerType, kTriggerBlocked, kRandTrig
}

Private Member Functions

TH1 * getOrMakeHist (int run, const DayaBay::Detector &detector, int board, int connector, int histIndex)
std::string getPath (int run, const DayaBay::Detector &detector, int board, int connector, const char *histName)
void extendRange (TH1 *hist, int xBinsAdd, int yBinsAdd=0)

Private Attributes

IStatisticsSvc * m_statsSvc
TH1 * m_scale
std::map< int, TH1 ** > m_hist
TimeStampm_firstTriggerTime
bool m_daqCrateOrNot
int m_printFreq
int m_adcSumMax
double m_highGainFactor
double m_tIntervalMax
unsigned long m_eventCount
char * m_pmtTrigType [16]

Detailed Description

Definition at line 30 of file DaqDataHistogram.h.


Member Enumeration Documentation

enum DaqDataHistogram::Fig_t [private]
Enumerator:
kTdc 
kAdcFine 
kAdcCoarse 
kPeakCycle 
kRange 
kHitCount 
kPreAdcFine 
kPreAdcCoarse 
kDarkNoise 
kTriggerType 
kAdcSum 
kNchannel 
kHitRate 
kHitNumber 
kAdcMean 
kAdcRMS 
kTdcMean 
kTdcRMS 
kPreAdcMean 
kPreAdcRMS 
kAdcVsChannel 
kTdcVsChannel 
kPreAdcVsChannel 
kDarkRate 
kDarkNoiseVsChannel 
kAdcSumVsTriggerType 
kTriggerBlocked 
kRandTrig 

Definition at line 65 of file DaqDataHistogram.h.


Constructor & Destructor Documentation

DaqDataHistogram::DaqDataHistogram ( const std::string &  name,
ISvcLocator *  pSvcLocator 
)

Definition at line 43 of file DaqDataHistogram.cc.

                              :
  GaudiAlgorithm(name,
      pSvcLocator),
  m_statsSvc(0),
  m_firstTriggerTime(0),
  m_daqCrateOrNot(0),
  //m_lastTrigTime(0),
  m_eventCount(0)
{
  declareProperty("PrintFreq", m_printFreq=0);
  declareProperty("AdcSumMax", m_adcSumMax=100000);
  declareProperty("HighGainFactor", m_highGainFactor=10);
  m_pmtTrigType[0] = "Manual";
  m_pmtTrigType[1] = "Cross";
  m_pmtTrigType[2] = "Periodic";
  m_pmtTrigType[3] = "Pedestal";
  m_pmtTrigType[4] = "Calib";
  m_pmtTrigType[5] = "Random";
  m_pmtTrigType[6] = "";
  m_pmtTrigType[7] = "";
  m_pmtTrigType[8] = "NHit";
  m_pmtTrigType[9] = "";
  m_pmtTrigType[10] = "";
  m_pmtTrigType[11] = "";
  m_pmtTrigType[12] = "ESum";
  m_pmtTrigType[13] = "";
  m_pmtTrigType[14] = "";
  m_pmtTrigType[15] = "";
  //m_pmtTrigType[9] = "ESumADC";
  //m_pmtTrigType[10] = "ESumHigh";
  //m_pmtTrigType[11] = "ESumLow";
}
DaqDataHistogram::~DaqDataHistogram ( ) [virtual]

Definition at line 77 of file DaqDataHistogram.cc.

{
}

Member Function Documentation

virtual StatusCode DaqDataHistogram::initialize ( ) [virtual]
virtual StatusCode DaqDataHistogram::finalize ( ) [virtual]
virtual StatusCode DaqDataHistogram::execute ( ) [virtual]
TH1* DaqDataHistogram::getOrMakeHist ( int  run,
const DayaBay::Detector detector,
int  board,
int  connector,
int  histIndex 
) [private]
std::string DaqDataHistogram::getPath ( int  run,
const DayaBay::Detector detector,
int  board,
int  connector,
const char *  histName 
) [private]
void DaqDataHistogram::extendRange ( TH1 *  hist,
int  xBinsAdd,
int  yBinsAdd = 0 
) [private]

Member Data Documentation

IStatisticsSvc* DaqDataHistogram::m_statsSvc [private]

Definition at line 42 of file DaqDataHistogram.h.

TH1* DaqDataHistogram::m_scale [private]

Definition at line 51 of file DaqDataHistogram.h.

std::map<int,TH1**> DaqDataHistogram::m_hist [private]

Definition at line 52 of file DaqDataHistogram.h.

Definition at line 53 of file DaqDataHistogram.h.

Definition at line 55 of file DaqDataHistogram.h.

Definition at line 56 of file DaqDataHistogram.h.

Definition at line 57 of file DaqDataHistogram.h.

Definition at line 58 of file DaqDataHistogram.h.

Definition at line 59 of file DaqDataHistogram.h.

unsigned long DaqDataHistogram::m_eventCount [private]

Definition at line 61 of file DaqDataHistogram.h.

char* DaqDataHistogram::m_pmtTrigType[16] [private]

Definition at line 63 of file DaqDataHistogram.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 10:02:12 for DQMRawData by doxygen 1.7.4