13#include <TClonesArray.h>
28 std::unordered_map<CbmCutId, CbmCut<float>>
GetMap()
const {
return fCbmCuts; }
68 for (
auto& [
id, cut] : obj.
GetMap()) {
69 out <<
ToString(
id) <<
"\t" << cut << std::endl;
80 std::cout << int(
id) <<
": " << cut <<
"\tFailed: " <<
fFailedCounter[id] << std::endl;
85 std::unordered_map<CbmCutId, CbmCut<float>>
fCbmCuts;
std::string ToString(CbmCutId id)
Convert CbmCutId to a string representation.
CbmCutId
Enumeration of cut identifiers for various observables.
Data class for a reconstructed hit in the STS.
bool CheckEvent(CbmEvent *evt)
Check if a CbmEvent passes the cuts.
std::unordered_map< CbmCutId, unsigned long int > fFailedCounter
CbmCut< float > * AddCbmCut(CbmCutId id)
Add a new cut to the map.
std::unordered_map< CbmCutId, CbmCut< float > > GetMap() const
Get the map of cuts.
std::unordered_map< CbmCutId, CbmCut< float > > fCbmCuts
bool CheckStsHit(CbmStsHit *, TClonesArray *)
Check if a CbmStsHit passes the cuts.
void Print()
Print the cuts and failed pass counters.
friend std::ostream & operator<<(std::ostream &out, const CbmCutMap &obj)
Overloaded stream insertion operator for CbmCutMap.
bool Check(CbmCutId id, double value)
Check if a value passes the cut with the given ID.
Class characterising one event by a collection of links (indices) to data objects,...
data class for a reconstructed 3-d hit in the STS