| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

DayaBay Namespace Reference

Electronics Conventions. More...


Classes

class  CalibSourceId
class  Detector
 Uniquely identify a Detector (ADx, OWS, IWS, RPC). More...
class  DetectorSensor
 Uniquely identify a Sensor in a Detector (ADx/OWS/IWS PMT, RPC pad). More...
class  AdPmtSensor
 Uniquely identify a PMT in an AD. More...
class  PoolPmtSensor
 Uniquely identify a PMT in the water Pool. More...
class  RpcSensor
 Uniquely identify an RPC strip in the RPC detector. More...
class  ElecChannelId
 Uniquely identify an electronics channel/board in the DAQ simulation/output. More...
class  FeeChannelId
 Uniquely identify a front-end electronics channel in DAQ simulation and output. More...
class  FadcChannelId
 Uniquely identify a fadc channel in DAQ simulation and output. More...
class  FecChannelId
 Uniquely identify a RPC electronics channel in DAQ simulation and output. More...
class  HardwareId
class  PmtHardwareId
class  RpcHardwareId
class  FeeHardwareId
class  FecHardwareId
class  JobId
 Uniquely identify an execution of a NuWa job. More...

Namespaces

namespace  Calibration
 Definitions for Calibration systems.
namespace  FeeGain
namespace  Threshold
namespace  ESumComp
namespace  Hardware
namespace  RunType
namespace  Trigger

Typedefs

typedef std::vector< int > DigitalSignal
typedef std::vector< double > AnalogSignal

Functions

std::ostream & operator<< (std::ostream &str, const DayaBay::CalibSourceId &sourceId)
std::ostream & operator<< (std::ostream &str, const DayaBay::Detector &det)
bool operator< (const DayaBay::Detector &a, const DayaBay::Detector &b)
std::ostream & operator<< (std::ostream &str, const DayaBay::DetectorSensor &detsens)
std::ostream & operator<< (std::ostream &str, const DayaBay::AdPmtSensor &adsens)
std::ostream & operator<< (std::ostream &str, const DayaBay::PoolPmtSensor &poolsens)
std::ostream & operator<< (std::ostream &str, const DayaBay::RpcSensor &rpcsens)
std::ostream & operator<< (std::ostream &str, const DayaBay::ElecChannelId &elecChannelId)
bool operator< (const DayaBay::HardwareId &a, const DayaBay::HardwareId &b)
std::ostream & operator<< (std::ostream &str, const DayaBay::HardwareId &hardwareId)
std::ostream & operator<< (std::ostream &str, const DayaBay::PmtHardwareId &pmtHrdwId)
std::ostream & operator<< (std::ostream &str, const DayaBay::RpcHardwareId &rpcHrdwId)
std::ostream & operator<< (std::ostream &str, const DayaBay::FeeHardwareId &feeHrdwId)
std::ostream & operator<< (std::ostream &str, const DayaBay::FecHardwareId &fecHrdwId)

Variables

const int BaseFrequencyHz = int(40 * 1e6)
 Basic definitions for the electronics simulation.
const int TdcCycles = 16
const int AdcCycles = 1
const int EsumCycles = 4
const int NhitCycles = 2
const int TdcFrequencyHz = BaseFrequencyHz * TdcCycles
const int AdcFrequencyHz = BaseFrequencyHz * AdcCycles
const int EsumFrequencyHz = BaseFrequencyHz * EsumCycles
const int NhitFrequencyHz = BaseFrequencyHz * NhitCycles
const int FadcFrequencyHz = int(1 * 1e9)
const double preTimeTolerance = 300.0*CLHEP::nanosecond
const double postTimeTolerance = 10.0*CLHEP::microsecond
const int TriggerWindowCycles = 8

Detailed Description

Electronics Conventions.

Default Definitions for Trigger Simulation


Typedef Documentation

typedef std::vector<int> DayaBay::DigitalSignal

Definition at line 21 of file Electronics.h.

typedef std::vector<double> DayaBay::AnalogSignal

Definition at line 22 of file Electronics.h.


Function Documentation

std::ostream & DayaBay::operator<< ( std::ostream &  str,
const DayaBay::CalibSourceId sourceId 
)

Definition at line 177 of file Calibration.cc.

00179 {
00180   return str << sourceId.name();
00181 }

std::ostream & DayaBay::operator<< ( std::ostream &  str,
const DayaBay::Detector det 
)

Definition at line 134 of file Detectors.cc.

00135 {
00136     str << Site::AsString(det.site())
00137         << DetectorId::AsString(det.detectorId());
00138     if (det.bogus()) str << " IS BOGUS";
00139     return str;
00140 }

bool DayaBay::operator< ( const DayaBay::Detector a,
const DayaBay::Detector b 
)

Definition at line 142 of file Detectors.cc.

00143 {
00144     return a.fullPackedData() < b.fullPackedData();
00145 }

std::ostream & DayaBay::operator<< ( std::ostream &  str,
const DayaBay::DetectorSensor detsens 
)

Definition at line 162 of file Detectors.cc.

00163 {
00164     str << Site::AsString(detsens.site())
00165         << DetectorId::AsString(detsens.detectorId())
00166         << " 0x"<< std::hex << detsens.sensorId() << std::dec;
00167     if (detsens.bogus()) str << " IS BOGUS";
00168     return str;
00169 }

std::ostream & DayaBay::operator<< ( std::ostream &  str,
const DayaBay::AdPmtSensor adsens 
)

Definition at line 203 of file Detectors.cc.

00204 {
00205     str << Site::AsString(adsens.site())
00206         << DetectorId::AsString(adsens.detectorId())
00207         << "("<<adsens.column()<<","<<adsens.ring()<<")";
00208     if (adsens.bogus()) str << " IS BOGUS";
00209     return str;
00210 }

