]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALTriggerData.cxx
coverity fixes
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALTriggerData.cxx
index ce4bef701d7815c8fc415fce8fee34056f0d93d7..3c834875af7f1939793d2eea99b3cdd079291117 100644 (file)
@@ -38,9 +38,15 @@ fL1GammaPatches(),
 fL1JetPatches(),
 fL1Region(),
 fL1GammaThreshold(0),
-fL1JetThreshold(0)
+fL1JetThreshold(0),
+fL1V0(),
+fL1FrameMask(0),
+fL1TriggerType(),
+fL1DataDecoded(0),
+fL1RawData(0)
 {  
-       //
+       // Ctor
+       
        for (Int_t i = 0; i < 2; i++)
        {
                       fL0Patches[i] = new TClonesArray("AliEMCALTriggerPatch");
@@ -50,12 +56,16 @@ fL1JetThreshold(0)
        
        for (Int_t i = 0; i < 32; i++) for (Int_t j = 0; j < 24; j++) for (Int_t k = 0; k <  4; k++) fL0Region[i][j][k] = 0;
        for (Int_t i = 0; i <  2; i++) for (Int_t j = 0; j < 48; j++) for (Int_t k = 0; k < 64; k++) fL1Region[i][j][k] = 0;
+       
+       fL1V0[0] = fL1V0[1] = 0;
+       for (Int_t i = 0; i < 8; i++) fL1TriggerType[i] = 0;    
 }
 
 //_____________
 AliEMCALTriggerData::~AliEMCALTriggerData()
 {
-       //
+       // Dtor
+       
        for (Int_t i = 0; i < 2; i++)
        {
                if (     fL0Patches[i])      fL0Patches[i]->Delete();
@@ -67,7 +77,8 @@ AliEMCALTriggerData::~AliEMCALTriggerData()
 //_____________
 void AliEMCALTriggerData::SetL0Region(Int_t i, const Int_t**& region)
 {
-       //
+       // L0 region
+       
        if (i < 0 || i > 31) 
        {
                AliError("Bad index!");
@@ -81,7 +92,8 @@ void AliEMCALTriggerData::SetL0Region(Int_t i, const Int_t**& region)
 //_____________
 void AliEMCALTriggerData::GetPatches(TriggerType_t type, Int_t i, TClonesArray& patches) const
 {
-       //
+       // List of patches
+       
        if (i < 0 || i > 1) 
        {
                AliError("Bad index!");
@@ -108,7 +120,8 @@ void AliEMCALTriggerData::GetPatches(TriggerType_t type, Int_t i, TClonesArray&
 //_____________
 TClonesArray* AliEMCALTriggerData::GetPatches(TriggerType_t type, Int_t i) const
 {
-       //
+       // List of patches
+       
        if (i < 0 || i > 1) 
        {
                AliError("Bad index!");
@@ -137,7 +150,8 @@ TClonesArray* AliEMCALTriggerData::GetPatches(TriggerType_t type, Int_t i) const
 //_____________
 void AliEMCALTriggerData::SetPatches(TriggerType_t type, Int_t i, const TClonesArray& patches)
 {
-       //
+       // Set list of patches
+       
        if (i < 0 || i > 1) 
        {
                AliError("Bad index!");
@@ -186,7 +200,8 @@ void AliEMCALTriggerData::SetPatches(TriggerType_t type, Int_t i, const TClonesA
 //_____________
 void AliEMCALTriggerData::SetL1Region(Int_t i, Int_t**& region)
 {
-       //
+       // Set L1 region
+       
        if (i < 0 || i > 1) 
        {
                AliError("Bad index!");
@@ -200,7 +215,8 @@ void AliEMCALTriggerData::SetL1Region(Int_t i, Int_t**& region)
 //_____________
 void AliEMCALTriggerData::GetL1Region(Int_t i, Int_t arr[][64]) const 
 { 
-       //
+       // Get L1 region
+       
        if (i < 0 || i > 1) 
        {
                AliError("Bad index!");
@@ -214,7 +230,8 @@ void AliEMCALTriggerData::GetL1Region(Int_t i, Int_t arr[][64]) const
 //_____________
 void AliEMCALTriggerData::Scan() const
 {
-       //
+       // Dump
+       
        TIterator* nP;
 
        printf("L0:\n");
@@ -245,7 +262,8 @@ void AliEMCALTriggerData::Scan() const
 //_____________
 void AliEMCALTriggerData::Reset()
 {
-       //
+       // Reset
+       
        for (Int_t i = 0; i < 2; i++)
        {
                if (     fL0Patches[i])      fL0Patches[i]->Delete();
@@ -254,6 +272,8 @@ void AliEMCALTriggerData::Reset()
        }
                
        for (Int_t i = 0; i < 2; i++) for (Int_t j = 0; j < 48; j++) for (Int_t k = 0; k < 64; k++) fL1Region[i][j][k] = 0;
+       
+       fL1DataDecoded = 0;
 }