ClassImp(AliTOFRawMap)
AliTOFRawMap::AliTOFRawMap():
+ TObject(),
fNtrm(-1),
fNtrmChain(-1),
fNtdc(-1),
}
////////////////////////////////////////////////////////////////////////
-AliTOFRawMap::AliTOFRawMap(TClonesArray *dig)://, AliTOFGeometry *tofGeom):
- fNtrm(-1),
- fNtrmChain(-1),
- fNtdc(-1),
- fNtdcChannel(-1),
+AliTOFRawMap::AliTOFRawMap(TClonesArray *dig)://, AliTOFGeometry *tofGeom:
+ TObject(),
+ fNtrm(AliTOFGeometry::NTRM()+2),
+ fNtrmChain(AliTOFGeometry::NChain()),
+ fNtdc(AliTOFGeometry::NTdc()),
+ fNtdcChannel(AliTOFGeometry::NCh()),
fRawData(dig),
fMaxIndex(-1),
fRawMap(0x0)
// of course, these constants must not be hardwired
// change later
- fNtrm = AliTOFGeometry::NTRM()+2;
- fNtrmChain = AliTOFGeometry::NChain();
- fNtdc = AliTOFGeometry::NTdc();
- fNtdcChannel = AliTOFGeometry::NCh();
fMaxIndex = fNtrm*fNtrmChain*fNtdc*fNtdcChannel;
fRawMap = new Int_t[fMaxIndex];
Clear();
}
-////////////////////////////////////////////////////////////////////////
-AliTOFRawMap::AliTOFRawMap(const AliTOFRawMap & /*rawMap*/)
- :TObject(),
- fNtrm(-1),
- fNtrmChain(-1),
- fNtdc(-1),
- fNtdcChannel(-1),
- fRawData(0x0),
- fMaxIndex(-1),
- fRawMap(0x0)
-{
-//
-// Dummy copy constructor
-//
-
-}
-
-
////////////////////////////////////////////////////////////////////////
AliTOFRawMap::~AliTOFRawMap()
{
//
// Destructor
//
- delete[] fRawMap;
+ if (fRawMap)
+ delete[] fRawMap;
}
}
////////////////////////////////////////////////////////////////////////
-Int_t AliTOFRawMap::CheckedIndex(Int_t *slot) const
+Int_t AliTOFRawMap::CheckedIndex(const Int_t * const slot) const
{
//
// Return checked indices for vol
}
}
-////////////////////////////////////////////////////////////////////////
-AliTOFRawMap & AliTOFRawMap::operator = (const AliTOFRawMap & /*rhs*/)
-{
-// Dummy assignment operator
- return *this;
-}