EUDAQ
 All Classes Namespaces Files Functions Variables Pages
Classes | Typedefs | Enumerations | Functions
eudaq Namespace Reference

Classes

class  AidaFileReader
 
class  AidaFileWriter
 
class  AidaFileWriterFactory
 
class  RegisterAidaFileWriter
 
class  AidaIndexData
 
class  AidaPacket
 
class  EventPacket
 
class  PacketFactory
 
struct  RegisterPacketType
 
class  ATLASFEI4Interpreter
 
class  BufferSerializer
 
class  Clusters
 
class  CMSPixelHelper
 
class  CommandReceiver
 
class  Configuration
 
class  ConnectionState
 
class  Controller
 
class  DataCollector
 
class  DataConverterPlugin
 
class  DataSender
 
class  DEPFETBoard
 
class  DEPFETEvent
 
class  DetectorEvent
 
class  DummyProducer
 
class  EUDRBBoard
 
class  EUDRBEvent
 
class  Event
 
class  EventFactory
 
struct  RegisterEventType
 
class  SyncBase
 
class  ExampleHardware
 
class  Exception
 
class  LoggedException
 
class  FileNamer
 
class  FileReader
 
class  FileSerializer
 
class  FileDeserializer
 
class  FileWriter
 
class  FileWriterFactory
 
class  RegisterFileWriter
 
class  GuardedBase
 
class  Guarded
 
class  Guarded< void >
 
class  IndexReader
 
class  LogCollector
 
class  LogMessage
 
class  LogSender
 
class  MachineState
 
class  MetaData
 
class  MimosaConverterPlugin
 
class  Monitor
 
class  multiFileReader
 
class  Mutex
 
class  MutexLock
 
class  OptionException
 
class  MessageException
 
class  OptionParser
 
class  OptionBase
 
class  OptionFlag
 
class  Option
 
class  Option< std::vector< T > >
 
class  PluginManager
 
class  Producer
 
class  RawDataEvent
 
class  RunControl
 
class  Serializable
 
class  InterruptedException
 
class  Serializer
 
struct  WriteHelper
 
class  Deserializer
 
struct  ReadHelper
 
class  StandardPlane
 
class  StandardEvent
 
class  Status
 
class  StringEvent
 
class  Time
 
class  Timer
 
class  TLU2Packet
 
class  TLUEvent
 
class  ConnectionInfo
 
class  TransportEvent
 
class  TransportCallback
 
class  TransportBase
 
class  TransportClient
 
class  TransportFactory
 
class  NULLServer
 
class  NULLClient
 
class  TransportServer
 
class  ConnectionInfoTCP
 
class  TCPServer
 
class  TCPClient
 
struct  Holder
 
struct  hexdec_t
 
class  UCharAltroUSBVec
 
class  AltroUSBConverterPlugin
 
class  FormattedRecord
 
struct  CTELHit
 
class  APIXCTConverterPlugin
 
class  CaliceGenericConverterPlugin
 
class  CcpdlfADCConverterPlugin
 
class  CcpdlfConverterPlugin
 
class  CLICpixConverterPlugin
 
class  CMSPixelConverterPlugin
 
class  CMSPixelDUTConverterPlugin
 
class  CMSPixelQUADConverterPlugin
 
class  CMSPixelREFConverterPlugin
 
class  CMSPixelTRPConverterPlugin
 
class  DEPFETConverterBase
 
class  DEPFETConverterPlugin
 
class  LegacyDEPFETConverterPlugin
 
struct  SensorInfo
 
struct  BoardInfo
 
class  EUDRBConverterBase
 
class  EUDRBConverterPlugin
 
class  LegacyEUDRBConverterPlugin
 
class  ExampleConverterPlugin
 
class  ExplorerConverterPlugin
 
class  FORTISConverterPlugin
 
class  GenericConverterPlugin
 
class  Mupix2ConverterPlugin
 
