PandaRoot
PndCANPletsV.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 //-*- Mode: C++ -*-
14 // *****************************************************************************
15 // *
16 // @Autors: I.Kulakov; M.Zyzak; I.Kisel *
17 // @e-mail: I.Kulakov@gsi.de; M.Zyzak@gsi.de; I.Kisel@compeng.uni-frankfurt.de *
18 // *
19 // *****************************************************************************
20 
21 #ifndef PNDCANPletsV_H
22 #define PNDCANPletsV_H
23 
24 #include <vector>
25 using std::vector;
26 #include "PndCAStationArray.h"
27 #include "PndCATrackParamVector.h"
28 
29 class PndCANPletV {
30  public:
31  PndCANPletV() : fParam(), fIsValid(false) {}
32 
33  PndCANPletV(const PndCANPletV &s1, const PndCATrackParamVector &param, const float_m isValid) : fParam(param), fIsValid(isValid) { fNHits = s1.N() + 1; }
34 
35  int N() const { return fNHits; }
36 
37  const PndCATrackParamVector &Param() const { return fParam; }
39 
40  float_m IsValid() const { return fIsValid; }
41  void SetValid(float_m v) { fIsValid = v; }
42  // check wether a is neighbour from the right to this
43 
44  int_v fLastHit;
45  int fNHits;
47  float_m fIsValid;
48 };
49 
50 class PndCANPletsV : public PndCAStationArray<PndCANPletV> {
51  public:
53  PndCANPletsV(int nSta, const PndCAHits *hits) : PndCAStationArray<PndCANPletV>(nSta, hits){};
54 };
55 
56 #endif
void SetValid(float_m v)
Definition: PndCANPletsV.h:41
const PndCATrackParamVector & Param() const
Definition: PndCANPletsV.h:37
float_m IsValid() const
Definition: PndCANPletsV.h:40
float_m fIsValid
Definition: PndCANPletsV.h:47
int N() const
Definition: PndCANPletsV.h:35
PndCANPletV(const PndCANPletV &s1, const PndCATrackParamVector &param, const float_m isValid)
Definition: PndCANPletsV.h:33
__m128 v
Definition: P4_F32vec4.h:15
int_v fLastHit
Definition: PndCANPletsV.h:44
PndCATrackParamVector fParam
Definition: PndCANPletsV.h:46
PndCANPletsV(int nSta, const PndCAHits *hits)
Definition: PndCANPletsV.h:53
PndCATrackParamVector & ParamRef()
Definition: PndCANPletsV.h:38