TrigConf::PrescaleSet Class Reference

Inheritance diagram for TrigConf::PrescaleSet:
TrigConf::L1DataBaseclass TrigConf::TrigConfData

List of all members.

Public Member Functions

bool isNull () const
bool newPrescaleStyle () const
const std::string & type () const
unsigned int partition () const
const std::vector< int > & prescales () const __attribute__((deprecated))
const std::vector< int64_t > & prescales_ctp () const
const std::vector< float > & prescales_float () const
const std::vector< int32_t > & cuts () const
void setNewPrescaleStyle (bool newstyle=true)
void setType (const std::string &type)
void setPartition (unsigned int partition)
void resize (size_t size)
void setPrescales (const std::vector< int64_t > &) __attribute__((deprecated))
void setPrescales (const int64_t p[], unsigned int size) __attribute__((deprecated))
void setPrescales (const int p[], unsigned int size) __attribute__((deprecated))
void setPrescale (unsigned int num, int64_t prescaleValue) __attribute__((deprecated))
void setPrescale (unsigned int num, int prescaleValue) __attribute__((deprecated))
void setPrescale (unsigned int num, float prescaleValue)
void setCuts (const std::vector< int32_t > &cuts)
void setCut (unsigned int num, int32_t cut)
void reset ()
virtual void print (const std::string &indent="", unsigned int detail=1) const
void writeXML (std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const

Static Public Member Functions

static int32_t getCutFromPrescale (double prescale)
 calculate cut value for hardware configuration cut = 2*24/prescale - 1
static double getPrescaleFromCut (int32_t cut)

Static Public Attributes

static const int32_t maxPrescaleCut = 0xFFFFFF

Member Function Documentation

int32_t PrescaleSet::getCutFromPrescale ( double  prescale  )  [static]

calculate cut value for hardware configuration cut = 2*24/prescale - 1

prescale = 1 --> C = 2*24-1 prescale = 2 --> C = 2*23-1 prescale = 10 --> C = 1677720 prescale = 1024 --> C = 2*14-1 prescale = 50 --> C = 335543 prescale = 500 --> C = 33553 prescale = 5000 --> C = 3354 prescale = 50000 --> C = 334

double PrescaleSet::getPrescaleFromCut ( int32_t  cut  )  [static]

prescale = 2*24/(cut+1.)

cut = 2*24-1 --> prescale = 1 cut = 2*23-1 --> prescale = 2 cut = 1677720 --> prescale = 10.000002980233305 cut = 2*14-1 --> prescale = 1024 cut = 335543 --> prescale = 50.0000447035 cut = 33553 --> prescale = 500.006407582 cut = 3354 --> prescale = 5000.66020864 cut = 334 --> prescale = 50081.238806

void TrigConf::PrescaleSet::setPrescale ( unsigned int  num,
int  prescaleValue 
)

Cast int prescaleValue to int64 and call setPrescale(int, int64).

void TrigConf::PrescaleSet::setPrescale ( unsigned int  num,
int64_t  prescaleValue 
)

Set the prescale NUM from the int64 value prescaleValue.

DEPRECATED

void TrigConf::PrescaleSet::setPrescales ( const int  p[],
unsigned int  size 
)

Sets the prescales from a vector of int32.

DEPRECATED

void TrigConf::PrescaleSet::setPrescales ( const int64_t  p[],
unsigned int  size 
)

DEPRECATED

void TrigConf::PrescaleSet::setPrescales ( const std::vector< int64_t > &  prescales  ) 

DEPRECATED

void TrigConf::PrescaleSet::writeXML ( std::ostream &  xmlfile,
int  indentLevel = 0,
int  indentWidth = 2 
) const

Writes the Prescale item to the XML file.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 1 Dec 2017 for RootCore Packages by  doxygen 1.6.1