**************************************************************************/
#include <iostream>
-
+#include "AliHLTPHOSDefinitions.h" // PTH
#include "AliHLTPHOSMonitorTriggerComponent.h"
-#include "AliHLTPHOSCaloClusterHeaderStruct.h"
-#include "AliHLTPHOSCaloClusterDataStruct.h"
+#include "AliHLTCaloClusterDataStruct.h"
#include "AliHLTDataTypes.h"
/** @file AliHLTPHOSMonitorTriggerComponent.h
AliHLTPHOSMonitorTriggerComponent::AliHLTPHOSMonitorTriggerComponent():
- AliHLTPHOSProcessor(),
+ AliHLTCaloProcessor(),
fCheckClusterEnergy(false),
fCheckClusterMultiplicities(false),
fClusterEnergyThreshold(1),
}
specification |= iter->fSpecification;
- monitorflag += CheckClusters(reinterpret_cast<AliHLTPHOSCaloClusterHeaderStruct*>(iter->fPtr));
+ monitorflag += CheckClusters(reinterpret_cast<AliHLTCaloClusterHeaderStruct*>(iter->fPtr));
}
}
Bool_t
-AliHLTPHOSMonitorTriggerComponent::CheckClusters(AliHLTPHOSCaloClusterHeaderStruct* clusterHeaderPtr)
+AliHLTPHOSMonitorTriggerComponent::CheckClusters(AliHLTCaloClusterHeaderStruct* clusterHeaderPtr)
{
//See headerfile for documentation
UInt_t nClusters = clusterHeaderPtr->fNClusters;
- Float_t* ampFracPtr = 0;
+// Float_t* ampFracPtr = 0;
- AliHLTPHOSCaloClusterDataStruct* clusterPtr = 0;
+ AliHLTCaloClusterDataStruct* clusterPtr = 0;
- clusterPtr = reinterpret_cast<AliHLTPHOSCaloClusterDataStruct*>(clusterHeaderPtr + sizeof(AliHLTPHOSCaloClusterHeaderStruct));
+ clusterPtr = reinterpret_cast<AliHLTCaloClusterDataStruct*>((UChar_t*)(clusterHeaderPtr + 1));
for(UInt_t n = 0; n < nClusters; n++)
{
if(fCheckClusterEnergy == true && clusterPtr->fEnergy > fClusterEnergyThreshold && clusterPtr->fNCells > fDigitMultiplicityThreshold)
{
- ampFracPtr = &(clusterPtr->fCellsAmpFraction);
+/* ampFracPtr = &(clusterPtr->fCellsAmpFraction);
for(UInt_t i = 0; i < clusterPtr->fNCells; i++)
{
if(*ampFracPtr > fLowerCentrality && *ampFracPtr < fUpperCentrality) return true;
ampFracPtr += 6; // 6 = sizeof(Short_t) + sizeof(Float_t)
- }
+ }*/
}
if(fCheckClusterMultiplicities == true && clusterPtr->fEnergy > fMultEnergyThreshold && clusterPtr->fNCells > fMultDigitMultiplicityThreshold)
{
return true;
}
}
- clusterPtr += sizeof(AliHLTPHOSCaloClusterDataStruct) + 5*clusterPtr->fNCells; //5 = sizeof(Short_t) + sizeof(Float_t) - 1(pair already included)
+ clusterPtr += sizeof(AliHLTCaloClusterDataStruct) + 5*clusterPtr->fNCells; //5 = sizeof(Short_t) + sizeof(Float_t) - 1(pair already included)
}
return false;