// Authors: David Guez, Ivana Hrivnacova; IPN Orsay
#include <Riostream.h>
+#include <TVector2.h>
#include "AliMpMotifMap.h"
#include "AliMpVMotif.h"
// ---
AliMpMotifPosition* found = FindMotifPosition(motifPosition->GetID());
- if (found) {
- if (warn && found == motifPosition)
+ if (found) {
+ if (warn && found == motifPosition) {
+ cerr << "ID: " << motifPosition->GetID()
+ << " found: " << found
+ << " new: " << motifPosition << endl;
Warning("AddMotifPosition", "This motif position is already in map.");
- if (warn && found != motifPosition)
+ }
+ if (warn && found != motifPosition) {
+ cerr << "ID: " << motifPosition->GetID()
+ << " found: " << found
+ << " new: " << motifPosition << endl;
Warning("AddMotifposition",
- "Another motif position with the same ID is already in map.");
+ "Another motif position with the same ID is already in map.");
+ }
return false;
}
}
//_____________________________________________________________________________
-void AliMpMotifMap::Print() const
+void AliMpMotifMap::Print(const char* /*option*/) const
{
// Prints the motifs and motif types maps.
// ---
//_____________________________________________________________________________
AliMpVMotif* AliMpMotifMap::FindMotif(const TString& motifID,
- const TString& motifTypeID,
- TVector2 padDimensions ) const
+ const TString& motifTypeID,
+ const TVector2& padDimensions ) const
{
// Finds the motif with the specified ID and returns it
// only if its motif type and motif dimensions agree
}
//_____________________________________________________________________________
-AliMpMotifPosition* AliMpMotifMap::FindMotifPosition(Int_t motifPositionID) const
+AliMpMotifPosition*
+AliMpMotifMap::FindMotifPosition(Int_t motifPositionID) const
{
// Finds the motif position with the specified motif position ID.
// ---
}
//_____________________________________________________________________________
-AliMpMotifPosition* AliMpMotifMap::FindMotifPosition(AliMpIntPair indices) const
+AliMpMotifPosition*
+AliMpMotifMap::FindMotifPosition(const AliMpIntPair& indices) const
{
// Finds the last motif position which has the global indices (low limit)
// less then the indices specified.