QDbDetector Namespace Reference
[DataBase]


Detailed Description

namespace of functions to access the DataBase for detector information

Author:
Riccardo Faccini & contributors


Classes

class  RootLoad

Enumerations

enum  RunType {
  RT_UNKNOWN, RT_BACKGROUND, RT_CALIBRATION, RT_NPULSES,
  RT_TEST, RT_SIMULATION
}
 Run Type.
enum  DetectorName {
  DN_CUORICINO = 0, DN_THREETOWERS = 1, DN_CUORE0 = 2, DN_CUORE = 3,
  DN_HALLC = 5, DN_HALLC_CUORE = 6, DN_UNKNOWN = 9
}
 DetectorName.

Functions

QDbDetector::RunType GetRunType (int run)
 return run type
QDbDetector::RunType String2RunType (const std::string &s)
 string to RunType
std::string RunType2String (QDbDetector::RunType runType)
 RunType to string.
QDbDetector::DetectorName GetDetectorName (int run)
 return DetectorName
std::string DetectorName2String (QDbDetector::DetectorName detectorId)
 DetectorName to string.
int NRun (const QTime &time)
int NRun (time_t time)
 run number from timestamp
int ProfileId (int run)
 profile_id from run_number
int BoloId (const int run, const int ch)
 bolo_id from run_number and channel
int Channel (const int run, const int boloId)
 channel from run_number and bolo_id
std::vector< int > FloorList (int run)
 list of all floors in a given run
std::vector< int > BoloList (int run)
 list of all bolometers in a given run (no thermometers)
std::vector< int > ActiveBoloList (int run)
 list of only active bolometers in a given run (no thermometers)
bool IsActiveBolo (int run, int id)
 check if a channel is active
std::vector< int > ActiveChannelList (const int run)
 list of only active channels in a given run (no thermometers)
std::vector< int > ThermList (int run)
 list of thermistors (without crystals) read in a given run
std::map< int, int > TrgThresholdList (int run)
 get trigger threshold list
std::vector< int > GetRelativeChannels (int run, int channel, const std::string &fileName)
 Get list of channels on the same crystal of channel (useful when there is more than one thermistor per crystal).
int GetPulserId (int run, int boloId, const std::string &filename)
 Get Pulser Id for bolometer boloId.
QVector Position (int channel)
 position of the chrystal (QVector with 3 components, x,y,z)
int BoloFloor (int channel)
 return the position of the bolometer whose chennel nb is
std::vector< int > BolometersOnFloor (int floor)
 return an array containing all the channel in
std::map< int, int > ChannelFloor (int run)
 return a map of (channel, floor)
std::multimap< int, int > FloorChannel (int run)
 return a multimap (floor,channel)
std::string BoloName (int channel)
 return bolometer name
double SamplingFrequency (int run, int chan)
 sampling frequency for a given channel in a given run
std::vector< double > ADCRange (int run, int chan)
 adc range for a given channel in a given run
int GetThermometerChannel (int run)
 tower termometer channel
std::vector< int > GetMuonQDCChannels (int)
 get the list of QDC daq channels
std::vector< int > GetMuonTDCChannels (int)
 get the list of TDC daq channels
double GetScintillatorThickness (std::string name, int run)
std::string GetScintillatorNameFromQDCCh (int channel, int run)
 get the name of the scintillator
std::map< unsigned short,
unsigned short > 
GetDaqCrates (const int run)
 get a map of logical channels and the DAQ crates they belong to
unsigned int SettingsBasket (const unsigned int run)
 get settings basket for the requested run number
unsigned int GetCurrentRunNumber ()
 get current run number (used by online)
void GetListOfChannels (unsigned int run, std::list< unsigned short > &chList)
 get the list of active logical channels in a given run
void GetListOfPulsers (unsigned int run, std::map< unsigned short, std::list< unsigned short > > &pulsers)
 get a map of pulser channels and corresponding list of logical channels
int NRun (const Cuore::QTime &time)
 run number from time of event


Function Documentation

std::vector< int > QDbDetector::ActiveBoloList ( int  run  ) 

list of only active bolometers in a given run (no thermometers)

Parameters:
run run number

std::vector< int > QDbDetector::ActiveChannelList ( const int  run  ) 

list of only active channels in a given run (no thermometers)

Parameters:
run run number

std::vector< double > QDbDetector::ADCRange ( int  run,
int  chan 
)

adc range for a given channel in a given run

