// Creates the tags for all the events in a given ESD file
Bool_t fIsSim = kTRUE;
Int_t ntrack;
- Int_t nProtons, nKaons, nPions, nMuons, nElectrons;
+ Int_t nProtons, nKaons, nPions, nMuons, nElectrons, nFWMuons;
Int_t nPos, nNeg, nNeutr;
Int_t nK0s, nNeutrons, nPi0s, nGamas;
Int_t nCh1GeV, nCh3GeV, nCh10GeV;
ntrack = 0; nPos = 0; nNeg = 0; nNeutr =0;
nK0s = 0; nNeutrons = 0; nPi0s = 0;
nGamas = 0; nProtons = 0; nKaons = 0;
- nPions = 0; nMuons = 0; nElectrons = 0;
+ nPions = 0; nMuons = 0; nElectrons = 0; nFWMuons = 0;
nCh1GeV = 0; nCh3GeV = 0; nCh10GeV = 0;
nMu1GeV = 0; nMu3GeV = 0; nMu10GeV = 0;
nEl1GeV = 0; nEl3GeV = 0; nEl10GeV = 0;
if ((status&AliESDtrack::kESDpid)==0) continue;
Double_t p[3];
esdTrack->GetPxPyPz(p);
- Double_t momentum = sqrt(pow(p[0],2) + pow(p[1],2) + pow(p[2],2));
- Double_t fPt = sqrt(pow(p[0],2) + pow(p[1],2));
+ Double_t pt2 = p[0]*p[0]+p[1]*p[1];
+ Double_t momentum = TMath::Sqrt(pt2+p[2]*p[2]);
+ Double_t fPt = TMath::Sqrt(pt2);
totalP += momentum;
meanPt += fPt;
if(fPt > maxPt) maxPt = fPt;
// total number of muons inside a vertex cut
if((TMath::Abs(fZ)<fZVertexCut) && (TMath::Sqrt(fY*fY+fX*fX)<fRhoVertexCut)) {
nMuons++;
+ nFWMuons++;
if(fEPvector.Pt() > fLowPtCut) {
nMu1GeV++;
if(fEPvector.Pt() > fHighPtCut) {
evTag->SetZDCNeutron1Energy(esd->GetZDCN2Energy());
evTag->SetZDCProton1Energy(esd->GetZDCP2Energy());
evTag->SetNumOfParticipants(esd->GetZDCParticipants());
+ evTag->SetNumOfParticipants(esd->GetZDCParticipants());
+ evTag->SetNumOfParticipants2(esd->GetZDCParticipants2());
evTag->SetNumOfTracks(esd->GetNumberOfTracks());
evTag->SetNumOfKaons(nKaons);
evTag->SetNumOfPions(nPions);
evTag->SetNumOfMuons(nMuons);
+ evTag->SetNumOfFWMuons(nFWMuons);
evTag->SetNumOfElectrons(nElectrons);
evTag->SetNumOfPhotons(nGamas);
evTag->SetNumOfPi0s(nPi0s);
// Creates the tags for all the events in a given ESD file
Bool_t fIsSim = kTRUE;
Int_t ntrack;
- Int_t nProtons, nKaons, nPions, nMuons, nElectrons;
+ Int_t nProtons, nKaons, nPions, nMuons, nElectrons, nFWMuons;
Int_t nPos, nNeg, nNeutr;
Int_t nK0s, nNeutrons, nPi0s, nGamas;
Int_t nCh1GeV, nCh3GeV, nCh10GeV;
nKaons = 0;
nPions = 0;
nMuons = 0;
+ nFWMuons = 0;
nElectrons = 0;
nCh1GeV = 0;
nCh3GeV = 0;
if ((status&AliESDtrack::kESDpid)==0) continue;
Double_t p[3];
esdTrack->GetPxPyPz(p);
- Double_t momentum = sqrt(pow(p[0],2) + pow(p[1],2) + pow(p[2],2));
- Double_t fPt = sqrt(pow(p[0],2) + pow(p[1],2));
+ Double_t pt2 = p[0]*p[0]+p[1]*p[1];
+ Double_t momentum = TMath::Sqrt(pt2+p[2]*p[2]);
+ Double_t fPt = TMath::Sqrt(pt2);
totalP += momentum;
meanPt += fPt;
if(fPt > maxPt) maxPt = fPt;
// total number of muons inside a vertex cut
if((TMath::Abs(fZ)<fZVertexCut) && (TMath::Sqrt(fY*fY+fX*fX)<fRhoVertexCut)) {
nMuons++;
+ nFWMuons++;
if(fEPvector.Pt() > fLowPtCut) {
nMu1GeV++;
if(fEPvector.Pt() > fHighPtCut) {
evTag->SetNumOfKaons(nKaons);
evTag->SetNumOfPions(nPions);
evTag->SetNumOfMuons(nMuons);
+ evTag->SetNumOfFWMuons(nFWMuons);
evTag->SetNumOfElectrons(nElectrons);
evTag->SetNumOfPhotons(nGamas);
evTag->SetNumOfPi0s(nPi0s);
// Creates the tags for all the events in a given ESD file
Bool_t fIsSim = kTRUE;
Int_t ntrack;
- Int_t nProtons, nKaons, nPions, nMuons, nElectrons;
+ Int_t nProtons, nKaons, nPions, nMuons, nElectrons, nFWMuons;
Int_t nPos, nNeg, nNeutr;
Int_t nK0s, nNeutrons, nPi0s, nGamas;
Int_t nCh1GeV, nCh3GeV, nCh10GeV;
nKaons = 0;
nPions = 0;
nMuons = 0;
+ nFWMuons = 0;
nElectrons = 0;
nCh1GeV = 0;
nCh3GeV = 0;
if ((status&AliESDtrack::kESDpid)==0) continue;
Double_t p[3];
esdTrack->GetPxPyPz(p);
- Double_t momentum = sqrt(pow(p[0],2) + pow(p[1],2) + pow(p[2],2));
- Double_t fPt = sqrt(pow(p[0],2) + pow(p[1],2));
+ Double_t pt2 = p[0]*p[0]+p[1]*p[1];
+ Double_t momentum = TMath::Sqrt(pt2+p[2]*p[2]);
+ Double_t fPt = TMath::Sqrt(pt2);
totalP += momentum;
meanPt += fPt;
if(fPt > maxPt) maxPt = fPt;
// total number of muons inside a vertex cut
if((TMath::Abs(fZ)<fZVertexCut) && (TMath::Sqrt(fY*fY+fX*fX)<fRhoVertexCut)) {
nMuons++;
+ nFWMuons++;
if(fEPvector.Pt() > fLowPtCut) {
nMu1GeV++;
if(fEPvector.Pt() > fHighPtCut) {
evTag->SetNumOfKaons(nKaons);
evTag->SetNumOfPions(nPions);
evTag->SetNumOfMuons(nMuons);
+ evTag->SetNumOfFWMuons(nFWMuons);
evTag->SetNumOfElectrons(nElectrons);
evTag->SetNumOfPhotons(nGamas);
evTag->SetNumOfPi0s(nPi0s);
}
//_____________________________________________________________________________
-void AliESDTagCreator::CreateESDTags(Int_t fFirstEvent, Int_t fLastEvent, AliGRPObject *grpData) {
+void AliESDTagCreator::CreateESDTags(Int_t fFirstEvent, Int_t fLastEvent, AliGRPObject *grpData, ULong_t * qa, Bool_t * es, Int_t qalength, Int_t eslength) {
//GRP
Float_t lhcLuminosity = 0.0;
TString lhcState = "test";
// Creates the tags for all the events in a given ESD file
Int_t ntrack;
- Int_t nProtons, nKaons, nPions, nMuons, nElectrons;
+ Int_t nProtons, nKaons, nPions, nMuons, nElectrons, nFWMuons;
Int_t nPos, nNeg, nNeutr;
Int_t nK0s, nNeutrons, nPi0s, nGamas;
Int_t nCh1GeV, nCh3GeV, nCh10GeV;
nKaons = 0;
nPions = 0;
nMuons = 0;
+ nFWMuons = 0;
nElectrons = 0;
nCh1GeV = 0;
nCh3GeV = 0;
if ((status&AliESDtrack::kESDpid)==0) continue;
Double_t p[3];
esdTrack->GetPxPyPz(p);
- Double_t momentum = sqrt(pow(p[0],2) + pow(p[1],2) + pow(p[2],2));
- Double_t fPt = sqrt(pow(p[0],2) + pow(p[1],2));
+ Double_t pt2 = p[0]*p[0]+p[1]*p[1];
+ Double_t momentum = TMath::Sqrt(pt2+p[2]*p[2]);
+ Double_t fPt = TMath::Sqrt(pt2);
totalP += momentum;
meanPt += fPt;
if(fPt > maxPt) maxPt = fPt;
// total number of muons inside a vertex cut
if((TMath::Abs(fZ)<fZVertexCut) && (TMath::Sqrt(fY*fY+fX*fX)<fRhoVertexCut)) {
nMuons++;
+ nFWMuons++;
if(fEPvector.Pt() > fLowPtCut) {
nMu1GeV++;
if(fEPvector.Pt() > fHighPtCut) {
evTag->SetNumOfKaons(nKaons);
evTag->SetNumOfPions(nPions);
evTag->SetNumOfMuons(nMuons);
+ evTag->SetNumOfFWMuons(nFWMuons);
evTag->SetNumOfElectrons(nElectrons);
evTag->SetNumOfPhotons(nGamas);
evTag->SetNumOfPi0s(nPi0s);
tag->SetRunStopTime(t2->GetDate());
tag->SetBeamEnergy(beamenergy);
tag->SetBeamType(beamtype);
+
+ //QA setting
+ tag->SetQA(qa, qalength) ;
+ tag->SetEventSpecies(es, eslength) ;
tag->AddEventTag(*evTag);
}