1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
17 /**************************************************************************************
19 ACORDE's RecoParams Version 1.0
21 In this version we only consider:
23 ->) The ACORDE's Trigger Mode (Single Muon Trigger or Multi Muon Trigger)
24 ->) The ACORDE's Trigger Mask (Same in SMT and MMT)
26 In Runs PbPb, pp, and cosmics by default we have the same RecoParams.
29 Mario Rodriguez Cahuantzi <mrodrigu@mail.cern.ch> @ CERN
30 FCFM, BUAP. Puebla, Mexico
34 Arturo Fernandez <afernan@mail.cern.ch>
38 NOTE: Please suggest improvements if needed.
40 **************************************************************************************/
44 #include "AliACORDERecoParam.h"
46 ClassImp(AliACORDERecoParam)
48 //_____________________________________________________________________________
49 AliACORDERecoParam::AliACORDERecoParam():
50 AliDetectorRecoParam()
51 // fAcordeSingleMuonTrigger(kFALSE),
52 // fAcordeMultiMuonTrigger(kFALSE),
53 // fAcordeWord0(0x00000000),
54 // fAcordeWord1(0x00000000),
55 // fAcordeWord2(0x00000000),
56 // fAcordeWord3(0x00000000)
58 // ACORDE's RecoParam constructor
60 SetNameTitle("ACORDE","ACORDE");
61 AliInfo(Form("Empty object for ACORDE RecoParam"));
65 //____________________________________________________________________________
66 AliACORDERecoParam::AliACORDERecoParam(const AliACORDERecoParam &p):
67 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)
75 // Copy of constructor
78 //_____________________________________________________________________________
79 AliACORDERecoParam& AliACORDERecoParam::operator=(const AliACORDERecoParam &p)
81 // ACORDE's RecoParam Assign Operator
86 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;
96 //_____________________________________________________________________________
97 AliACORDERecoParam::~AliACORDERecoParam()
99 // ACORDE's RecoParam destructor
102 //_____________________________________________________________________________
104 AliACORDERecoParam *AliACORDERecoParam::GetPbPbparam()
107 // Set ACORDE's default reconstruction parameters for PbPb
109 AliACORDERecoParam *acordeRecoParam = new AliACORDERecoParam();
111 // fAcordeTriggerMode = "ACORDE_SINGLE" for ACORDE's Single Muon Trigger
112 // fAcordeTriggerMode = "ACORDE_MULTI" for ACORDE's Multi Muon Trigger
114 // By now we set fAcordeSingeMuonTrigger as default
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;
125 //_____________________________________________________________________________
126 AliACORDERecoParam *AliACORDERecoParam::GetPPparam()
128 // Set ACORDE's default reconstruction parameters for PbPb
130 AliACORDERecoParam *acordeRecoParam = new AliACORDERecoParam();
132 // fAcordeTriggerMode = "ACORDE_SINGLE" for ACORDE's Single Muon Trigger
133 // fAcordeTriggerMode = "ACORDE_MULTI" for ACORDE's Multi Muon Trigger
135 // By now we set fAcordeSingeMuonTrigger as default
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;
146 //_____________________________________________________________________________
147 AliACORDERecoParam *AliACORDERecoParam::GetCosmicMuonParam()
149 // Set ACORDE's default reconstruction parameters for PbPb
151 AliACORDERecoParam *acordeRecoParam = new AliACORDERecoParam();
153 // fAcordeTriggerMode = "ACORDE_SINGLE" for ACORDE's Single Muon Trigger
154 // fAcordeTriggerMode = "ACORDE_MULTI" for ACORDE's Multi Muon Trigger
156 // By now we set fAcordeSingeMuonTrigger as default
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;
167 //_____________________________________________________________________________
168 void AliACORDERecoParam::PrintParameters() const
170 // Printing of the used ACORDE reconstruction parameters
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)
176 // AliInfo(Form("ACORDE's Trigger Mask: 0x%08x 0x%08x",fAcordeWord0,fAcordeWord1));
178 // if(fAcordeMultiMuonTrigger==kTRUE)
180 // AliInfo(Form("ACORDE's Trigger Mask: 0x%08x 0x%08x",fAcordeWord2,fAcordeWord3));
185 AliInfo(Form("Empty object for ACORDE RecoParam"));