class  Mupix3ConverterPlugin
 
class  Mupix4ConverterPlugin
 
class  MVDConverterPlugin
 
class  NIConverterPlugin
 
class  PALPIDEFSConverterPlugin
 
class  PALPIDESSConverterPlugin
 
class  PyBARConverterBase
 
class  PyBARConverterPlugin
 
class  SCTConverterPlugin_ITS_ABC
 
class  SCTConverterPlugin_ITS_TTC
 
class  SCTupgradeConverterPlugin
 
class  TAKIConverterPlugin
 
class  TestConverterPlugin
 
class  TimepixConverterPlugin
 
class  TLUConverterPlugin
 
class  USBpixConverterBase
 
class  USBPixConverterPlugin
 
class  USBPixI4ConverterBase
 
class  USBPixI4ConverterPlugin
 
class  USBPixFEI4AConverter
 
class  USBPixFEI4BConverter
 
class  USBPixCCPDConverter
 
class  AidaFileWriterNative
 
class  FileWriterTextdetector
 
class  FileWriterMimoloop
 
class  FileWriterNative
 
class  FileWriterNative2
 
class  FileWriterNull
 
class  FileWriterStandard
 
class  FileWriterText
 
class  FileWriterTextCompact
 

Typedefs

typedef pair< vector< unsigned
char >::iterator, unsigned int > 
datablock_t
 
using TriggerData_t = uint64_t
 

Enumerations

enum  TDataType {
  DT_IDLE, DT_NOP, DT_CHIPHEADER, DT_CHIPTRAILER,
  DT_REGHEADER, DT_DATASHORT, DT_DATALONG, DT_BUSYON,
  DT_BUSYOFF, DT_COMMA, DT_EMPTYFRAME, DT_UNKNOWN
}
 
enum  { FileNumberIndex = 0, OffsetInFileIndex, DataLength }
 

Functions

DLLEXPORT std::ostream & operator<< (std::ostream &, const AidaPacket &)
 
std::ostream & operator<< (std::ostream &os, const Configuration &c)
 
std::ostream & operator<< (std::ostream &os, const ConnectionState &s)
 
int compareTLU2DUT (unsigned TLU_Trigger_Number, unsigned DUT_Trigger_number)
 
template<typename T >
int compareTLU2DUT (T TLU_Trigger_Number, T DUT_Trigger_number)
 
template<typename T >
int hasTimeOVerlaping (T eventBegin, T EventEnd, T TLUStart, T TLUEnd)
 
std::ostream & operator<< (std::ostream &os, const DEPFETBoard &fr)
 
std::ostream & operator<< (std::ostream &os, const EUDRBBoard &fr)
 
DLLEXPORT std::ostream & operator<< (std::ostream &, const Event &)
 
template<typename T >
const T & InitException (const T &e, const std::string &file, int line=0, const std::string func="")
 
 EUDAQ_EXCEPTION (FileNotFoundException)
 
 EUDAQ_EXCEPTION (FileExistsException)
 
 EUDAQ_EXCEPTION (FileNotWritableException)
 
 EUDAQ_EXCEPTION (FileReadException)
 
 EUDAQ_EXCEPTION (FileWriteException)
 
 EUDAQ_EXCEPTION (FileFormatException)
 
 EUDAQ_EXCEPTION (SyncException)
 
 EUDAQ_EXCEPTION (CommunicationException)
 
 EUDAQ_EXCEPTIONX (BusError, CommunicationException)
 
DLLEXPORT LogSenderGetLogger ()
 
std::ostream & operator<< (std::ostream &os, const LogMessage &ev)
 
std::vector< unsigned > DLLEXPORT parsenumbers (const std::string &s)
 
std::ostream & operator<< (std::ostream &os, const StandardPlane &pl)
 
std::ostream & operator<< (std::ostream &os, const StandardEvent &ev)
 
std::ostream & operator<< (std::ostream &os, const Status &s)
 
