]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpDetElement.cxx
- Use dedicated splines for MC periods for 2012 pp (LHC14e2*)
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpDetElement.cxx
index 69cb7a07c0530a96b7f0ad975b64c5c4476cfcb8..fc702b0587b26e870f6421afffb632945341f154 100644 (file)
@@ -42,6 +42,7 @@
 
 #include <Riostream.h>
 
+using std::endl;
 /// \cond CLASSIMP
 ClassImp(AliMpDetElement)
 /// \endcond
@@ -207,7 +208,7 @@ Int_t AliMpDetElement::GetBusPatchId(Int_t index) const
 {
 /// Return the index-th bus patch
 
-  if ( index < 0 || index > GetNofBusPatches() ) {
+  if ( index < 0 || index >= GetNofBusPatches() ) {
     AliErrorStream()
       << "In DE = " << fId << ": Index " << index << " outside limits." << endl;
     return 0;
@@ -274,7 +275,7 @@ AliMpDetElement::AddManu(Int_t manuId)
   
   if ( stationType == AliMp::kStationTrigger ) return;
     
-  AliCodeTimerAuto("")
+  AliCodeTimerAuto("",0)
   
   AliDebug(1,Form("DE %4d Manu %4d",fId,manuId));
 
@@ -310,7 +311,7 @@ AliMpDetElement::AddManu(Int_t manuId)
   
   for ( Int_t i = 0; i < AliMpConstants::ManuNofChannels(); ++i ) 
   {
-    if ( seg->PadByLocation(AliMpIntPair(manuId,i),kFALSE).IsValid() )
+    if ( seg->PadByLocation(manuId,i,kFALSE).IsValid() )
     {
       ++n;
       fTrackerChannels.Add((Long_t)AliMpPadUID::BuildUniqueID(fId,manuId,i),