LCOV - code coverage report
Current view: top level - ACORDE/ACORDErec - AliACORDERecoParam.cxx (source / functions) Hit Total Coverage
Test: coverage.info Lines: 8 18 44.4 %
Date: 2016-06-14 17:26:59 Functions: 6 10 60.0 %

          Line data    Source code
       1             : /**************************************************************************
       2             :  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
       3             :  *                                                                        *
       4             :  * Author: The ALICE Off-line Project.                                    *
       5             :  * Contributors are mentioned in the code where appropriate.              *
       6             :  *                                                                        *
       7             :  * Permission to use, copy, modify and distribute this software and its   *
       8             :  * documentation strictly for non-commercial purposes is hereby granted   *
       9             :  * without fee, provided that the above copyright notice appears in all   *
      10             :  * copies and that both the copyright notice and this permission notice   *
      11             :  * appear in the supporting documentation. The authors make no claims     *
      12             :  * about the suitability of this software for any purpose. It is          *
      13             :  * provided "as is" without express or implied warranty.                  *
      14             :  **************************************************************************/
      15             : 
      16             : 
      17             : /**************************************************************************************
      18             : 
      19             :         ACORDE's RecoParams Version 1.0
      20             : 
      21             :         In this version we only consider:
      22             : 
      23             :         ->) The ACORDE's Trigger Mode (Single Muon Trigger or Multi Muon Trigger)
      24             :         ->) The ACORDE's Trigger Mask (Same in SMT and MMT)
      25             :         
      26             :         In Runs PbPb, pp, and cosmics by default we have the same RecoParams.
      27             : 
      28             :         From: 
      29             :                 Mario Rodriguez Cahuantzi <mrodrigu@mail.cern.ch> @ CERN
      30             :                 FCFM, BUAP. Puebla, Mexico
      31             : 
      32             :         Further comments:
      33             : 
      34             :                 Arturo Fernandez <afernan@mail.cern.ch>   
      35             : 
      36             :         March 2nd. 2009 
      37             : 
      38             :         NOTE: Please suggest improvements if needed.
      39             : 
      40             : **************************************************************************************/
      41             : 
      42             : #include "AliLog.h"
      43             : 
      44             : #include "AliACORDERecoParam.h"
      45             : 
      46          12 : ClassImp(AliACORDERecoParam)
      47             : 
      48             : //_____________________________________________________________________________
      49             : AliACORDERecoParam::AliACORDERecoParam():
      50           4 :   AliDetectorRecoParam()
      51             : //  fAcordeSingleMuonTrigger(kFALSE),
      52             : //  fAcordeMultiMuonTrigger(kFALSE),
      53             : //  fAcordeWord0(0x00000000),
      54             : //  fAcordeWord1(0x00000000),
      55             : //  fAcordeWord2(0x00000000),
      56             : //  fAcordeWord3(0x00000000)       
      57          20 : {
      58             :         // ACORDE's RecoParam constructor
      59             :  
      60           4 :          SetNameTitle("ACORDE","ACORDE");
      61          12 :          AliInfo(Form("Empty object for ACORDE RecoParam"));
      62           8 : }
      63             : 
      64             : 
      65             : //____________________________________________________________________________
      66             : AliACORDERecoParam::AliACORDERecoParam(const AliACORDERecoParam &p):
      67           0 :   AliDetectorRecoParam(p)
      68             : //  fAcordeSingleMuonTrigger(p.fAcordeSingleMuonTrigger),
      69             : //  fAcordeMultiMuonTrigger(p.fAcordeMultiMuonTrigger),
      70             : //  fAcordeWord0(p.fAcordeWord0),
      71             : //  fAcordeWord1(p.fAcordeWord1),
      72             : //  fAcordeWord2(p.fAcordeWord2),
      73             : //  fAcordeWord3(p.fAcordeWord3)
      74           0 : {
      75             :         // Copy of constructor
      76           0 : }
      77             : 
      78             : //_____________________________________________________________________________
      79             : AliACORDERecoParam& AliACORDERecoParam::operator=(const AliACORDERecoParam &p)
      80             : {
      81             :         // ACORDE's RecoParam Assign Operator
      82             : 
      83           0 :         if (this == &p)
      84           0 :         return *this;
      85             :   
      86           0 :         AliDetectorRecoParam::operator=(p);
      87             : /*      fAcordeSingleMuonTrigger=p.fAcordeSingleMuonTrigger;
      88             :         fAcordeMultiMuonTrigger=p.fAcordeMultiMuonTrigger;      
      89             :         fAcordeWord0=p.fAcordeWord0;
      90             :         fAcordeWord1=p.fAcordeWord1;
      91             :         fAcordeWord2=p.fAcordeWord2;
      92             :         fAcordeWord3=p.fAcordeWord3;
      93             :   */    
      94           0 :         return *this;
      95           0 : }
      96             : //_____________________________________________________________________________
      97             : AliACORDERecoParam::~AliACORDERecoParam() 
      98          16 : {
      99             :         // ACORDE's RecoParam destructor
     100          16 : }
     101             : 
     102             : //_____________________________________________________________________________
     103             : /*
     104             : AliACORDERecoParam *AliACORDERecoParam::GetPbPbparam()
     105             : {
     106             :  
     107             :         // Set ACORDE's default reconstruction parameters for PbPb 
     108             :   
     109             :         AliACORDERecoParam *acordeRecoParam = new AliACORDERecoParam();
     110             : 
     111             :         // fAcordeTriggerMode = "ACORDE_SINGLE" for ACORDE's Single Muon Trigger
     112             :         // fAcordeTriggerMode = "ACORDE_MULTI" for ACORDE's Multi Muon Trigger
     113             :         
     114             :         // By now we set fAcordeSingeMuonTrigger as default
     115             : 
     116             :         acordeRecoParam->fAcordeSingleMuonTrigger=kTRUE; // Enable ACORDE_SINGLE
     117             :         acordeRecoParam->fAcordeMultiMuonTrigger=kFALSE; // Disable ACORDE_MULTI
     118             :         acordeRecoParam->fAcordeWord0 = 0x3FFFFFFF; // [1..30] ACORDE's modules in ACORDE_SINGLE
     119             :         acordeRecoParam->fAcordeWord1 = 0x7FFFFFFF; // [31..60] ACORDE's modules in ACORDE_SINGLE
     120             :         acordeRecoParam->fAcordeWord2 = 0xBFFFFFFF; // [1..30] ACORDE's modules in ACORDE_MULTI
     121             :         acordeRecoParam->fAcordeWord3 = 0xFFFFFFFF; // [31..60] ACORDE's modules in ACORDE_MULTI
     122             :         return acordeRecoParam;
     123             : }
     124             : 
     125             : //_____________________________________________________________________________
     126             : AliACORDERecoParam *AliACORDERecoParam::GetPPparam()
     127             : {
     128             :         // Set ACORDE's default reconstruction parameters for PbPb 
     129             :   
     130             :         AliACORDERecoParam *acordeRecoParam = new AliACORDERecoParam();
     131             : 
     132             :         // fAcordeTriggerMode = "ACORDE_SINGLE" for ACORDE's Single Muon Trigger
     133             :         // fAcordeTriggerMode = "ACORDE_MULTI" for ACORDE's Multi Muon Trigger
     134             :         
     135             :         // By now we set fAcordeSingeMuonTrigger as default
     136             : 
     137             :         acordeRecoParam->fAcordeSingleMuonTrigger=kTRUE; // Enable ACORDE_SINGLE
     138             :         acordeRecoParam->fAcordeMultiMuonTrigger=kFALSE; // Disable ACORDE_MULTI
     139             :         acordeRecoParam->fAcordeWord0 = 0x3FFFFFFF; // [1..30] ACORDE's modules in ACORDE_SINGLE
     140             :         acordeRecoParam->fAcordeWord1 = 0x7FFFFFFF; // [31..60] ACORDE's modules in ACORDE_SINGLE
     141             :         acordeRecoParam->fAcordeWord2 = 0xBFFFFFFF; // [1..30] ACORDE's modules in ACORDE_MULTI
     142             :         acordeRecoParam->fAcordeWord3 = 0xFFFFFFFF; // [31..60] ACORDE's modules in ACORDE_MULTI
     143             :         return acordeRecoParam;
     144             : }
     145             : 
     146             : //_____________________________________________________________________________
     147             : AliACORDERecoParam *AliACORDERecoParam::GetCosmicMuonParam()
     148             : {
     149             :          // Set ACORDE's default reconstruction parameters for PbPb 
     150             :   
     151             :         AliACORDERecoParam *acordeRecoParam = new AliACORDERecoParam();
     152             : 
     153             :         // fAcordeTriggerMode = "ACORDE_SINGLE" for ACORDE's Single Muon Trigger
     154             :         // fAcordeTriggerMode = "ACORDE_MULTI" for ACORDE's Multi Muon Trigger
     155             :         
     156             :         // By now we set fAcordeSingeMuonTrigger as default
     157             : 
     158             :         acordeRecoParam->fAcordeSingleMuonTrigger=kTRUE; // Enable ACORDE_SINGLE
     159             :         acordeRecoParam->fAcordeMultiMuonTrigger=kFALSE; // Disable ACORDE_MULTI
     160             :         acordeRecoParam->fAcordeWord0 = 0x3FFFFFFF; // [1..30] ACORDE's modules in ACORDE_SINGLE
     161             :         acordeRecoParam->fAcordeWord1 = 0x7FFFFFFF; // [31..60] ACORDE's modules in ACORDE_SINGLE
     162             :         acordeRecoParam->fAcordeWord2 = 0xBFFFFFFF; // [1..30] ACORDE's modules in ACORDE_MULTI
     163             :         acordeRecoParam->fAcordeWord3 = 0xFFFFFFFF; // [31..60] ACORDE's modules in ACORDE_MULTI
     164             :         return acordeRecoParam;
     165             : }
     166             : */
     167             : //_____________________________________________________________________________
     168             : void AliACORDERecoParam::PrintParameters() const
     169             : {
     170             :         // Printing of the used ACORDE reconstruction parameters
     171             : 
     172             :  //     AliInfo(Form("ACORDE's Single Muon Trigger Mode: %b", fAcordeSingleMuonTrigger));
     173             : //      AliInfo(Form("ACORDE's Multi Muon Trigger Mode: %b", fAcordeMultiMuonTrigger));
     174             : //      if(fAcordeSingleMuonTrigger==kTRUE)
     175             : //      {
     176             : //              AliInfo(Form("ACORDE's Trigger Mask: 0x%08x 0x%08x",fAcordeWord0,fAcordeWord1));
     177             : //      }
     178             : //      if(fAcordeMultiMuonTrigger==kTRUE)
     179             : //      {
     180             :   //              AliInfo(Form("ACORDE's Trigger Mask: 0x%08x 0x%08x",fAcordeWord2,fAcordeWord3));
     181             : 
     182             : //      }
     183             : 
     184             : 
     185           0 :         AliInfo(Form("Empty object for ACORDE RecoParam"));
     186             : 
     187             : 
     188           0 : }

Generated by: LCOV version 1.11