| 2 |
* DataQualCut.cpp |
* DataQualCut.cpp |
| 3 |
* |
* |
| 4 |
* Created on: 10-mar-2009 |
* Created on: 10-mar-2009 |
| 5 |
* Author: Sergio Ricciarini, Nicola Mori |
* Author: S. Ricciarini |
| 6 |
*/ |
*/ |
| 7 |
|
|
| 8 |
/*! @file DataQualCut.cpp The DataQualCut class implementation file */ |
/*! @file DataQualCut.cpp The DataQualCut class implementation file */ |
| 61 |
} |
} |
| 62 |
//cout << "TOF "; |
//cout << "TOF "; |
| 63 |
|
|
| 64 |
// ++++++++++ AC ++++++++++ |
// ++++++++++ ANT ++++++++++ |
| 65 |
if ((_cutMask & AC) == AC) { |
if ((_cutMask & ANT) == ANT) { |
| 66 |
if (event->GetAcLevel2()) { |
if (event->GetAcLevel2()) { |
| 67 |
if (event->GetAcLevel2()->unpackError || ((event->GetAcLevel2()->status[0] >> 2) & 1) |
if (event->GetAcLevel2()->unpackError || ((event->GetAcLevel2()->status[0] >> 2) & 1) |
| 68 |
|| ((event->GetAcLevel2()->status[1] >> 2) & 1)) { |
|| ((event->GetAcLevel2()->status[1] >> 2) & 1)) { |
| 69 |
return AC; |
return ANT; |
| 70 |
} |
} |
| 71 |
} |
} |
| 72 |
else { |
else { |
| 73 |
return AC; |
return ANT; |
| 74 |
} |
} |
| 75 |
} |
} |
| 76 |
//cout << "AC "; |
//cout << "ANT "; |
| 77 |
|
|
| 78 |
// ++++++++++ TRIG ++++++++++ |
// ++++++++++ TRG ++++++++++ |
| 79 |
if ((_cutMask & TRIG) == TRIG) { |
if ((_cutMask & TRG) == TRG) { |
| 80 |
if (event->GetTrigLevel2()) { |
if (event->GetTrigLevel2()) { |
| 81 |
if (event->GetTrigLevel2()->unpackError) { |
if (event->GetTrigLevel2()->unpackError) { |
| 82 |
return TRIG; |
return TRG; |
| 83 |
} |
} |
| 84 |
} |
} |
| 85 |
else { |
else { |
| 86 |
return TRIG; |
return TRG; |
| 87 |
} |
} |
| 88 |
} |
} |
| 89 |
//cout << "TRIG "; |
//cout << "TRG "; |
| 90 |
|
|
| 91 |
|
// ++++++++++ ND ++++++++++ |
| 92 |
|
if ((_cutMask & ND) == ND) { |
| 93 |
|
if (event->GetNDLevel2()) { |
| 94 |
|
if (event->GetNDLevel2()->unpackError) { |
| 95 |
|
return ND; |
| 96 |
|
} |
| 97 |
|
} |
| 98 |
|
else { |
| 99 |
|
return ND; |
| 100 |
|
} |
| 101 |
|
} |
| 102 |
|
//cout << "ND "; |
| 103 |
|
|
|
//TODO: vedere se si puo' controllare anche l'unpack error per ORB (sembra di no...) |
|
| 104 |
// ++++++++++ ORB ++++++++++ |
// ++++++++++ ORB ++++++++++ |
| 105 |
if ((_cutMask & ORB) == ORB) { |
if ((_cutMask & ORB) == ORB) { |
| 106 |
if (!event->GetOrbitalInfo()) { |
if (!event->GetOrbitalInfo()) { |