Time operator+ (const timeval &lhs, const timeval rhs)
 
Time operator- (const timeval &lhs, const timeval rhs)
 
bool operator== (const timeval &lhs, const timeval rhs)
 
std::ostream & operator<< (std::ostream &os, const timeval &tv)
 
std::ostream & operator<< (std::ostream &os, const ConnectionInfo &id)
 
std::string DLLEXPORT ucase (const std::string &)
 
std::string DLLEXPORT lcase (const std::string &)
 
std::string DLLEXPORT trim (const std::string &s)
 
std::string DLLEXPORT firstline (const std::string &s)
 
std::string DLLEXPORT escape (const std::string &)
 
std::vector< std::string >
DLLEXPORT 
split (const std::string &str, const std::string &delim="\t")
 
std::vector< std::string >
DLLEXPORT 
split (const std::string &str, const std::string &delim, bool dotrim)
 
void DLLEXPORT bool2uchar (const bool *inBegin, const bool *inEnd, std::vector< unsigned char > &out)
 
void DLLEXPORT uchar2bool (const unsigned char *inBegin, const unsigned char *inEnd, std::vector< bool > &out)
 
void DLLEXPORT mSleep (unsigned ms)
 
template<typename T >
std::string to_string (const T &x, int digits=0)
 
template<typename T >
std::string to_string (const std::vector< T > &x, const std::string &sep, int digits=0)
 
template<typename T >
std::string to_string (const std::vector< T > &x, int digits=0)
 
std::string to_string (const std::string &x, int=0)
 
std::string to_string (const char *x, int=0)
 
template<typename T >
std::string to_hex (const T &x, int digits=0)
 
template<>
std::string to_hex (const unsigned char &x, int digits)
 
template<>
std::string to_hex (const signed char &x, int digits)
 
template<>
std::string to_hex (const char &x, int digits)
 
template<typename T >
T DLLEXPORT from_string (const std::string &x, const T &def=0)
 
template<>
std::string DLLEXPORT from_string (const std::string &x, const std::string &def)
 
template<>
int64_t DLLEXPORT from_string (const std::string &x, const int64_t &def)
 
template<>
uint64_t DLLEXPORT from_string (const std::string &x, const uint64_t &def)
 
template<>
int32_t DLLEXPORT from_string (const std::string &x, const int32_t &def)
 
template<>
uint32_t from_string (const std::string &x, const uint32_t &def)
 
template<typename T >
hexdec_t< T > hexdec (T val, unsigned hexdigits=hexdec_t< T >::DIGITS)
 
template<typename T >
std::ostream & operator<< (std::ostream &os, const hexdec_t< T > &h)
 
template<>
std::ostream & operator<< (std::ostream &os, const hexdec_t< unsigned char > &h)
 
template<>
std::ostream & operator<< (std::ostream &os, const hexdec_t< signed char > &h)
 
template<>
std::ostream & operator<< (std::ostream &os, const hexdec_t< char > &h)
 
template<typename T >
unsigned char * uchar_cast (T *x)
 
template<typename T >
unsigned char * uchar_cast (std::vector< T > &x)
 
template<typename T >
const unsigned char * constuchar_cast (const T *x)
 
template<typename T >
const unsigned char * constuchar_cast (const std::vector< T > &x)
 
template<typename T >
getbigendian (const unsigned char *ptr)
 
template<typename T >
getlittleendian (const unsigned char *ptr)
 
template<typename T >
void setbigendian (unsigned char *ptr, const T &val)
 
template<typename T >
void setlittleendian (unsigned char *ptr, const T &val)
 
std::string DLLEXPORT ReadLineFromFile (const std::string &fname)
 
template<typename T >
ReadFromFile (const std::string &fname, const T &def=0)
 
void DLLEXPORT WriteStringToFile (const std::string &fname, const std::string &val)
 
