KaliVeda  1.13/01
Heavy-Ion Analysis Toolkit
KVDataPatch_E789_FAZIASI1PunchThroughCCode5.h
Go to the documentation of this file.
1 #ifndef __KVDATAPATCH_E789_FAZIASI1PUNCHTHROUGHCCODE5_H
2 #define __KVDATAPATCH_E789_FAZIASI1PUNCHTHROUGHCCODE5_H
3 
4 #include "KVDataPatch.h"
6 #include "KVFAZIA.h"
7 
24 public:
26  {
28  SetName(ClassName());
29  SetTitle(Class()->GetTitle());
30  }
31  Bool_t IsRequired(TString dataset, TString datatype, Int_t,
32  TString dataseries, Int_t datareleasenumber, const TList*)
33  {
34  return (dataset == "INDRAFAZIA.E789") && (datatype == "recon") && (dataseries == "1.12") && (datareleasenumber == 5);
35  }
36 
38  {
39  return false;
40  }
42  {
43  return true;
44  }
47  {
48  if (rnuc->InArray("FAZIA") && rnuc->GetParameters()->HasIntParameter("CCode")
49  && (rnuc->GetParameters()->GetIntValue("CCode") == 5)) {
51  auto sipsa_idtel = (KVIDTelescope*)rnuc->GetReconstructionTrajectory()->GetIDTelescopes()->Last();
52  idr->Zident = false;
53  idr->Aident = false;
54  idr->SetComment("particle partially identified by pulse shape analysis in SI1, although it is punching through (no SI2 signal or SI1-SI2 id)");
55  rnuc->SetIdentification(idr, sipsa_idtel);
56  }
57  }
58  void PrintPatchInfo() const;
59 
60  ClassDef(KVDataPatch_E789_FAZIASI1PunchThroughCCode5, 1) //Data patch to correct E789 data generated with 1.12/05
61 };
62 
63 #endif
int Int_t
bool Bool_t
#define ClassDef(name, id)
Data patch to correct E789 data generated with 1.12/05.
Bool_t IsRequired(TString dataset, TString datatype, Int_t, TString dataseries, Int_t datareleasenumber, const TList *)
Correction to be applied to reconstructed calibrated data.
Definition: KVDataPatch.h:54
const KVSeqCollection * GetIDTelescopes() const
Base class for all detectors or associations of detectors in array which can identify charged particl...
Definition: KVIDTelescope.h:83
Int_t GetIntValue(const Char_t *name) const
Bool_t HasIntParameter(const Char_t *name) const
KVNameValueList * GetParameters() const
Definition: KVParticle.h:816
Event containing KVReconstructedNucleus nuclei reconstructed from hits in detectors.
Nuclei reconstructed from data measured by a detector array .
Bool_t InArray(const TString &) const
Returns kTRUE if particle was detected in array with given name.
Int_t GetNumberOfIdentificationResults() const
KVIdentificationResult * GetIdentificationResult(Int_t i)
const KVReconNucTrajectory * GetReconstructionTrajectory() const
void SetIdentification(KVIdentificationResult *, KVIDTelescope *)
virtual TObject * Last() const
virtual void SetTitle(const char *title="")
virtual const char * GetTitle() const
virtual void SetName(const char *name)
virtual const char * ClassName() const
const char * Class