]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSCorrMap2DSDD.cxx
end-of-line normalization
[u/mrichter/AliRoot.git] / ITS / AliITSCorrMap2DSDD.cxx
index 2cf02df2ce80f7dc5c9f411b0c69a8b181a320e5..d4143518feea1ce130c226d5c43e1839e438e7d6 100644 (file)
@@ -1,79 +1,79 @@
-/**************************************************************************\r
- * Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *\r
- *                                                                        *\r
- * Author: The ALICE Off-line Project.                                    *\r
- * Contributors are mentioned in the code where appropriate.              *\r
- *                                                                        *\r
- * Permission to use, copy, modify and distribute this software and its   *\r
- * documentation strictly for non-commercial purposes is hereby granted   *\r
- * without fee, provided that the above copyright notice appears in all   *\r
- * copies and that both the copyright notice and this permission notice   *\r
- * appear in the supporting documentation. The authors make no claims     *\r
- * about the suitability of this software for any purpose. It is          *\r
- * provided "as is" without express or implied warranty.                  *\r
- **************************************************************************/\r
-\r
-/* $Id$ */\r
-\r
-///////////////////////////////////////////////////////////////////\r
-//                                                               //\r
-// Implementation of the base class for SDD map 2D corrections   //\r
-// Origin: F.Prino, Torino, prino@to.infn.it                     //\r
-//                                                               //\r
-///////////////////////////////////////////////////////////////////\r
-\r
-#include "TH1F.h"\r
-#include "TH2F.h"\r
-#include "AliITSCorrMapSDD.h"\r
-#include "AliITSCorrMap2DSDD.h"\r
-#include "AliLog.h"\r
-#include "AliITSsegmentationSDD.h"\r
-\r
-ClassImp(AliITSCorrMap2DSDD)\r
-//______________________________________________________________________\r
-AliITSCorrMap2DSDD::AliITSCorrMap2DSDD():\r
-AliITSCorrMapSDD()\r
-{\r
-  // default constructor\r
-  ResetMap();\r
-}\r
-//______________________________________________________________________\r
-AliITSCorrMap2DSDD::AliITSCorrMap2DSDD(Char_t *mapname):\r
-AliITSCorrMapSDD(mapname)\r
-{\r
-  // standard constructor\r
-  ResetMap();\r
-}\r
-//______________________________________________________________________\r
-AliITSCorrMap2DSDD::AliITSCorrMap2DSDD(Char_t *mapname, Int_t nbinsan, Int_t nbinsdr):\r
-AliITSCorrMapSDD(mapname)\r
-{\r
-  // standard constructor\r
-  ResetMap();\r
-  SetNBinsAnode(nbinsan);\r
-  SetNBinsDrift(nbinsdr);\r
-}\r
-//______________________________________________________________________\r
-void AliITSCorrMap2DSDD::ResetMap(){\r
-  // Sets contents to zero\r
-  for(Int_t iAn=0;iAn<kMaxNAnodePts; iAn++){\r
-    for(Int_t iDr=0;iDr<kMaxNDriftPts; iDr++){\r
-      fCorrMap[iAn][iDr]=0;\r
-    }\r
-  }\r
-}\r
-\r
-//______________________________________________________________________\r
-void AliITSCorrMap2DSDD::Set2DMap(TH2F* hmap){\r
-  // Fill map staring from 2D histo \r
-  // with anodes on x axis and drift dist. on y axis\r
-  if(hmap->GetNbinsX()!=fNAnodePts || hmap->GetNbinsY()!=fNDriftPts){ \r
-    AliError(Form("N. of histo bins (%dX%d) not matching N. of map cells (%dX%d)\n",hmap->GetNbinsX(),hmap->GetNbinsY(),fNAnodePts,fNDriftPts));\r
-    return;\r
-  }\r
-  for(Int_t iAn=0;iAn<fNAnodePts; iAn++){\r
-    for(Int_t iDr=0;iDr<fNDriftPts; iDr++){\r
-      SetCellContent(iAn,iDr,hmap->GetBinContent(iAn+1,iDr+1));\r
-    }\r
-  }\r
-}\r
+/**************************************************************************
+ * Copyright(c) 2007-2009, 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$ */
+
+///////////////////////////////////////////////////////////////////
+//                                                               //
+// Implementation of the base class for SDD map 2D corrections   //
+// Origin: F.Prino, Torino, prino@to.infn.it                     //
+//                                                               //
+///////////////////////////////////////////////////////////////////
+
+#include "TH1F.h"
+#include "TH2F.h"
+#include "AliITSCorrMapSDD.h"
+#include "AliITSCorrMap2DSDD.h"
+#include "AliLog.h"
+#include "AliITSsegmentationSDD.h"
+
+ClassImp(AliITSCorrMap2DSDD)
+//______________________________________________________________________
+AliITSCorrMap2DSDD::AliITSCorrMap2DSDD():
+AliITSCorrMapSDD()
+{
+  // default constructor
+  ResetMap();
+}
+//______________________________________________________________________
+AliITSCorrMap2DSDD::AliITSCorrMap2DSDD(Char_t *mapname):
+AliITSCorrMapSDD(mapname)
+{
+  // standard constructor
+  ResetMap();
+}
+//______________________________________________________________________
+AliITSCorrMap2DSDD::AliITSCorrMap2DSDD(Char_t *mapname, Int_t nbinsan, Int_t nbinsdr):
+AliITSCorrMapSDD(mapname)
+{
+  // standard constructor
+  ResetMap();
+  SetNBinsAnode(nbinsan);
+  SetNBinsDrift(nbinsdr);
+}
+//______________________________________________________________________
+void AliITSCorrMap2DSDD::ResetMap(){
+  // Sets contents to zero
+  for(Int_t iAn=0;iAn<kMaxNAnodePts; iAn++){
+    for(Int_t iDr=0;iDr<kMaxNDriftPts; iDr++){
+      fCorrMap[iAn][iDr]=0;
+    }
+  }
+}
+
+//______________________________________________________________________
+void AliITSCorrMap2DSDD::Set2DMap(TH2F* hmap){
+  // Fill map staring from 2D histo 
+  // with anodes on x axis and drift dist. on y axis
+  if(hmap->GetNbinsX()!=fNAnodePts || hmap->GetNbinsY()!=fNDriftPts){ 
+    AliError(Form("N. of histo bins (%dX%d) not matching N. of map cells (%dX%d)\n",hmap->GetNbinsX(),hmap->GetNbinsY(),fNAnodePts,fNDriftPts));
+    return;
+  }
+  for(Int_t iAn=0;iAn<fNAnodePts; iAn++){
+    for(Int_t iDr=0;iDr<fNDriftPts; iDr++){
+      SetCellContent(iAn,iDr,hmap->GetBinContent(iAn+1,iDr+1));
+    }
+  }
+}