AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MCHOCCda.cxx File Reference
#include "AliDAQ.h"
#include "AliMUON2DMap.h"
#include "AliMUONCalibParamNI.h"
#include "AliMUONRawStreamTrackerHP.h"
#include "AliMpConstants.h"
#include "AliRawEventHeaderBase.h"
#include "AliRawReaderDate.h"
#include "Riostream.h"
#include "TPluginManager.h"
#include "TROOT.h"
#include "TString.h"
#include "TTimeStamp.h"
#include "TStopwatch.h"
#include "daqDA.h"
#include "event.h"
#include "monitor.h"
#include "signal.h"
Include dependency graph for MCHOCCda.cxx:

Go to the source code of this file.


void Add (AliMUONVStore &destStore, const AliMUONVStore &srcStore)
void GenerateOutputFile (const AliMUONVStore &store, ostream &out, Int_t runNumber, Int_t nevents, Int_t numberOfEventsWithMCH)
int main (int argc, char **argv)


const char * OUTPUT_FILE = "mch.occupancy"
const char * DAVERSION = "MUONTRKOCCda v1.61 ($Id$)"

Function Documentation

void Add ( AliMUONVStore destStore,
const AliMUONVStore srcStore 

Add all elements from srcStore to destStore Each element of srcStore is supposed to be an AliMUONCalibParamNI, with ID0=busPatchId and ID1=manuId

Definition at line 68 of file MCHOCCda.cxx.

Referenced by AliMFTAnalysisTools::CalculatePCA(), main(), AliMpTriggerReader::ReadSlat(), and testMerge().

void GenerateOutputFile ( const AliMUONVStore store,
ostream &  out,
Int_t  runNumber,
Int_t  nevents,
Int_t  numberOfEventsWithMCH 

Write the channel hit count (grouped by manu) in the output file.

Definition at line 99 of file MCHOCCda.cxx.

Referenced by main().

int main ( int  argc,
char **  argv 

Main method.

We loop over all physics events. For each event we store the channels that were hit for that event. If the event is good, we then increment the list of channels hit for the whole run. We delete the store for a single event and move to next event.

In the end we output an ASCII file with the necessary information to compute the occupancy later on, i.e. the number of times channels were seen per manu, and the number of events.

Definition at line 145 of file MCHOCCda.cxx.

Variable Documentation

const char* DAVERSION = "MUONTRKOCCda v1.61 ($Id$)"

Definition at line 65 of file MCHOCCda.cxx.

Referenced by main().

const char* OUTPUT_FILE = "mch.occupancy"

MUON TRACKER DA to compute the hit count at manu level.

In the end, this DA produces an ASCII file containing the hit count of all the manus (that were seen in the data flow) of the MUON Tracker (and the number of seen events, so we can later on compute the occupancy)


Definition at line 64 of file MCHOCCda.cxx.

Referenced by main().