AliRoot Core  ee782a0 (ee782a0)
MUONCheckDI.C File Reference

Macro for checking AliMUONDataInterface and AliMUONMCDataInterface. More...

#include "AliMUONHit.h"
#include "AliMUONVDigit.h"
#include "AliMUONVCluster.h"
#include "AliMUONLocalTrigger.h"
#include "AliMUONRegionalTrigger.h"
#include "AliMUONGlobalTrigger.h"
#include "AliMUONMCDataInterface.h"
#include "AliMUONDataInterface.h"
#include "AliMUONVHitStore.h"
#include "AliMUONVDigitStore.h"
#include "AliMUONVClusterStore.h"
#include "AliMUONVTriggerStore.h"
#include "AliMpConstants.h"
#include "AliMpDEManager.h"
#include "AliCDBManager.h"
#include <Rtypes.h>
#include <Riostream.h>
#include <TObjArray.h>
#include <TIterator.h>
#include <TMatrixD.h>
#include <cstdlib>
Include dependency graph for MUONCheckDI.C:

Go to the source code of this file.

Functions

Int_t Compare (const TObject *a, const TObject *b)
 
bool SimTriggersOk ()
 
bool SimSDigitsOk ()
 
bool SimDigitsOk ()
 
bool SimHitsOk ()
 
bool RecDigitsOk ()
 
bool RawClustersOk ()
 
bool TriggersOk ()
 
bool MUONCheckDI (bool checkSim=true, bool checkRec=true)
 

Detailed Description

Macro for checking AliMUONDataInterface and AliMUONMCDataInterface.

Author
Bruce Becker, DAPNIA/SPhN/CEA Saclay

Modified to updated versions of data interfaces by Artur Szostak artur.nosp@m.sz@i.nosp@m.afric.nosp@m.a.co.nosp@m.m (University of Cape Town)

Definition in file MUONCheckDI.C.

Function Documentation

Int_t Compare ( const TObject *  a,
const TObject *  b 
)

This routine implements a the comparison functionality which is missing for classes like AliMUONTrack and the various AliMUONxxxTrigger classes. A result of -1 is returned if a < b, 0 if a == b and +1 if a > b.

Definition at line 61 of file MUONCheckDI.C.

Referenced by RawClustersOk(), RecDigitsOk(), SimDigitsOk(), SimHitsOk(), SimSDigitsOk(), SimTriggersOk(), and TriggersOk().

bool MUONCheckDI ( bool  checkSim = true,
bool  checkRec = true 
)

This method performs a check of the AliMUONDataInterface and AliMUONMCDataInterface classes. Basically there are at least 2 ways to fetch data using these interfaces: The expert way using the store objects returned by these interface classes or the much slower but easier way of using the NumberOfxxx and Digit(...), RawCluster(...), Track(...) etc. methods to fetch individual data objects. The MUONCheckDI will check that all these various ways of fetching data results in the same information being returned. If yes then kTRUE is returned and a confirmation message is printed, if not then kFALSE is returned with the failure reason printed to screen.

Definition at line 791 of file MUONCheckDI.C.

bool RawClustersOk ( )

This method fills internal arrays with raw clusters returned by AliMUONDataInterface. For each set of interface methods available in AliMUONDataInterface a TObjArray is filled with copies of the raw clusters. These arrays are sorted and then compared to each other. The arrays should contain the same information if everything is working correctly with AliMUONDataInterface. If not then the difference is printed together with an error message and false is returned.

Definition at line 591 of file MUONCheckDI.C.

Referenced by MUONCheckDI().

bool RecDigitsOk ( )

This method fills internal arrays with digits returned by the AliMUONDataInterface. For each set of interface methods available a TObjArray is filled with copies of the digits. These arrays are sorted and then compared to each other. The arrays should contain the same digit information if everything is working correctly with AliMUONDataInterface. If not then the difference is printed together with an error message and false is returned.

Definition at line 499 of file MUONCheckDI.C.

Referenced by MUONCheckDI().

bool SimDigitsOk ( )

This method fills internal arrays with digits returned by the AliMUONMCDataInterface. For each set of interface methods available a TObjArray is filled with copies of the digits. These arrays are sorted and then compared to each other. The arrays should contain the same digit information if everything is working correctly with AliMUONMCDataInterface. If not then the difference is printed together with an error message and false is returned.

Definition at line 325 of file MUONCheckDI.C.

Referenced by MUONCheckDI().

bool SimHitsOk ( )

This method fills internal arrays with hits returned by the AliMUONMCDataInterface. For each set of interface methods available a TObjArray is filled with copies of the hits. These arrays are then compared to each other. The arrays should contain the same hit information if everything is working correctly with AliMUONMCDataInterface. If not then the difference is printed together with an error message and false is returned.

Definition at line 416 of file MUONCheckDI.C.

Referenced by MUONCheckDI().

bool SimSDigitsOk ( )

This method fills internal arrays with s-digits returned by the AliMUONMCDataInterface. For each set of interface methods available a TObjArray is filled with copies of the s-digits. These arrays are sorted and then compared to each other. The arrays should contain the same s-digit information if everything is working correctly with AliMUONMCDataInterface. If not then the difference is printed together with an error message and false is returned.

Definition at line 233 of file MUONCheckDI.C.

Referenced by MUONCheckDI().

bool SimTriggersOk ( )

This method fills internal arrays with local and regional triggers returned by AliMUONMCDataInterface. For each set of interface methods available in AliMUONMCDataInterface a TObjArray is created for local and another for regional triggers. These arrays are filled with copies of the trigger objects. The global trigger object is also copied out using the 2 different methods. The arrays and objects are then compared to each other. The arrays and objects should contain the same information if everything is working correctly with AliMUONMCDataInterface. If not then the difference is printed together with an error message and false is returned.

Definition at line 109 of file MUONCheckDI.C.

Referenced by MUONCheckDI().

bool TriggersOk ( )

This method fills internal arrays with local and regional triggers returned by AliMUONDataInterface. For each set of interface methods available in AliMUONDataInterface a TObjArray is created for local and another for regional triggers. These arrays are filled with copies of the trigger objects. The global trigger object is also copied out using the 2 different methods. The arrays and objects are then compared to each other. The arrays and objects should contain the same information if everything is working correctly with AliMUONDataInterface. If not then the difference is printed together with an error message and false is returned.

Definition at line 666 of file MUONCheckDI.C.

Referenced by MUONCheckDI().