fZeroSharedHitsBelowThreshold(false),
fLCuts(),
fHCuts(),
- fUseSimpleMerging(false)
+ fUseSimpleMerging(false),
+ fThreeStripSharing(true)
{
//
// Default Constructor - do not use
fZeroSharedHitsBelowThreshold(false),
fLCuts(),
fHCuts(),
- fUseSimpleMerging(false)
+ fUseSimpleMerging(false),
+ fThreeStripSharing(true)
{
//
// Constructor
fZeroSharedHitsBelowThreshold(o.fZeroSharedHitsBelowThreshold),
fLCuts(o.fLCuts),
fHCuts(o.fHCuts),
- fUseSimpleMerging(o.fUseSimpleMerging)
+ fUseSimpleMerging(o.fUseSimpleMerging),
+ fThreeStripSharing(o.fThreeStripSharing)
{
//
// Copy constructor
fLCuts = o.fLCuts;
fHCuts = o.fHCuts;
fUseSimpleMerging = o.fUseSimpleMerging;
+ fThreeStripSharing = o.fThreeStripSharing;
fRingHistos.Delete();
TIter next(&o.fRingHistos);
nDistanceBefore = -1;
}
- if(eTotal > 0) {
+ if(fThreeStripSharing && eTotal > 0) {
if(multNext > GetLowCut(d, r, eta) &&
(multNext < GetHighCut(d, r, eta ,false) || twoLow)) {
eTotal = eTotal + multNext;
multNext < GetHighCut(d, r, eta ,false) )
twoLow = kTRUE;
- if(mult>multNext && multNextNext < GetLowCut(d, r, eta)) {
- etot = mult + multNext;
- used=kTRUE;
- histos->fDouble->Fill(etot);
- }
+ if(!fThreeStripSharing ||
+ (mult>multNext && multNextNext < GetLowCut(d, r, eta)))
+ {
+ etot = mult + multNext;
+ used=kTRUE;
+ histos->fDouble->Fill(etot);
+ }
else {
etot = 0;
eTotal = mult + multNext;
*
*/
void SetUseSimpleSharing(Bool_t use) { fUseSimpleMerging = use; }
+ /**
+ * In case of a simpler merging algorithm allow 3 strips to be
+ * merged
+ *
+ * @param use allow three strips
+ *
+ */
+ void SetAllow3Strips(Bool_t use) { fThreeStripSharing = use; }
/**
* Set the number of landau width to subtract from the most probably
* value to get the high cut for the merging algorithm.
AliFMDFloatMap* fOper; // Operation done per strip
Int_t fDebug; // Debug level
Bool_t fZeroSharedHitsBelowThreshold; //Whether to zero shared strip below cut
- AliFMDMultCuts fLCuts;
- AliFMDMultCuts fHCuts;
- Bool_t fUseSimpleMerging;
+ AliFMDMultCuts fLCuts; //Cuts object for low cuts
+ AliFMDMultCuts fHCuts; //Cuts object for high cuts
+ Bool_t fUseSimpleMerging; //enable simple sharing by HHD
+ Bool_t fThreeStripSharing; //In case of simple sharing allow 3 strips
ClassDef(AliFMDSharingFilter,3); //
};