CbmL1Hit.h 1.1 KB
Newer Older
Sergey Gorbunov's avatar
Sergey Gorbunov committed
1
2
3
4
5
6
7
/* 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_

8
#include "L1Vector.h"
Sergey Gorbunov's avatar
Sergey Gorbunov committed
9
10
11
12

///
/// hits with hit-mcpoint match information
///
13
14
15
struct CbmL1Hit {

  CbmL1Hit() = default;
Sergey Gorbunov's avatar
Sergey Gorbunov committed
16
17
18

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

Sergei Zharko's avatar
Sergei Zharko committed
19
20
21
22
23
24
25
26
27
  int hitId    = 0;    ///> index of L1Hit in algo->vStsHits array. Should be equal to index of this in L1->vStsHits
  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
28
  L1Vector<int> mcPointIds {"CbmL1Hit::mcPointIds"};  // indices of CbmL1MCPoint in L1->vMCPoints array
Sergey Gorbunov's avatar
Sergey Gorbunov committed
29
30
31
};

#endif