std::ostream & DayaBay::operator<< ( std::ostream &  str,
const DayaBay::PoolPmtSensor poolsens 
)

Definition at line 256 of file Detectors.cc.

00257 {
00258     str << Site::AsString(poolsens.site())
00259         << DetectorId::AsString(poolsens.detectorId())
00260         << "("
00261         <<poolsens.wallNumber()<<","
00262         <<poolsens.wallSpot()<<","
00263         <<poolsens.inwardFacing() << ")";
00264     if (poolsens.bogus()) str << " IS BOGUS";
00265     return str;
00266 }

std::ostream & DayaBay::operator<< ( std::ostream &  str,
const DayaBay::RpcSensor rpcsens 
)

Definition at line 313 of file Detectors.cc.

00315 {
00316     str << Site::AsString(rpcsens.site())
00317         << DetectorId::AsString(rpcsens.detectorId())
00318         << "("
00319         <<rpcsens.panelRow()<<","
00320         <<rpcsens.panelColumn()<<","
00321         <<rpcsens.layer()<<","
00322         <<rpcsens.strip()<< ")";
00323     if (rpcsens.bogus()) str << " IS BOGUS";
00324     return str;
00325 }

std::ostream & DayaBay::operator<< ( std::ostream &  str,
const DayaBay::ElecChannelId elecChannelId 
)

Definition at line 76 of file Electronics.cc.

00078 {
00079     return str << Site::AsString(elecChannelId.site())
00080                << DetectorId::AsString(elecChannelId.detectorId())
00081                << "("<<elecChannelId.board()
00082                <<","<<elecChannelId.connector()<<")";
00083 }

bool DayaBay::operator< ( const DayaBay::HardwareId a,
const DayaBay::HardwareId b 
)

Definition at line 43 of file Hardware.cc.

00045 {
00046     return a.fullPackedData() < b.fullPackedData();
00047 }

std::ostream & DayaBay::operator<< ( std::ostream &  str,
const DayaBay::HardwareId hardwareId 
)

Definition at line 49 of file Hardware.cc.

00051 {
00052   return str << DayaBay::Hardware::AsString(hardwareId.type())
00053              << " " << hardwareId.id();
00054 }

std::ostream & DayaBay::operator<< ( std::ostream &  str,
const DayaBay::PmtHardwareId pmtHrdwId 
)

Definition at line 56 of file Hardware.cc.

00058 {
00059   return str << DayaBay::Hardware::AsString(pmtHrdwId.type())
00060              << " " << pmtHrdwId.id();
00061 }

std::ostream & DayaBay::operator<< ( std::ostream &  str,
const DayaBay::RpcHardwareId rpcHrdwId 
)

Definition at line 63 of file Hardware.cc.

00065 {
00066   return str << DayaBay::Hardware::AsString(rpcHrdwId.type())
00067              << " panel: " << rpcHrdwId.panelId()
00068              << " layer: " << rpcHrdwId.layer()
00069              << " strip: " << rpcHrdwId.strip();
00070 }

std::ostream & DayaBay::operator<< ( std::ostream &  str,
const DayaBay::FeeHardwareId feeHrdwId 
)

Definition at line 72 of file Hardware.cc.

00074 {
00075   return str << DayaBay::Hardware::AsString(feeHrdwId.type())
00076              << " board: " << feeHrdwId.boardId()
00077              << " connector: " << feeHrdwId.connector();
00078 }

std::ostream & DayaBay::operator<< ( std::ostream &  str,
const DayaBay::FecHardwareId fecHrdwId 
)

Definition at line 80 of file Hardware.cc.

00082 {
00083   return str << DayaBay::Hardware::AsString(fecHrdwId.type())
00084              << " board: " << fecHrdwId.boardId()
00085              << " connector: " << fecHrdwId.connector();
00086 }


Variable Documentation

const int DayaBay::BaseFrequencyHz = int(40 * 1e6)

Basic definitions for the electronics simulation.

Caution: frequencies are expressed in Hz explicitly and do not follow the standard system of units!

Definition at line 153 of file Electronics.h.

const int DayaBay::TdcCycles = 16

Definition at line 155 of file Electronics.h.

const int DayaBay::AdcCycles = 1

Definition at line 156 of file Electronics.h.

const int DayaBay::EsumCycles = 4

Definition at line 157 of file Electronics.h.

const int DayaBay::NhitCycles = 2

Definition at line 158 of file Electronics.h.

const int DayaBay::TdcFrequencyHz = BaseFrequencyHz * TdcCycles

Definition at line 160 of file Electronics.h.

const int DayaBay::AdcFrequencyHz = BaseFrequencyHz * AdcCycles

Definition at line 161 of file Electronics.h.

const int DayaBay::EsumFrequencyHz = BaseFrequencyHz * EsumCycles

Definition at line 162 of file Electronics.h.

const int DayaBay::NhitFrequencyHz = BaseFrequencyHz * NhitCycles

Definition at line 163 of file Electronics.h.

const int DayaBay::FadcFrequencyHz = int(1 * 1e9)

Definition at line 165 of file Electronics.h.

const double DayaBay::preTimeTolerance = 300.0*CLHEP::nanosecond

Definition at line 171 of file Electronics.h.

const double DayaBay::postTimeTolerance = 10.0*CLHEP::microsecond

Definition at line 172 of file Electronics.h.

const int DayaBay::TriggerWindowCycles = 8

Definition at line 175 of file Electronics.h.

| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:14:48 2011 for Conventions by doxygen 1.4.7