#include "AliPMDNoiseCut.h"
#include "AliPMDddlinfoData.h"
#include "AliPMDRecoParam.h"
+#include "AliRecoParam.h"
#include "AliPMDReconstructor.h"
#include "AliDAQ.h"
// ------------------------------------------------------------------------- //
void AliPMDClusterFinder::Digits2RecPoints(TTree *digitsTree,
- TTree *clustersTree)
+ TTree *clustersTree, Int_t gRecoMode)
{
// Converts digits to recpoints after running clustering
// algorithm on CPV plane and PREshower plane
// Int_t cluspar = fRecoParam->GetPbPbParam()->GetClusteringParam();
+
Int_t cluspar = fRecoParam->GetPPParam()->GetClusteringParam();
+
+
// Int_t cluspar = fRecoParam->GetCosmicParam()->GetClusteringParam();
//_______________________________________________________//
//Added to switch Refine and crude Clustering - satya//
// temporary solution - will be sorted out later
- cluspar = 1;
+ /*cluspar = 1;
static AliPMDRecoParam *reconp = NULL;
reconp = (AliPMDRecoParam*)AliPMDReconstructor::GetRecoParam();
if(!reconp) {
cluspar = 1;
}
else {
-
+
if( reconp->GetClusteringParam() == 1)
cluspar = 1;
if( reconp->GetClusteringParam() == 2)
cluspar = 2;
- }
+ }
+
+ */
+ cluspar = gRecoMode;
//_______________________________________________________//
pmdclust->SetClusteringParam(cluspar);
// ------------------------------------------------------------------------- //
void AliPMDClusterFinder::Digits2RecPoints(AliRawReader *rawReader,
- TTree *clustersTree)
+ TTree *clustersTree, Int_t gRecoMode)
{
// Converts RAW data to recpoints after running clustering
// algorithm on CPV and PREshower plane
Int_t imod = idet*24 + ismn;
// Int_t cluspar = fRecoParam->GetPbPbParam()->GetClusteringParam();
- Int_t cluspar = fRecoParam->GetPPParam()->GetClusteringParam();
+ Int_t cluspar = fRecoParam->GetPPParam()->GetClusteringParam();
// Int_t cluspar = fRecoParam->GetCosmicParam()->GetClusteringParam();
//_______________________________________________________//
//Added to switch Refine and crude Clustering - satya//
// temporary solution - will be sorted out later
- cluspar = 1;
+ /* cluspar = 1;
static AliPMDRecoParam *reconp = NULL;
reconp = (AliPMDRecoParam*)AliPMDReconstructor::GetRecoParam();
if(!reconp) {
cluspar = 1;
if( reconp->GetClusteringParam() == 2)
cluspar = 2;
- }
+ }*/
+
+
+ cluspar = gRecoMode; // permanent solution
+
//_______________________________________________________//
pmdclust->SetClusteringParam(cluspar);