ROOT logo
/**************************************************************************
 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 *                                                                        *
 * Author: The ALICE Off-line Project.                                    *
 * Contributors are mentioned in the code where appropriate.              *
 *                                                                        *
 * Permission to use, copy, modify and distribute this software and its   *
 * documentation strictly for non-commercial purposes is hereby granted   *
 * without fee, provided that the above copyright notice appears in all   *
 * copies and that both the copyright notice and this permission notice   *
 * appear in the supporting documentation. The authors make no claims     *
 * about the suitability of this software for any purpose. It is          *
 * provided "as is" without express or implied warranty.                  *
 **************************************************************************/


/**************************************************************************************

	ACORDE's RecoParams Version 1.0

	In this version we only consider:

	->) The ACORDE's Trigger Mode (Single Muon Trigger or Multi Muon Trigger)
	->) The ACORDE's Trigger Mask (Same in SMT and MMT)
	
	In Runs PbPb, pp, and cosmics by default we have the same RecoParams.

	From: 
		Mario Rodriguez Cahuantzi <mrodrigu@mail.cern.ch> @ CERN
		FCFM, BUAP. Puebla, Mexico

	Further comments:

		Arturo Fernandez <afernan@mail.cern.ch>	

	March 2nd. 2009	

	NOTE: Please suggest improvements if needed.

**************************************************************************************/

#include "AliLog.h"

#include "AliACORDERecoParam.h"

ClassImp(AliACORDERecoParam)

//_____________________________________________________________________________
AliACORDERecoParam::AliACORDERecoParam():
  AliDetectorRecoParam()
//  fAcordeSingleMuonTrigger(kFALSE),
//  fAcordeMultiMuonTrigger(kFALSE),
//  fAcordeWord0(0x00000000),
//  fAcordeWord1(0x00000000),
//  fAcordeWord2(0x00000000),
//  fAcordeWord3(0x00000000)       
{
 	// ACORDE's RecoParam constructor
 
 	 SetNameTitle("ACORDE","ACORDE");
	 AliInfo(Form("Empty object for ACORDE RecoParam"));
}


//____________________________________________________________________________
AliACORDERecoParam::AliACORDERecoParam(const AliACORDERecoParam &p):
  AliDetectorRecoParam(p)
//  fAcordeSingleMuonTrigger(p.fAcordeSingleMuonTrigger),
//  fAcordeMultiMuonTrigger(p.fAcordeMultiMuonTrigger),
//  fAcordeWord0(p.fAcordeWord0),
//  fAcordeWord1(p.fAcordeWord1),
//  fAcordeWord2(p.fAcordeWord2),
//  fAcordeWord3(p.fAcordeWord3)
{
	// Copy of constructor
}

//_____________________________________________________________________________
AliACORDERecoParam& AliACORDERecoParam::operator=(const AliACORDERecoParam &p)
{
 	// ACORDE's RecoParam Assign Operator

	if (this == &p)
   	return *this;
  
  	AliDetectorRecoParam::operator=(p);
/*  	fAcordeSingleMuonTrigger=p.fAcordeSingleMuonTrigger;
	fAcordeMultiMuonTrigger=p.fAcordeMultiMuonTrigger;      
   	fAcordeWord0=p.fAcordeWord0;
	fAcordeWord1=p.fAcordeWord1;
	fAcordeWord2=p.fAcordeWord2;
	fAcordeWord3=p.fAcordeWord3;
  */ 	
	return *this;
}
//_____________________________________________________________________________
AliACORDERecoParam::~AliACORDERecoParam() 
{
  	// ACORDE's RecoParam destructor
}