template<typename T >
void WriteToFile (const std::string &fname, const T &val)
 
void map_1x1 (unsigned &x, unsigned &y, unsigned c, unsigned r, unsigned, unsigned, unsigned)
 
void map_4x1 (unsigned &x, unsigned &y, unsigned c, unsigned r, unsigned m, unsigned nc, unsigned)
 
void map_2x2 (unsigned &x, unsigned &y, unsigned c, unsigned r, unsigned m, unsigned nc, unsigned nr)
 
template<typename T >
unpack_fh (vector< unsigned char >::iterator &src, T &data)
 
template<typename T >
unpack_fn (vector< unsigned char >::iterator &src, T &data)
 
template<typename T >
unpack_b (vector< unsigned char >::iterator &src, T &data, unsigned int nb)
 
void puschDataInStandartPlane (const std::vector< unsigned char > &inputVector, int moduleNr, StandardPlane &plane)
 
void pushHeaderInStundartplane (const std::vector< unsigned char > &inputVector, StandardPlane &plane)
 
int GetTriggerCounter (const eudaq::RawDataEvent &ev)
 
void processImputVector (const std::vector< unsigned char > &inputVector, StandardPlane &plane)
 
 EUDAQ_DEFINE_PACKET (EventPacket, str2type("-EVWRAP-"))
 
 EUDAQ_DEFINE_EVENT (DEPFETEvent, str2id("_DEP"))
 
 EUDAQ_DEFINE_EVENT (DetectorEvent, str2id("_DET"))
 
 EUDAQ_DEFINE_EVENT (EUDRBEvent, str2id("_DRB"))
 
std::ostream & operator<< (std::ostream &os, const OptionBase &opt)
 
 EUDAQ_DEFINE_EVENT (RawDataEvent, str2id("_RAW"))
 
 EUDAQ_DEFINE_EVENT (StandardEvent, str2id("_STD"))
 
 EUDAQ_DEFINE_EVENT (StringEvent, str2id("_STR"))
 
 EUDAQ_DEFINE_PACKET (TLU2Packet, str2type("-TLU2-"))
 
 EUDAQ_DEFINE_EVENT (TLUEvent, str2id("_TLU"))
 
template<>
int64_t from_string (const std::string &x, const int64_t &def)
 
template<>
uint64_t from_string (const std::string &x, const uint64_t &def)
 

Detailed Description

The main EUDAQ namespace. All of the EUDAQ components should be inside this namespace.

definitions and helper functions for the different mupix chips

Author
Moritz Kiehn kiehn.nosp@m.@phy.nosp@m.si.un.nosp@m.i-he.nosp@m.idelb.nosp@m.erg..nosp@m.de
Date
2013-10-08

Function Documentation

template<typename T >
T DLLEXPORT eudaq::from_string ( const std::string &  x,
const T &  def = 0 
)
inline

Converts a string to any type.

Parameters
xThe string to be converted.
defThe default value to be used in case of an invalid string, this can also be useful to select the correct template type without having to specify it explicitly.
Returns
An object of type T with the value represented in x, or if that is not valid then the value of def.
void eudaq::mSleep ( unsigned  ms)

Sleep for a specified number of milliseconds.

Parameters
msThe number of milliseconds
template<typename T >
std::string eudaq::to_hex ( const T &  x,
int  digits = 0 
)
inline

Converts any type that has an ostream streamer to a string in hexadecimal.

Parameters
xThe value to be converted.
digitsThe minimum number of digits, shorter numbers are padded with zeroes.
Returns
A string representing the passed in parameter in hex.
template<typename T >
std::string eudaq::to_string ( const T &  x,
int  digits = 0 
)
inline

Converts any type to a string. There must be a compatible streamer defined, which this function will make use of.

Parameters
xThe value to be converted.
Returns
A string representing the passed in parameter.
std::string eudaq::trim ( const std::string &  s)

Trims the leading and trainling white space from a string