add make clean in Cleopatra

This commit is contained in:
Ryan Tang 2023-04-10 15:56:31 -04:00
parent effdbe7617
commit 2cbbf1670b
2 changed files with 22 additions and 15 deletions

View File

@ -1,6 +1,8 @@
CC=g++ CC=g++
all: Isotope InFileCreator ExtractXSec ExtractXSecFromText PlotTGraphTObjArray FindThetaCM Transfer PlotSimulation IsotopeShort ALL = Isotope InFileCreator ExtractXSec ExtractXSecFromText PlotTGraphTObjArray FindThetaCM Transfer PlotSimulation IsotopeShort
all: $(ALL)
#Cleopatra: Cleopatra.C ../Simulation/Isotope.h ../Simulation/constant.h potentials.h InFileCreator.h ExtractXSec.h PlotTGraphTObjArray.h #Cleopatra: Cleopatra.C ../Simulation/Isotope.h ../Simulation/constant.h potentials.h InFileCreator.h ExtractXSec.h PlotTGraphTObjArray.h
# $(CC) Cleopatra.C -o Cleopatra `root-config --cflags --glibs` # $(CC) Cleopatra.C -o Cleopatra `root-config --cflags --glibs`
@ -31,3 +33,6 @@ Isotope: ../Cleopatra/Isotope.h ../Cleopatra/Isotope.C
IsotopeShort: ../Cleopatra/Isotope.h ../Cleopatra/IsotopeShort.C IsotopeShort: ../Cleopatra/Isotope.h ../Cleopatra/IsotopeShort.C
$(CC) IsotopeShort.C -o IsotopeShort $(CC) IsotopeShort.C -o IsotopeShort
clean:
/bin/rm -f $(ALL)

View File

@ -32,31 +32,34 @@ public :
// Declaration of leaf types // Declaration of leaf types
ULong64_t evID; ULong64_t evID;
Float_t ** e; // all kind of energy Float_t ** e; //! all kind of energy
// ULong64_t ** e_t; //! all kind of timestamp ULong64_t ** e_t; //! all kind of timestamp
// Float_t ** we; //! wave energy Float_t ** we; //! wave energy
// Float_t ** weT; //! wave time Float_t ** weT; //! wave time
// Float_t ** weR; //! wave rise time Float_t ** weR; //! wave rise time
// List of branches // List of branches
TBranch *b_evID; //! TBranch *b_evID; //!
TBranch **b_e; //! TBranch **b_e; //!
// TBranch **b_e_t; //! TBranch **b_e_t; //!
DataHoSei(TTree * /*tree*/ =0) : fChain(0) { DataHoSei(TTree * /*tree*/ =0) : fChain(0) {
printf("--------- %s \n", __func__); printf("--------- %s \n", __func__);
e = new Float_t * [mapping::nDetType]; e = new Float_t * [mapping::nDetType];
e_t = new ULong64_t * [mapping::nDetType];
b_e = new TBranch * [mapping::nDetType]; b_e = new TBranch * [mapping::nDetType];
for( int i = 0 ; i < mapping::nDetType; i++) e[i] = new Float_t[mapping::detNum[i]]; b_e_t = new TBranch * [mapping::nDetType];
for( int i = 0 ; i < mapping::nDetType; i++) {
e[i] = new Float_t[mapping::detNum[i]];
e_t[i] = new ULong64_t[mapping::detNum[i]];
}
} }
virtual ~DataHoSei() { virtual ~DataHoSei() {
printf("--------- %s \n", __func__); printf("--------- %s \n", __func__);
printf("----------- B \n"); printf("----------- B \n");
} }
virtual Int_t Version() const { return 2; } virtual Int_t Version() const { return 2; }
@ -92,11 +95,10 @@ void DataHoSei::Init(TTree *tree){
fChain->SetBranchAddress("evID", &evID, &b_evID); fChain->SetBranchAddress("evID", &evID, &b_evID);
fChain->SetBranchAddress(mapping::detTypeName[0].c_str(), e[0], &b_e[0]); for( int i = 0; i < mapping::nDetType; i++){
//for( int i = 0; i < mapping::nDetType; i++){ fChain->SetBranchAddress((mapping::detTypeName[i]).c_str(), e[i], &b_e[i]);
// fChain->SetBranchAddress((mapping::detTypeName[i] + "_t").c_str(), e_t[i], &b_e_t[i]); fChain->SetBranchAddress((mapping::detTypeName[i] + "_t").c_str(), e_t[i], &b_e_t[i]);
}
//}
// TObjArray * branchList = fChain->GetListOfBranches(); // TObjArray * branchList = fChain->GetListOfBranches();