X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2Fmapping%2FAliMpVRowSegmentSpecial.cxx;h=6fd9ac06aab4a748cfa20625f21d0a385125f552;hb=047287949a9f5ca6d11647a75803ed4c54c99e5b;hp=23ba8be1e59f084215a2b9fb3a64ed5e9c049730;hpb=dbe945ccce0335c0afec85b4ccca60b4bd595caf;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/mapping/AliMpVRowSegmentSpecial.cxx b/MUON/mapping/AliMpVRowSegmentSpecial.cxx index 23ba8be1e59..6fd9ac06aab 100644 --- a/MUON/mapping/AliMpVRowSegmentSpecial.cxx +++ b/MUON/mapping/AliMpVRowSegmentSpecial.cxx @@ -1,4 +1,20 @@ +/************************************************************************** + * 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. * + **************************************************************************/ + // $Id$ +// $MpId: AliMpVRowSegmentSpecial.cxx,v 1.7 2006/03/02 16:37:30 ivana Exp $ // Category: sector // // Class AliMpVRowSegmentSpecial @@ -8,9 +24,6 @@ // Included in AliRoot: 2003/05/02 // Authors: David Guez, Ivana Hrivnacova; IPN Orsay -#include -#include - #include "AliMpVRowSegmentSpecial.h" #include "AliMpRow.h" #include "AliMpPadRow.h" @@ -21,12 +34,15 @@ #include "AliMpMotifPosition.h" #include "AliMpConstants.h" -ClassImp(AliMpVRowSegmentSpecial) +#include +#include #ifdef WITH_ROOT const Int_t AliMpVRowSegmentSpecial::fgkMaxNofMotifPositionIds = 20; #endif +ClassImp(AliMpVRowSegmentSpecial) + //______________________________________________________________________________ AliMpVRowSegmentSpecial::AliMpVRowSegmentSpecial(AliMpRow* row, Double_t offsetX) : AliMpVRowSegment(), @@ -39,7 +55,7 @@ AliMpVRowSegmentSpecial::AliMpVRowSegmentSpecial(AliMpRow* row, Double_t offsetX ,fNofMotifPositionIds(0) #endif { -// +/// Standard constructor } //______________________________________________________________________________ @@ -54,7 +70,8 @@ AliMpVRowSegmentSpecial::AliMpVRowSegmentSpecial() ,fNofMotifPositionIds(0) #endif { -// +/// Default constructor + #ifdef WITH_ROOT fMotifPositionIds.Set(fgkMaxNofMotifPositionIds); #endif @@ -63,15 +80,18 @@ AliMpVRowSegmentSpecial::AliMpVRowSegmentSpecial() //_____________________________________________________________________________ AliMpVRowSegmentSpecial::AliMpVRowSegmentSpecial( const AliMpVRowSegmentSpecial& right) - : AliMpVRowSegment(right) { -// + : AliMpVRowSegment(right) +{ +/// Protected copy constructor (not provided) + Fatal("AliMpVRowSegmentSpecial", "Copy constructor not provided."); } //______________________________________________________________________________ AliMpVRowSegmentSpecial::~AliMpVRowSegmentSpecial() { -// +/// Destructor + for (Int_t i=0; iLowBorderY(); Double_t highBorder = fRow->LowBorderY(); @@ -123,8 +144,7 @@ AliMpPadRow* AliMpVRowSegmentSpecial::FindPadRow(Double_t y) const AliMpVPadRowSegment* AliMpVRowSegmentSpecial::FindPadRowSegment(Int_t motifPositionId) const { -// Find the most down pad row segment with this motifPositionId. -// --- +/// Find the most down pad row segment with this motifPositionId. for (Int_t i=0; iSetOffsetX(fOffsetX); padRow->SetID(GetNofPadRows()); @@ -265,9 +279,8 @@ void AliMpVRowSegmentSpecial::AddPadRow(AliMpPadRow* padRow) //______________________________________________________________________________ void AliMpVRowSegmentSpecial::UpdateMotifVector() { -// Add motifs associated with the pad row segments in the specified -// pad row in the fMotifs vector. -// --- +/// Add motifs associated with the pad row segments in the specified +/// pad row in the fMotifs vector. for (Int_t i=0; iGetMotifMap() - ->FindMotifPosition(GetMotifPositionId(i)); - - if (!firstPos || - mPos->GetLowIndicesLimit().GetFirst() - < firstPos->GetLowIndicesLimit().GetFirst()) - firstPos = mPos; - - if (!lastPos || - mPos->GetHighIndicesLimit().GetFirst() - >lastPos->GetHighIndicesLimit().GetFirst()) - lastPos = mPos; - } - - // Check if the motif positions has the limits set - if ( !firstPos->HasValidIndices() || !lastPos->HasValidIndices()) - Fatal("SetGlobalIndices", "Indices of motif positions have to be set first."); - - SetLowIndicesLimit(firstPos->GetLowIndicesLimit()); - SetHighIndicesLimit(lastPos->GetHighIndicesLimit()); -} - //______________________________________________________________________________ AliMpRow* AliMpVRowSegmentSpecial::GetRow() const { -// Returns the row.which this row segment belongs to. -// --- +/// Return the row.which this row segment belongs to. return fRow; } @@ -448,8 +421,7 @@ AliMpRow* AliMpVRowSegmentSpecial::GetRow() const //______________________________________________________________________________ Int_t AliMpVRowSegmentSpecial::GetNofMotifs() const { -// Returns the number of different motifs present in this row segment. -// --- +/// Return the number of different motifs present in this row segment. #ifdef WITH_STL return fMotifs.size(); @@ -462,8 +434,7 @@ Int_t AliMpVRowSegmentSpecial::GetNofMotifs() const //______________________________________________________________________________ AliMpVMotif* AliMpVRowSegmentSpecial::GetMotif(Int_t i) const { -// Returns the i-th motif present in this row segment. -// --- +/// Return the i-th motif present in this row segment. #ifdef WITH_STL return fMotifs[i]; @@ -476,8 +447,7 @@ AliMpVMotif* AliMpVRowSegmentSpecial::GetMotif(Int_t i) const //______________________________________________________________________________ Int_t AliMpVRowSegmentSpecial::GetMotifPositionId(Int_t i) const { -// Returns the i-th motif position Id present in this row segment. -// --- +/// Return the i-th motif position Id present in this row segment. return fMotifPositionIds[i]; }