//_____________________________________________________________________________
/*
AliACORDERecoParam *AliACORDERecoParam::GetPbPbparam()
{
 
  	// Set ACORDE's default reconstruction parameters for PbPb 
  
  	AliACORDERecoParam *acordeRecoParam = new AliACORDERecoParam();

	// fAcordeTriggerMode = "ACORDE_SINGLE" for ACORDE's Single Muon Trigger
 	// fAcordeTriggerMode = "ACORDE_MULTI" for ACORDE's Multi Muon Trigger
	
	// By now we set fAcordeSingeMuonTrigger as default

	acordeRecoParam->fAcordeSingleMuonTrigger=kTRUE; // Enable ACORDE_SINGLE
	acordeRecoParam->fAcordeMultiMuonTrigger=kFALSE; // Disable ACORDE_MULTI
  	acordeRecoParam->fAcordeWord0 = 0x3FFFFFFF; // [1..30] ACORDE's modules in ACORDE_SINGLE
	acordeRecoParam->fAcordeWord1 = 0x7FFFFFFF; // [31..60] ACORDE's modules in ACORDE_SINGLE
	acordeRecoParam->fAcordeWord2 = 0xBFFFFFFF; // [1..30] ACORDE's modules in ACORDE_MULTI
	acordeRecoParam->fAcordeWord3 = 0xFFFFFFFF; // [31..60] ACORDE's modules in ACORDE_MULTI
	return acordeRecoParam;
}

//_____________________________________________________________________________
AliACORDERecoParam *AliACORDERecoParam::GetPPparam()
{
	// Set ACORDE's default reconstruction parameters for PbPb 
  
        AliACORDERecoParam *acordeRecoParam = new AliACORDERecoParam();

        // fAcordeTriggerMode = "ACORDE_SINGLE" for ACORDE's Single Muon Trigger
        // fAcordeTriggerMode = "ACORDE_MULTI" for ACORDE's Multi Muon Trigger
        
        // By now we set fAcordeSingeMuonTrigger as default

        acordeRecoParam->fAcordeSingleMuonTrigger=kTRUE; // Enable ACORDE_SINGLE
        acordeRecoParam->fAcordeMultiMuonTrigger=kFALSE; // Disable ACORDE_MULTI
        acordeRecoParam->fAcordeWord0 = 0x3FFFFFFF; // [1..30] ACORDE's modules in ACORDE_SINGLE
        acordeRecoParam->fAcordeWord1 = 0x7FFFFFFF; // [31..60] ACORDE's modules in ACORDE_SINGLE
        acordeRecoParam->fAcordeWord2 = 0xBFFFFFFF; // [1..30] ACORDE's modules in ACORDE_MULTI
        acordeRecoParam->fAcordeWord3 = 0xFFFFFFFF; // [31..60] ACORDE's modules in ACORDE_MULTI
        return acordeRecoParam;
}

//_____________________________________________________________________________
AliACORDERecoParam *AliACORDERecoParam::GetCosmicMuonParam()
{
	 // Set ACORDE's default reconstruction parameters for PbPb 
  
        AliACORDERecoParam *acordeRecoParam = new AliACORDERecoParam();

        // fAcordeTriggerMode = "ACORDE_SINGLE" for ACORDE's Single Muon Trigger
        // fAcordeTriggerMode = "ACORDE_MULTI" for ACORDE's Multi Muon Trigger
        
        // By now we set fAcordeSingeMuonTrigger as default

        acordeRecoParam->fAcordeSingleMuonTrigger=kTRUE; // Enable ACORDE_SINGLE
        acordeRecoParam->fAcordeMultiMuonTrigger=kFALSE; // Disable ACORDE_MULTI
        acordeRecoParam->fAcordeWord0 = 0x3FFFFFFF; // [1..30] ACORDE's modules in ACORDE_SINGLE
        acordeRecoParam->fAcordeWord1 = 0x7FFFFFFF; // [31..60] ACORDE's modules in ACORDE_SINGLE
        acordeRecoParam->fAcordeWord2 = 0xBFFFFFFF; // [1..30] ACORDE's modules in ACORDE_MULTI
        acordeRecoParam->fAcordeWord3 = 0xFFFFFFFF; // [31..60] ACORDE's modules in ACORDE_MULTI
        return acordeRecoParam;
}
*/
//_____________________________________________________________________________
void AliACORDERecoParam::PrintParameters() const
{
  	// Printing of the used ACORDE reconstruction parameters

 //	AliInfo(Form("ACORDE's Single Muon Trigger Mode: %b", fAcordeSingleMuonTrigger));
//	AliInfo(Form("ACORDE's Multi Muon Trigger Mode: %b", fAcordeMultiMuonTrigger));
//	if(fAcordeSingleMuonTrigger==kTRUE)
//	{
//		AliInfo(Form("ACORDE's Trigger Mask: 0x%08x 0x%08x",fAcordeWord0,fAcordeWord1));
//	}
//	if(fAcordeMultiMuonTrigger==kTRUE)
//	{
  //              AliInfo(Form("ACORDE's Trigger Mask: 0x%08x 0x%08x",fAcordeWord2,fAcordeWord3));

//	}


	AliInfo(Form("Empty object for ACORDE RecoParam"));


}
 AliACORDERecoParam.cxx:1
 AliACORDERecoParam.cxx:2
 AliACORDERecoParam.cxx:3
 AliACORDERecoParam.cxx:4
 AliACORDERecoParam.cxx:5
 AliACORDERecoParam.cxx:6
 AliACORDERecoParam.cxx:7
 AliACORDERecoParam.cxx:8
 AliACORDERecoParam.cxx:9
 AliACORDERecoParam.cxx:10
 AliACORDERecoParam.cxx:11
 AliACORDERecoParam.cxx:12
 AliACORDERecoParam.cxx:13
 AliACORDERecoParam.cxx:14
 AliACORDERecoParam.cxx:15
 AliACORDERecoParam.cxx:16
 AliACORDERecoParam.cxx:17
 AliACORDERecoParam.cxx:18
 AliACORDERecoParam.cxx:19
 AliACORDERecoParam.cxx:20
 AliACORDERecoParam.cxx:21
 AliACORDERecoParam.cxx:22
 AliACORDERecoParam.cxx:23
 AliACORDERecoParam.cxx:24
 AliACORDERecoParam.cxx:25
 AliACORDERecoParam.cxx:26
 AliACORDERecoParam.cxx:27
 AliACORDERecoParam.cxx:28
 AliACORDERecoParam.cxx:29
 AliACORDERecoParam.cxx:30
 AliACORDERecoParam.cxx:31
 AliACORDERecoParam.cxx:32
 AliACORDERecoParam.cxx:33
 AliACORDERecoParam.cxx:34
 AliACORDERecoParam.cxx:35
 AliACORDERecoParam.cxx:36
 AliACORDERecoParam.cxx:37
 AliACORDERecoParam.cxx:38
 AliACORDERecoParam.cxx:39
 AliACORDERecoParam.cxx:40
 AliACORDERecoParam.cxx:41
 AliACORDERecoParam.cxx:42
 AliACORDERecoParam.cxx:43
 AliACORDERecoParam.cxx:44
 AliACORDERecoParam.cxx:45
 AliACORDERecoParam.cxx:46
 AliACORDERecoParam.cxx:47
 AliACORDERecoParam.cxx:48
 AliACORDERecoParam.cxx:49
 AliACORDERecoParam.cxx:50
 AliACORDERecoParam.cxx:51
 AliACORDERecoParam.cxx:52
 AliACORDERecoParam.cxx:53
 AliACORDERecoParam.cxx:54
 AliACORDERecoParam.cxx:55
 AliACORDERecoParam.cxx:56
 AliACORDERecoParam.cxx:57
 AliACORDERecoParam.cxx:58
 AliACORDERecoParam.cxx:59
 AliACORDERecoParam.cxx:60
 AliACORDERecoParam.cxx:61
 AliACORDERecoParam.cxx:62
 AliACORDERecoParam.cxx:63
 AliACORDERecoParam.cxx:64
 AliACORDERecoParam.cxx:65
 AliACORDERecoParam.cxx:66
 AliACORDERecoParam.cxx:67
 AliACORDERecoParam.cxx:68
 AliACORDERecoParam.cxx:69
 AliACORDERecoParam.cxx:70
 AliACORDERecoParam.cxx:71
 AliACORDERecoParam.cxx:72
 AliACORDERecoParam.cxx:73
 AliACORDERecoParam.cxx:74
 AliACORDERecoParam.cxx:75
 AliACORDERecoParam.cxx:76
 AliACORDERecoParam.cxx:77
 AliACORDERecoParam.cxx:78
 AliACORDERecoParam.cxx:79
 AliACORDERecoParam.cxx:80
 AliACORDERecoParam.cxx:81
 AliACORDERecoParam.cxx:82
 AliACORDERecoParam.cxx:83
 AliACORDERecoParam.cxx:84
 AliACORDERecoParam.cxx:85
 AliACORDERecoParam.cxx:86
 AliACORDERecoParam.cxx:87
 AliACORDERecoParam.cxx:88
 AliACORDERecoParam.cxx:89
 AliACORDERecoParam.cxx:90
 AliACORDERecoParam.cxx:91
 AliACORDERecoParam.cxx:92
 AliACORDERecoParam.cxx:93
 AliACORDERecoParam.cxx:94
 AliACORDERecoParam.cxx:95
 AliACORDERecoParam.cxx:96
 AliACORDERecoParam.cxx:97
 AliACORDERecoParam.cxx:98
 AliACORDERecoParam.cxx:99
 AliACORDERecoParam.cxx:100
 AliACORDERecoParam.cxx:101
 AliACORDERecoParam.cxx:102
 AliACORDERecoParam.cxx:103
 AliACORDERecoParam.cxx:104
 AliACORDERecoParam.cxx:105
 AliACORDERecoParam.cxx:106
 AliACORDERecoParam.cxx:107
 AliACORDERecoParam.cxx:108
 AliACORDERecoParam.cxx:109
 AliACORDERecoParam.cxx:110
 AliACORDERecoParam.cxx:111
 AliACORDERecoParam.cxx:112
 AliACORDERecoParam.cxx:113
 AliACORDERecoParam.cxx:114
 AliACORDERecoParam.cxx:115
 AliACORDERecoParam.cxx:116
 AliACORDERecoParam.cxx:117
 AliACORDERecoParam.cxx:118
 AliACORDERecoParam.cxx:119
 AliACORDERecoParam.cxx:120
 AliACORDERecoParam.cxx:121
 AliACORDERecoParam.cxx:122
 AliACORDERecoParam.cxx:123
 AliACORDERecoParam.cxx:124
 AliACORDERecoParam.cxx:125
 AliACORDERecoParam.cxx:126
 AliACORDERecoParam.cxx:127
 AliACORDERecoParam.cxx:128
 AliACORDERecoParam.cxx:129
 AliACORDERecoParam.cxx:130
 AliACORDERecoParam.cxx:131
 AliACORDERecoParam.cxx:132
 AliACORDERecoParam.cxx:133
 AliACORDERecoParam.cxx:134
 AliACORDERecoParam.cxx:135
 AliACORDERecoParam.cxx:136
 AliACORDERecoParam.cxx:137
 AliACORDERecoParam.cxx:138
 AliACORDERecoParam.cxx:139
 AliACORDERecoParam.cxx:140
 AliACORDERecoParam.cxx:141
 AliACORDERecoParam.cxx:142
 AliACORDERecoParam.cxx:143
 AliACORDERecoParam.cxx:144
 AliACORDERecoParam.cxx:145
 AliACORDERecoParam.cxx:146
 AliACORDERecoParam.cxx:147
 AliACORDERecoParam.cxx:148
 AliACORDERecoParam.cxx:149
 AliACORDERecoParam.cxx:150
 AliACORDERecoParam.cxx:151
 AliACORDERecoParam.cxx:152
 AliACORDERecoParam.cxx:153
 AliACORDERecoParam.cxx:154
 AliACORDERecoParam.cxx:155
 AliACORDERecoParam.cxx:156
 AliACORDERecoParam.cxx:157
 AliACORDERecoParam.cxx:158
 AliACORDERecoParam.cxx:159
 AliACORDERecoParam.cxx:160
 AliACORDERecoParam.cxx:161
 AliACORDERecoParam.cxx:162
 AliACORDERecoParam.cxx:163
 AliACORDERecoParam.cxx:164
 AliACORDERecoParam.cxx:165
 AliACORDERecoParam.cxx:166
 AliACORDERecoParam.cxx:167
 AliACORDERecoParam.cxx:168
 AliACORDERecoParam.cxx:169
 AliACORDERecoParam.cxx:170
 AliACORDERecoParam.cxx:171
 AliACORDERecoParam.cxx:172
 AliACORDERecoParam.cxx:173
 AliACORDERecoParam.cxx:174
 AliACORDERecoParam.cxx:175
 AliACORDERecoParam.cxx:176
 AliACORDERecoParam.cxx:177
 AliACORDERecoParam.cxx:178
 AliACORDERecoParam.cxx:179
 AliACORDERecoParam.cxx:180
 AliACORDERecoParam.cxx:181
 AliACORDERecoParam.cxx:182
 AliACORDERecoParam.cxx:183
 AliACORDERecoParam.cxx:184
 AliACORDERecoParam.cxx:185
 AliACORDERecoParam.cxx:186
 AliACORDERecoParam.cxx:187
 AliACORDERecoParam.cxx:188