Skip to content
Snippets Groups Projects
CbmL1Hit.h 1.10 KiB
/* Copyright (C) 2010-2021 Frankfurt Institute for Advanced Studies, Goethe-Universität Frankfurt, Frankfurt
   SPDX-License-Identifier: GPL-3.0-only
   Authors: Igor Kulakov [committer], Valentina Akishina, Maksym Zyzak */

#ifndef _CbmL1Hit_h_
#define _CbmL1Hit_h_

#include "L1Vector.h"

///
/// hits with hit-mcpoint match information
///
class CbmL1Hit {
public:
  CbmL1Hit() = default;

  CbmL1Hit(int hitId_, int extIndex_, int Det_) : hitId(hitId_), extIndex(extIndex_), Det(Det_) {};

  int hitId    = 0;    ///< index of L1Hit in algo->vHits array. Should be equal to index of this in L1->vHits
  int extIndex = 0;    ///< index of hit in the TClonesArray array
  int Det      = 0;    ///< station index
  float x      = 0.f;  ///< measured X coordinate
  float y      = 0.f;  ///< measured Y coordinate
  float t      = 0.f;  ///< measured time
  int f        = 0;    ///< front strip index
  int b        = 0;    ///< back strip index
  int ID       = 0;    ///< TODO: check if this ID is redundant
  L1Vector<int> mcPointIds {"CbmL1Hit::mcPointIds"};  ///< indices of CbmL1MCPoint in L1->fvMCPoints array
};

#endif