PandaRoot
PndListDefiner.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 #ifndef PNDLISTDEFINER_H
14 #define PNDLISTDEFINER_H
15 
16 #include <string>
17 #include <vector>
18 
19 #include "RhoCandList.h"
20 
21 class TH1F;
23 
25  public:
27  PndListDefiner(std::string name);
28  virtual ~PndListDefiner();
29 
30  void Print();
31  int GetLength();
32  int GetNDau();
33  int GetNSels();
34  int GetNHistos();
35 
36  std::string fName;
37  int fPdgCode;
38  float fCharge;
39  int fAntiIdx;
41  bool fIsUsed;
42  bool fIsFilled;
43  bool fIsGeneric;
44  bool fIsMerged;
45  bool fDumpList;
47  std::vector<TH1F *> fHisto;
48  std::vector<RhoParticleSelectorBase *> fSelector;
49  std::vector<int> fDauIdx;
50 
51  // information for the NTuple dumpout
52  int fNEntries; // Number of entries in list; used for the tuple dumpout
53  std::string fColName; // the prefix for storing in NTuple
54  std::vector<std::string> fNtpFNames; // column names with floats to be stored
55  std::vector<float *> fNtpFArrays; // the corresponding float arrays
56  std::vector<std::string> fNtpINames; // column names with ints to be stored
57  std::vector<int *> fNtpIArrays; // the corresponding int arrays
58 
60 };
61 
62 #endif
virtual ~PndListDefiner()
std::vector< std::string > fNtpINames
std::vector< int * > fNtpIArrays
std::string fColName
std::string fName
RhoCandList fList
std::vector< float * > fNtpFArrays
std::vector< RhoParticleSelectorBase * > fSelector
std::vector< int > fDauIdx
ClassDef(PndListDefiner, 1)
std::vector< TH1F * > fHisto
std::vector< std::string > fNtpFNames