StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
L2VirtualAlgo2012 Class Reference
Inheritance diagram for L2VirtualAlgo2012:
L2bemcGamma2012 L2btowCalAlgo12 L2eemcGamma2012 L2etowCalAlgo12 L2hienAlgo12 L2jetAlgo2012 L2pedAlgo12 L2Upsilon2012 L2wBemc2012 L2wEemc2012

Public Types

enum  EmcSwitch { kIsBad =0, kIsBtow, kIsEtow, kIsB_Etow }
 

Public Member Functions

 L2VirtualAlgo2012 (const char *name, const char *uid, L2EmcDb2012 *db, char *outDir, bool needsbarrel, bool needsendcap, int resOff)
 
void setOflTrigID (int x)
 
int getOflTrigID ()
 
bool isAccepted ()
 
const char * getName ()
 
int initRun (int runNo, int *rc_ints, float *rc_floats)
 
void compute (int token)
 
bool decision (int token, bool barrel_is_in, bool endcap_is_in, int *myL2Result)
 
void finishRun ()
 
bool checkDsmMask (unsigned short *lastDSM)
 
int readDsmMask (const char *fileN)
 
virtual int initRunUser (int runNo, int *rc_ints, float *rc_floats)
 
virtual void computeUser (int token)
 
virtual bool decisionUser (int token, int *myL2Result)
 
virtual void finishRunUser ()
 
void printCalibratedData (int token)
 
void criticalError (const char *message)
 

Static Public Member Functions

static int readParams (const char *fileN, int mxPar, int *iPar, float *fPar)
 

Protected Types

enum  { kMaximumNumberOfDsmMasks =4 }
 
enum  { par_cpuTicksPerSecond =1600000000 }
 

Protected Member Functions

void setMaxHist (int k)
 
int finishCommonHistos ()
 
void computeStart ()
 
void computeStop (int token)
 
unsigned short swap_bytes (unsigned short in)
 

Protected Attributes

bool algoIsOkay
 
bool useDsmMask
 
int nmasks
 
unsigned short DsmMask [kMaximumNumberOfDsmMasks][8]
 
EmcSwitch mSwitch
 
std::string mOutDir1
 
std::string mName1
 
std::string muid
 
L2EmcDb2012mDb
 
FILE * mLogFile
 
FILE * mHistFile
 
L2HistomhN
 
L2HistomhTc
 
L2HistomhTd
 
L2HistomhTcd
 
L2HistomhRc
 
L2HistomhRd
 
L2HistomhRa
 
int oflTrigId
 
bool mAccept
 
bool mRandomAccept
 
int mEventsInRun
 
int mSecondsInRun
 
int mRunNumber
 
int mResultOffset
 
int mRndAcceptCounter
 
int par_RndAcceptPrescale
 
bool mNeeds_barrel
 
bool mNeeds_endcap
 
const L2BtowCalibData12mEveStream_btow
 
const L2EtowCalibData12mEveStream_etow
 
unsigned long mComputeTimeStart
 
unsigned long mComputeTimeStop
 
unsigned long mComputeTimeDiff [L2eventStream2012::mxToken]
 
unsigned long mDecisionTimeStart
 
unsigned long mDecisionTimeStop
 
unsigned long mDecisionTimeDiff
 
unsigned long long mRunStartTicks
 
L2Histo ** hA
 
int mxHA
 

Detailed Description

Definition at line 27 of file L2VirtualAlgo2012.h.


The documentation for this class was generated from the following files: