fNumEvents(0),
fNumDetectors(0),
fEventTag("AliEventTag", 1000),
- fDetectorTag("AliDetectorTag", 1000),
- fLHCTag()
+ fDetectorTag(),
+ fLHCTag(),
+ fQA()
{
//Default constructor
}
AliRunTag::~AliRunTag() {
//Destructor
fEventTag.Delete();
- fDetectorTag.Delete();
}
//___________________________________________________________________________
-void AliRunTag::SetLHCTag(Float_t lumin, char *type) {
+void AliRunTag::CopyStandardContent(AliRunTag *oldtag) {
+ //function that copies the run, lhc and detector levels
+ SetRunId(oldtag->GetRunId());
+ SetMagneticField(oldtag->GetMagneticField());
+ SetRunStartTime(oldtag->GetRunStartTime());
+ SetRunStopTime(oldtag->GetRunStopTime());
+ SetAlirootVersion(oldtag->GetAlirootVersion());
+ SetRootVersion(oldtag->GetRootVersion());
+ SetGeant3Version(oldtag->GetGeant3Version());
+ SetRunQuality(oldtag->GetRunQuality());
+ SetBeamEnergy(oldtag->GetBeamEnergy());
+ SetBeamType(oldtag->GetBeamType());
+ SetCalibVersion(oldtag->GetCalibVersion());
+ SetDataType(oldtag->GetDataType());
+ SetLHCTag(oldtag->GetLHCTag()->GetLuminosity(),oldtag->GetLHCTag()->GetLHCState());
+ SetDetectorTag(oldtag->GetDetectorTags()->GetIntDetectorMask());
+ SetQA(*(oldtag->GetQA())) ;
+}
+
+//___________________________________________________________________________
+void AliRunTag::SetLHCTag(Float_t lumin, TString type) {
//Setter for the LHC tags
fLHCTag.SetLHCTag(lumin,type);
}
//___________________________________________________________________________
-void AliRunTag::SetDetectorTag(const AliDetectorTag &DetTag) {
+void AliRunTag::SetDetectorTag(UInt_t mask) {
//Setter for the detector tags
- new(fDetectorTag[fNumDetectors++]) AliDetectorTag(DetTag);
+ fDetectorTag.SetDetectorMask(mask);
}
//___________________________________________________________________________