AliRoot Core  3dc7879 (3dc7879)
MTRda.cxx File Reference
#include <daqDA.h>
#include "event.h"
#include "monitor.h"
#include <Riostream.h>
#include <stdio.h>
#include "AliRawReaderDate.h"
#include "AliMpConstants.h"
#include "AliMUONRawStreamTrigger.h"
#include "AliMUONRawStreamTriggerHP.h"
#include "AliMUONDarcHeader.h"
#include "AliMUONRegHeader.h"
#include "AliMUONDDLTrigger.h"
#include "AliMUONVStore.h"
#include "AliMUON1DArray.h"
#include "AliMUONTriggerIO.h"
#include "AliMUONRegionalTriggerConfig.h"
#include "AliMUONGlobalCrateConfig.h"
#include "AliMUONVCalibParam.h"
#include "AliMUONCalibParamND.h"
#include "AliMUONCalibParamNI.h"
#include "AliMUONLocalStruct.h"
#include "TString.h"
#include "TSystem.h"
#include "TStopwatch.h"
#include "TROOT.h"
#include "TPluginManager.h"
#include "TArrayS.h"
Include dependency graph for MTRda.cxx:

Go to the source code of this file.

Classes

class  AliDAConfig
 class for DA run parameters and DA working space More...
 

Functions

static const TString fileExp ("ExportedFiles.dat")
 
Bool_t ReadDAConfig (AliDAConfig &cfg)
 
void WriteLastCurrentFile (AliDAConfig &cfg, TString currentFile)
 
Bool_t ReadCurrentFile (AliDAConfig &cfg, TString currentFile, Bool_t lastCurrentFlag=kFALSE)
 
void ReadFileNames (AliDAConfig &cfg)
 
Bool_t ExportFiles (AliDAConfig &cfg)
 
Bool_t ExportTRIGSCAL (AliDAConfig &cfg)
 
Bool_t ImportFiles (AliDAConfig &cfg)
 
void ReadMaskFiles (AliDAConfig &cfg)
 
UInt_t GetFetMode (const AliDAConfig &cfg)
 
void StoreGlobalInput (AliDAConfig &cfg, const UInt_t *const globalInput)
 
void UpdateGlobalMasks (AliDAConfig &cfg)
 
void UpdateLocalMask (AliDAConfig &cfg, Int_t localBoardId, Int_t connector, Int_t strip)
 
void MakePattern (AliDAConfig &cfg, Int_t localBoardId, const TArrayS &xPattern, const TArrayS &yPattern)
 
void MakePatternStore (AliDAConfig &cfg)
 
int main (Int_t argc, Char_t **argv)
 

Function Documentation

Bool_t ExportFiles ( AliDAConfig cfg)

Export files to FES

Definition at line 723 of file MTRda.cxx.

Referenced by main().

Bool_t ExportTRIGSCAL ( AliDAConfig cfg)

Export trigger scalers file to FES with global and regional configuration too

Definition at line 837 of file MTRda.cxx.

Referenced by main().

static const TString fileExp ( "ExportedFiles.dat"  )
static

Referenced by ExportFiles(), ExportTRIGSCAL(), and main().

UInt_t GetFetMode ( const AliDAConfig cfg)

FET mode = 3 to run algorithm for dead global inputs 0x3 prepulse 0x0 internal

Definition at line 974 of file MTRda.cxx.

Referenced by main().

Bool_t ImportFiles ( AliDAConfig cfg)

copy locally a file from daq detector config db The current detector is identified by detector code in variable DATE_DETECTOR_CODE. It must be defined. If environment variable DAQDA_TEST_DIR is defined, files are copied from DAQDA_TEST_DIR instead of the database. The usual environment variables are not needed.

Definition at line 897 of file MTRda.cxx.

Referenced by main().

int main ( Int_t  argc,
Char_t **  argv 
)

main routine

Definition at line 1340 of file MTRda.cxx.

void MakePattern ( AliDAConfig cfg,
Int_t  localBoardId,
const TArrayS &  xPattern,
const TArrayS &  yPattern 
)

calculate the hit map for each strip in x and y direction

Definition at line 1147 of file MTRda.cxx.

Referenced by main().

void MakePatternStore ( AliDAConfig cfg)

analyse patterns for local strips (calculate occupancy)

Definition at line 1189 of file MTRda.cxx.

Referenced by main().

Bool_t ReadCurrentFile ( AliDAConfig cfg,
TString  currentFile,
Bool_t  lastCurrentFlag = kFALSE 
)

read last current file name and version

Definition at line 597 of file MTRda.cxx.

Referenced by ReadFileNames().

Bool_t ReadDAConfig ( AliDAConfig cfg)

read run parameters for the DA

Definition at line 476 of file MTRda.cxx.

Referenced by ImportFiles().

void ReadFileNames ( AliDAConfig cfg)

if last current file does not exist than read current file

Definition at line 708 of file MTRda.cxx.

Referenced by ImportFiles().

void ReadMaskFiles ( AliDAConfig cfg)

read mask files

Definition at line 962 of file MTRda.cxx.

Referenced by main().

void StoreGlobalInput ( AliDAConfig cfg,
const UInt_t *const  globalInput 
)

accumulate and build statistics of global input values

Definition at line 985 of file MTRda.cxx.

Referenced by main().

void UpdateGlobalMasks ( AliDAConfig cfg)

update the global masks

Definition at line 1002 of file MTRda.cxx.

Referenced by main().

void UpdateLocalMask ( AliDAConfig cfg,
Int_t  localBoardId,
Int_t  connector,
Int_t  strip 
)

update local strip mask

Definition at line 1130 of file MTRda.cxx.

Referenced by MakePatternStore().

void WriteLastCurrentFile ( AliDAConfig cfg,
TString  currentFile 
)

write last current file

Definition at line 576 of file MTRda.cxx.

Referenced by ExportFiles(), MakePatternStore(), and UpdateGlobalMasks().