put different cluster parameters (time, n cells, n SM) in the AOD particle, recover...
[u/mrichter/AliRoot.git] / EMCAL / AliCaloFitSubarray.cxx
CommitLineData
f57baa2d 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/* $Id: $ */
17
18#include "AliCaloFitSubarray.h"
19
20
21// Container class to hold info from bunches/samples
22// selected for signal fitting.
23// Variables are:
24// Int_t fBunchIndex; // Index for selected bunch
25// Int_t fMaxRev; // Max index in reversed array
26// Int_t fFirst; // first index in array used for fit
27// Int_t fLast; // last index in array used for fit
28
29AliCaloFitSubarray::AliCaloFitSubarray(const Int_t bunchIndex,
30 const Int_t maxrev,
31 const Int_t first,
32 const Int_t last ) :
33 fBunchIndex(bunchIndex),
34 fMaxRev(maxrev),
35 fFirst(first),
36 fLast(last)
37{
38}
39
f57baa2d 40AliCaloFitSubarray::AliCaloFitSubarray(const Int_t init) :
41 fBunchIndex(init),
42 fMaxRev(init),
43 fFirst(init),
44 fLast(init)
45{
46}
47
9ae19208 48AliCaloFitSubarray::AliCaloFitSubarray(const AliCaloFitSubarray & fitS) :
49 fBunchIndex( fitS.fBunchIndex ),
50 fMaxRev( fitS.fMaxRev ),
51 fFirst( fitS.fFirst ),
52 fLast( fitS.fLast )
53{
54}
f57baa2d 55
dab4328c 56//_____________________________________________________________________
57AliCaloFitSubarray& AliCaloFitSubarray::operator = (const AliCaloFitSubarray &source)
58{ // assignment operator; use copy ctor
59 if (&source == this) return *this;
60
61 new (this) AliCaloFitSubarray(source);
62 return *this;
63}
64
f57baa2d 65AliCaloFitSubarray::~AliCaloFitSubarray()
66{
67}
68