Parameters:
run 
channel 
Returns:
vector[0] = min, vector[1] = max.

int QDbDetector::BoloFloor ( int  channel  ) 

return the position of the bolometer whose chennel nb is

Parameters:
channel MV FIXME need run number as input

int QDbDetector::BoloId ( const int  run,
const int  ch 
)

bolo_id from run_number and channel

Parameters:
run run number
ch channel

std::vector< int > QDbDetector::BoloList ( int  run  ) 

list of all bolometers in a given run (no thermometers)

Parameters:
run run number

std::vector< int > QDbDetector::BolometersOnFloor ( int  floor  ) 

return an array containing all the channel in

Parameters:
floor MV FIXME need run number as input

std::string QDbDetector::BoloName ( int  channel  ) 

return bolometer name

Parameters:
channel channel number MV FIXME need run number as input

int QDbDetector::Channel ( const int  run,
const int  boloId 
)

channel from run_number and bolo_id

Parameters:
run run_number
boloId bolo_id

std::map< int, int > QDbDetector::ChannelFloor ( int  run  ) 

return a map of (channel, floor)

Parameters:
run run number

std::multimap< int, int > QDbDetector::FloorChannel ( int  run  ) 

return a multimap (floor,channel)

Parameters:
run run number

std::vector< int > QDbDetector::FloorList ( int  run  ) 

list of all floors in a given run

Parameters:
run run number

std::map< unsigned short, unsigned short > QDbDetector::GetDaqCrates ( const int  run  ) 

get a map of logical channels and the DAQ crates they belong to

Parameters:
run run number
Returns:
map of logical channels (key) and corresponding daq crates (val)

DetectorName QDbDetector::GetDetectorName ( int  run  ) 

return DetectorName

Parameters:
run run number

void QDbDetector::GetListOfChannels ( unsigned int  run,
std::list< unsigned short > &  chList 
)

get the list of active logical channels in a given run

Parameters:
run run number
chList filled with list of active channels
This function only return logical channels associated to bolometers (those for which a daq_id is defined and corresponding daq_type is BOLOMETER).

void QDbDetector::GetListOfPulsers ( unsigned int  run,
std::map< unsigned short, std::list< unsigned short > > &  pulsers 
)

get a map of pulser channels and corresponding list of logical channels

Parameters:
run run number
pulsers map filled with pulser channels (key) and corresponding list of logical channels (value). The lists of logical channels are sorted in ascending order

std::vector< int > QDbDetector::GetMuonQDCChannels ( int   ) 

get the list of QDC daq channels

Parameters:
run 

std::vector< int > QDbDetector::GetMuonTDCChannels ( int   ) 

get the list of TDC daq channels

Parameters:
run 

RunType QDbDetector::GetRunType ( int  run  ) 

return run type

Parameters:
run run number

std::string QDbDetector::GetScintillatorNameFromQDCCh ( int  channel,
int  run 
)

get the name of the scintillator

Parameters:
qdc channel
run 

double QDbDetector::GetScintillatorThickness ( std::string  name,
int  run 
)

get the thickness of a scintillator (in cm) param scintillaotr name param run

int QDbDetector::GetThermometerChannel ( int  run  ) 

tower termometer channel

Parameters:
run 

bool QDbDetector::IsActiveBolo ( int  run,
int  id 
)

check if a channel is active

Parameters:
run run number, id bolometer id

int QDbDetector::NRun ( const Cuore::QTime &  time  ) 

run number from time of event

Parameters:
time QTime of event MV FIXME need run number as input

int QDbDetector::NRun ( time_t  time  ) 

run number from timestamp

Parameters:
time timestamp in msec from 1901 MV FIXME need run number as input

Cuore::QVector QDbDetector::Position ( int  channel  ) 

position of the chrystal (QVector with 3 components, x,y,z)

Parameters:
channel logical channel (1-1 correspondence with bolometers) MV FIXME need run number as input

int QDbDetector::ProfileId ( int  run  ) 

profile_id from run_number

Parameters:
run run number

double QDbDetector::SamplingFrequency ( int  run,
int  chan 
)

sampling frequency for a given channel in a given run

Parameters:
run 
channel 

std::vector< int > QDbDetector::ThermList ( int  run  ) 

list of thermistors (without crystals) read in a given run

Parameters:
run run number


Generated on Fri Mar 6 13:40:44 2009 for CUORE Software by  doxygen 1.5.1