Adding time bin information (Piergiorgio)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 11 Jul 2008 12:56:15 +0000 (12:56 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 11 Jul 2008 12:56:15 +0000 (12:56 +0000)
ITS/AliITSQASDDDataMakerRec.cxx
ITS/AliITSQASDDDataMakerRec.h

index 7b93d2a..3e5ae45 100644 (file)
@@ -57,7 +57,8 @@ fkOnline(kMode),
 fLDC(ldc),\r
 fSDDhTask(0),\r
 fGenOffset(0),\r
-fDDLModuleMap(0)\r
+fDDLModuleMap(0),\r
+fTimeBinSize(1)\r
 {\r
   //ctor used to discriminate OnLine-Offline analysis\r
   if(fLDC < 0 || fLDC > 4) {\r
@@ -73,7 +74,8 @@ fkOnline(qadm.fkOnline),
 fLDC(qadm.fLDC),\r
 fSDDhTask(qadm.fSDDhTask),\r
 fGenOffset(qadm.fGenOffset),\r
-fDDLModuleMap(0)\r
+fDDLModuleMap(0),\r
+fTimeBinSize(1)\r
 {\r
   //copy ctor \r
   fAliITSQADataMakerRec->SetName((const char*)qadm.fAliITSQADataMakerRec->GetName()) ; \r
@@ -191,6 +193,7 @@ void AliITSQASDDDataMakerRec::InitRaws()
   Int_t indexlast2 = 0;\r
 \r
   if(fkOnline) {\r
+       fTimeBinSize = 4;\r
     indexlast = 0;\r
     index1 = 0;\r
        indexlast1 = fSDDhTask;\r
@@ -203,7 +206,7 @@ void AliITSQASDDDataMakerRec::InitRaws()
                        sprintf(hname[0],"chargeMapFSE_L%d_%d_%d_%d",lay,lad,det,iside);\r
                        sprintf(hname[1],"ChargeMapForSingleEvent_L%d_%d_%d_%d",lay,lad,det,iside);\r
                        sprintf(hname[2],"hmonoDMap_L%d_%d_%d_%d",lay,lad,det,iside);\r
-                       TProfile2D *fModuleChargeMapFSE = new TProfile2D(hname[0],hname[1],128,-0.5,255.5,256,-0.5,255.5);\r
+                       TProfile2D *fModuleChargeMapFSE = new TProfile2D(hname[0],hname[1],256/fTimeBinSize,-0.5,255.5,256,-0.5,255.5);\r
                        fModuleChargeMapFSE->GetXaxis()->SetTitle("Time Bin");\r
                        fModuleChargeMapFSE->GetYaxis()->SetTitle("Anode");\r
                        fAliITSQADataMakerRec->Add2RawsList((new TProfile2D(*fModuleChargeMapFSE)),indexlast1 + index1 + fGenOffset);\r
@@ -220,7 +223,7 @@ void AliITSQASDDDataMakerRec::InitRaws()
                        AliITSgeomTGeo::GetModuleId(moduleSDD+fgkmodoffset, lay, lad, det);\r
                        sprintf(hname[0],"chargeMap_L%d_%d_%d_%d",lay,lad,det,iside);\r
                        sprintf(hname[1],"ChargeMap_L%d_%d_%d_%d",lay,lad,det,iside);\r
-                       TProfile2D *fModuleChargeMap = new TProfile2D(hname[0],hname[1],128,-0.5,255.5,256,-0.5,255.5);\r
+                       TProfile2D *fModuleChargeMap = new TProfile2D(hname[0],hname[1],256/fTimeBinSize,-0.5,255.5,256,-0.5,255.5);\r
                        fModuleChargeMap->GetXaxis()->SetTitle("Time Bin");\r
                        fModuleChargeMap->GetYaxis()->SetTitle("Anode");\r
                        fAliITSQADataMakerRec->Add2RawsList((new TProfile2D(*fModuleChargeMap)),indexlast1 + index1 + fGenOffset);\r
index e3078fa..b2e6316 100644 (file)
@@ -57,12 +57,13 @@ private:
   Int_t   fLDC;                            //LDC number (0 for offline, 1 to 4 for online) \r
   Int_t   fSDDhTask;                       // number of histo booked for each Task SDD\r
   Int_t   fGenOffset;                         // qachecking offset       \r
+  Int_t   fTimeBinSize;                                                // time bin width in number of clocks\r
   AliITSDDLModuleMapSDD  *fDDLModuleMap;// SDD Detector configuration for the decoding\r
 /*\r
   TProfile2D *fModuleChargeMap[2*fgknSDDmodules];//module map\r
   TProfile2D *fModuleChargeMapFSE[2*fgknSDDmodules];//module map for one event \r
 */ \r
-  ClassDef(AliITSQASDDDataMakerRec,3)      // description \r
+  ClassDef(AliITSQASDDDataMakerRec,4)      // description \r
 \r
 };\r
 \r